@wavemaker/app-ng-runtime 11.4.0-next.25501 → 11.4.0-next.25701

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.
Files changed (145) hide show
  1. app-ng-runtime/build-task/basic/tree/tree.build.d.ts +1 -2
  2. app-ng-runtime/build-task/bundles/index.umd.js +9 -11
  3. app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
  4. app-ng-runtime/build-task/esm2015/basic/tree/tree.build.js +3 -4
  5. app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +3 -3
  6. app-ng-runtime/build-task/esm2015/navigation/popover/popover.build.js +3 -3
  7. app-ng-runtime/build-task/fesm2015/index.js +9 -11
  8. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  9. app-ng-runtime/components/base/bundles/index.umd.js +29 -4
  10. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  11. app-ng-runtime/components/base/esm2015/public_api.js +2 -2
  12. app-ng-runtime/components/base/esm2015/utils/widget-utils.js +22 -4
  13. app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
  14. app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
  15. app-ng-runtime/components/base/fesm2015/index.js +30 -6
  16. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  17. app-ng-runtime/components/base/index.metadata.json +1 -1
  18. app-ng-runtime/components/base/public_api.d.ts +1 -1
  19. app-ng-runtime/components/base/utils/widget-utils.d.ts +8 -1
  20. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -2
  21. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js.map +1 -1
  22. app-ng-runtime/components/basic/rich-text-editor/esm2015/rich-text-editor.component.js +3 -3
  23. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js +2 -2
  24. app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.js.map +1 -1
  25. app-ng-runtime/components/basic/tree/bundles/index.umd.js +280 -256
  26. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  27. app-ng-runtime/components/basic/tree/esm2015/public_api.js +2 -2
  28. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +322 -0
  29. app-ng-runtime/components/basic/tree/esm2015/tree.module.js +3 -3
  30. app-ng-runtime/components/basic/tree/fesm2015/index.js +260 -248
  31. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  32. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  33. app-ng-runtime/components/basic/tree/public_api.d.ts +1 -1
  34. app-ng-runtime/components/basic/tree/tree.component.d.ts +34 -0
  35. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
  36. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  37. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
  38. app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
  39. app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
  40. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  41. app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
  42. app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
  43. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  44. app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
  45. app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
  46. app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
  47. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  48. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  49. app-ng-runtime/components/data/list/bundles/index.umd.js +63 -48
  50. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  51. app-ng-runtime/components/data/list/esm2015/list.component.js +61 -46
  52. app-ng-runtime/components/data/list/fesm2015/index.js +60 -45
  53. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  54. app-ng-runtime/components/data/list/index.metadata.json +1 -1
  55. app-ng-runtime/components/data/list/list.component.d.ts +1 -1
  56. app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
  57. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  58. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
  59. app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
  60. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  61. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  62. app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
  63. app-ng-runtime/components/data/table/bundles/index.umd.js +66 -13
  64. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  65. app-ng-runtime/components/data/table/esm2015/table-filter.directive.js +3 -2
  66. app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
  67. app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
  68. app-ng-runtime/components/data/table/fesm2015/index.js +66 -13
  69. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  70. app-ng-runtime/components/data/table/index.metadata.json +1 -1
  71. app-ng-runtime/components/data/table/table.component.d.ts +9 -0
  72. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
  73. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
  74. app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
  75. app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
  76. app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
  77. app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
  78. app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
  79. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +5 -0
  80. app-ng-runtime/components/input/epoch/bundles/index.umd.js +97 -32
  81. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  82. app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
  83. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +73 -26
  84. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +3 -4
  85. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
  86. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.component.js +2 -2
  87. app-ng-runtime/components/input/epoch/fesm2015/index.js +105 -39
  88. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  89. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  90. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
  91. app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
  92. app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
  93. app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
  94. app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
  95. app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
  96. app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
  97. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
  98. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
  99. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -1
  100. app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
  101. app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +5 -3
  102. app-ng-runtime/components/navigation/popover/fesm2015/index.js +4 -2
  103. app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
  104. app-ng-runtime/core/bundles/index.umd.js +7 -1
  105. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  106. app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
  107. app-ng-runtime/core/fesm2015/index.js +7 -1
  108. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  109. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
  110. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
  111. app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
  112. app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
  113. app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
  114. app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
  115. app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
  116. app-ng-runtime/mobile/core/bundles/index.umd.js +2 -1
  117. app-ng-runtime/mobile/core/bundles/index.umd.js.map +1 -1
  118. app-ng-runtime/mobile/core/esm2015/services/device.service.js +3 -2
  119. app-ng-runtime/mobile/core/fesm2015/index.js +2 -1
  120. app-ng-runtime/mobile/core/fesm2015/index.js.map +1 -1
  121. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +3 -2
  122. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js.map +1 -1
  123. app-ng-runtime/mobile/runtime-dynamic/esm2015/services/live-sync.service.js +4 -3
  124. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js +3 -2
  125. app-ng-runtime/mobile/runtime-dynamic/fesm2015/index.js.map +1 -1
  126. app-ng-runtime/package.json +1 -1
  127. app-ng-runtime/runtime/base/bundles/index.umd.js +1 -0
  128. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  129. app-ng-runtime/runtime/base/esm2015/services/prefab-manager.service.js +2 -1
  130. app-ng-runtime/runtime/base/fesm2015/index.js +1 -0
  131. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  132. app-ng-runtime/scripts/datatable/datatable.js +117 -48
  133. app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +3 -3
  134. app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
  135. app-ng-runtime/variables/bundles/index.umd.js +19 -16
  136. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  137. app-ng-runtime/variables/esm2015/constants/variables.constants.js +3 -9
  138. app-ng-runtime/variables/esm2015/manager/action/notification-action.manager.js +5 -6
  139. app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
  140. app-ng-runtime/variables/fesm2015/index.js +13 -14
  141. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  142. app-ng-runtime/variables/index.metadata.json +1 -1
  143. app-ng-runtime/variables/service/variables.service.d.ts +4 -0
  144. app-ng-runtime/components/basic/tree/esm2015/tree.directive.js +0 -310
  145. app-ng-runtime/components/basic/tree/tree.directive.d.ts +0 -35
