@wavemaker/app-ng-runtime 11.4.0-next.25501 → 11.4.0-next.25703
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/build-task/bundles/index.umd.js +2 -2
- app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
- app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +3 -3
- app-ng-runtime/build-task/fesm2015/index.js +2 -2
- app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +23 -1
- app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/base/esm2015/public_api.js +2 -2
- app-ng-runtime/components/base/esm2015/utils/widget-utils.js +16 -1
- app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
- app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
- app-ng-runtime/components/base/fesm2015/index.js +24 -3
- app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/base/index.metadata.json +1 -1
- app-ng-runtime/components/base/public_api.d.ts +1 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +7 -0
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -2
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/esm2015/rich-text-editor.component.js +3 -3
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js +2 -2
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
- app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
- app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
- app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
- app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
- app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
- app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/form/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +36 -45
- app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/list/esm2015/list.component.js +34 -43
- app-ng-runtime/components/data/list/fesm2015/index.js +33 -42
- app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/list/index.metadata.json +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
- app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
- app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
- app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +66 -13
- app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/data/table/esm2015/table-filter.directive.js +3 -2
- app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
- app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
- app-ng-runtime/components/data/table/fesm2015/index.js +66 -13
- app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/data/table/index.metadata.json +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +9 -0
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
- app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
- app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +5 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +59 -12
- app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +32 -3
- app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +2 -3
- app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
- app-ng-runtime/components/input/epoch/fesm2015/index.js +62 -14
- app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
- app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
- app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
- app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
- app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
- app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +4 -1
- app-ng-runtime/components/navigation/popover/fesm2015/index.js +3 -0
- app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +7 -1
- app-ng-runtime/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
- app-ng-runtime/core/fesm2015/index.js +7 -1
- app-ng-runtime/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
- app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
- app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/core/esm2015/services/device.service.js +3 -2
- app-ng-runtime/mobile/core/fesm2015/index.js +2 -1
- app-ng-runtime/mobile/core/fesm2015/index.js.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +3 -2
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/esm2015/services/live-sync.service.js +4 -3
- app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js +3 -2
- app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +1 -0
- app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
- app-ng-runtime/runtime/base/esm2015/services/prefab-manager.service.js +2 -1
- app-ng-runtime/runtime/base/fesm2015/index.js +1 -0
- app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +94 -25
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -3
- app-ng-runtime/variables/bundles/index.umd.js +5 -12
- app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
- app-ng-runtime/variables/esm2015/constants/variables.constants.js +3 -9
- app-ng-runtime/variables/fesm2015/index.js +2 -9
- app-ng-runtime/variables/fesm2015/index.js.map +1 -1
- app-ng-runtime/variables/index.metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"DialogBodyDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":12,"character":1},"arguments":[{"selector":"div[wmDialogBody]"}]}],"members":{"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":16,"character":5},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":9},"arguments":[{"__symbolic":"reference","module":"@wm/components/base","name":"DialogRef","line":19,"character":16}]}],null,null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":15},null,{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"BsModalService","line":20,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":21,"character":27}]}]}},"DialogFooterDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@wm/components/base","name":"BaseComponent","line":16,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"div[wmDialogFooter]","providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@wm/components/base","name":"provideAsWidgetRef","line":13,"character":8},"arguments":[{"__symbolic":"reference","name":"DialogFooterDirective"}]}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":19,"character":21}]}]},"statics":{"initializeProps":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵa"}}}},"DialogHeaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"div[wmDialogHeader]","template":"<button *ngIf=\"isClosable\" aria-label=\"Close\" class=\"app-dialog-close close\" (click)=\"closeDialog();\" title=\"Close\">\n <span aria-hidden=\"true\">×</span>\n</button>\n<h4 class=\"app-dialog-title modal-title\">\n <i [ngClass]=\"iconclass\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\" *ngIf=\"iconclass && !iconurl\"></i>\n <img data-identifier=\"img\" [src]=\"iconurl | image\" *ngIf=\"iconurl\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin}\"/>\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n <span class=\"dialog-sub-heading\" *ngIf=\"subheading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n</h4>\n"}]}],"members":{"iconwidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":5}}]}],"iconheight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5}}]}],"iconmargin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":5}}]}],"iconclass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}}]}],"iconurl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":5}}]}],"closable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"heading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":5}}]}],"subheading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}}]}],"titleid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":36},"arguments":[{"__symbolic":"reference","module":"@wm/components/base","name":"DialogRef","line":30,"character":43}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":30,"character":23},{"__symbolic":"reference","name":"BaseDialog"}]}],"closeDialog":[{"__symbolic":"method"}]}},"BaseDialog":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@wm/components/base","name":"BaseComponent","line":59,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"DialogBodyDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":12,"character":1},"arguments":[{"selector":"div[wmDialogBody]"}]}],"members":{"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":16,"character":5},"arguments":["style.height"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":19,"character":9},"arguments":[{"__symbolic":"reference","module":"@wm/components/base","name":"DialogRef","line":19,"character":16}]}],null,null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":18,"character":15},null,{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"BsModalService","line":20,"character":17},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":21,"character":27}]}]}},"DialogFooterDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@wm/components/base","name":"BaseComponent","line":16,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"div[wmDialogFooter]","providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@wm/components/base","name":"provideAsWidgetRef","line":13,"character":8},"arguments":[{"__symbolic":"reference","name":"DialogFooterDirective"}]}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":19,"character":21}]}]},"statics":{"initializeProps":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"ɵa"}}}},"DialogHeaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"div[wmDialogHeader]","template":"<button *ngIf=\"isClosable\" aria-label=\"Close\" class=\"app-dialog-close close\" (click)=\"closeDialog();\" title=\"Close\">\n <span aria-hidden=\"true\">×</span>\n</button>\n<h4 class=\"app-dialog-title modal-title\">\n <i [ngClass]=\"iconclass\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\" *ngIf=\"iconclass && !iconurl\"></i>\n <img data-identifier=\"img\" [src]=\"iconurl | image\" *ngIf=\"iconurl\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin}\"/>\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n <span class=\"dialog-sub-heading\" *ngIf=\"subheading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n</h4>\n"}]}],"members":{"iconwidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":5}}]}],"iconheight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5}}]}],"iconmargin":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":5}}]}],"iconclass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}}]}],"iconurl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":5}}]}],"closable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"heading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":5}}]}],"subheading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}}]}],"titleid":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":30,"character":36},"arguments":[{"__symbolic":"reference","module":"@wm/components/base","name":"DialogRef","line":30,"character":43}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":30,"character":23},{"__symbolic":"reference","name":"BaseDialog"}]}],"closeDialog":[{"__symbolic":"method"}]}},"BaseDialog":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@wm/components/base","name":"BaseComponent","line":59,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":58,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":71,"character":13},{"__symbolic":"reference","module":"@wm/components/base","name":"IWidgetConfig","line":72,"character":22},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"ModalOptions","line":73,"character":32}]}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"deRegister":[{"__symbolic":"method"}],"getTemplateRef":[{"__symbolic":"method"}],"onPropertyChange":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"DialogModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":16,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":18,"character":8},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"ModalModule","line":19,"character":8},{"__symbolic":"reference","module":"@wm/components/base","name":"WmComponentsModule","line":20,"character":8}],"declarations":[{"__symbolic":"reference","name":"DialogBodyDirective"},{"__symbolic":"reference","name":"DialogFooterDirective"},{"__symbolic":"reference","name":"DialogHeaderComponent"}],"exports":[{"__symbolic":"reference","name":"DialogBodyDirective"},{"__symbolic":"reference","name":"DialogFooterDirective"},{"__symbolic":"reference","name":"DialogHeaderComponent"}],"entryComponents":[]}]}],"members":{}},"ɵa":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":29,"module":"./dialog-footer/dialog-footer.props"}},"origins":{"DialogBodyDirective":"./dialog-body/dialog-body.directive","DialogFooterDirective":"./dialog-footer/dialog-footer.directive","DialogHeaderComponent":"./dialog-header/dialog-header.component","BaseDialog":"./base-dialog","DialogModule":"./dialog.module","ɵa":"./dialog-footer/dialog-footer.props"},"importAs":"@wm/components/dialogs"}
|
|
@@ -40,6 +40,9 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
|
|
|
40
40
|
removeKeyupListener: any;
|
|
41
41
|
loadNativeDateInput: any;
|
|
42
42
|
showcustompicker: any;
|
|
43
|
+
next: any;
|
|
44
|
+
prev: any;
|
|
45
|
+
clicked: boolean;
|
|
43
46
|
protected dateNotInRange: boolean;
|
|
44
47
|
protected timeNotInRange: boolean;
|
|
45
48
|
protected invalidDateTimeFormat: boolean;
|
|
@@ -133,6 +136,7 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
|
|
|
133
136
|
* @param timePeriod - String value decides to load other month days or other month or other year
|
|
134
137
|
*/
|
|
135
138
|
private goToOtherMonthOryear;
|
|
139
|
+
private getMonth;
|
|
136
140
|
/**
|
|
137
141
|
* This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
|
|
138
142
|
*/
|
|
@@ -155,6 +159,7 @@ export declare abstract class BaseDateTimeComponent extends BaseFormCustomCompon
|
|
|
155
159
|
* @param isDateTime - boolean value represents the loaded widget is date or datetime
|
|
156
160
|
*/
|
|
157
161
|
protected addDatepickerKeyboardEvents(scope: any, isDateTime: any): void;
|
|
162
|
+
private setNextData;
|
|
158
163
|
/**
|
|
159
164
|
* This method is used to add tabindex, keybord and mouse events for days
|
|
160
165
|
*/
|
|
@@ -378,22 +378,32 @@
|
|
|
378
378
|
configurable: true
|
|
379
379
|
});
|
|
380
380
|
DateTimePickerComponent.prototype.validateSelectedDate = function () {
|
|
381
|
-
var _a, _b, _c, _d, _e
|
|
381
|
+
var _a, _b, _c, _d, _e;
|
|
382
382
|
if (!this.changedValue) {
|
|
383
383
|
return true;
|
|
384
384
|
}
|
|
385
385
|
var cd = moment(this.changedValue);
|
|
386
|
-
|
|
386
|
+
var minDate = (_a = this._bsDatepickerConfig) === null || _a === void 0 ? void 0 : _a.minDate;
|
|
387
|
+
var maxDate = (_b = this._bsDatepickerConfig) === null || _b === void 0 ? void 0 : _b.maxDate;
|
|
388
|
+
if (minDate
|
|
389
|
+
&& ((this.mode === 'DATE'
|
|
390
|
+
&& moment(minDate).startOf('day').toDate() > this.changedValue)
|
|
391
|
+
|| (this.mode !== 'DATE'
|
|
392
|
+
&& minDate > this.changedValue))) {
|
|
387
393
|
return false;
|
|
388
394
|
}
|
|
389
|
-
if (
|
|
395
|
+
if (maxDate
|
|
396
|
+
&& ((this.mode === 'DATE'
|
|
397
|
+
&& moment(maxDate).endOf('day').toDate() < this.changedValue)
|
|
398
|
+
|| (this.mode !== 'DATE'
|
|
399
|
+
&& maxDate < this.changedValue))) {
|
|
390
400
|
return false;
|
|
391
401
|
}
|
|
392
|
-
if (((
|
|
402
|
+
if (((_d = (_c = this._bsDatepickerConfig) === null || _c === void 0 ? void 0 : _c.daysDisabled) === null || _d === void 0 ? void 0 : _d.indexOf(cd.day())) >= 0) {
|
|
393
403
|
return false;
|
|
394
404
|
}
|
|
395
405
|
var cdSt = cd.startOf('day').toDate().getTime();
|
|
396
|
-
if ((
|
|
406
|
+
if ((_e = this.excludedDatesToDisable) === null || _e === void 0 ? void 0 : _e.find(function (d) { return d.getTime() === cdSt; })) {
|
|
397
407
|
return false;
|
|
398
408
|
}
|
|
399
409
|
return true;
|
|
@@ -442,6 +452,11 @@
|
|
|
442
452
|
newVal.setMilliseconds(oldVal.getMilliseconds());
|
|
443
453
|
}
|
|
444
454
|
this.changedValue = newVal;
|
|
455
|
+
if (this.mode === 'DATE'
|
|
456
|
+
&& oldVal !== newVal
|
|
457
|
+
&& this.validateSelectedDate()) {
|
|
458
|
+
this.onOkClick();
|
|
459
|
+
}
|
|
445
460
|
};
|
|
446
461
|
DateTimePickerComponent.prototype.onTimeUpdate = function (newVal) {
|
|
447
462
|
this.changedValue = newVal;
|
|
@@ -461,6 +476,10 @@
|
|
|
461
476
|
this.triggerChange();
|
|
462
477
|
this.hideModal();
|
|
463
478
|
};
|
|
479
|
+
DateTimePickerComponent.prototype.setToday = function () {
|
|
480
|
+
var today = moment().startOf('day').toDate();
|
|
481
|
+
this.onDateUpdate(today);
|
|
482
|
+
};
|
|
464
483
|
DateTimePickerComponent.prototype.reset = function () {
|
|
465
484
|
this.changedValue = this._value;
|
|
466
485
|
};
|
|
@@ -495,7 +514,7 @@
|
|
|
495
514
|
DateTimePickerComponent.decorators = [
|
|
496
515
|
{ type: core.Component, args: [{
|
|
497
516
|
selector: 'wm-datetimepicker',
|
|
498
|
-
template: " \n <ng-template #datetimepickerTemplate>\n <div class=\"app-datetime-picker\">\n <div class=\"modal-body\">\n <div class=\"mobile-datetime-picker-options\">\n \n </div>\n <bs-datepicker-inline\n [bsConfig]=\"bsDatepickerConfig\"\n [datesDisabled]=\"excludedDatesToDisable\"\n bsDatepicker\n [bsValue]=\"changedValue\"\n (bsValueChange)=\"onDateUpdate($event)\"\n *ngIf=\"mode === 'DATE_TIME' || mode === 'DATE'\">\n </bs-datepicker-inline>\n <wm-timepicker\n [value]=\"changedValue\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n (change)=\"onTimeUpdate($event)\"\n *ngIf=\"mode === 'DATE_TIME' || mode === 'TIME'\"></wm-timepicker>\n <span class=\"text-primary date-picker-value\">\n {{getDateLabel()}}\n </span>\n </div>\n <div class=\"modal-footer\">\n <button\n class=\"btn btn-secondary
|
|
517
|
+
template: " \n <ng-template #datetimepickerTemplate>\n <div class=\"app-datetime-picker\">\n <div class=\"modal-body\">\n <div class=\"mobile-datetime-picker-options\">\n \n </div>\n <bs-datepicker-inline\n [bsConfig]=\"bsDatepickerConfig\"\n [datesDisabled]=\"excludedDatesToDisable\"\n bsDatepicker\n [bsValue]=\"changedValue\"\n (bsValueChange)=\"onDateUpdate($event)\"\n *ngIf=\"mode === 'DATE_TIME' || mode === 'DATE'\">\n </bs-datepicker-inline>\n <wm-timepicker\n [value]=\"changedValue\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n (change)=\"onTimeUpdate($event)\"\n *ngIf=\"mode === 'DATE_TIME' || mode === 'TIME'\"></wm-timepicker>\n <span class=\"text-primary date-picker-value\">\n {{getDateLabel()}}\n </span>\n </div>\n <div class=\"modal-footer\">\n <button\n *ngIf=\"mode === 'DATE_TIME' || mode === 'DATE'\"\n class=\"btn btn-secondary today-btn\"\n (click)=\"setToday()\">{{appLocale.MESSAGE_DATE_PICKER_TODAY || \"Today\" }}</button>\n <button\n class=\"btn btn-primary pull-right ok-btn\"\n *ngIf=\"mode === 'DATE_TIME' || mode === 'TIME'\"\n (click)=\"onOkClick()\">{{appLocale.MESSAGE_DATE_PICKER_OK || \"Ok\" }}</button>\n <button\n class=\"btn btn-secondary pull-right clear-btn\"\n (click)=\"clear()\">{{appLocale.MESSAGE_DATE_PICKER_CLEAR || \"Clear\" }}</button>\n </div>\n </div>\n </ng-template>\n "
|
|
499
518
|
},] }
|
|
500
519
|
];
|
|
501
520
|
DateTimePickerComponent.ctorParameters = function () { return [
|
|
@@ -544,8 +563,8 @@
|
|
|
544
563
|
}
|
|
545
564
|
return arr;
|
|
546
565
|
};
|
|
547
|
-
TimePickerComponent.prototype.set = function (
|
|
548
|
-
var index =
|
|
566
|
+
TimePickerComponent.prototype.set = function (_f, unit) {
|
|
567
|
+
var index = _f.index, value = _f.value;
|
|
549
568
|
if (unit === 'HOUR') {
|
|
550
569
|
this.value = moment(this.value).hour(parseInt(value)).toDate();
|
|
551
570
|
}
|
|
@@ -638,6 +657,7 @@
|
|
|
638
657
|
function BaseDateTimeComponent(inj, WIDGET_CONFIG) {
|
|
639
658
|
var _this = _super.call(this, inj, WIDGET_CONFIG) || this;
|
|
640
659
|
_this.isReadOnly = false;
|
|
660
|
+
_this.clicked = false;
|
|
641
661
|
_this.formatsByLocale = { 'timezone': '' };
|
|
642
662
|
/**
|
|
643
663
|
* This is an internal property used to map the containerClass, showWeekNumbers etc., to the bsDatepicker
|
|
@@ -836,6 +856,7 @@
|
|
|
836
856
|
*/
|
|
837
857
|
BaseDateTimeComponent.prototype.setActiveDateFocus = function (newDate, isMouseEvent) {
|
|
838
858
|
var _this = this;
|
|
859
|
+
this.setNextData(newDate);
|
|
839
860
|
var activeMonth = this.activeDate.getMonth();
|
|
840
861
|
// check for keyboard event
|
|
841
862
|
if (!isMouseEvent) {
|
|
@@ -882,6 +903,18 @@
|
|
|
882
903
|
this.loadYears();
|
|
883
904
|
}
|
|
884
905
|
};
|
|
906
|
+
BaseDateTimeComponent.prototype.getMonth = function (date, inc) {
|
|
907
|
+
var currentMonth = new Date(date);
|
|
908
|
+
var month = currentMonth.getMonth();
|
|
909
|
+
var year = currentMonth.getFullYear();
|
|
910
|
+
month += inc;
|
|
911
|
+
var newDate = new Date(year, month);
|
|
912
|
+
var fullMonth = newDate.toLocaleString('en-US', { month: 'long' });
|
|
913
|
+
return {
|
|
914
|
+
date: newDate,
|
|
915
|
+
fullMonth: fullMonth
|
|
916
|
+
};
|
|
917
|
+
};
|
|
885
918
|
/**
|
|
886
919
|
* This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
|
|
887
920
|
*/
|
|
@@ -889,12 +922,18 @@
|
|
|
889
922
|
var _this = this;
|
|
890
923
|
var datePickerHead = $(".bs-datepicker-head");
|
|
891
924
|
datePickerHead.find(".previous").click(function (event) {
|
|
925
|
+
_this.next = _this.getMonth(_this.activeDate, 0);
|
|
926
|
+
_this.prev = _this.getMonth(_this.activeDate, -2);
|
|
927
|
+
_this.clicked = true;
|
|
892
928
|
// check for original mouse click
|
|
893
929
|
if (event.originalEvent) {
|
|
894
930
|
_this.setFocusForDate(-1);
|
|
895
931
|
}
|
|
896
932
|
});
|
|
897
933
|
datePickerHead.find(".next").click(function (event) {
|
|
934
|
+
_this.next = _this.getMonth(_this.activeDate, 2);
|
|
935
|
+
_this.prev = _this.getMonth(_this.activeDate, 0);
|
|
936
|
+
_this.clicked = true;
|
|
898
937
|
// check for original mouse click
|
|
899
938
|
if (event.originalEvent) {
|
|
900
939
|
_this.setFocusForDate(1);
|
|
@@ -913,8 +952,8 @@
|
|
|
913
952
|
_this.setFocusForMonthOrDay();
|
|
914
953
|
}
|
|
915
954
|
});
|
|
916
|
-
datePickerHead.find('.next').attr('aria-label',
|
|
917
|
-
datePickerHead.find('.previous').attr('aria-label',
|
|
955
|
+
datePickerHead.find('.next').attr('aria-label', "Next Month, " + this.next.fullMonth + " " + this.next.date.getFullYear());
|
|
956
|
+
datePickerHead.find('.previous').attr('aria-label', "Previous Month, " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
|
|
918
957
|
};
|
|
919
958
|
/**
|
|
920
959
|
* This method sets focus for months/days depending on the loaded datepicker table
|
|
@@ -997,6 +1036,10 @@
|
|
|
997
1036
|
this.loadDays();
|
|
998
1037
|
this.setActiveDateFocus(this.activeDate);
|
|
999
1038
|
};
|
|
1039
|
+
BaseDateTimeComponent.prototype.setNextData = function (nextDate) {
|
|
1040
|
+
this.next = this.getMonth(nextDate, 1);
|
|
1041
|
+
this.prev = this.getMonth(nextDate, -1);
|
|
1042
|
+
};
|
|
1000
1043
|
/**
|
|
1001
1044
|
* This method is used to add tabindex, keybord and mouse events for days
|
|
1002
1045
|
*/
|
|
@@ -1004,6 +1047,10 @@
|
|
|
1004
1047
|
var _this = this;
|
|
1005
1048
|
setTimeout(function () {
|
|
1006
1049
|
$('[bsdatepickerdaydecorator]').not('.is-other-month').attr('tabindex', '0');
|
|
1050
|
+
// if (this.clicked === false) {
|
|
1051
|
+
// this.next = this.getMonth(this.activeDate, 1);
|
|
1052
|
+
// this.prev = this.getMonth(this.activeDate, -1);
|
|
1053
|
+
// }
|
|
1007
1054
|
_this.addKeyBoardEventsForDays();
|
|
1008
1055
|
_this.addDatepickerMouseEvents();
|
|
1009
1056
|
});
|
|
@@ -1141,6 +1188,7 @@
|
|
|
1141
1188
|
*/
|
|
1142
1189
|
BaseDateTimeComponent.prototype.setActiveMonthFocus = function (newDate, isMoouseEvent) {
|
|
1143
1190
|
var _this = this;
|
|
1191
|
+
this.setNextData(newDate);
|
|
1144
1192
|
var newMonth = months[newDate.getMonth()];
|
|
1145
1193
|
// check for keyboard event
|
|
1146
1194
|
if (!isMoouseEvent) {
|
|
@@ -1758,7 +1806,6 @@
|
|
|
1758
1806
|
if (!skipFocus) {
|
|
1759
1807
|
this.onDateTimeInputFocus();
|
|
1760
1808
|
}
|
|
1761
|
-
return;
|
|
1762
1809
|
}
|
|
1763
1810
|
if ($event.type === 'click') {
|
|
1764
1811
|
this.invokeEventCallback('click', { $event: $event });
|
|
@@ -1843,7 +1890,7 @@
|
|
|
1843
1890
|
DateComponent.decorators = [
|
|
1844
1891
|
{ type: core.Component, args: [{
|
|
1845
1892
|
selector: '[wmDate]',
|
|
1846
|
-
template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n [tabindex]=\"tabindex\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n
|
|
1893
|
+
template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n [tabindex]=\"tabindex\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n [disabled]=\"disabled || readonly\"\n [autofocus]=\"autofocus\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n (change)=\"onDisplayDateChange($event)\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event);\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\"\n [attr.aria-label]=\"displayValue ? 'Change Date ' + displayValue : 'Choose date by pressing enter'\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleDpDropdown($event, false)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-calendar\"></i>\n </button>\n </span>\n <div style=\"width: 0;display: inline-block;\">\n <input class=\"model-holder\"\n aria-label=\"datepicker dropdownmenu\"\n aria-controls=\"date\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isOpen\"\n #datepicker=\"bsDatepicker\"\n bsDatepicker\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n placement=\"bottom right\"\n [isDisabled]=\"disabled || readonly\"\n [bsValue]=\"bsDataValue\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n (bsValueChange)=\"onDateChange($event)\">\n</div>\n\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n mode=\"DATE\"\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDataValue\"\n (change)=\"onDateChange($event)\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n tabindex=\"1000000\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n",
|
|
1847
1894
|
providers: [
|
|
1848
1895
|
base.provideAs(DateComponent, forms.NG_VALUE_ACCESSOR, true),
|
|
1849
1896
|
base.provideAs(DateComponent, forms.NG_VALIDATORS, true),
|