@acorex/components 4.2.0 → 4.2.1

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