@@ -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\">&times;</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":70,"character":13},{"__symbolic":"reference","module":"@wm/components/base","name":"IWidgetConfig","line":71,"character":22},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"ModalOptions","line":72,"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"}
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\">&times;</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":58,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":57,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":70,"character":13},{"__symbolic":"reference","module":"@wm/components/base","name":"IWidgetConfig","line":71,"character":22},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"ModalOptions","line":72,"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, _f, _g;
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
- if (((_a = this._bsDatepickerConfig) === null || _a === void 0 ? void 0 : _a.minDate) && ((_b = this._bsDatepickerConfig) === null || _b === void 0 ? void 0 : _b.minDate) > this.changedValue) {
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 (((_c = this._bsDatepickerConfig) === null || _c === void 0 ? void 0 : _c.maxDate) && ((_d = this._bsDatepickerConfig) === null || _d === void 0 ? void 0 : _d.maxDate) < this.changedValue) {
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 (((_f = (_e = this._bsDatepickerConfig) === null || _e === void 0 ? void 0 : _e.daysDisabled) === null || _f === void 0 ? void 0 : _f.indexOf(cd.day())) >= 0) {
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 ((_g = this.excludedDatesToDisable) === null || _g === void 0 ? void 0 : _g.find(function (d) { return d.getTime() === cdSt; })) {
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 clear-btn\"\n (click)=\"clear()\">{{appLocale.MESSAGE_DATE_PICKER_CLEAR || \"Clear\" }}</button>\n <button\n class=\"btn btn-primary pull-right ok-btn\"\n (click)=\"onOkClick()\">{{appLocale.MESSAGE_DATE_PICKER_OK || \"Ok\" }}</button>\n <button\n class=\"btn btn-secondary pull-right cancel-btn\"\n (click)=\"hideModal()\">{{appLocale.MESSAGE_DATE_PICKER_CANCEL || \"Cancel\" }}</button>\n \n </div>\n </div>\n </ng-template>\n "
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 (_h, unit) {
548
- var index = _h.index, value = _h.value;
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
@@ -658,7 +678,6 @@
658
678
  enumerable: false,
659
679
  configurable: true
660
680
  });
661
- ;
662
681
  /**
663
682
  * returns true if the input value is default (i.e open date picker on input click)
664
683
  * @param1 dropdownvalue, user selected value (by default datepicker opens on input click)
@@ -708,7 +727,7 @@
708
727
  };
709
728
  }
710
729
  /* WMS-18269 | Extending the existing validation for 'required' */
711
- if (this["show"] && this["required"]) {
730
+ if (this['show'] && this['required']) {
712
731
  return !!c.value ? null : { required: true };
713
732
  }
714
733
  this.validateType = '';
@@ -836,6 +855,7 @@
836
855
  */
837
856
  BaseDateTimeComponent.prototype.setActiveDateFocus = function (newDate, isMouseEvent) {
838
857
  var _this = this;
858
+ this.setNextData(newDate);
839
859
  var activeMonth = this.activeDate.getMonth();
840
860
  // check for keyboard event
841
861
  if (!isMouseEvent) {
@@ -850,14 +870,18 @@
850
870
  var newDay = newDate.getDate().toString();
851
871
  _.filter($("span:contains(" + newDay + ")").not('.is-other-month'), function (obj) {
852
872
  if ($(obj).text() === newDay) {
873
+ if ($(obj).hasClass('selected')) {
874
+ $(obj).parent().attr('aria-selected', 'true');
875
+ }
853
876
  $(obj).attr('aria-label', moment(newDate).format('dddd, MMMM Do YYYY'));
877
+ $('[bsdatepickerdaydecorator]').not('.is-other-month').attr('tabindex', '-1');
878
+ $(obj).attr('tabindex', '0');
854
879
  $(obj).focus();
855
880
  _this.activeDate = newDate;
856
881
  }
857
882
  });
858
883
  if (newDate.getMonth() === new Date().getMonth() && newDate.getFullYear() === new Date().getFullYear()) {
859
884
  _this.hightlightToday();
860
- $("span:contains(" + new Date().getDate().toString() + ")").not('.is-other-month').parent().attr('aria-selected', 'true');
861
885
  }
862
886
  });
863
887
  };
@@ -882,6 +906,18 @@
882
906
  this.loadYears();
883
907
  }
884
908
  };
909
+ BaseDateTimeComponent.prototype.getMonth = function (date, inc) {
910
+ var currentMonth = new Date(date);
911
+ var month = currentMonth.getMonth();
912
+ var year = currentMonth.getFullYear();
913
+ month += inc;
914
+ var newDate = new Date(year, month);
915
+ var fullMonth = newDate.toLocaleString('en-US', { month: 'long' });
916
+ return {
917
+ date: newDate,
918
+ fullMonth: fullMonth
919
+ };
920
+ };
885
921
  /**
886
922
  * This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
887
923
  */
@@ -889,16 +925,28 @@
889
925
  var _this = this;
890
926
  var datePickerHead = $(".bs-datepicker-head");
891
927
  datePickerHead.find(".previous").click(function (event) {
928
+ _this.next = _this.getMonth(_this.activeDate, 0);
929
+ _this.prev = _this.getMonth(_this.activeDate, -2);
930
+ _this.clicked = true;
892
931
  // check for original mouse click
893
932
  if (event.originalEvent) {
894
933
  _this.setFocusForDate(-1);
895
934
  }
935
+ setTimeout(function () {
936
+ $(".bs-datepicker-head .previous").focus();
937
+ });
896
938
  });
897
939
  datePickerHead.find(".next").click(function (event) {
940
+ _this.next = _this.getMonth(_this.activeDate, 2);
941
+ _this.prev = _this.getMonth(_this.activeDate, 0);
942
+ _this.clicked = true;
898
943
  // check for original mouse click
899
944
  if (event.originalEvent) {
900
945
  _this.setFocusForDate(1);
901
946
  }
947
+ setTimeout(function () {
948
+ $(".bs-datepicker-head .next").focus();
949
+ });
902
950
  });
903
951
  datePickerHead.find(".current").click(function (event) {
904
952
  // check for original mouse click
@@ -913,8 +961,24 @@
913
961
  _this.setFocusForMonthOrDay();
914
962
  }
915
963
  });
