diff --git a/jslib b/jslib index f711c48696..58be5796b0 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit f711c48696b5abc07998bb12b782b600bf7d53e6 +Subproject commit 58be5796b0c2b19aacf52d4a1c179aeb80924443 diff --git a/src/popup/app.module.ts b/src/popup/app.module.ts index 797bc8daff..a36a8a5627 100644 --- a/src/popup/app.module.ts +++ b/src/popup/app.module.ts @@ -6,7 +6,7 @@ import { AppRoutingModule } from './app-routing.module'; import { ServicesModule } from './services/services.module'; import { NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; +import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @@ -47,6 +47,7 @@ import { PasswordHistoryComponent } from './vault/password-history.component'; import { ShareComponent } from './vault/share.component'; import { ViewComponent } from './vault/view.component'; +import { EffluxDatesComponent as SendEffluxDatesComponent } from './send/efflux-dates.component'; import { SendAddEditComponent } from './send/send-add-edit.component'; import { SendGroupingsComponent } from './send/send-groupings.component'; import { SendTypeComponent } from './send/send-type.component'; @@ -168,14 +169,15 @@ registerLocaleData(localeZhTw, 'zh-TW'); @NgModule({ imports: [ - BrowserModule, - BrowserAnimationsModule, - FormsModule, AppRoutingModule, + BrowserAnimationsModule, + BrowserModule, + DragDropModule, + FormsModule, + ReactiveFormsModule, + ScrollingModule, ServicesModule, ToasterModule.forRoot(), - DragDropModule, - ScrollingModule, ], declarations: [ A11yTitleDirective, @@ -218,6 +220,7 @@ registerLocaleData(localeZhTw, 'zh-TW'); SearchCiphersPipe, SelectCopyDirective, SendAddEditComponent, + SendEffluxDatesComponent, SendGroupingsComponent, SendListComponent, SendTypeComponent, diff --git a/src/popup/send/efflux-dates.component.html b/src/popup/send/efflux-dates.component.html new file mode 100644 index 0000000000..57dc270244 --- /dev/null +++ b/src/popup/send/efflux-dates.component.html @@ -0,0 +1,129 @@ + +
+
+ +
+ + +
+
+ +
+
+
+ + +
+
+ +
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + {{'clear' | i18n}} + +
+ +
+
+ +
+ + + +
+ + +
+
+ +
+ + +
+
+ + + +
+
+ + + +
+ + +
+
+ +
+ + +
+
+ + + +
+
+
+ diff --git a/src/popup/send/efflux-dates.component.ts b/src/popup/send/efflux-dates.component.ts new file mode 100644 index 0000000000..21b2ed8aad --- /dev/null +++ b/src/popup/send/efflux-dates.component.ts @@ -0,0 +1,30 @@ +import { DatePipe } from '@angular/common'; + +import { + Component, + EventEmitter, + Input, + Output, +} from '@angular/core'; + +import { ControlContainer, NgForm } from '@angular/forms'; + +import { I18nService } from 'jslib-common/abstractions/i18n.service'; +import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service'; + +import { EffluxDatesComponent as BaseEffluxDatesComponent } from 'jslib-angular/components/send/efflux-dates.component'; + +@Component({ + selector: 'app-send-efflux-dates', + templateUrl: 'efflux-dates.component.html', + viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], +}) +export class EffluxDatesComponent extends BaseEffluxDatesComponent { + @Input() readonly inPopout: boolean; + @Output() popOutWindow = new EventEmitter(); + + constructor(protected i18nService: I18nService, protected platformUtilsService: PlatformUtilsService, + protected datePipe: DatePipe) { + super(i18nService, platformUtilsService, datePipe); + } +} diff --git a/src/popup/send/send-add-edit.component.html b/src/popup/send/send-add-edit.component.html index 3886170ed4..3db380c527 100644 --- a/src/popup/send/send-add-edit.component.html +++ b/src/popup/send/send-add-edit.component.html @@ -117,112 +117,10 @@ - -
-
- - - - -
- - - -
-
-
- - -
- -
- -
-
- -
- - -
-
-
- -
- -
-
- - - - -
- - - -
-
-
- - -
-
- -
-
-
- - - {{'clear' | i18n}} - -
- -
-
- -
+ +