@acorex/components 6.5.27 → 6.5.29

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 (631) hide show
  1. package/acorex-components.d.ts +5 -0
  2. package/esm2020/acorex-components.mjs +5 -0
  3. package/esm2020/lib/accordion/accordion.component.mjs +44 -0
  4. package/esm2020/lib/accordion/accordion.module.mjs +20 -0
  5. package/esm2020/lib/base/base-page.class.mjs +94 -0
  6. package/esm2020/lib/base/components.class.mjs +17 -0
  7. package/esm2020/lib/base/element.class.mjs +294 -0
  8. package/esm2020/lib/base/events.class.mjs +11 -0
  9. package/esm2020/lib/button/button.component.mjs +71 -0
  10. package/esm2020/lib/button/button.module.mjs +21 -0
  11. package/esm2020/lib/calendar/calendar-box/calendar-box.component.mjs +413 -0
  12. package/esm2020/lib/calendar/calendar-box/calendar-box.module.mjs +22 -0
  13. package/esm2020/lib/calendar/scheduler/scheduler-views.property.mjs +54 -0
  14. package/esm2020/lib/calendar/scheduler/scheduler.class.mjs +18 -0
  15. package/esm2020/lib/calendar/scheduler/scheduler.component.mjs +213 -0
  16. package/esm2020/lib/calendar/scheduler/scheduler.module.mjs +68 -0
  17. package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.mjs +132 -0
  18. package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.mjs +37 -0
  19. package/esm2020/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.mjs +47 -0
  20. package/esm2020/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.mjs +95 -0
  21. package/esm2020/lib/calendar/scheduler/views/month/scheduler-month-view.component.mjs +204 -0
  22. package/esm2020/lib/calendar/scheduler/views/scheduler-view.component.mjs +99 -0
  23. package/esm2020/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.mjs +77 -0
  24. package/esm2020/lib/checkbox/checkbox.component.mjs +98 -0
  25. package/esm2020/lib/checkbox/checkbox.module.mjs +20 -0
  26. package/esm2020/lib/color-picker/color-box/color-box.component.mjs +422 -0
  27. package/esm2020/lib/color-picker/color-picker.component.mjs +82 -0
  28. package/esm2020/lib/color-picker/color-picker.module.mjs +24 -0
  29. package/esm2020/lib/context-menu/context-menu.component.mjs +65 -0
  30. package/esm2020/lib/context-menu/context-menu.directive.mjs +135 -0
  31. package/esm2020/lib/context-menu/context-menu.module.mjs +20 -0
  32. package/esm2020/lib/data-filter/columns/filter-column-date.component.mjs +138 -0
  33. package/esm2020/lib/data-filter/columns/filter-column-number.component.mjs +117 -0
  34. package/esm2020/lib/data-filter/columns/filter-column-selection.component.mjs +74 -0
  35. package/esm2020/lib/data-filter/columns/filter-column-string.component.mjs +117 -0
  36. package/esm2020/lib/data-filter/filter-panel/filter-panel.component.mjs +258 -0
  37. package/esm2020/lib/data-filter/filter.class.mjs +44 -0
  38. package/esm2020/lib/data-filter/filter.module.mjs +90 -0
  39. package/esm2020/lib/data-filter/toolbar/filter-toolbar.component.mjs +166 -0
  40. package/esm2020/lib/data-list/core/data-list.component.mjs +40 -0
  41. package/esm2020/lib/data-list/list/list.component.mjs +124 -0
  42. package/esm2020/lib/data-list/list/list.module.mjs +22 -0
  43. package/esm2020/lib/data-list/list/toolbar-list-view.component.mjs +85 -0
  44. package/esm2020/lib/data-source/datasource.component.mjs +47 -0
  45. package/esm2020/lib/data-source/datasource.module.mjs +18 -0
  46. package/esm2020/lib/data-source/read-param.mjs +5 -0
  47. package/esm2020/lib/date-picker/date-picker.component.mjs +702 -0
  48. package/esm2020/lib/date-picker/date-picker.module.mjs +25 -0
  49. package/esm2020/lib/dialog/dialog.component.mjs +24 -0
  50. package/esm2020/lib/dialog/dialog.module.mjs +21 -0
  51. package/esm2020/lib/dialog/dialog.service.mjs +150 -0
  52. package/esm2020/lib/drawer/content.component.mjs +18 -0
  53. package/esm2020/lib/drawer/drawer-container.component.mjs +36 -0
  54. package/esm2020/lib/drawer/drawer.component.mjs +142 -0
  55. package/esm2020/lib/drawer/drawer.module.mjs +23 -0
  56. package/esm2020/lib/dropdown/dropdown.component.mjs +176 -0
  57. package/esm2020/lib/dropdown/dropdown.module.mjs +26 -0
  58. package/esm2020/lib/fieldset/fieldset.component.mjs +59 -0
  59. package/esm2020/lib/fieldset/fieldset.module.mjs +19 -0
  60. package/esm2020/lib/form-group/form-group.component.mjs +34 -0
  61. package/esm2020/lib/form-group/form-group.module.mjs +21 -0
  62. package/esm2020/lib/label/label.component.mjs +19 -0
  63. package/esm2020/lib/label/label.module.mjs +21 -0
  64. package/esm2020/lib/loading/loading-indicator.component.mjs +17 -0
  65. package/esm2020/lib/loading/loading-panel.component.mjs +44 -0
  66. package/esm2020/lib/loading/loading.module.mjs +21 -0
  67. package/esm2020/lib/loading/loading.service.mjs +45 -0
  68. package/esm2020/lib/menu/menu-item.component.mjs +47 -0
  69. package/esm2020/lib/menu/menu.component.mjs +86 -0
  70. package/esm2020/lib/menu/menu.module.mjs +22 -0
  71. package/esm2020/lib/menu/menu2.component.mjs +96 -0
  72. package/esm2020/lib/number-box/number-box.component.mjs +622 -0
  73. package/esm2020/lib/number-box/number-box.module.mjs +21 -0
  74. package/esm2020/lib/page/content.component.mjs +32 -0
  75. package/esm2020/lib/page/footer.component.mjs +19 -0
  76. package/esm2020/lib/page/page.component.mjs +53 -0
  77. package/esm2020/lib/page/page.module.mjs +22 -0
  78. package/esm2020/lib/panel-box/panel-box.component.mjs +88 -0
  79. package/esm2020/lib/panel-box/panel-box.module.mjs +19 -0
  80. package/esm2020/lib/password-box/password-box.component.mjs +31 -0
  81. package/esm2020/lib/password-box/password-box.module.mjs +23 -0
  82. package/esm2020/lib/popover/custom-cdk-overlay.service.mjs +48 -0
  83. package/esm2020/lib/popover/overlay.service.mjs +90 -0
  84. package/esm2020/lib/popover/popover.component.mjs +127 -0
  85. package/esm2020/lib/popover/popover.module.mjs +19 -0
  86. package/esm2020/lib/popup/popup.component.mjs +147 -0
  87. package/esm2020/lib/popup/popup.module.mjs +25 -0
  88. package/esm2020/lib/popup/popup.service.mjs +93 -0
  89. package/esm2020/lib/progress-bar/progress-bar.component.mjs +19 -0
  90. package/esm2020/lib/progress-bar/progress-bar.module.mjs +19 -0
  91. package/esm2020/lib/property-editor/editors/check-editor/check-editor.mjs +61 -0
  92. package/esm2020/lib/property-editor/editors/check-editor/check.module.mjs +22 -0
  93. package/esm2020/lib/property-editor/editors/color-editor/color.editor.mjs +38 -0
  94. package/esm2020/lib/property-editor/editors/color-editor/color.module.mjs +24 -0
  95. package/esm2020/lib/property-editor/editors/column-editor/column.editor.mjs +115 -0
  96. package/esm2020/lib/property-editor/editors/column-editor/column.module.mjs +32 -0
  97. package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.mjs +211 -0
  98. package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.module.mjs +78 -0
  99. package/esm2020/lib/property-editor/editors/date-editor/date.editor.mjs +51 -0
  100. package/esm2020/lib/property-editor/editors/date-editor/date.module.mjs +24 -0
  101. package/esm2020/lib/property-editor/editors/number-editor/number.editor.mjs +63 -0
  102. package/esm2020/lib/property-editor/editors/number-editor/number.module.mjs +24 -0
  103. package/esm2020/lib/property-editor/editors/range-editor/range.editor.mjs +140 -0
  104. package/esm2020/lib/property-editor/editors/range-editor/range.module.mjs +61 -0
  105. package/esm2020/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.mjs +72 -0
  106. package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.editor.mjs +71 -0
  107. package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.module.mjs +25 -0
  108. package/esm2020/lib/property-editor/editors/selection-editor/selection-editor.mjs +69 -0
  109. package/esm2020/lib/property-editor/editors/selection-editor/selection.module.mjs +22 -0
  110. package/esm2020/lib/property-editor/editors/switch-editor/number.editor.mjs +29 -0
  111. package/esm2020/lib/property-editor/editors/switch-editor/number.module.mjs +25 -0
  112. package/esm2020/lib/property-editor/editors/text-editor/text.editor.mjs +32 -0
  113. package/esm2020/lib/property-editor/editors/text-editor/text.module.mjs +24 -0
  114. package/esm2020/lib/property-editor/editors/textarea-editor/textarea.editor.mjs +32 -0
  115. package/esm2020/lib/property-editor/editors/textarea-editor/textarea.module.mjs +24 -0
  116. package/esm2020/lib/property-editor/editors/time-editor/time.editor.mjs +43 -0
  117. package/esm2020/lib/property-editor/editors/time-editor/time.module.mjs +24 -0
  118. package/esm2020/lib/property-editor/property-editor-renderer.directive.mjs +154 -0
  119. package/esm2020/lib/property-editor/property-editor.class.mjs +101 -0
  120. package/esm2020/lib/property-editor/property-editor.module.mjs +196 -0
  121. package/esm2020/lib/query-builder/query-builder-group.component.mjs +124 -0
  122. package/esm2020/lib/query-builder/query-builder-popup/query-builder-popup.component.mjs +171 -0
  123. package/esm2020/lib/query-builder/query-builder-rule.component.mjs +395 -0
  124. package/esm2020/lib/query-builder/query-builder.class.mjs +20 -0
  125. package/esm2020/lib/query-builder/query-builder.component.mjs +82 -0
  126. package/esm2020/lib/query-builder/query-builder.module.mjs +62 -0
  127. package/esm2020/lib/query-builder/query-builder.service.mjs +197 -0
  128. package/esm2020/lib/search-bar/search-bar.component.mjs +283 -0
  129. package/esm2020/lib/search-bar/search-bar.module.mjs +63 -0
  130. package/esm2020/lib/searchbox/searchbox.component.mjs +79 -0
  131. package/esm2020/lib/searchbox/searchbox.module.mjs +24 -0
  132. package/esm2020/lib/selectbox/selectbox.component.mjs +961 -0
  133. package/esm2020/lib/selectbox/selectbox.module.mjs +44 -0
  134. package/esm2020/lib/selectbox/selectbox2.component.mjs +574 -0
  135. package/esm2020/lib/selection-list/selection-list.component.mjs +108 -0
  136. package/esm2020/lib/selection-list/selection-list.module.mjs +21 -0
  137. package/esm2020/lib/switch/switch.component.mjs +51 -0
  138. package/esm2020/lib/switch/switch.module.mjs +20 -0
  139. package/esm2020/lib/tab-page/tab-page-Renderer.component.mjs +71 -0
  140. package/esm2020/lib/tab-page/tab-page-host.component.mjs +116 -0
  141. package/esm2020/lib/tab-page/tab-page.module.mjs +21 -0
  142. package/esm2020/lib/tab-page/tab-page.service.mjs +156 -0
  143. package/esm2020/lib/tab-strip/tab-strip.component.mjs +36 -0
  144. package/esm2020/lib/tab-strip/tab-strip.module.mjs +19 -0
  145. package/esm2020/lib/tab-view/dynamic-tabs.directive.mjs +24 -0
  146. package/esm2020/lib/tab-view/tab-view.component.mjs +105 -0
  147. package/esm2020/lib/tab-view/tab-view.module.mjs +21 -0
  148. package/esm2020/lib/tab-view/tab.component.mjs +30 -0
  149. package/esm2020/lib/textarea/textarea.component.mjs +26 -0
  150. package/esm2020/lib/textarea/textarea.module.mjs +21 -0
  151. package/esm2020/lib/textbox/textbox.component.mjs +39 -0
  152. package/esm2020/lib/textbox/textbox.module.mjs +24 -0
  153. package/esm2020/lib/time-picker/time-picker.component.mjs +943 -0
  154. package/esm2020/lib/time-picker/time-picker.module.mjs +22 -0
  155. package/esm2020/lib/toast/toast-message/toast-message.component.mjs +74 -0
  156. package/esm2020/lib/toast/toast-wrapper/toast-wrapper.component.mjs +13 -0
  157. package/esm2020/lib/toast/toast.module.mjs +21 -0
  158. package/esm2020/lib/toast/toast.service.mjs +44 -0
  159. package/esm2020/lib/toolbar/group-button/toolbar-group-button.component.mjs +78 -0
  160. package/esm2020/lib/toolbar/menu/toolbar-menu.component.mjs +57 -0
  161. package/esm2020/lib/toolbar/search/toolbar-search.component.mjs +54 -0
  162. package/esm2020/lib/toolbar/title/toolbar-title.component.mjs +47 -0
  163. package/esm2020/lib/toolbar/toolbar-item.mjs +6 -0
  164. package/esm2020/lib/toolbar/toolbar.component.mjs +13 -0
  165. package/esm2020/lib/toolbar/toolbar.module.mjs +40 -0
  166. package/esm2020/lib/tooltip/tooltip.directive.mjs +100 -0
  167. package/esm2020/lib/tooltip/tooltip.module.mjs +19 -0
  168. package/esm2020/lib/tree-side-menu/tree-side-menu.component.mjs +646 -0
  169. package/esm2020/lib/tree-side-menu/tree-side-menu.module.mjs +35 -0
  170. package/esm2020/lib/tree-view/tree-view.component.mjs +775 -0
  171. package/esm2020/lib/tree-view/tree-view.module.mjs +22 -0
  172. package/esm2020/lib/upload-file/upload-file.component.mjs +208 -0
  173. package/esm2020/lib/upload-file/upload-file.events.mjs +2 -0
  174. package/esm2020/lib/upload-file/upload-file.module.mjs +24 -0
  175. package/esm2020/lib/validation/validation-form.component.mjs +65 -0
  176. package/esm2020/lib/validation/validation-rule.widget.mjs +111 -0
  177. package/esm2020/lib/validation/validation.class.mjs +2 -0
  178. package/esm2020/lib/validation/validation.component.mjs +89 -0
  179. package/esm2020/lib/validation/validation.module.mjs +34 -0
  180. package/esm2020/public-api.mjs +158 -0
  181. package/fesm2015/acorex-components.mjs +15988 -0
  182. package/fesm2015/acorex-components.mjs.map +1 -0
  183. package/fesm2020/acorex-components.mjs +15923 -0
  184. package/fesm2020/acorex-components.mjs.map +1 -0
  185. package/lib/accordion/accordion.component.d.ts +13 -0
  186. package/lib/accordion/accordion.module.d.ts +9 -0
  187. package/lib/base/base-page.class.d.ts +46 -0
  188. package/lib/base/components.class.d.ts +10 -0
  189. package/lib/base/element.class.d.ts +106 -0
  190. package/lib/base/events.class.d.ts +18 -0
  191. package/lib/button/button.component.d.ts +21 -0
  192. package/lib/button/button.module.d.ts +8 -0
  193. package/lib/calendar/calendar-box/calendar-box.component.d.ts +81 -0
  194. package/lib/calendar/calendar-box/calendar-box.module.d.ts +11 -0
  195. package/lib/calendar/scheduler/scheduler-views.property.d.ts +19 -0
  196. package/{src/lib/calendar/scheduler/scheduler.class.ts → lib/calendar/scheduler/scheduler.class.d.ts} +6 -20
  197. package/lib/calendar/scheduler/scheduler.component.d.ts +39 -0
  198. package/lib/calendar/scheduler/scheduler.module.d.ts +21 -0
  199. package/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.d.ts +25 -0
  200. package/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.d.ts +14 -0
  201. package/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.d.ts +16 -0
  202. package/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.d.ts +26 -0
  203. package/lib/calendar/scheduler/views/month/scheduler-month-view.component.d.ts +37 -0
  204. package/lib/calendar/scheduler/views/scheduler-view.component.d.ts +28 -0
  205. package/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.d.ts +24 -0
  206. package/lib/checkbox/checkbox.component.d.ts +30 -0
  207. package/lib/checkbox/checkbox.module.d.ts +9 -0
  208. package/lib/color-picker/color-box/color-box.component.d.ts +25 -0
  209. package/lib/color-picker/color-picker.component.d.ts +30 -0
  210. package/lib/color-picker/color-picker.module.d.ts +13 -0
  211. package/lib/context-menu/context-menu.component.d.ts +22 -0
  212. package/lib/context-menu/context-menu.directive.d.ts +38 -0
  213. package/lib/context-menu/context-menu.module.d.ts +9 -0
  214. package/lib/data-filter/columns/filter-column-date.component.d.ts +22 -0
  215. package/lib/data-filter/columns/filter-column-number.component.d.ts +15 -0
  216. package/lib/data-filter/columns/filter-column-selection.component.d.ts +18 -0
  217. package/lib/data-filter/columns/filter-column-string.component.d.ts +15 -0
  218. package/lib/data-filter/filter-panel/filter-panel.component.d.ts +45 -0
  219. package/lib/data-filter/filter.class.d.ts +40 -0
  220. package/lib/data-filter/filter.module.d.ts +24 -0
  221. package/lib/data-filter/toolbar/filter-toolbar.component.d.ts +25 -0
  222. package/lib/data-list/core/data-list.component.d.ts +15 -0
  223. package/lib/data-list/list/list.component.d.ts +40 -0
  224. package/lib/data-list/list/list.module.d.ts +11 -0
  225. package/lib/data-list/list/toolbar-list-view.component.d.ts +17 -0
  226. package/lib/data-source/datasource.component.d.ts +16 -0
  227. package/lib/data-source/datasource.module.d.ts +7 -0
  228. package/{src/lib/data-source/read-param.ts → lib/data-source/read-param.d.ts} +3 -13
  229. package/lib/date-picker/date-picker.component.d.ts +81 -0
  230. package/lib/date-picker/date-picker.module.d.ts +14 -0
  231. package/lib/dialog/dialog.component.d.ts +14 -0
  232. package/lib/dialog/dialog.module.d.ts +10 -0
  233. package/lib/dialog/dialog.service.d.ts +36 -0
  234. package/lib/drawer/content.component.d.ts +7 -0
  235. package/lib/drawer/drawer-container.component.d.ts +10 -0
  236. package/lib/drawer/drawer.component.d.ts +34 -0
  237. package/lib/drawer/drawer.module.d.ts +10 -0
  238. package/lib/dropdown/dropdown.component.d.ts +38 -0
  239. package/lib/dropdown/dropdown.module.d.ts +13 -0
  240. package/lib/fieldset/fieldset.component.d.ts +11 -0
  241. package/lib/fieldset/fieldset.module.d.ts +8 -0
  242. package/lib/form-group/form-group.component.d.ts +14 -0
  243. package/lib/form-group/form-group.module.d.ts +8 -0
  244. package/lib/label/label.component.d.ts +9 -0
  245. package/lib/label/label.module.d.ts +8 -0
  246. package/lib/loading/loading-indicator.component.d.ts +9 -0
  247. package/lib/loading/loading-panel.component.d.ts +13 -0
  248. package/lib/loading/loading.module.d.ts +10 -0
  249. package/lib/loading/loading.service.d.ts +13 -0
  250. package/lib/menu/menu-item.component.d.ts +18 -0
  251. package/lib/menu/menu.component.d.ts +35 -0
  252. package/lib/menu/menu.module.d.ts +11 -0
  253. package/lib/menu/menu2.component.d.ts +21 -0
  254. package/lib/number-box/number-box.component.d.ts +52 -0
  255. package/lib/number-box/number-box.module.d.ts +10 -0
  256. package/lib/page/content.component.d.ts +8 -0
  257. package/lib/page/footer.component.d.ts +5 -0
  258. package/lib/page/page.component.d.ts +16 -0
  259. package/lib/page/page.module.d.ts +11 -0
  260. package/lib/panel-box/panel-box.component.d.ts +19 -0
  261. package/lib/panel-box/panel-box.module.d.ts +8 -0
  262. package/lib/password-box/password-box.component.d.ts +12 -0
  263. package/lib/password-box/password-box.module.d.ts +10 -0
  264. package/lib/popover/custom-cdk-overlay.service.d.ts +19 -0
  265. package/lib/popover/overlay.service.d.ts +31 -0
  266. package/lib/popover/popover.component.d.ts +34 -0
  267. package/lib/popover/popover.module.d.ts +8 -0
  268. package/lib/popup/popup.component.d.ts +40 -0
  269. package/lib/popup/popup.module.d.ts +13 -0
  270. package/lib/popup/popup.service.d.ts +22 -0
  271. package/lib/progress-bar/progress-bar.component.d.ts +7 -0
  272. package/lib/progress-bar/progress-bar.module.d.ts +8 -0
  273. package/lib/property-editor/editors/check-editor/check-editor.d.ts +19 -0
  274. package/lib/property-editor/editors/check-editor/check.module.d.ts +11 -0
  275. package/lib/property-editor/editors/color-editor/color.editor.d.ts +13 -0
  276. package/lib/property-editor/editors/color-editor/color.module.d.ts +12 -0
  277. package/lib/property-editor/editors/column-editor/column.editor.d.ts +34 -0
  278. package/lib/property-editor/editors/column-editor/column.module.d.ts +20 -0
  279. package/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.d.ts +44 -0
  280. package/lib/property-editor/editors/conditional-color-editor/conditional-color.module.d.ts +19 -0
  281. package/lib/property-editor/editors/date-editor/date.editor.d.ts +28 -0
  282. package/lib/property-editor/editors/date-editor/date.module.d.ts +12 -0
  283. package/lib/property-editor/editors/number-editor/number.editor.d.ts +20 -0
  284. package/lib/property-editor/editors/number-editor/number.module.d.ts +12 -0
  285. package/lib/property-editor/editors/range-editor/range.editor.d.ts +29 -0
  286. package/lib/property-editor/editors/range-editor/range.module.d.ts +18 -0
  287. package/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.d.ts +29 -0
  288. package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +28 -0
  289. package/lib/property-editor/editors/selectbox-editor/selectbox.module.d.ts +14 -0
  290. package/lib/property-editor/editors/selection-editor/selection-editor.d.ts +25 -0
  291. package/lib/property-editor/editors/selection-editor/selection.module.d.ts +11 -0
  292. package/lib/property-editor/editors/switch-editor/number.editor.d.ts +11 -0
  293. package/lib/property-editor/editors/switch-editor/number.module.d.ts +13 -0
  294. package/lib/property-editor/editors/text-editor/text.editor.d.ts +18 -0
  295. package/lib/property-editor/editors/text-editor/text.module.d.ts +12 -0
  296. package/lib/property-editor/editors/textarea-editor/textarea.editor.d.ts +17 -0
  297. package/lib/property-editor/editors/textarea-editor/textarea.module.d.ts +12 -0
  298. package/lib/property-editor/editors/time-editor/time.editor.d.ts +17 -0
  299. package/lib/property-editor/editors/time-editor/time.module.d.ts +12 -0
  300. package/lib/property-editor/property-editor-renderer.directive.d.ts +30 -0
  301. package/lib/property-editor/property-editor.class.d.ts +92 -0
  302. package/lib/property-editor/property-editor.module.d.ts +21 -0
  303. package/lib/query-builder/query-builder-group.component.d.ts +33 -0
  304. package/lib/query-builder/query-builder-popup/query-builder-popup.component.d.ts +35 -0
  305. package/lib/query-builder/query-builder-rule.component.d.ts +45 -0
  306. package/lib/query-builder/query-builder.class.d.ts +45 -0
  307. package/lib/query-builder/query-builder.component.d.ts +27 -0
  308. package/lib/query-builder/query-builder.module.d.ts +23 -0
  309. package/lib/query-builder/query-builder.service.d.ts +18 -0
  310. package/lib/search-bar/search-bar.component.d.ts +61 -0
  311. package/lib/search-bar/search-bar.module.d.ts +18 -0
  312. package/lib/searchbox/searchbox.component.d.ts +22 -0
  313. package/lib/searchbox/searchbox.module.d.ts +13 -0
  314. package/lib/selectbox/selectbox.component.d.ts +118 -0
  315. package/lib/selectbox/selectbox.module.d.ts +15 -0
  316. package/lib/selectbox/selectbox2.component.d.ts +103 -0
  317. package/lib/selection-list/selection-list.component.d.ts +32 -0
  318. package/lib/selection-list/selection-list.module.d.ts +10 -0
  319. package/lib/switch/switch.component.d.ts +20 -0
  320. package/lib/switch/switch.module.d.ts +9 -0
  321. package/lib/tab-page/tab-page-Renderer.component.d.ts +16 -0
  322. package/lib/tab-page/tab-page-host.component.d.ts +25 -0
  323. package/lib/tab-page/tab-page.module.d.ts +10 -0
  324. package/lib/tab-page/tab-page.service.d.ts +30 -0
  325. package/lib/tab-strip/tab-strip.component.d.ts +28 -0
  326. package/lib/tab-strip/tab-strip.module.d.ts +8 -0
  327. package/lib/tab-view/dynamic-tabs.directive.d.ts +16 -0
  328. package/lib/tab-view/tab-view.component.d.ts +26 -0
  329. package/lib/tab-view/tab-view.module.d.ts +10 -0
  330. package/lib/tab-view/tab.component.d.ts +12 -0
  331. package/lib/textarea/textarea.component.d.ts +12 -0
  332. package/lib/textarea/textarea.module.d.ts +8 -0
  333. package/lib/textbox/textbox.component.d.ts +16 -0
  334. package/lib/textbox/textbox.module.d.ts +11 -0
  335. package/lib/time-picker/time-picker.component.d.ts +52 -0
  336. package/lib/time-picker/time-picker.module.d.ts +11 -0
  337. package/lib/toast/toast-message/toast-message.component.d.ts +18 -0
  338. package/lib/toast/toast-wrapper/toast-wrapper.component.d.ts +8 -0
  339. package/lib/toast/toast.module.d.ts +9 -0
  340. package/lib/toast/toast.service.d.ts +18 -0
  341. package/lib/toolbar/group-button/toolbar-group-button.component.d.ts +12 -0
  342. package/lib/toolbar/menu/toolbar-menu.component.d.ts +24 -0
  343. package/lib/toolbar/search/toolbar-search.component.d.ts +16 -0
  344. package/lib/toolbar/title/toolbar-title.component.d.ts +9 -0
  345. package/lib/toolbar/toolbar-item.d.ts +3 -0
  346. package/lib/toolbar/toolbar.component.d.ts +8 -0
  347. package/lib/toolbar/toolbar.module.d.ts +14 -0
  348. package/lib/tooltip/tooltip.directive.d.ts +21 -0
  349. package/lib/tooltip/tooltip.module.d.ts +8 -0
  350. package/lib/tree-side-menu/tree-side-menu.component.d.ts +111 -0
  351. package/lib/tree-side-menu/tree-side-menu.module.d.ts +11 -0
  352. package/lib/tree-view/tree-view.component.d.ts +121 -0
  353. package/lib/tree-view/tree-view.module.d.ts +11 -0
  354. package/lib/upload-file/upload-file.component.d.ts +42 -0
  355. package/lib/upload-file/upload-file.events.d.ts +10 -0
  356. package/lib/upload-file/upload-file.module.d.ts +13 -0
  357. package/lib/validation/validation-form.component.d.ts +19 -0
  358. package/lib/validation/validation-rule.widget.d.ts +23 -0
  359. package/lib/validation/validation.class.d.ts +16 -0
  360. package/lib/validation/validation.component.d.ts +25 -0
  361. package/lib/validation/validation.module.d.ts +11 -0
  362. package/package.json +32 -12
  363. package/{src/public-api.ts → public-api.d.ts} +2 -61
  364. package/karma.conf.js +0 -32
  365. package/ng-package.json +0 -10
  366. package/src/lib/accordion/accordion.component.ts +0 -43
  367. package/src/lib/accordion/accordion.module.ts +0 -11
  368. package/src/lib/accordion/api.ts +0 -2
  369. package/src/lib/base/base-page.class.ts +0 -116
  370. package/src/lib/base/components.class.ts +0 -9
  371. package/src/lib/base/element.class.ts +0 -344
  372. package/src/lib/base/events.class.ts +0 -32
  373. package/src/lib/button/button.component.html +0 -17
  374. package/src/lib/button/button.component.ts +0 -72
  375. package/src/lib/button/button.module.ts +0 -14
  376. package/src/lib/calendar/calendar-box/calendar-box.component.html +0 -68
  377. package/src/lib/calendar/calendar-box/calendar-box.component.ts +0 -461
  378. package/src/lib/calendar/calendar-box/calendar-box.module.ts +0 -16
  379. package/src/lib/calendar/scheduler/scheduler-views.property.ts +0 -38
  380. package/src/lib/calendar/scheduler/scheduler.component.html +0 -9
  381. package/src/lib/calendar/scheduler/scheduler.component.scss +0 -181
  382. package/src/lib/calendar/scheduler/scheduler.component.ts +0 -249
  383. package/src/lib/calendar/scheduler/scheduler.module.ts +0 -45
  384. package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.ts +0 -133
  385. package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.ts +0 -33
  386. package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.html +0 -43
  387. package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.scss +0 -66
  388. package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.ts +0 -50
  389. package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.html +0 -45
  390. package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.scss +0 -19
  391. package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.ts +0 -103
  392. package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.html +0 -39
  393. package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.scss +0 -55
  394. package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.ts +0 -233
  395. package/src/lib/calendar/scheduler/views/scheduler-view.component.ts +0 -124
  396. package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.html +0 -50
  397. package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.scss +0 -4
  398. package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.ts +0 -92
  399. package/src/lib/checkbox/checkbox.component.html +0 -22
  400. package/src/lib/checkbox/checkbox.component.ts +0 -107
  401. package/src/lib/checkbox/checkbox.module.ts +0 -11
  402. package/src/lib/color-picker/color-box/color-box.component.html +0 -37
  403. package/src/lib/color-picker/color-box/color-box.component.scss +0 -60
  404. package/src/lib/color-picker/color-box/color-box.component.ts +0 -438
  405. package/src/lib/color-picker/color-picker.component.html +0 -31
  406. package/src/lib/color-picker/color-picker.component.ts +0 -87
  407. package/src/lib/color-picker/color-picker.module.ts +0 -16
  408. package/src/lib/context-menu/context-menu.component.html +0 -42
  409. package/src/lib/context-menu/context-menu.component.ts +0 -78
  410. package/src/lib/context-menu/context-menu.directive.ts +0 -159
  411. package/src/lib/context-menu/context-menu.module.ts +0 -15
  412. package/src/lib/data-filter/columns/filter-column-date.component.ts +0 -123
  413. package/src/lib/data-filter/columns/filter-column-number.component.ts +0 -100
  414. package/src/lib/data-filter/columns/filter-column-selection.component.ts +0 -69
  415. package/src/lib/data-filter/columns/filter-column-string.component.ts +0 -100
  416. package/src/lib/data-filter/filter-panel/filter-panel.component.html +0 -120
  417. package/src/lib/data-filter/filter-panel/filter-panel.component.scss +0 -143
  418. package/src/lib/data-filter/filter-panel/filter-panel.component.ts +0 -266
  419. package/src/lib/data-filter/filter.class.ts +0 -73
  420. package/src/lib/data-filter/filter.module.ts +0 -52
  421. package/src/lib/data-filter/toolbar/filter-toolbar.component.html +0 -5
  422. package/src/lib/data-filter/toolbar/filter-toolbar.component.scss +0 -17
  423. package/src/lib/data-filter/toolbar/filter-toolbar.component.ts +0 -179
  424. package/src/lib/data-list/core/data-list.component.ts +0 -62
  425. package/src/lib/data-list/list/list.component.html +0 -32
  426. package/src/lib/data-list/list/list.component.scss +0 -64
  427. package/src/lib/data-list/list/list.component.ts +0 -149
  428. package/src/lib/data-list/list/list.module.ts +0 -14
  429. package/src/lib/data-list/list/toolbar-list-view.component.ts +0 -63
  430. package/src/lib/data-source/datasource.component.ts +0 -50
  431. package/src/lib/data-source/datasource.module.ts +0 -11
  432. package/src/lib/date-picker/date-picker.component.html +0 -30
  433. package/src/lib/date-picker/date-picker.component.scss +0 -5
  434. package/src/lib/date-picker/date-picker.component.ts +0 -720
  435. package/src/lib/date-picker/date-picker.module.ts +0 -17
  436. package/src/lib/dialog/dialog.component.html +0 -5
  437. package/src/lib/dialog/dialog.component.scss +0 -32
  438. package/src/lib/dialog/dialog.component.ts +0 -32
  439. package/src/lib/dialog/dialog.module.ts +0 -13
  440. package/src/lib/dialog/dialog.service.ts +0 -178
  441. package/src/lib/drawer/content.component.ts +0 -18
  442. package/src/lib/drawer/drawer-container.component.ts +0 -37
  443. package/src/lib/drawer/drawer.component.ts +0 -151
  444. package/src/lib/drawer/drawer.module.ts +0 -16
  445. package/src/lib/dropdown/dropdown.component.html +0 -26
  446. package/src/lib/dropdown/dropdown.component.scss +0 -8
  447. package/src/lib/dropdown/dropdown.component.ts +0 -197
  448. package/src/lib/dropdown/dropdown.module.ts +0 -19
  449. package/src/lib/fieldset/fieldset.component.html +0 -6
  450. package/src/lib/fieldset/fieldset.component.ts +0 -49
  451. package/src/lib/fieldset/fieldset.module.ts +0 -11
  452. package/src/lib/form-group/form-group.component.html +0 -15
  453. package/src/lib/form-group/form-group.component.ts +0 -39
  454. package/src/lib/form-group/form-group.module.ts +0 -14
  455. package/src/lib/label/label.component.html +0 -5
  456. package/src/lib/label/label.component.ts +0 -18
  457. package/src/lib/label/label.module.ts +0 -14
  458. package/src/lib/loading/loading-indicator.component.html +0 -27
  459. package/src/lib/loading/loading-indicator.component.ts +0 -16
  460. package/src/lib/loading/loading-panel.component.ts +0 -37
  461. package/src/lib/loading/loading.module.ts +0 -13
  462. package/src/lib/loading/loading.service.ts +0 -44
  463. package/src/lib/menu/menu-item.component.ts +0 -41
  464. package/src/lib/menu/menu.component.html +0 -74
  465. package/src/lib/menu/menu.component.ts +0 -111
  466. package/src/lib/menu/menu.module.ts +0 -13
  467. package/src/lib/menu/menu2.component.scss +0 -59
  468. package/src/lib/menu/menu2.component.ts +0 -98
  469. package/src/lib/number-box/number-box.component.html +0 -32
  470. package/src/lib/number-box/number-box.component.ts +0 -641
  471. package/src/lib/number-box/number-box.module.ts +0 -13
  472. package/src/lib/page/content.component.ts +0 -18
  473. package/src/lib/page/footer.component.ts +0 -13
  474. package/src/lib/page/page.component.ts +0 -43
  475. package/src/lib/page/page.module.ts +0 -14
  476. package/src/lib/panel-box/panel-box.component.html +0 -19
  477. package/src/lib/panel-box/panel-box.component.scss +0 -25
  478. package/src/lib/panel-box/panel-box.component.ts +0 -87
  479. package/src/lib/panel-box/panel-box.module.ts +0 -10
  480. package/src/lib/password-box/password-box.component.html +0 -22
  481. package/src/lib/password-box/password-box.component.ts +0 -30
  482. package/src/lib/password-box/password-box.module.ts +0 -16
  483. package/src/lib/popover/custom-cdk-overlay.service.ts +0 -82
  484. package/src/lib/popover/overlay.service.ts +0 -102
  485. package/src/lib/popover/popover.component.html +0 -5
  486. package/src/lib/popover/popover.component.scss +0 -9
  487. package/src/lib/popover/popover.component.ts +0 -130
  488. package/src/lib/popover/popover.module.ts +0 -11
  489. package/src/lib/popup/popup.component.html +0 -33
  490. package/src/lib/popup/popup.component.scss +0 -167
  491. package/src/lib/popup/popup.component.ts +0 -184
  492. package/src/lib/popup/popup.module.ts +0 -16
  493. package/src/lib/popup/popup.service.ts +0 -103
  494. package/src/lib/progress-bar/progress-bar.component.html +0 -5
  495. package/src/lib/progress-bar/progress-bar.component.ts +0 -10
  496. package/src/lib/progress-bar/progress-bar.module.ts +0 -11
  497. package/src/lib/property-editor/editors/check-editor/check-editor.ts +0 -44
  498. package/src/lib/property-editor/editors/check-editor/check.module.ts +0 -14
  499. package/src/lib/property-editor/editors/color-editor/color.editor.ts +0 -30
  500. package/src/lib/property-editor/editors/color-editor/color.module.ts +0 -20
  501. package/src/lib/property-editor/editors/column-editor/column.editor.html +0 -75
  502. package/src/lib/property-editor/editors/column-editor/column.editor.scss +0 -193
  503. package/src/lib/property-editor/editors/column-editor/column.editor.ts +0 -124
  504. package/src/lib/property-editor/editors/column-editor/column.module.ts +0 -28
  505. package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.html +0 -80
  506. package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.scss +0 -71
  507. package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.ts +0 -232
  508. package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.module.ts +0 -52
  509. package/src/lib/property-editor/editors/date-editor/date.editor.ts +0 -49
  510. package/src/lib/property-editor/editors/date-editor/date.module.ts +0 -20
  511. package/src/lib/property-editor/editors/number-editor/number.editor.ts +0 -46
  512. package/src/lib/property-editor/editors/number-editor/number.module.ts +0 -20
  513. package/src/lib/property-editor/editors/range-editor/range.editor.html +0 -67
  514. package/src/lib/property-editor/editors/range-editor/range.editor.scss +0 -68
  515. package/src/lib/property-editor/editors/range-editor/range.editor.ts +0 -153
  516. package/src/lib/property-editor/editors/range-editor/range.module.ts +0 -37
  517. package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.html +0 -8
  518. package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.ts +0 -70
  519. package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.html +0 -8
  520. package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.ts +0 -77
  521. package/src/lib/property-editor/editors/selectbox-editor/selectbox.module.ts +0 -18
  522. package/src/lib/property-editor/editors/selection-editor/selection-editor.ts +0 -52
  523. package/src/lib/property-editor/editors/selection-editor/selection.module.ts +0 -14
  524. package/src/lib/property-editor/editors/switch-editor/number.editor.ts +0 -26
  525. package/src/lib/property-editor/editors/switch-editor/number.module.ts +0 -21
  526. package/src/lib/property-editor/editors/text-editor/text.editor.html +0 -5
  527. package/src/lib/property-editor/editors/text-editor/text.editor.ts +0 -31
  528. package/src/lib/property-editor/editors/text-editor/text.module.ts +0 -20
  529. package/src/lib/property-editor/editors/textarea-editor/textarea.editor.html +0 -9
  530. package/src/lib/property-editor/editors/textarea-editor/textarea.editor.ts +0 -37
  531. package/src/lib/property-editor/editors/textarea-editor/textarea.module.ts +0 -20
  532. package/src/lib/property-editor/editors/time-editor/time.editor.ts +0 -38
  533. package/src/lib/property-editor/editors/time-editor/time.module.ts +0 -20
  534. package/src/lib/property-editor/property-editor-renderer.directive.ts +0 -165
  535. package/src/lib/property-editor/property-editor.class.ts +0 -178
  536. package/src/lib/property-editor/property-editor.module.ts +0 -115
  537. package/src/lib/query-builder/query-builder-group.component.html +0 -68
  538. package/src/lib/query-builder/query-builder-group.component.ts +0 -122
  539. package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.html +0 -82
  540. package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.ts +0 -178
  541. package/src/lib/query-builder/query-builder-rule.component.html +0 -135
  542. package/src/lib/query-builder/query-builder-rule.component.ts +0 -390
  543. package/src/lib/query-builder/query-builder.class.ts +0 -53
  544. package/src/lib/query-builder/query-builder.component.html +0 -3
  545. package/src/lib/query-builder/query-builder.component.scss +0 -286
  546. package/src/lib/query-builder/query-builder.component.ts +0 -220
  547. package/src/lib/query-builder/query-builder.module.ts +0 -44
  548. package/src/lib/query-builder/query-builder.service.ts +0 -188
  549. package/src/lib/search-bar/search-bar.component.html +0 -30
  550. package/src/lib/search-bar/search-bar.component.scss +0 -114
  551. package/src/lib/search-bar/search-bar.component.ts +0 -287
  552. package/src/lib/search-bar/search-bar.module.ts +0 -33
  553. package/src/lib/searchbox/searchbox.component.html +0 -25
  554. package/src/lib/searchbox/searchbox.component.ts +0 -85
  555. package/src/lib/searchbox/searchbox.module.ts +0 -17
  556. package/src/lib/selectbox/selectbox.component.html +0 -100
  557. package/src/lib/selectbox/selectbox.component.ts +0 -984
  558. package/src/lib/selectbox/selectbox.module.ts +0 -31
  559. package/src/lib/selectbox/selectbox2.component.html +0 -78
  560. package/src/lib/selectbox/selectbox2.component.ts +0 -603
  561. package/src/lib/selection-list/selection-list.component.html +0 -21
  562. package/src/lib/selection-list/selection-list.component.ts +0 -115
  563. package/src/lib/selection-list/selection-list.module.ts +0 -13
  564. package/src/lib/switch/switch.component.html +0 -4
  565. package/src/lib/switch/switch.component.scss +0 -65
  566. package/src/lib/switch/switch.component.ts +0 -57
  567. package/src/lib/switch/switch.module.ts +0 -14
  568. package/src/lib/tab-page/tab-page-Renderer.component.ts +0 -70
  569. package/src/lib/tab-page/tab-page-host.component.ts +0 -110
  570. package/src/lib/tab-page/tab-page.module.ts +0 -13
  571. package/src/lib/tab-page/tab-page.service.ts +0 -176
  572. package/src/lib/tab-strip/tab-strip.component.html +0 -6
  573. package/src/lib/tab-strip/tab-strip.component.ts +0 -47
  574. package/src/lib/tab-strip/tab-strip.module.ts +0 -11
  575. package/src/lib/tab-view/dynamic-tabs.directive.ts +0 -17
  576. package/src/lib/tab-view/tab-view.component.html +0 -33
  577. package/src/lib/tab-view/tab-view.component.scss +0 -0
  578. package/src/lib/tab-view/tab-view.component.ts +0 -129
  579. package/src/lib/tab-view/tab-view.module.ts +0 -12
  580. package/src/lib/tab-view/tab.component.html +0 -8
  581. package/src/lib/tab-view/tab.component.ts +0 -15
  582. package/src/lib/textarea/textarea.component.html +0 -13
  583. package/src/lib/textarea/textarea.component.ts +0 -24
  584. package/src/lib/textarea/textarea.module.ts +0 -14
  585. package/src/lib/textbox/textbox.component.html +0 -22
  586. package/src/lib/textbox/textbox.component.ts +0 -38
  587. package/src/lib/textbox/textbox.module.ts +0 -16
  588. package/src/lib/time-picker/time-picker.component.html +0 -21
  589. package/src/lib/time-picker/time-picker.component.ts +0 -1003
  590. package/src/lib/time-picker/time-picker.module.ts +0 -15
  591. package/src/lib/toast/toast-message/toast-message.component.html +0 -17
  592. package/src/lib/toast/toast-message/toast-message.component.scss +0 -75
  593. package/src/lib/toast/toast-message/toast-message.component.ts +0 -64
  594. package/src/lib/toast/toast-wrapper/toast-wrapper.component.scss +0 -15
  595. package/src/lib/toast/toast-wrapper/toast-wrapper.component.ts +0 -13
  596. package/src/lib/toast/toast.module.ts +0 -12
  597. package/src/lib/toast/toast.service.ts +0 -64
  598. package/src/lib/toolbar/group-button/toolbar-group-button.component.ts +0 -54
  599. package/src/lib/toolbar/menu/toolbar-menu.component.html +0 -4
  600. package/src/lib/toolbar/menu/toolbar-menu.component.ts +0 -81
  601. package/src/lib/toolbar/search/toolbar-search.component.html +0 -4
  602. package/src/lib/toolbar/search/toolbar-search.component.scss +0 -24
  603. package/src/lib/toolbar/search/toolbar-search.component.ts +0 -61
  604. package/src/lib/toolbar/title/toolbar-title.component.ts +0 -35
  605. package/src/lib/toolbar/toolbar-item.ts +0 -4
  606. package/src/lib/toolbar/toolbar.component.html +0 -4
  607. package/src/lib/toolbar/toolbar.component.scss +0 -9
  608. package/src/lib/toolbar/toolbar.component.ts +0 -16
  609. package/src/lib/toolbar/toolbar.module.ts +0 -25
  610. package/src/lib/tooltip/tooltip.directive.ts +0 -101
  611. package/src/lib/tooltip/tooltip.module.ts +0 -11
  612. package/src/lib/tree-side-menu/tree-side-menu.component.html +0 -43
  613. package/src/lib/tree-side-menu/tree-side-menu.component.ts +0 -698
  614. package/src/lib/tree-side-menu/tree-side-menu.module.ts +0 -19
  615. package/src/lib/tree-view/tree-view.component.html +0 -46
  616. package/src/lib/tree-view/tree-view.component.ts +0 -835
  617. package/src/lib/tree-view/tree-view.module.ts +0 -16
  618. package/src/lib/upload-file/upload-file.component.html +0 -16
  619. package/src/lib/upload-file/upload-file.component.ts +0 -230
  620. package/src/lib/upload-file/upload-file.events.ts +0 -11
  621. package/src/lib/upload-file/upload-file.module.ts +0 -16
  622. package/src/lib/validation/validation-form.component.ts +0 -78
  623. package/src/lib/validation/validation-rule.widget.ts +0 -112
  624. package/src/lib/validation/validation.class.ts +0 -22
  625. package/src/lib/validation/validation.component.ts +0 -92
  626. package/src/lib/validation/validation.module.ts +0 -28
  627. package/src/test.ts +0 -28
  628. package/tsconfig.lib.json +0 -25
  629. package/tsconfig.lib.prod.json +0 -6
  630. package/tsconfig.spec.json +0 -17
  631. package/tslint.json +0 -17