916
- datePickerHead.find('.next').attr('aria-label', 'Next');
917
- datePickerHead.find('.previous').attr('aria-label', 'Previous');
964
+ datePickerHead.find('.next').attr('aria-label', "Next Month, " + this.next.fullMonth + " " + this.next.date.getFullYear());
965
+ datePickerHead.find('.previous').attr('aria-label', "Previous Month, " + this.prev.fullMonth + " " + this.prev.date.getFullYear());
966
+ setTimeout(function () {
967
+ var currentNodes = datePickerHead.find('.current span');
968
+ var msg = 'Changed to month ';
969
+ // currentNodes.each((i) => {
970
+ // msg =`${msg} ${$(currentNodes[i]).text()}`;
971
+ // });
972
+ datePickerHead.find('.current').attr("aria-live", "assertive").attr("aria-atomic", "false");
973
+ if (_this.clicked) {
974
+ if ($(currentNodes[0]).text()) {
975
+ datePickerHead.find('.ng-star-inserted').prepend("<div class=\"sr-only\">" + msg + "</div>");
976
+ }
977
+ if ($(currentNodes[1]).text()) {
978
+ datePickerHead.find('.current').last().prepend("<div class=\"sr-only\"> and year </div>");
979
+ }
980
+ }
981
+ });
918
982
  };
