@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,720 +0,0 @@
1
- import {
2
- Input,
3
- ViewChild,
4
- Output,
5
- EventEmitter,
6
- ViewEncapsulation,
7
- Component,
8
- ElementRef,
9
- ContentChild,
10
- AfterViewInit,
11
- ChangeDetectorRef
12
- } from '@angular/core';
13
- import { AXDropdownComponent } from '../dropdown/dropdown.component';
14
- import { AXTextBoxComponent } from '../textbox/textbox.component';
15
- import { AXValidatableComponent, AXBaseSizableComponent, AXElementSize, AXBaseValueComponent } from '../base/element.class';
16
- import { AXCalendarType, AXDateTime, AXConfig } from '@acorex/core';
17
- import { AXValueEvent } from '../base/events.class';
18
- import { AXValidation } from '../validation/validation.component';
19
-
20
- export class AXDataPickerChangeEvent extends AXValueEvent<Date> {
21
- isUserChange: boolean;
22
- }
23
-
24
- @Component({
25
- selector: 'ax-date-picker',
26
- templateUrl: './date-picker.component.html',
27
- styleUrls: ['./date-picker.component.scss'],
28
- encapsulation: ViewEncapsulation.None,
29
- providers: [{ provide: AXValidatableComponent, useExisting: AXDatePickerComponent }],
30
- host: { style: 'width: 100%' }
31
- })
32
- export class AXDatePickerComponent extends AXValidatableComponent implements AXBaseSizableComponent {
33
- @ViewChild('dropdown', { static: true })
34
- dropdown: AXDropdownComponent;
35
-
36
- @ViewChild('input', { static: true })
37
- input: AXTextBoxComponent;
38
-
39
- @Input()
40
- dayStyle = [];
41
-
42
- @Input()
43
- dayMinMaxResoan = '';
44
-
45
- // mmddyyyy: any = [/[0-1]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
46
- yyyyMMdd: any = [/[1-2]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[0-3]/, /[0-9]/];
47
- ddMMyyyy: any = [/[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/, '-', /[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
48
- yyyyddMM: any = [/[1-9]/, /[0-9]/, /[0-9]/, /[0-9]/, '-', /[0-3]/, /[0-9]/, '-', /[0-1]/, /[0-9]/];
49
- // yyyyMMdd1: any = [/[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/, '/', /[0-1]/, /[0-9]/, '/', /[0-3]/, /[0-9]/];
50
- // ddMMyyyy2: any = [/[0-3]/, /[0-9]/, '/', /[0-1]/, /[0-9]/, '/', /[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/];
51
- // yyyyddMM3: any = [/[0-9]/, /[0-9]/, /[0-9]/, /[0-9]/, '/', /[0-3]/, /[0-9]/, '/', /[0-1]/, /[0-9]/];
52
-
53
- @ContentChild(AXValidation, { static: true })
54
- private _contentValidation: AXValidation;
55
- private _validation: AXValidation;
56
-
57
- @Input()
58
- public get validation(): AXValidation {
59
- return this._validation ? this._validation : this._contentValidation;
60
- }
61
-
62
- public set validation(v: AXValidation) {
63
- this._validation = v;
64
- }
65
-
66
- @Input() placeholder: string = '';
67
-
68
- @Input()
69
- min: Date;
70
-
71
- @Input()
72
- max: Date;
73
-
74
- @Input()
75
- readonly: boolean;
76
-
77
- @Input()
78
- disabled: boolean;
79
-
80
- @Input()
81
- allowClear: boolean = false;
82
-
83
- @Input()
84
- textAlign: 'right' | 'left' | null = null;
85
-
86
- @Input()
87
- showToday: boolean = false;
88
-
89
- @Input()
90
- selectableHoliday: boolean = true;
91
-
92
- @Input()
93
- dateType: any;
94
-
95
- @Input()
96
- showTodayButton: boolean = true;
97
-
98
- @Input()
99
- openByClick: boolean = false;
100
-
101
- cursorPosition: number = 0;
102
-
103
- model: any = null;
104
- text: string;
105
-
106
- _renderPicker: boolean = false;
107
-
108
- constructor(private ref: ElementRef, private cdr: ChangeDetectorRef) {
109
- super();
110
- // set defaults
111
- if (AXConfig.get('dateTime.type')) {
112
- this.type = AXConfig.get('dateTime.type');
113
- }
114
- }
115
-
116
- @Input()
117
- size: AXElementSize = 'md';
118
-
119
- @Output()
120
- typeChange: EventEmitter<AXCalendarType> = new EventEmitter<AXCalendarType>();
121
-
122
- private _type: AXCalendarType = 'gregorian';
123
-
124
- @Input()
125
- public get type(): AXCalendarType {
126
- return this._type;
127
- }
128
-
129
- public set type(v: AXCalendarType) {
130
- if (v != this._type) {
131
- this._type = v;
132
- if (this._value) {
133
- this.value = this._value.date;
134
- }
135
- this._setDateType();
136
- this.typeChange.emit(v);
137
- }
138
- }
139
-
140
- selectToday() {
141
- this.value = new Date();
142
- }
143
-
144
- focus(): void {
145
- // this.dropdown.focus();
146
- this.input.focus();
147
- }
148
-
149
- convertMaskToDate(text: string) {
150
- if (this.type == 'jalali') {
151
- var d = new AXDateTime().convertStringToGregorian(text, 'YYYY/M/D');
152
- } else {
153
- var d = new Date(new AXDateTime(text, 'gregorian').toISOString());
154
- }
155
-
156
- return d;
157
- }
158
-
159
- convertMask(date: string) {
160
- let y;
161
- let m;
162
- let d;
163
- switch (this.dateType.mask) {
164
- case this.yyyyMMdd:
165
- y = date.slice(0, 4);
166
- m = date.slice(5, 7);
167
- d = date.slice(8, 10);
168
- break;
169
- case this.ddMMyyyy:
170
- y = date.slice(6, 10);
171
- m = date.slice(3, 5);
172
- d = date.slice(0, 2);
173
- break;
174
- case this.yyyyddMM:
175
- y = date.slice(0, 4);
176
- m = date.slice(8, 10);
177
- d = date.slice(5, 7);
178
- break;
179
- }
180
-
181
- return { year: y, monnth: m, day: d };
182
- }
183
-
184
- textChange(e) {
185
- this.text = e.value;
186
- const date = this.convertMask(this.text);
187
-
188
- if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'jalali') {
189
- this.userChange = e.isUserChange;
190
-
191
- this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
192
- } else if (this.text && this.text.indexOf('_') === -1 && this.text.length == 10 && this.type == 'gregorian') {
193
- this.userChange = e.isUserChange;
194
- this.value = this.convertMaskToDate(date.year + '-' + date.monnth + '-' + date.day);
195
- }
196
- }
197
-
198
- ngOnInit(): void {
199
- this._setDateType();
200
- }
201
-
202
- ngAfterViewInit(): void {
203
- setTimeout(() => {
204
- this.text = this._value?.toString();
205
- if (this.showToday && !this.value) {
206
- this.selectToday();
207
- }
208
- this.cdr.markForCheck();
209
- });
210
- }
211
-
212
- ngAfterContentInit(): void {
213
- this.initValidation(this.ref, 'value', this.validation);
214
- }
215
-
216
- clear() {
217
- this.userChange = true;
218
- this.value = null;
219
- }
220
-
221
- userChange: boolean = false;
222
-
223
- @Output()
224
- onValueChanged: EventEmitter<AXDataPickerChangeEvent> = new EventEmitter<AXDataPickerChangeEvent>();
225
-
226
- @Output()
227
- valueChange: EventEmitter<Date> = new EventEmitter<Date>();
228
-
229
- private _value: AXDateTime;
230
- @Input()
231
- public get value(): Date {
232
- return this._value?.date;
233
- }
234
- public set value(v: Date) {
235
- this.validate();
236
- const oldValue = this._value;
237
- const old = this.value;
238
-
239
- if (v) {
240
- this._value = new AXDateTime(v, this.type);
241
- } else {
242
- this._value = null;
243
- }
244
- let unValidDate = false;
245
- if (this.max || this.min) {
246
- unValidDate = this.isInMInMaxRange(AXDateTime.convert(v));
247
- }
248
-
249
- if (!unValidDate) {
250
- if ((!v && oldValue) || (this._value && !this._value.equal(oldValue, 'day'))) {
251
- this.text = this._value?.toString();
252
- setTimeout(() => {
253
- this.valueChange.emit(v);
254
- this.onValueChanged.emit({
255
- component: this,
256
- oldValue: old,
257
- value: v,
258
- isUserChange: this.userChange
259
- });
260
- }, 100);
261
- }
262
- } else {
263
- this.text = '';
264
- }
265
- this.userChange = false;
266
- }
267
-
268
- private _setDateType() {
269
- switch (this.dateType) {
270
- case 'yyyyMMdd':
271
- this.dateType = {
272
- guide: true,
273
- showMask: true,
274
- mask: this.yyyyMMdd,
275
- keepCharPositions: true
276
- };
277
- break;
278
- case 'ddMMyyyy':
279
- this.dateType = {
280
- guide: true,
281
- showMask: true,
282
- mask: this.ddMMyyyy,
283
- keepCharPositions: true
284
- };
285
- break;
286
- case 'yyyyddMM':
287
- this.dateType = {
288
- guide: true,
289
- showMask: true,
290
- mask: this.yyyyddMM,
291
- keepCharPositions: true
292
- };
293
- break;
294
-
295
- default:
296
- if (this.type == 'gregorian') {
297
- this.dateType = {
298
- guide: true,
299
- showMask: true,
300
- mask: this.ddMMyyyy,
301
- keepCharPositions: true
302
- };
303
- } else if (this.type == 'jalali') {
304
- this.dateType = {
305
- guide: true,
306
- showMask: true,
307
- mask: this.yyyyMMdd,
308
- keepCharPositions: true
309
- };
310
- }
311
- break;
312
- }
313
- }
314
-
315
- isInMInMaxRange(d) {
316
- let r = false;
317
- if (d !== undefined) {
318
- if (this.min && !this.max) {
319
- r = d.compaireNew(new AXDateTime(this.min, this.type), 'YMD', this.type) === -1;
320
- }
321
- if (this.max && !this.min) {
322
- r = d.compaireNew(new AXDateTime(this.max, this.type), 'YMD', this.type) === 1;
323
- }
324
- if (this.min && this.max) {
325
- r =
326
- d.compaireNew(new AXDateTime(this.min, this.type), 'YMD', this.type) === -1 ||
327
- d.compaireNew(new AXDateTime(this.max, this.type), 'YMD', this.type) === 1;
328
- }
329
- }
330
- return r;
331
- }
332
-
333
- onDateChange(e) {
334
- this.userChange = true;
335
- this.dropdown.close();
336
-
337
- //this.clearValidationStyle(this.ref.nativeElement);
338
- }
339
-
340
- onClick(e) {
341
- this.userChange = true;
342
- this.dropdown.close();
343
- }
344
-
345
- onStartfocus() {
346
- if (this.text == undefined || this.text == null || this.text == '') {
347
- this.input.input.nativeElement.style.caretColor = 'transparent';
348
- setTimeout(() => {
349
- this.setCaretPosition(this.input.input.nativeElement, 0);
350
- this.cursorPosition = 0;
351
- this.input.input.nativeElement.style.caretColor = 'auto';
352
- }, 0);
353
- }
354
- }
355
-
356
- handleInputFocus() {
357
- if (this.openByClick) {
358
- this._renderPicker = true;
359
- this.dropdown.open();
360
- } else {
361
- this.onStartfocus();
362
- }
363
-
364
- // this.input.input.nativeElement.focus();
365
- }
366
- handleInputBlur() {
367
- if (this.text && this.text.indexOf('_') != -1) {
368
- this.text = '';
369
- this.value = null;
370
- }
371
- }
372
-
373
- handleButtonClick() {
374
- this._renderPicker = true;
375
- setTimeout(() => {
376
- this.dropdown.toggle();
377
- });
378
- }
379
-
380
- handleKeyPress(e: KeyboardEvent) {
381
- if (e.type == 'keydown' || e.type == 'keypress' || e.type == 'keyup') {
382
- if (e.key === 'Delete') {
383
- e.preventDefault();
384
- }
385
- if (e.key === 'Backspace') {
386
- }
387
- if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {
388
- if (this.input.input.nativeElement.selectionStart || this.input.input.nativeElement.selectionStart === 0) {
389
- this.cursorPosition = this.input.input.nativeElement.selectionStart;
390
- }
391
- }
392
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
393
- e.preventDefault();
394
- e.stopPropagation();
395
- }
396
- }
397
-
398
- const inputChar = String.fromCharCode(e.charCode);
399
- if (this.text != undefined) {
400
- const ind1 = this.text.charAt(0);
401
- const ind2 = this.text.charAt(1);
402
- const ind3 = this.text.charAt(2);
403
- const ind4 = this.text.charAt(3);
404
- const ind5 = this.text.charAt(4);
405
- const ind6 = this.text.charAt(5);
406
- const ind7 = this.text.charAt(6);
407
- const ind8 = this.text.charAt(7);
408
- const ind9 = this.text.charAt(8);
409
- const ind10 = this.text.charAt(9);
410
- switch (this.dateType.mask) {
411
- case this.yyyyMMdd:
412
- if (e.type == 'keypress') {
413
- this.handleClick();
414
- if (
415
- (ind6 == '1' && ind7 == '_' && inputChar >= '3') ||
416
- (((ind6 == '0' && ind7 == '_') || (ind9 == '0' && ind10 == '_')) && inputChar == '0')
417
- ) {
418
- e.preventDefault();
419
- } else if (ind9 == '3' && ind10 == '_') {
420
- if (ind6 + ind7 <= '06' && inputChar >= '2') {
421
- e.preventDefault();
422
- } else if (ind6 + ind7 > '06' && inputChar >= '1') {
423
- e.preventDefault();
424
- }
425
- }
426
- }
427
- if (this.text.indexOf('_') === -1 && this.text !== '') {
428
- if (e.type === 'keydown') {
429
- if (e.key === 'ArrowUp') {
430
- if (this.cursorPosition <= 4) {
431
- this.text = String(Number(ind1 + ind2 + ind3 + ind4) + 1) + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
432
- }
433
- if (this.cursorPosition >= 5 && this.cursorPosition <= 7) {
434
- if (Number(ind6 + ind7) < 12) {
435
- if (Number(ind6 + ind7) < 9) {
436
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '0' + String(Number(ind6 + ind7) + 1) + ind8 + ind9 + ind10;
437
- } else {
438
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + String(Number(ind6 + ind7) + 1) + ind8 + ind9 + ind10;
439
- }
440
- } else {
441
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '01' + ind8 + ind9 + ind10;
442
- }
443
- }
444
- if (this.cursorPosition >= 8) {
445
- if (Number(ind9 + ind10) < 31) {
446
- if (Number(ind9 + ind10) < 9) {
447
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '0' + String(Number(ind9 + ind10) + 1);
448
- } else {
449
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + String(Number(ind9 + ind10) + 1);
450
- }
451
- } else {
452
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '01';
453
- }
454
- }
455
- // this.input.input.nativeElement.style.caretColor = 'transparent';
456
- // setTimeout(() => {
457
- // this.setCaret();
458
- // e.preventDefault();
459
- // this.input.input.nativeElement.style.caretColor = 'auto';
460
- // }, 0);
461
- // e.preventDefault();
462
- } else if (e.key === 'ArrowDown') {
463
- if (this.cursorPosition <= 4) {
464
- this.text = String(Number(ind1 + ind2 + ind3 + ind4) - 1) + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
465
- } else if (this.cursorPosition > 4 && this.cursorPosition <= 7) {
466
- if (Number(ind6 + ind7) > 1) {
467
- if (Number(ind6 + ind7) < 11) {
468
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '0' + String(Number(ind6 + ind7) - 1) + ind8 + ind9 + ind10;
469
- } else {
470
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + String(Number(ind6 + ind7) - 1) + ind8 + ind9 + ind10;
471
- }
472
- } else {
473
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '12' + ind8 + ind9 + ind10;
474
- }
475
- } else if (this.cursorPosition >= 8) {
476
- if (Number(ind9 + ind10) > 1) {
477
- if (Number(ind9 + ind10) < 11) {
478
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '0' + String(Number(ind9 + ind10) - 1);
479
- } else {
480
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + String(Number(ind9 + ind10) - 1);
481
- }
482
- } else {
483
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '31';
484
- }
485
- }
486
- // this.input.input.nativeElement.style.caretColor = 'transparent';
487
-
488
- // setTimeout(() => {
489
- // this.setCaret();
490
- // this.input.input.nativeElement.style.caretColor = 'auto';
491
- // }, 0);
492
- }
493
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
494
- this.input.input.nativeElement.style.caretColor = 'transparent';
495
- e.preventDefault();
496
- e.stopPropagation();
497
- return false;
498
- }
499
- }
500
- }
501
- if (e.type === 'keyup') {
502
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
503
- this.setCaret();
504
- this.input.input.nativeElement.style.caretColor = 'auto';
505
- e.preventDefault();
506
- e.stopPropagation();
507
- }
508
- }
509
- break;
510
- case this.ddMMyyyy:
511
- if (e.type === 'keypress') {
512
- this.handleClick();
513
- if (
514
- (ind4 == '1' && ind5 == '_' && inputChar >= '3') ||
515
- (((ind1 == '0' && ind2 == '_') || (ind4 == '0' && ind5 == '_')) && inputChar == '0')
516
- ) {
517
- e.preventDefault();
518
- } else {
519
- if (ind1 == '3' && ind2 == '_' && inputChar >= '2') {
520
- e.preventDefault();
521
- }
522
- }
523
- }
524
- if (this.text.indexOf('_') === -1 && this.text !== '') {
525
- if (e.type === 'keydown') {
526
- if (e.key === 'ArrowUp') {
527
- if (this.cursorPosition >= 6) {
528
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + String(Number(ind7 + ind8 + ind9 + ind10) + 1);
529
- }
530
- if (this.cursorPosition > 2 && this.cursorPosition <= 5) {
531
- if (Number(ind4 + ind5) < 12) {
532
- if (Number(ind4 + ind5) < 9) {
533
- this.text = ind1 + ind2 + ind3 + '0' + String(Number(ind4 + ind5) + 1) + ind6 + ind7 + ind8 + ind9 + ind10;
534
- } else {
535
- this.text = ind1 + ind2 + ind3 + String(Number(ind4 + ind5) + 1) + ind6 + ind7 + ind8 + ind9 + ind10;
536
- }
537
- } else {
538
- this.text = ind1 + ind2 + ind3 + '01' + ind6 + ind7 + ind8 + ind9 + ind10;
539
- }
540
- }
541
- if (this.cursorPosition <= 2) {
542
- if (Number(ind1 + ind2) < 31) {
543
- if (Number(ind1 + ind2) < 9) {
544
- this.text = '0' + String(Number(ind1 + ind2) + 1) + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
545
- } else {
546
- this.text = String(Number(ind1 + ind2) + 1) + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
547
- }
548
- } else {
549
- this.text = '01' + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
550
- }
551
- }
552
- // this.input.input.nativeElement.style.caretColor = 'transparent';
553
- // setTimeout(() => {
554
- // this.setCaret();
555
- // this.input.input.nativeElement.style.caretColor = 'auto';
556
- // }, 0);
557
- } else if (e.key === 'ArrowDown') {
558
- if (this.cursorPosition >= 6) {
559
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + String(Number(ind7 + ind8 + ind9 + ind10) - 1);
560
- } else if (this.cursorPosition > 2 && this.cursorPosition <= 5) {
561
- if (Number(ind4 + ind5) > 1) {
562
- if (Number(ind4 + ind5) < 11) {
563
- this.text = ind1 + ind2 + ind3 + '0' + String(Number(ind4 + ind5) - 1) + ind6 + ind7 + ind8 + ind9 + ind10;
564
- } else {
565
- this.text = ind1 + ind2 + ind3 + String(Number(ind4 + ind5) - 1) + ind6 + ind7 + ind8 + ind9 + ind10;
566
- }
567
- } else {
568
- this.text = ind1 + ind2 + ind3 + '12' + ind6 + ind7 + ind8 + ind9 + ind10;
569
- }
570
- } else if (this.cursorPosition <= 2) {
571
- if (Number(ind1 + ind2) > 1) {
572
- if (Number(ind1 + ind2) < 11) {
573
- this.text = '0' + String(Number(ind1 + ind2) - 1) + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
574
- } else {
575
- this.text = String(Number(ind1 + ind2) - 1) + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
576
- }
577
- } else {
578
- this.text = '31' + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
579
- }
580
- }
581
- // this.input.input.nativeElement.style.caretColor = 'transparent';
582
- // setTimeout(() => {
583
- // this.setCaret();
584
- // this.input.input.nativeElement.style.caretColor = 'auto';
585
- // }, 0);
586
- }
587
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
588
- this.input.input.nativeElement.style.caretColor = 'transparent';
589
- e.preventDefault();
590
- e.stopPropagation();
591
- return false;
592
- }
593
- }
594
- }
595
- if (e.type === 'keyup') {
596
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
597
- this.setCaret();
598
- this.input.input.nativeElement.style.caretColor = 'auto';
599
- e.preventDefault();
600
- e.stopPropagation();
601
- }
602
- }
603
- break;
604
-
605
- case this.yyyyddMM:
606
- if (e.type === 'keypress') {
607
- if (
608
- (ind9 === '1' && ind10 == '_' && inputChar >= '3') ||
609
- (((ind6 == '0' && ind7 == '_') || (ind9 == '0' && ind10)) && inputChar == '0')
610
- ) {
611
- e.preventDefault();
612
- } else if (ind6 == '3' && ind7 == '_' && inputChar >= '2') {
613
- e.preventDefault();
614
- }
615
- setTimeout(() => {
616
- this.handleClick();
617
- }, 0);
618
- }
619
- if (this.text.indexOf('_') === -1 && this.text !== '') {
620
- if (e.type === 'keydown') {
621
- if (e.key === 'ArrowUp') {
622
- if (this.cursorPosition <= 4) {
623
- this.text = String(Number(ind1 + ind2 + ind3 + ind4) + 1) + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
624
- }
625
- if (this.cursorPosition > 4 && this.cursorPosition <= 7) {
626
- if (Number(ind6 + ind7) < 31) {
627
- if (Number(ind6 + ind7) < 9) {
628
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '0' + String(Number(ind6 + ind7) + 1) + ind8 + ind9 + ind10;
629
- } else {
630
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + String(Number(ind6 + ind7) + 1) + ind8 + ind9 + ind10;
631
- }
632
- } else {
633
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '01' + ind8 + ind9 + ind10;
634
- }
635
- }
636
- if (this.cursorPosition >= 8) {
637
- if (Number(ind9 + ind10) < 12) {
638
- if (Number(ind9 + ind10) < 9) {
639
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '0' + String(Number(ind9 + ind10) + 1);
640
- } else {
641
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + String(Number(ind9 + ind10) + 1);
642
- }
643
- } else {
644
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '01';
645
- }
646
- }
647
- // this.input.input.nativeElement.style.caretColor = 'transparent';
648
- // setTimeout(() => {
649
- // this.setCaret();
650
- // this.input.input.nativeElement.style.caretColor = 'auto';
651
- // }, 0);
652
- } else if (e.key === 'ArrowDown') {
653
- if (this.cursorPosition <= 4) {
654
- this.text = String(Number(ind1 + ind2 + ind3 + ind4) - 1) + ind5 + ind6 + ind7 + ind8 + ind9 + ind10;
655
- } else if (this.cursorPosition > 4 && this.cursorPosition <= 7) {
656
- if (Number(ind6 + ind7) > 1) {
657
- if (Number(ind6 + ind7) < 11) {
658
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '0' + String(Number(ind6 + ind7) - 1) + ind8 + ind9 + ind10;
659
- } else {
660
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + String(Number(ind6 + ind7) - 1) + ind8 + ind9 + ind10;
661
- }
662
- } else {
663
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + '31' + ind8 + ind9 + ind10;
664
- }
665
- } else if (this.cursorPosition >= 8) {
666
- if (Number(ind9 + ind10) > 1) {
667
- if (Number(ind9 + ind10) < 11) {
668
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '0' + String(Number(ind9 + ind10) - 1);
669
- } else {
670
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + String(Number(ind9 + ind10) - 1);
671
- }
672
- } else {
673
- this.text = ind1 + ind2 + ind3 + ind4 + ind5 + ind6 + ind7 + ind8 + '12';
674
- }
675
- }
676
- // this.input.input.nativeElement.style.caretColor = 'transparent';
677
- // setTimeout(() => {
678
- // this.setCaret();
679
- // this.input.input.nativeElement.style.caretColor = 'auto';
680
- // }, 0);
681
- }
682
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
683
- this.input.input.nativeElement.style.caretColor = 'transparent';
684
- e.preventDefault();
685
- e.stopPropagation();
686
- return false;
687
- }
688
- }
689
- }
690
- if (e.type === 'keyup') {
691
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
692
- this.setCaret();
693
- this.input.input.nativeElement.style.caretColor = 'auto';
694
- e.preventDefault();
695
- e.stopPropagation();
696
- }
697
- }
698
- break;
699
- default:
700
- break;
701
- }
702
- }
703
- }
704
- handleClick() {
705
- if (this.input.input.nativeElement.selectionStart || this.input.input.nativeElement.selectionStart === 0) {
706
- this.cursorPosition = this.input.input.nativeElement.selectionStart;
707
- }
708
- }
709
-
710
- setCaretPosition(ctrl, pos) {
711
- if (ctrl.setSelectionRange) {
712
- ctrl.focus();
713
- ctrl.setSelectionRange(pos, pos);
714
- }
715
- }
716
-
717
- setCaret() {
718
- this.setCaretPosition(this.input.input.nativeElement, this.cursorPosition);
719
- }
720
- }