@@ -1,1003 +0,0 @@
1
- import {
2
- Component,
3
- OnInit,
4
- ChangeDetectorRef,
5
- ElementRef,
6
- Input,
7
- ViewChild,
8
- ChangeDetectionStrategy,
9
- EventEmitter,
10
- Output,
11
- ContentChild
12
-
13
- } from '@angular/core';
14
- import { AXBaseTextComponent, AXValidatableComponent } from '../base/element.class';
15
- import { _ } from 'ag-grid-community';
16
- import { AXValueEvent } from '../base/events.class';
17
- import { AXTranslator } from '@acorex/core';
18
-
19
- export class AXTimePickerItemChangedEvent {
20
- minute?: number;
21
- second?: number;
22
- hour?: number;
23
- time: string;
24
-
25
- }
26
- export class AXTimePickerChangedEvent extends AXValueEvent<AXTimePickerItemChangedEvent> { }
27
-
28
- @Component({
29
- selector: 'ax-time-picker',
30
- templateUrl: './time-picker.component.html',
31
- changeDetection: ChangeDetectionStrategy.OnPush,
32
- host: { style:'width: 100%' },
33
- providers: [{ provide: AXValidatableComponent, useExisting: AXTimePickerComponent }]
34
- })
35
- export class AXTimePickerComponent extends AXBaseTextComponent implements OnInit {
36
- @Output()
37
- onValueChanged: EventEmitter<AXTimePickerChangedEvent> = new EventEmitter<AXTimePickerChangedEvent>();
38
-
39
- // @ViewChild('input', { static: true })
40
- // @ContentChild('input', { static: true })
41
- // input: ElementRef<HTMLInputElement>;
42
-
43
- @Input()
44
- timeType: any;
45
-
46
- type: string = 'HHmm';
47
- @Input()
48
- showCurentTime: boolean = false;
49
-
50
- clearDisabled: boolean = true;
51
- HHmmss: any = [/[0-2]/, /[0-9]/, ':', /[0-5]/, /[0-9]/, ':', /[0-5]/, /[0-9]/];
52
- HHmm: any = [/[0-2]/, /[0-9]/, ':', /[0-5]/, /[0-9]/];
53
- HH: any = [/[0-2]/, /[0-9]/];
54
- hhmmss: any = [/[0-1]/, /[0-9]/, ':', /[0-5]/, /[0-9]/, ':', /[0-5]/, /[0-9]/];
55
- hhmm: any = [/[0-1]/, /[0-9]/, ':', /[0-5]/, /[0-9]/];
56
- hh: any = [/[0-1]/, /[0-9]/];
57
- // TODO: apply am pm from locale
58
- hhmmssam: any = [/[0-1]/, /[0-9]/, ':', /[0-5]/, /[0-9]/, ':', /[0-5]/, /[0-9]/, ' ', /[a|p|ق|ب]/, AXTranslator.get('dateTime.dayTime.m')];
59
- hhmmam: any = [/[0-1]/, /[0-9]/, ':', /[0-5]/, /[0-9]/, ' ', /[a|p|ق|ب]/, AXTranslator.get('dateTime.dayTime.m')];
60
- hham: any = [/[0-1]/, /[0-9]/, ' ', /[a|p|ق|ب]/, AXTranslator.get('dateTime.dayTime.m')];
61
- textValue: string = '';
62
-
63
- valueHam: string = '-- ' + AXTranslator.get('dateTime.dayTime.am');
64
- valueMam: string = '--:-- ' + AXTranslator.get('dateTime.dayTime.am');
65
- valueSam: string = '--:--:-- ' + AXTranslator.get('dateTime.dayTime.am');
66
-
67
-
68
- private _values: string;
69
- public get value(): string {
70
- return this._values;
71
- }
72
- public set value(v: string) {
73
- if (v === '' || v == null || v === '--:--:--' || v === '--:--' || v === '--' || v === this.valueSam || v === this.valueMam || v === this.valueHam) {
74
- this.clearDisabled = false;
75
-
76
- const old = this._values;
77
- switch (this.type) {
78
- case 'HHmmss':
79
- this.textValue = '--:--:--';
80
- break;
81
- case 'HHmm':
82
- this.textValue = '--:--';
83
- break;
84
- case 'HH':
85
- this.textValue = '--';
86
- break;
87
- case 'hhmmss':
88
- this.textValue = '--:--:--';
89
- break;
90
- case 'hhmm':
91
- this.textValue = '--:--';
92
- break;
93
- case 'hh':
94
- this.textValue = '--';
95
- break;
96
- case 'hhmmssam':
97
- this.textValue = this.valueSam;
98
- break;
99
- case 'hhmmam':
100
- this.textValue = this.valueMam;
101
- break;
102
- case 'hham':
103
- this.textValue = this.valueHam;
104
- break;
105
- }
106
-
107
- this._values = null;
108
- if (v !== old) {
109
- this.valueChange.emit(null);
110
- this.onValueChanged.emit({
111
- component: this,
112
- value: { hour: null, minute: null, second: null, time: null },
113
- oldValue: { time: old },
114
- htmlElement: this.ref.nativeElement
115
- });
116
- }
117
- } else {
118
- this.clearDisabled = true;
119
- if (this._values && v) {
120
- const old = this._values;
121
- const ind1 = v.charAt(0);
122
- const ind2 = v.charAt(1);
123
- const ind3 = v.charAt(2);
124
- const ind4 = v.charAt(3);
125
- const ind5 = v.charAt(4);
126
- const ind6 = v.charAt(5);
127
- const ind7 = v.charAt(6);
128
- const ind8 = v.charAt(7);
129
- const ind9 = v.charAt(8);
130
- const ind10 = v.charAt(9);
131
-
132
- const indOld4 = old.charAt(9);
133
- const indOld7 = old.charAt(9);
134
- const indOld10 = old.charAt(9);
135
-
136
- // handle hhmmssAm
137
- if (ind1 === '-' && ind2 !== '-' && this.timeType.mask === this.hhmmssam) {
138
- this.textValue = '0' + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10 + AXTranslator.get('dateTime.dayTime.m');
139
- setTimeout(() => {
140
- this.setCaretPosition(this.input.nativeElement, 2);
141
- this.cursorPosition = 2;
142
- }, 0);
143
- }
144
- if (ind4 === '-' && ind5 !== '-' && this.timeType.mask === this.hhmmssam) {
145
- this.textValue = ind1 + ind2 + ind3 + '0' + ind5 + ind6 + ind7 + ind8 + ind9 + ind10 + AXTranslator.get('dateTime.dayTime.m');
146
- setTimeout(() => {
147
- this.setCaretPosition(this.input.nativeElement, 5);
148
- this.cursorPosition = 5;
149
- }, 0);
150
- }
151
- if (ind7 === '-' && ind8 !== '-' && this.timeType.mask === this.hhmmssam) {
152
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + '0' + ind8 + ind9 + ind10 + AXTranslator.get('dateTime.dayTime.m');
153
- setTimeout(() => {
154
- this.setCaretPosition(this.input.nativeElement, 8);
155
- this.cursorPosition = 8;
156
- }, 0);
157
- }
158
- if (indOld10 === '-' && this.timeType.mask === this.hhmmssam) {
159
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + AXTranslator.get('dateTime.dayTime.am');
160
- }
161
-
162
- //
163
- if (ind1 === '-' && ind2 !== '-' && this.timeType.mask === this.hhmmam) {
164
- this.textValue = '0' + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + AXTranslator.get('dateTime.dayTime.m');
165
- setTimeout(() => {
166
- this.setCaretPosition(this.input.nativeElement, 2);
167
- this.cursorPosition = 2;
168
- }, 0);
169
- }
170
- if (ind4 === '-' && ind5 !== '-' && this.timeType.mask === this.hhmmam) {
171
- this.textValue = ind1 + ind2 + ind3 + '0' + ind5 + ind6 + ind7 + AXTranslator.get('dateTime.dayTime.m');
172
- setTimeout(() => {
173
- this.setCaretPosition(this.input.nativeElement, 5);
174
- this.cursorPosition = 5;
175
- }, 0);
176
- }
177
- if (indOld7 === '-' && this.timeType.mask === this.hhmmam) {
178
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + AXTranslator.get('dateTime.dayTime.am');
179
- }
180
-
181
- //
182
- if (ind1 === '-' && ind2 !== '-' && this.timeType.mask === this.hham) {
183
- this.textValue = '0' + ind2 + ind3 + ind4 + AXTranslator.get('dateTime.dayTime.m');
184
- setTimeout(() => {
185
- this.setCaretPosition(this.input.nativeElement, 2);
186
- this.cursorPosition = 2;
187
- }, 0);
188
- }
189
- if (indOld4 === '-' && this.timeType.mask === this.hham) {
190
- this.textValue = ind1 + ind2 + ind3 + AXTranslator.get('dateTime.dayTime.am');
191
- }
192
-
193
- //
194
- if (ind1 === '-' && ind2 !== '-' && (this.timeType.mask === this.hhmmss || this.timeType.mask === this.HHmmss)) {
195
- this.textValue = '0' + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8;
196
- setTimeout(() => {
197
- this.setCaretPosition(this.input.nativeElement, 2);
198
- this.cursorPosition = 2;
199
- }, 0);
200
- }
201
- if (ind4 === '-' && ind5 !== '-' && (this.timeType.mask === this.hhmmss || this.timeType.mask === this.HHmmss)) {
202
- this.textValue = ind1 + ind2 + ind3 + '0' + ind5 + ind6 + ind7 + ind8;
203
- setTimeout(() => {
204
- this.setCaretPosition(this.input.nativeElement, 6);
205
- this.cursorPosition = 6;
206
- }, 0);
207
- }
208
- if (ind7 === '-' && ind8 !== '-' && (this.timeType.mask === this.hhmmss || this.timeType.mask === this.HHmmss)) {
209
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + '0' + ind8;
210
- setTimeout(() => {
211
- this.setCaretPosition(this.input.nativeElement, 9);
212
- this.cursorPosition = 9;
213
- }, 0);
214
- }
215
-
216
- //
217
- if (ind1 === '-' && ind2 !== '-' && (this.timeType.mask === this.hhmm || this.timeType.mask === this.HHmm)) {
218
- this.textValue = '0' + ind2 + ind3 + ind4 + ind5;
219
- setTimeout(() => {
220
- this.setCaretPosition(this.input.nativeElement, 2);
221
- this.cursorPosition = 2;
222
- }, 0);
223
- }
224
- if (ind4 === '-' && ind5 !== '-' && (this.timeType.mask === this.hhmm || this.timeType.mask === this.HHmm)) {
225
- this.textValue = ind1 + ind2 + ind3 + '0' + ind5;
226
- setTimeout(() => {
227
- this.setCaretPosition(this.input.nativeElement, 5);
228
- this.cursorPosition = 5;
229
- }, 0);
230
- }
231
-
232
- //
233
- if (ind1 === '-' && ind2 !== '-' && (this.timeType.mask === this.hh || this.timeType.mask === this.HH)) {
234
- this.textValue = '0' + ind2;
235
- setTimeout(() => {
236
- this.setCaretPosition(this.input.nativeElement, 2);
237
- this.cursorPosition = 2;
238
- }, 0);
239
- }
240
- }
241
- if (v !== this._values) {
242
- const old = this._values;
243
- this.textValue = v;
244
- this._values = (v && v.indexOf('-') === -1) ? v : null;
245
- if (v.indexOf('-') === -1) {
246
- this.valueChange.emit(v);
247
- this.onValueChanged.emit({
248
- component: this,
249
- value: {
250
- time: v,
251
- hour: Number(v[0] + v[1]),
252
- minute: v[3] && v[3] !== AXTranslator.get('dateTime.dayTime.a') && v[3] !== AXTranslator.get('dateTime.dayTime.p') ? Number(v[3] + v[4]) : null,
253
- second: v[6] && v[6] !== AXTranslator.get('dateTime.dayTime.a') && v[6] !== AXTranslator.get('dateTime.dayTime.p') ? Number(v[6] + v[7]) : null
254
- },
255
- oldValue: { time: old },
256
- htmlElement: this.ref.nativeElement
257
- });
258
- this.cdr.detectChanges();
259
- this.clearValidationStyle(this.input.nativeElement);
260
- }
261
- }
262
- }
263
- }
264
-
265
- cursorPosition: number = 0;
266
-
267
- constructor(protected cdr: ChangeDetectorRef, ref: ElementRef) {
268
- super(cdr, ref);
269
-
270
- this.timeType = 'HHmm';
271
- }
272
- clearValue() {
273
- this.clear();
274
- this.handleInputFocus();
275
- }
276
-
277
- ngOnInit(): void {
278
- switch (this.timeType) {
279
- case 'HHmmss':
280
- this.type = 'HHmmss';
281
- this.timeType = {
282
- guide: true,
283
- showMask: true,
284
- mask: this.HHmmss,
285
- keepCharPositions: true,
286
- placeholderChar: '-'
287
- };
288
- this.textValue = this.value ? this.value : '--:--:--';
289
- break;
290
- case 'HHmm':
291
- this.type = 'HHmm';
292
- this.timeType = {
293
- guide: true,
294
- showMask: true,
295
- mask: this.HHmm,
296
- keepCharPositions: true,
297
- placeholderChar: '-'
298
- };
299
- this.textValue = this.value ? this.value : '--:--';
300
- break;
301
- case 'HH':
302
- this.type = 'HH';
303
- this.timeType = {
304
- guide: true,
305
- showMask: true,
306
- mask: this.HH,
307
- keepCharPositions: true,
308
- placeholderChar: '-'
309
- };
310
- this.textValue = this.value ? this.value : '--';
311
- break;
312
- case 'hhmmss':
313
- this.type = 'hhmmss';
314
- this.timeType = {
315
- guide: true,
316
- showMask: true,
317
- mask: this.hhmmss,
318
- keepCharPositions: true,
319
- placeholderChar: '-'
320
- };
321
- this.textValue = this.value ? this.value : '--:--:--';
322
- break;
323
- case 'hhmm':
324
- this.type = 'hhmm';
325
- this.timeType = {
326
- guide: true,
327
- showMask: true,
328
- mask: this.hhmm,
329
- keepCharPositions: true,
330
- placeholderChar: '-'
331
- };
332
- this.textValue = this.value ? this.value : '--:--';
333
- break;
334
- case 'hh':
335
- this.type = 'hh';
336
-
337
- this.timeType = {
338
- guide: true,
339
- showMask: true,
340
- mask: this.hh,
341
- keepCharPositions: true,
342
- placeholderChar: '-'
343
- };
344
- this.textValue = this.value ? this.value : '--';
345
- break;
346
- case 'hhmmssam':
347
- this.type = 'hhmmssam';
348
-
349
- this.timeType = {
350
- guide: true,
351
- showMask: true,
352
- mask: this.hhmmssam,
353
- keepCharPositions: true,
354
- placeholderChar: '-'
355
- };
356
- this.textValue = this.value ? this.value : this.valueSam;
357
- break;
358
- case 'hhmmam':
359
- this.type = 'hhmmam';
360
-
361
- this.timeType = {
362
- guide: true,
363
- showMask: true,
364
- mask: this.hhmmam,
365
- keepCharPositions: true,
366
- placeholderChar: '-'
367
- };
368
- this.textValue = this.value ? this.value : this.valueMam;
369
-
370
- break;
371
- case 'hham':
372
- this.type = 'hham';
373
-
374
- this.timeType = {
375
- guide: true,
376
- showMask: true,
377
- mask: this.hham,
378
- keepCharPositions: true,
379
- placeholderChar: '-'
380
- };
381
- this.textValue = this.value ? this.value : this.valueHam;
382
- break;
383
- default:
384
- this.type = 'HHmm';
385
- this.timeType = {
386
- guide: true,
387
- showMask: true,
388
- mask: this.HHmm,
389
- keepCharPositions: true,
390
- placeholderChar: '-'
391
- };
392
- this.textValue = this.value ? this.value : '--:--';
393
- break;
394
-
395
- }
396
- if (this.showCurentTime === true) {
397
- const hour = new Date().getHours() > 10 ? new Date().getHours() : '0' + new Date().getHours();
398
- let amHour: any;
399
-
400
- if (new Date().getHours() > 10) {
401
- if (new Date().getHours() > 12) {
402
- if (new Date().getHours() - 12 < 10) {
403
- amHour = '0' + (new Date().getHours() - 12);
404
- } else {
405
- amHour = new Date().getHours();
406
- }
407
- } else {
408
- amHour = new Date().getHours();
409
- }
410
- } else {
411
- amHour = '0' + new Date().getHours();
412
- }
413
-
414
- const min = new Date().getMinutes() > 9 ? new Date().getMinutes() : '0' + new Date().getMinutes();
415
- const sec = new Date().getSeconds() > 9 ? new Date().getSeconds() : '0' + new Date().getSeconds();
416
- if (this.type === 'hh' || this.type === 'hhmm' || this.type === 'hhmmss' || this.type === 'hhmmssam') {
417
- if (hour >= 12) {
418
- this.value = amHour + ':' + min + ':' + sec + ' ' + AXTranslator.get('dateTime.dayTime.pm');
419
- } else {
420
- this.value = amHour + ':' + min + ':' + sec + ' ' + AXTranslator.get('dateTime.dayTime.am');
421
- }
422
- } else if (this.type === 'hham') {
423
- if (hour >= 12) {
424
- this.value = amHour + ' ' + AXTranslator.get('dateTime.dayTime.pm');
425
- } else {
426
- this.value = amHour + ' ' + AXTranslator.get('dateTime.dayTime.am');
427
- }
428
- } else if (this.type === 'hhmmam') {
429
- if (hour >= 12) {
430
- this.value = amHour + ':' + min + ' ' + AXTranslator.get('dateTime.dayTime.pm');
431
- } else {
432
- this.value = amHour + ':' + min + ' ' + AXTranslator.get('dateTime.dayTime.am');
433
- }
434
- } else {
435
- this.value = hour + ':' + min + ':' + sec;
436
- }
437
- }
438
- }
439
-
440
- onStartfocus() {
441
- this.input.nativeElement.style.caretColor = 'transparent';
442
- setTimeout(() => {
443
- this.setCaretPosition(this.input.nativeElement, 0);
444
- this.cursorPosition = 0;
445
- this.input.nativeElement.style.caretColor = 'auto';
446
- }, 0);
447
- }
448
-
449
- handleInputFocus() {
450
- this.onStartfocus();
451
- this.input.nativeElement.focus();
452
- }
453
- handleInputBlur(e) {
454
- if (this.textValue.indexOf('-') !== -1) {
455
- switch (this.type) {
456
- case 'HHmmss':
457
- this.textValue = '--:--:--';
458
- break;
459
- case 'HHmm':
460
- this.textValue = '--:--';
461
- break;
462
- case 'HH':
463
- this.textValue = '--';
464
- break;
465
- case 'hhmmss':
466
- this.textValue = '--:--:--';
467
- break;
468
- case 'hhmm':
469
- this.textValue = '--:--';
470
- break;
471
- case 'hh':
472
- this.textValue = '--';
473
- break;
474
- case 'hhmmssam':
475
- this.textValue = this.valueSam;
476
- break;
477
- case 'hhmmam':
478
- this.textValue = this.valueMam;
479
- break;
480
- case 'hham':
481
- this.textValue = this.valueHam;
482
- break;
483
- }
484
- }
485
- }
486
-
487
- handleKeyPress(event: any) {
488
- const inputChar = String.fromCharCode(event.charCode);
489
- const firstChar = this.textValue.charAt(0);
490
- const secondChar = this.textValue.charAt(1);
491
-
492
- setTimeout(() => {
493
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
494
- this.cursorPosition = this.input.nativeElement.selectionStart;
495
- // this.cursorPosition += 1 ;
496
- }
497
- }, 0);
498
-
499
- if (firstChar === '2') {
500
- if (secondChar === '' || this.textValue.charAt(1) >= '4' || this.cursorPosition < 3) {
501
- if (inputChar >= '4') {
502
- event.preventDefault();
503
- }
504
- }
505
- }
506
- if (
507
- this.timeType.mask === this.hhmmss ||
508
- this.timeType.mask === this.hhmm ||
509
- this.timeType.mask === this.hh ||
510
- this.timeType.mask === this.hhmmssam ||
511
- this.timeType.mask === this.hhmmam ||
512
- this.timeType.mask === this.hham
513
- ) {
514
- if (firstChar === '1') {
515
- if (secondChar === '' || this.textValue.charAt(1) >= '3' || this.cursorPosition < 3) {
516
- if (inputChar >= '3') {
517
- event.preventDefault();
518
- }
519
- }
520
- }
521
- }
522
- if (inputChar === '-') {
523
- event.preventDefault();
524
- }
525
- }
526
-
527
- handleKeyUp(event: KeyboardEvent) {
528
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
529
- this.input.nativeElement.style.caretColor = 'auto';
530
- event.preventDefault();
531
- event.stopPropagation();
532
- }
533
- // up & down button
534
- if (event.key === 'ArrowUp') {
535
- this.setCaret();
536
- }
537
- if (event.key === 'ArrowDown') {
538
- this.setCaret();
539
- }
540
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
541
- event.preventDefault();
542
- return false;
543
- }
544
-
545
- // left & right Button
546
- if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
547
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
548
- this.cursorPosition = this.input.nativeElement.selectionStart;
549
- }
550
- }
551
-
552
- // home button
553
- if (event.key === 'Home') {
554
- this.cursorPosition = 0;
555
- }
556
-
557
- // end button
558
- if (event.key === 'End') {
559
- if (this.timeType.mask === this.hhmmssam || this.timeType.mask === this.hhmmam || this.timeType.mask === this.hham) {
560
- if (this.timeType.mask === this.hhmmssam) {
561
- this.cursorPosition = 9;
562
- setTimeout(() => {
563
- this.setCaretPosition(this.input.nativeElement, this.cursorPosition);
564
- this.input.nativeElement.style.caretColor = 'auto';
565
- }, 0);
566
- }
567
- if (this.timeType.mask === this.hhmmam) {
568
- this.cursorPosition = 6;
569
- setTimeout(() => {
570
- this.setCaretPosition(this.input.nativeElement, this.cursorPosition);
571
- this.input.nativeElement.style.caretColor = 'auto';
572
- }, 0);
573
- }
574
- if (this.timeType.mask === this.hham) {
575
- this.cursorPosition = 3;
576
- setTimeout(() => {
577
- this.setCaretPosition(this.input.nativeElement, this.cursorPosition);
578
- this.input.nativeElement.style.caretColor = 'auto';
579
- }, 0);
580
- }
581
- } else {
582
- this.cursorPosition = this.textValue.length;
583
- }
584
- }
585
-
586
- // backspace Control
587
- if (event.key === 'Backspace') {
588
- const ind1 = this.textValue.charAt(0);
589
- const ind2 = this.textValue.charAt(1);
590
- const ind3 = this.textValue.charAt(2);
591
- const ind4 = this.textValue.charAt(3);
592
- const ind5 = this.textValue.charAt(4);
593
- const ind6 = this.textValue.charAt(5);
594
- const ind7 = this.textValue.charAt(6);
595
- const ind8 = this.textValue.charAt(7);
596
- const ind9 = this.textValue.charAt(8);
597
- const ind10 = this.textValue.charAt(9);
598
- if (this.timeType.mask === this.hhmmssam) {
599
- if (ind10 === '-') {
600
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + AXTranslator.get('dateTime.dayTime.am');
601
- setTimeout(() => {
602
- this.setCaretPosition(this.input.nativeElement, 0);
603
- this.cursorPosition = 0;
604
- }, 0);
605
- }
606
- }
607
- if (this.timeType.mask === this.hhmmam) {
608
- if (ind7 === '-') {
609
- this.textValue = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + AXTranslator.get('dateTime.dayTime.am');
610
- setTimeout(() => {
611
- this.setCaretPosition(this.input.nativeElement, 0);
612
- this.cursorPosition = 0;
613
- }, 0);
614
- }
615
- }
616
- if (this.timeType.mask === this.hham) {
617
- if (ind4 === '-') {
618
- this.textValue = ind1 + ind2 + ind3 + AXTranslator.get('dateTime.dayTime.am');
619
- setTimeout(() => {
620
- this.setCaretPosition(this.input.nativeElement, 0);
621
- this.cursorPosition = 0;
622
- }, 0);
623
- }
624
- }
625
-
626
- if (this.textValue.length <= 0) {
627
- this.cursorPosition = 0;
628
- } else {
629
- this.cursorPosition -= 1;
630
- }
631
- }
632
- }
633
-
634
- handleKeyDown(event: KeyboardEvent) {
635
- if (event.key === 'End') {
636
- if (this.timeType.mask === this.hhmmssam || this.timeType.mask === this.hhmmam || this.timeType.mask === this.hham) {
637
- this.input.nativeElement.style.caretColor = 'transparent';
638
- } else {
639
- this.input.nativeElement.style.caretColor = 'auto';
640
- }
641
- }
642
-
643
- let newValue = this.textValue;
644
-
645
- const ind1 = newValue.charAt(0);
646
- const ind2 = newValue.charAt(1);
647
- const ind3 = this.textValue.charAt(2);
648
- const ind4 = this.textValue.charAt(3);
649
- const ind5 = this.textValue.charAt(4);
650
- const ind6 = this.textValue.charAt(5);
651
- const ind7 = this.textValue.charAt(6);
652
- const ind8 = this.textValue.charAt(7);
653
- const ind9 = this.textValue.charAt(8);
654
- const ind10 = this.textValue.charAt(9);
655
- const ind11 = this.textValue.charAt(10);
656
-
657
- // up key
658
- if (event.key === 'ArrowUp') {
659
- // hour
660
- if (this.cursorPosition <= 2) {
661
- const hourind = ind1 + ind2;
662
- const newHour = +hourind + 1;
663
- newValue = newHour.toString();
664
- if (
665
- this.timeType.mask === this.hhmmss ||
666
- this.timeType.mask === this.hhmm ||
667
- this.timeType.mask === this.hh ||
668
- this.timeType.mask === this.hhmmssam ||
669
- this.timeType.mask === this.hhmmam ||
670
- this.timeType.mask === this.hham
671
- ) {
672
- if (hourind === '--') {
673
- newValue = '0';
674
- }
675
- if (ind1 !== '-' && hourind === ind1 + '-') {
676
- newValue = '0';
677
- }
678
- if (ind2 !== '-' && hourind === '-' + ind2) {
679
- newValue = '0';
680
- }
681
- if (+newValue > 12) {
682
- newValue = '01';
683
- } else if (+newValue < 10) {
684
- newValue = '0' + newValue;
685
- }
686
- } else {
687
- if (hourind === '--') {
688
- newValue = '0';
689
- }
690
- if (ind1 !== '-' && hourind === ind1 + '-') {
691
- newValue = '0';
692
- }
693
- if (ind2 !== '-' && hourind === '-' + ind2) {
694
- newValue = '0';
695
- }
696
- if (+newValue > 23) {
697
- newValue = '00';
698
- } else if (+newValue < 10) {
699
- newValue = '0' + newValue;
700
- }
701
- }
702
- const afterHourind = ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10 + ind11;
703
- const hour = newValue.toString() + afterHourind;
704
- this.textValue = hour;
705
- }
706
- // minute
707
- if (this.cursorPosition >= 3 && this.cursorPosition <= 5) {
708
- const hourind = ind4 + ind5;
709
- const newHour = +hourind + 1;
710
-
711
- newValue = newHour.toString();
712
- if (hourind === '--') {
713
- newValue = '0';
714
- }
715
- if (ind4 !== '-' && hourind === ind4 + '-') {
716
- newValue = '0';
717
- }
718
- if (ind5 !== '-' && hourind === '-' + ind5) {
719
- newValue = '0';
720
- }
721
- if (+newValue > 59) {
722
- newValue = '00';
723
- } else if (+newValue < 10) {
724
- newValue = '0' + newValue;
725
- }
726
- const beforeHourind = ind1 + ind2 + ind3;
727
- const afterHourind = ind6 + ind7 + ind8 + ind9 + ind10 + ind11;
728
- const minute = beforeHourind + newValue.toString() + afterHourind;
729
- this.textValue = minute;
730
- }
731
-
732
- // second
733
- if (this.cursorPosition >= 6 && this.cursorPosition <= 8) {
734
- const secondind = ind7 + ind8;
735
- const newSecond = +secondind + 1;
736
-
737
- newValue = newSecond.toString();
738
- if (secondind === '--') {
739
- newValue = '0';
740
- }
741
- if (ind7 !== '-' && secondind === ind7 + '-') {
742
- newValue = '0';
743
- }
744
- if (ind8 !== '-' && secondind === '-' + ind8) {
745
- newValue = '0';
746
- }
747
- if (+newValue > 59) {
748
- newValue = '00';
749
- } else if (+newValue < 10) {
750
- newValue = '0' + newValue;
751
- }
752
- const beforeHourind = ind1 + ind2 + ind3 + ind4 + ind5 + ind6;
753
- const afterHourind = ind9 + ind10 + ind11;
754
- const second = beforeHourind + newValue.toString() + afterHourind;
755
- this.textValue = second;
756
- }
757
-
758
- // type am/PM
759
- if (this.timeType.mask === this.hhmmssam) {
760
- if (this.cursorPosition > 8) {
761
- let typeind = ind10.toString();
762
-
763
- const beforeHourind = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9;
764
- const afterHourind = ind11;
765
-
766
- if (ind10 === AXTranslator.get('dateTime.dayTime.p')) {
767
- typeind = AXTranslator.get('dateTime.dayTime.a');
768
- } else if (ind10 === AXTranslator.get('dateTime.dayTime.a')) {
769
- typeind = AXTranslator.get('dateTime.dayTime.p');
770
- }
771
- this.textValue = beforeHourind + typeind + afterHourind;
772
- }
773
- }
774
- if (this.timeType.mask === this.hhmmam) {
775
- if (this.cursorPosition >= 6) {
776
- let typeind = ind7.toString();
777
-
778
- const beforeHourind = ind1 + ind2 + ind3 + ind4 + ind5 + ind6;
779
- const afterHourind = ind8;
780
-
781
- if (ind7 === AXTranslator.get('dateTime.dayTime.p')) {
782
- typeind = AXTranslator.get('dateTime.dayTime.a');
783
- } else if (ind7 === AXTranslator.get('dateTime.dayTime.a')) {
784
- typeind = AXTranslator.get('dateTime.dayTime.p');
785
- }
786
- this.textValue = beforeHourind + typeind + afterHourind;
787
- }
788
- }
789
- if (this.timeType.mask === this.hham) {
790
- if (this.cursorPosition >= 3) {
791
- let typeind2 = ind4.toString();
792
-
793
- const beforeHourind = ind1 + ind2 + ind3;
794
- const afterHourind = ind5;
795
-
796
- if (ind4 === AXTranslator.get('dateTime.dayTime.p')) {
797
- typeind2 = AXTranslator.get('dateTime.dayTime.a');
798
- } else if (ind4 === AXTranslator.get('dateTime.dayTime.a')) {
799
- typeind2 = AXTranslator.get('dateTime.dayTime.p');
800
- }
801
- this.textValue = beforeHourind + typeind2 + afterHourind;
802
- }
803
- }
804
- }
805
-
806
- // key down
807
- if (event.key === 'ArrowDown') {
808
- // hour
809
- if (this.cursorPosition <= 2) {
810
- const hourind = ind1 + ind2;
811
- const newHour = +hourind - 1;
812
-
813
- newValue = newHour.toString();
814
- if (
815
- this.timeType.mask === this.hhmmss ||
816
- this.timeType.mask === this.hhmm ||
817
- this.timeType.mask === this.hh ||
818
- this.timeType.mask === this.hhmmssam ||
819
- this.timeType.mask === this.hhmmam ||
820
- this.timeType.mask === this.hham
821
- ) {
822
- if (hourind === '--') {
823
- newValue = '0';
824
- }
825
- if (ind1 !== '-' && hourind === ind1 + '-') {
826
- newValue = '0';
827
- }
828
- if (ind2 !== '-' && hourind === '-' + ind2) {
829
- newValue = '0';
830
- }
831
- if (+newValue < 1) {
832
- newValue = '12';
833
- } else if (+newValue < 10) {
834
- newValue = '0' + newValue;
835
- }
836
- } else {
837
- if (hourind === '--') {
838
- newValue = '0';
839
- }
840
- if (ind1 !== '-' && hourind === ind1 + '-') {
841
- newValue = '0';
842
- }
843
- if (ind2 !== '-' && hourind === '-' + ind2) {
844
- newValue = '0';
845
- }
846
- if (+newValue < 0) {
847
- newValue = '23';
848
- } else if (+newValue < 10) {
849
- newValue = '0' + newValue;
850
- }
851
- }
852
- const afterHourIndex = ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10 + ind11;
853
- const hour = newValue.toString() + afterHourIndex;
854
- this.textValue = hour;
855
- }
856
- // minute
857
- if (this.cursorPosition >= 3 && this.cursorPosition <= 5) {
858
- const minuteind = ind4 + ind5;
859
- const newMinute = +minuteind - 1;
860
-
861
- newValue = newMinute.toString();
862
- if (minuteind === '--') {
863
- newValue = '0';
864
- }
865
- if (ind4 !== '-' && minuteind === ind4 + '-') {
866
- newValue = '0';
867
- }
868
- if (ind5 !== '-' && minuteind === '-' + ind5) {
869
- newValue = '0';
870
- }
871
- if (minuteind === '--') {
872
- newValue = '0';
873
- }
874
- if (+newValue < 0) {
875
- newValue = '59';
876
- } else if (+newValue < 10) {
877
- newValue = '0' + newValue;
878
- }
879
- const beforeMinuteIndex = ind1 + ind2 + ind3;
880
- const afterMinuteIndex = ind6 + ind7 + ind8 + ind9 + ind10 + ind11;
881
- const minute = beforeMinuteIndex + newValue.toString() + afterMinuteIndex;
882
- this.textValue = minute;
883
- }
884
-
885
- // second
886
- if (this.cursorPosition >= 6 && this.cursorPosition <= 8) {
887
- const secondIndex = ind7 + ind8;
888
- const newSecond = +secondIndex - 1;
889
-
890
- newValue = newSecond.toString();
891
- if (secondIndex === '--') {
892
- newValue = '0';
893
- }
894
- if (ind7 !== '-' && secondIndex === ind7 + '-') {
895
- newValue = '0';
896
- }
897
- if (ind8 !== '-' && secondIndex === '-' + ind8) {
898
- newValue = '0';
899
- }
900
- if (secondIndex === '--') {
901
- newValue = '0';
902
- }
903
- if (+newValue < 0) {
904
- newValue = '59';
905
- } else if (+newValue < 10) {
906
- newValue = '0' + newValue;
907
- }
908
- const beforesecondIndex = ind1 + ind2 + ind3 + ind4 + ind5 + ind6;
909
- const aftersecondIndex = ind9 + ind10 + ind11;
910
- const second = beforesecondIndex + newValue.toString() + aftersecondIndex;
911
- this.textValue = second;
912
- }
913
-
914
- // type
915
- if (this.timeType.mask === this.hhmmssam) {
916
- if (this.cursorPosition > 8) {
917
- let typeind = ind10.toString();
918
-
919
- const beforeHourind = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9;
920
- const afterHourind = ind11;
921
-
922
- if (ind10 === AXTranslator.get('dateTime.dayTime.p')) {
923
- typeind = AXTranslator.get('dateTime.dayTime.a');
924
- } else if (ind10 === AXTranslator.get('dateTime.dayTime.a')) {
925
- typeind = AXTranslator.get('dateTime.dayTime.p');
926
- }
927
- this.textValue = beforeHourind + typeind + afterHourind;
928
- }
929
- }
930
- if (this.timeType.mask === this.hhmmam) {
931
- if (this.cursorPosition >= 6) {
932
- let typeind = ind7.toString();
933
-
934
- const beforeHourind = ind1 + ind2 + ind3 + ind4 + ind5 + ind6;
935
- const afterHourind = ind8;
936
-
937
- if (ind7 === AXTranslator.get('dateTime.dayTime.p')) {
938
- typeind = AXTranslator.get('dateTime.dayTime.a');
939
- } else if (ind7 === AXTranslator.get('dateTime.dayTime.a')) {
940
- typeind = AXTranslator.get('dateTime.dayTime.p');
941
- }
942
- this.textValue = beforeHourind + typeind + afterHourind;
943
- }
944
- }
945
- if (this.timeType.mask === this.hham) {
946
- if (this.cursorPosition >= 3) {
947
- let typeind2 = ind4.toString();
948
-
949
- const beforeHourind = ind1 + ind2 + ind3;
950
- const afterHourind = ind5;
951
- //TO DO this is wrong check index
952
- if (ind4 === AXTranslator.get('dateTime.dayTime.p')) {
953
- typeind2 = AXTranslator.get('dateTime.dayTime.a');
954
- } else if (ind4 === AXTranslator.get('dateTime.dayTime.a')) {
955
- typeind2 = AXTranslator.get('dateTime.dayTime.p');
956
- }
957
- this.textValue = beforeHourind + typeind2 + afterHourind;
958
- }
959
- }
960
- }
961
-
962
- if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
963
- this.input.nativeElement.style.caretColor = 'transparent';
964
- event.preventDefault();
965
- event.stopPropagation();
966
- return false;
967
- }
968
- if (event.key === 'Delete') {
969
- event.preventDefault();
970
- }
971
- }
972
-
973
- handleClick(event: KeyboardEvent) {
974
- if (this.input.nativeElement.selectionStart || this.input.nativeElement.selectionStart === 0) {
975
- this.cursorPosition = this.input.nativeElement.selectionStart;
976
- }
977
- }
978
-
979
- doGetCaretPosition(ctrl) {
980
- let CaretPos = 0;
981
- if (ctrl.selectionStart || ctrl.selectionStart === 0) {
982
- CaretPos = ctrl.selectionStart;
983
- return CaretPos;
984
- }
985
- }
986
-
987
- setCaretPosition(ctrl, pos) {
988
- if (ctrl.setSelectionRange) {
989
- ctrl.focus();
990
- ctrl.setSelectionRange(pos, pos);
991
- } else if (ctrl.createTextRange) {
992
- const range = ctrl.createTextRange();
993
- range.collapse(true);
994
- range.moveEnd('character', pos);
995
- range.moveStart('character', pos);
996
- range.select();
997
- }
998
- }
999
-
1000
- setCaret() {
1001
- this.setCaretPosition(this.input.nativeElement, this.cursorPosition);
1002
- }
1003
- }