919
983
  /**
920
984
  * This method sets focus for months/days depending on the loaded datepicker table
@@ -997,6 +1061,10 @@
997
1061
  this.loadDays();
998
1062
  this.setActiveDateFocus(this.activeDate);
999
1063
  };
1064
+ BaseDateTimeComponent.prototype.setNextData = function (nextDate) {
1065
+ this.next = this.getMonth(nextDate, 1);
1066
+ this.prev = this.getMonth(nextDate, -1);
1067
+ };
1000
1068
  /**
1001
1069
  * This method is used to add tabindex, keybord and mouse events for days
1002
1070
  */
@@ -1004,6 +1072,10 @@
1004
1072
  var _this = this;
1005
1073
  setTimeout(function () {
1006
1074
  $('[bsdatepickerdaydecorator]').not('.is-other-month').attr('tabindex', '0');
1075
+ // if (this.clicked === false) {
1076
+ // this.next = this.getMonth(this.activeDate, 1);
1077
+ // this.prev = this.getMonth(this.activeDate, -1);
1078
+ // }
1007
1079
  _this.addKeyBoardEventsForDays();
1008
1080
  _this.addDatepickerMouseEvents();
1009
1081
  });
@@ -1074,8 +1146,6 @@
1074
1146
  BaseDateTimeComponent.prototype.loadMonths = function () {
1075
1147
  var _this = this;
1076
1148
  setTimeout(function () {
1077
- var datePickerBody = $('.bs-datepicker-body');
1078
- datePickerBody.find('table.months span').attr('tabindex', '0');
1079
1149
  _this.addKeyBoardEventsForMonths();
1080
1150
  _this.addDatepickerMouseEvents();
1081
1151
  });
@@ -1130,8 +1200,6 @@
1130
1200
  BaseDateTimeComponent.prototype.loadYears = function () {
1131
1201
  var _this = this;
1132
1202
  setTimeout(function () {
1133
- var datePickerBody = $('.bs-datepicker-body');
1134
- datePickerBody.find('table.years span').attr('tabindex', '0');
1135
1203
  _this.addKeyBoardEventsForYears();
1136
1204
  _this.addDatepickerMouseEvents();
1137
1205
  });
@@ -1141,6 +1209,7 @@
1141
1209
  */
1142
1210
  BaseDateTimeComponent.prototype.setActiveMonthFocus = function (newDate, isMoouseEvent) {
1143
1211
  var _this = this;
1212
+ this.setNextData(newDate);
1144
1213
  var newMonth = months[newDate.getMonth()];
1145
1214
  // check for keyboard event
1146
1215
  if (!isMoouseEvent) {
@@ -1152,6 +1221,8 @@
1152
1221
  }
1153
1222
  }
1154
1223
  setTimeout(function () {
1224
+ $(".bs-datepicker-body table.months span").attr('tabindex', '-1');
1225
+ $(".bs-datepicker-body table.months span:contains(" + newMonth + ")").attr('tabindex', '0');
1155
1226
  $(".bs-datepicker-body table.months span:contains(" + newMonth + ")").focus();
1156
1227
  _this.activeDate = newDate;
1157
1228
  });
@@ -1212,6 +1283,8 @@
1212
1283
  }
1213
1284
  }
1214
1285
  setTimeout(function () {
1286
+ $(".bs-datepicker-body table.years span").attr('tabindex', '-1');
1287
+ $(".bs-datepicker-body table.years span:contains(" + newYear + ")").attr('tabindex', '0');
1215
1288
  $(".bs-datepicker-body table.years span:contains(" + newYear + ")").focus();
1216
1289
  _this.activeDate = newDate;
1217
1290
  });
@@ -1403,11 +1476,6 @@
1403
1476
  children[i].classList.remove('add-opacity');
1404
1477
  }
1405
1478
  displayInputElem.classList.remove('remove-opacity');
1406
- var allDateTimeElements = this.nativeElement.getElementsByTagName('*');
1407
- for (var i = 0; i < allDateTimeElements.length; i++) {
1408
- allDateTimeElements[i].setAttribute('tabindex', this.tabindex);
1409
- }
1410
- displayInputElem.removeAttribute('tabindex');
1411
1479
  }
1412
1480
  };
1413
1481
  BaseDateTimeComponent.prototype.onDateTimeInputFocus = function (skipFocus) {
@@ -1423,11 +1491,6 @@
1423
1491
  children[i].classList.add('add-opacity');
1424
1492
  }
1425
1493
  displayInputElem.classList.add('remove-opacity');
1426
- var allDateTimeElements = this.nativeElement.getElementsByTagName('*');
1427
- for (var i = 0; i < allDateTimeElements.length; i++) {
1428
- allDateTimeElements[i].setAttribute('tabindex', '-1');
1429
- }
1430
- displayInputElem.setAttribute('tabindex', this.tabindex);
1431
1494
  return;
1432
1495
  }
1433
1496
  if (displayInputElem && this._triggeredByUser) {
@@ -1519,7 +1582,10 @@
1519
1582
  // this mobileinput width varies in ios hence setting width here.
1520
1583
  var mobileInput = this.getMobileInput();
1521
1584
  if (mobileInput) {
1522
- mobileInput.style.width = mobileInput.parentElement.clientWidth + 'px';
1585
+ setTimeout(function () {
1586
+ mobileInput.style.width = '100%';
1587
+ mobileInput.style.height = '100%';
1588
+ });
1523
1589
  }
1524
1590
  };
1525
1591
  BaseDateTimeComponent.prototype.ngOnDestroy = function () {
@@ -1758,7 +1824,6 @@
1758
1824
  if (!skipFocus) {
1759
1825
  this.onDateTimeInputFocus();
1760
1826
  }
1761
- return;
1762
1827
  }
1763
1828
  if ($event.type === 'click') {
1764
1829
  this.invokeEventCallback('click', { $event: $event });
@@ -1791,7 +1856,7 @@
1791
1856
  if (this.isDropDownDisplayEnabledOnInput(this.showdropdownon)) {
1792
1857
  event.stopPropagation();
1793
1858
  var action = this.keyEventPlugin.constructor.getEventFullKey(event);
1794
- if (action === 'enter' || action === 'arrowdown') {
1859
+ if (action === 'enter') {
1795
1860
  var newVal = core$1.getDateObj(event.target.value, { pattern: this.datepattern });
1796
1861
  event.preventDefault();
1797
1862
  var formattedDate = core$1.getFormattedDate(this.datePipe, newVal, this.dateInputFormat, this.timeZone, null, this.isCurrentDate, this);
@@ -1843,7 +1908,7 @@
1843
1908
  DateComponent.decorators = [
1844
1909
  { type: core.Component, args: [{
1845
1910
  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 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",
1911
+ template: " <input class=\"form-control app-textbox app-dateinput display-input\"\n focus-target\n type=\"text\"\n [name]=\"name\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\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]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\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 [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\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]=\"tabindex || 0\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event);\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n [attr.aria-label]=\"displayValue ? 'Change Date' + displayValue : 'Choose Date'\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n",
1847
1912
  providers: [
1848
1913
  base.provideAs(DateComponent, forms.NG_VALUE_ACCESSOR, true),
1849
1914
  base.provideAs(DateComponent, forms.NG_VALIDATORS, true),
@@ -2331,7 +2396,7 @@
2331
2396
  DatetimeComponent.decorators = [
2332
2397
  { type: core.Component, args: [{
2333
2398
  selector: '[wmDateTime]',
2334
- template: " <div dropdown\n [isOpen]=\"isTimeOpen\"\n autoClose=\"false\"\n [container]=\"'body'\"\n (onShown)=\"onTimepickerOpen()\"\n style=\"display: inherit;\">\n <input class=\"form-control app-textbox display-input\"\n [attr.aria-label]=\"hint\"\n focus-target\n [name]=\"name\"\n [tabindex]=\"tabindex\"\n type=\"text\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDateChange($event)\"\n [autofocus]=\"autofocus\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event)\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-date\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\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 <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n aria-label=\"Select time\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleTimePicker(!isTimeOpen, $event)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-time\"></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 focus-target\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isDateOpen\"\n placement=\"bottom right\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n #datepicker=bsDatepicker\n bsDatepicker\n [isDisabled]=\"disabled || readonly || isCurrentDate\"\n [bsValue]=\"bsDateValue\"\n (bsValueChange)=\"onModelUpdate($event, 'date')\">\n </div>\n <div *dropdownMenu\n class=\"dropdown-menu\"\n aria-label=\"timepicker dropdown\"\n aria-controls=\"time\"\n (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"disabled || readonly || isCurrentDate\"\n [(ngModel)]=\"bsTimeValue\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\"\n (ngModelChange)=\"onModelUpdate($event, 'time')\"></timepicker>\n </div>\n </div>\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDateValue\"\n (change)=\"onModelUpdate($event, 'date')\">\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",
2399
+ template: " <div dropdown\n [isOpen]=\"isTimeOpen\"\n autoClose=\"false\"\n [container]=\"'body'\"\n (onShown)=\"onTimepickerOpen()\"\n style=\"display: inherit;\">\n <input class=\"form-control app-textbox display-input\"\n [attr.aria-label]=\"hint\"\n focus-target\n [name]=\"name\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n type=\"text\"\n [value]=\"displayValue\"\n (click)=\"toggleDpDropdown($event, true)\"\n (focus)=\"onDateTimeInputFocus(); invokeOnFocus($event);\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"onDateChange($event)\"\n [autofocus]=\"autofocus\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n [required]=\"required\"\n [readOnly]=\"isReadOnly\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n (keydown)=\"this._triggeredByUser = true; onDisplayKeydown($event)\">\n\n <span class=\"input-group-btn\">\n <button type=\"button\"\n class=\"btn btn-default btn-date\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\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 <button type=\"button\"\n class=\"btn btn-default btn-time\"\n [tabindex]=\"loadNativeDateInput ? '-1' : tabindex\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [disabled]=\"disabled || readonly || isCurrentDate\"\n aria-label=\"Select time\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n (click)=\"toggleTimePicker(!isTimeOpen, $event)\">\n <i aria-hidden=\"true\"\n class=\"app-icon wm-sl-l sl-time\"></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 focus-target\n [tabindex]=\"-1\"\n [attr.aria-hidden]=\"!!loadNativeDateInput\"\n [container]=\"containerTarget || 'body'\"\n [bsConfig]=\"_dateOptions\"\n [isOpen]=\"isDateOpen\"\n placement=\"bottom right\"\n (onShown)=\"onDatePickerOpen()\"\n (onHidden)=\"hideDatepickerDropdown()\"\n [daysDisabled]=\"excludedDaysToDisable\"\n [datesDisabled]=\"excludedDatesToDisable\"\n #datepicker=bsDatepicker\n bsDatepicker\n [isDisabled]=\"disabled || readonly || isCurrentDate\"\n [bsValue]=\"bsDateValue\"\n (bsValueChange)=\"onModelUpdate($event, 'date')\">\n </div>\n <div *dropdownMenu\n class=\"dropdown-menu\"\n aria-label=\"timepicker dropdown\"\n aria-controls=\"time\"\n (click)=\"preventTpClose($event)\">\n <timepicker class=\"model-holder\"\n [showMeridian]=\"ismeridian\"\n [readonlyInput]=\"disabled || readonly || isCurrentDate\"\n [(ngModel)]=\"bsTimeValue\"\n [min]=\"minTime\"\n [max]=\"maxTime\"\n [hourStep]=\"hourstep\"\n [minuteStep]=\"minutestep\"\n [secondsStep]=\"secondsstep\"\n [mousewheel]=\"true\"\n [arrowkeys]=\"true\"\n (isValid)=\"isValid($event)\"\n [showSeconds]=\"showseconds\"\n (ngModelChange)=\"onModelUpdate($event, 'time')\"></timepicker>\n </div>\n </div>\n<ng-template [ngIf]=\"loadNativeDateInput\">\n <wm-datetimepicker\n dateTimePicker\n [config]=\"_dateOptions\"\n [placement]=\"modal\"\n [excludedDaysToDisable]=\"excludedDaysToDisable\"\n [excludedDatesToDisable]=\"excludedDatesToDisable\"\n [displayFormat]=\"dateInputFormat\"\n [value]=\"bsDateValue\"\n (change)=\"onModelUpdate($event, 'date')\">\n </wm-datetimepicker>\n <div class=\"mobile-input mobile-datepicker-container\"\n [tabindex]=\"tabindex || 0\"\n (focus)=\"onDateTimeInputFocus(true); invokeOnFocus($event)\"\n (blur)=\"onDateTimeInputBlur(); invokeOnTouched($event)\"\n (click)=\"!(disabled || readonly || isCurrentDate) && showDatePickerModal()\">\n </div>\n</ng-template>\n",
2335
2400
  providers: [
2336
2401
  base.provideAs(DatetimeComponent, forms.NG_VALUE_ACCESSOR, true),
2337
2402
  base.provideAs(DatetimeComponent, forms.NG_VALIDATORS, true),