@acorex/components 7.2.7 → 7.3.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 (473) hide show
  1. package/action-sheet/index.d.ts +1 -1
  2. package/action-sheet/lib/action-sheet.class.d.ts +31 -0
  3. package/action-sheet/lib/action-sheet.component.d.ts +12 -13
  4. package/action-sheet/lib/action-sheet.module.d.ts +2 -1
  5. package/action-sheet/lib/action-sheet.service.d.ts +4 -8
  6. package/alert/lib/alert.component.d.ts +12 -11
  7. package/button/lib/button-group.component.d.ts +6 -6
  8. package/button/lib/button-item.class.d.ts +6 -2
  9. package/button/lib/button-item.component.d.ts +6 -6
  10. package/button/lib/button.component.d.ts +5 -3
  11. package/calendar/lib/calendar.component.d.ts +2 -1
  12. package/check-box/README.md +3 -0
  13. package/check-box/index.d.ts +2 -0
  14. package/check-box/lib/check-box.component.d.ts +14 -0
  15. package/{checkbox/lib/checkbox.module.d.ts → check-box/lib/check-box.module.d.ts} +1 -1
  16. package/chips/lib/chips.component.d.ts +2 -2
  17. package/color-palette/lib/color-palette-input.component.d.ts +10 -7
  18. package/color-palette/lib/color-palette-picker.component.d.ts +10 -5
  19. package/color-palette/lib/color-palette-preview.component.d.ts +8 -4
  20. package/color-palette/lib/color-palette-swatches.component.d.ts +9 -6
  21. package/color-palette/lib/color-palette.class.d.ts +12 -6
  22. package/color-palette/lib/color-palette.component.d.ts +3 -15
  23. package/color-palette/lib/color-palette.module.d.ts +9 -8
  24. package/color-picker/lib/color-picker.component.d.ts +17 -24
  25. package/color-picker/lib/color-picker.module.d.ts +1 -1
  26. package/common/index.d.ts +3 -1
  27. package/common/lib/classes/components.class.d.ts +12 -2
  28. package/common/lib/classes/datalist.class.d.ts +11 -0
  29. package/common/lib/common.module.d.ts +3 -4
  30. package/common/lib/components/base-component.class.d.ts +13 -5
  31. package/common/lib/components/input-base-value-component.class.d.ts +27 -0
  32. package/common/lib/components/interactive-component.class.d.ts +7 -0
  33. package/common/lib/components/value-component.class.d.ts +22 -8
  34. package/common/lib/directives/auto-focus.directive.d.ts +6 -5
  35. package/common/lib/directives/delayed-value-changed.directive.d.ts +17 -0
  36. package/common/lib/services/dom.service.d.ts +6 -0
  37. package/data-pager/lib/data-pager-base.component.d.ts +18 -13
  38. package/data-pager/lib/data-pager-info.component.d.ts +3 -9
  39. package/data-pager/lib/data-pager-input-selector.component.d.ts +5 -9
  40. package/data-pager/lib/data-pager-next-buttons.components.d.ts +2 -8
  41. package/data-pager/lib/data-pager-numeric-selector.component.d.ts +2 -7
  42. package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +2 -6
  43. package/data-pager/lib/data-pager-prev-buttons.component.d.ts +2 -7
  44. package/data-pager/lib/data-pager.component.d.ts +17 -18
  45. package/data-pager/lib/data-pager.module.d.ts +6 -5
  46. package/data-table/index.d.ts +0 -1
  47. package/data-table/lib/data-column.directive.d.ts +3 -8
  48. package/data-table/lib/data-table.component.d.ts +6 -7
  49. package/data-table/lib/data-table.module.d.ts +6 -7
  50. package/date-picker/lib/datepicker.component.d.ts +7 -6
  51. package/date-picker/lib/datepicker.module.d.ts +1 -1
  52. package/decorators/index.d.ts +2 -12
  53. package/decorators/lib/clear-button.component.d.ts +13 -0
  54. package/decorators/lib/close-button.component.d.ts +5 -8
  55. package/decorators/lib/decorators.module.d.ts +6 -15
  56. package/decorators/lib/generic-content.component.d.ts +6 -0
  57. package/decorators/lib/icon.component.d.ts +2 -4
  58. package/dialog/lib/dialog.class.d.ts +11 -3
  59. package/dialog/lib/dialog.component.d.ts +15 -11
  60. package/dialog/lib/dialog.module.d.ts +4 -3
  61. package/dialog/lib/dialog.service.d.ts +4 -12
  62. package/drawer/lib/drawer-container.component.d.ts +2 -5
  63. package/drawer/lib/drawer.component.d.ts +6 -7
  64. package/esm2022/acorex-components.mjs +1 -1
  65. package/esm2022/action-sheet/index.mjs +2 -2
  66. package/esm2022/action-sheet/lib/action-sheet.class.mjs +2 -0
  67. package/esm2022/action-sheet/lib/action-sheet.component.mjs +50 -38
  68. package/esm2022/action-sheet/lib/action-sheet.module.mjs +11 -7
  69. package/esm2022/action-sheet/lib/action-sheet.service.mjs +32 -72
  70. package/esm2022/alert/lib/alert.component.mjs +19 -20
  71. package/esm2022/alert/lib/alert.module.mjs +7 -7
  72. package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
  73. package/esm2022/avatar/lib/avatar.component.mjs +3 -3
  74. package/esm2022/avatar/lib/avatar.module.mjs +4 -4
  75. package/esm2022/badge/lib/badge.component.mjs +7 -7
  76. package/esm2022/badge/lib/badge.module.mjs +4 -4
  77. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
  78. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  79. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
  80. package/esm2022/button/lib/button-group.component.mjs +3 -3
  81. package/esm2022/button/lib/button-item.class.mjs +1 -1
  82. package/esm2022/button/lib/button-item.component.mjs +3 -3
  83. package/esm2022/button/lib/button.component.mjs +34 -17
  84. package/esm2022/button/lib/button.module.mjs +4 -4
  85. package/esm2022/calendar/lib/calendar-range.component.mjs +5 -5
  86. package/esm2022/calendar/lib/calendar.class.mjs +3 -3
  87. package/esm2022/calendar/lib/calendar.component.mjs +18 -15
  88. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  89. package/esm2022/check-box/acorex-components-check-box.mjs +5 -0
  90. package/esm2022/check-box/index.mjs +3 -0
  91. package/esm2022/check-box/lib/check-box.component.mjs +76 -0
  92. package/esm2022/check-box/lib/check-box.module.mjs +21 -0
  93. package/esm2022/chips/lib/chips.component.mjs +7 -6
  94. package/esm2022/chips/lib/chips.module.mjs +4 -4
  95. package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
  96. package/esm2022/collapse/lib/collapse.component.mjs +3 -3
  97. package/esm2022/collapse/lib/collapse.module.mjs +4 -4
  98. package/esm2022/color-palette/lib/color-palette-input.component.mjs +64 -73
  99. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +63 -58
  100. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +30 -25
  101. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +32 -246
  102. package/esm2022/color-palette/lib/color-palette.class.mjs +229 -8
  103. package/esm2022/color-palette/lib/color-palette.component.mjs +32 -47
  104. package/esm2022/color-palette/lib/color-palette.module.mjs +10 -7
  105. package/esm2022/color-picker/lib/color-picker.component.mjs +12 -6
  106. package/esm2022/color-picker/lib/color-picker.module.mjs +6 -6
  107. package/esm2022/common/index.mjs +4 -2
  108. package/esm2022/common/lib/classes/components.class.mjs +26 -19
  109. package/esm2022/common/lib/classes/datalist.class.mjs +3 -0
  110. package/esm2022/common/lib/common.module.mjs +5 -10
  111. package/esm2022/common/lib/components/base-component.class.mjs +26 -13
  112. package/esm2022/common/lib/components/input-base-value-component.class.mjs +47 -0
  113. package/esm2022/common/lib/components/interactive-component.class.mjs +31 -4
  114. package/esm2022/common/lib/components/value-component.class.mjs +57 -33
  115. package/esm2022/common/lib/directives/auto-focus.directive.mjs +18 -11
  116. package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +49 -0
  117. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
  118. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
  119. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
  120. package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +6 -6
  121. package/esm2022/common/lib/services/dom.service.mjs +16 -0
  122. package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
  123. package/esm2022/common/lib/services/overlay.service.mjs +3 -3
  124. package/esm2022/context-menu/lib/context-menu.component.mjs +5 -5
  125. package/esm2022/context-menu/lib/context-menu.module.mjs +4 -4
  126. package/esm2022/data-pager/lib/data-pager-base.component.mjs +35 -21
  127. package/esm2022/data-pager/lib/data-pager-info.component.mjs +13 -26
  128. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +27 -31
  129. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +19 -33
  130. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +31 -38
  131. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +22 -31
  132. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +19 -29
  133. package/esm2022/data-pager/lib/data-pager.component.mjs +66 -38
  134. package/esm2022/data-pager/lib/data-pager.module.mjs +8 -7
  135. package/esm2022/data-table/index.mjs +1 -2
  136. package/esm2022/data-table/lib/data-column.directive.mjs +7 -22
  137. package/esm2022/data-table/lib/data-table.component.mjs +30 -30
  138. package/esm2022/data-table/lib/data-table.module.mjs +6 -7
  139. package/esm2022/date-picker/lib/datepicker.component.mjs +19 -16
  140. package/esm2022/date-picker/lib/datepicker.module.mjs +6 -6
  141. package/esm2022/decorators/index.mjs +3 -13
  142. package/esm2022/decorators/lib/clear-button.component.mjs +58 -0
  143. package/esm2022/decorators/lib/close-button.component.mjs +16 -20
  144. package/esm2022/decorators/lib/decorators.module.mjs +13 -49
  145. package/esm2022/decorators/lib/generic-content.component.mjs +17 -0
  146. package/esm2022/decorators/lib/icon.component.mjs +8 -11
  147. package/esm2022/dialog/lib/dialog.class.mjs +1 -1
  148. package/esm2022/dialog/lib/dialog.component.mjs +41 -23
  149. package/esm2022/dialog/lib/dialog.module.mjs +10 -8
  150. package/esm2022/dialog/lib/dialog.service.mjs +41 -49
  151. package/esm2022/drawer/lib/drawer-container.component.mjs +9 -13
  152. package/esm2022/drawer/lib/drawer.component.mjs +23 -27
  153. package/esm2022/drawer/lib/drawer.module.mjs +4 -4
  154. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +4 -4
  155. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -4
  156. package/esm2022/form/lib/form-field.component.mjs +9 -12
  157. package/esm2022/form/lib/form.component.mjs +38 -42
  158. package/esm2022/form/lib/form.module.mjs +4 -4
  159. package/esm2022/form/lib/validation-rule.widget.mjs +24 -15
  160. package/esm2022/form/lib/validation-summary.component.mjs +15 -14
  161. package/esm2022/image/lib/image.component.mjs +13 -17
  162. package/esm2022/image/lib/image.module.mjs +4 -4
  163. package/esm2022/index.mjs +1 -1
  164. package/esm2022/label/lib/label.component.mjs +18 -18
  165. package/esm2022/label/lib/label.module.mjs +4 -4
  166. package/esm2022/loading/index.mjs +2 -1
  167. package/esm2022/loading/lib/loading-spinner.component.mjs +4 -5
  168. package/esm2022/loading/lib/loading.component.mjs +22 -25
  169. package/esm2022/loading/lib/loading.config.mjs +17 -0
  170. package/esm2022/loading/lib/loading.directive.mjs +4 -4
  171. package/esm2022/loading/lib/loading.module.mjs +6 -17
  172. package/esm2022/loading/lib/loading.service.mjs +4 -36
  173. package/esm2022/menu/lib/menu.component.mjs +26 -19
  174. package/esm2022/menu/lib/menu.module.mjs +4 -4
  175. package/esm2022/mixin/lib/base-components.class.mjs +3 -3
  176. package/esm2022/mixin/lib/base-menu-mixin.class.mjs +3 -3
  177. package/esm2022/mixin/lib/color-look-mixing.class.mjs +1 -1
  178. package/esm2022/notification/index.mjs +2 -1
  179. package/esm2022/notification/lib/notification.class.mjs +1 -1
  180. package/esm2022/notification/lib/notification.component.mjs +51 -35
  181. package/esm2022/notification/lib/notification.config.mjs +20 -0
  182. package/esm2022/notification/lib/notification.module.mjs +11 -7
  183. package/esm2022/notification/lib/notification.service.mjs +46 -59
  184. package/esm2022/number-box/lib/number-box.component.mjs +101 -90
  185. package/esm2022/number-box/lib/number-box.module.mjs +4 -4
  186. package/esm2022/otp/lib/otp.component.mjs +38 -48
  187. package/esm2022/otp/lib/otp.module.mjs +4 -4
  188. package/esm2022/page/lib/base-page.class.mjs +6 -6
  189. package/esm2022/page/lib/page.component.mjs +3 -3
  190. package/esm2022/page/lib/page.module.mjs +4 -4
  191. package/esm2022/password-box/lib/password-box.component.mjs +37 -25
  192. package/esm2022/password-box/lib/password-box.module.mjs +4 -4
  193. package/esm2022/popover/lib/dropdown-component.class.mjs +3 -3
  194. package/esm2022/popover/lib/popover.component.mjs +3 -3
  195. package/esm2022/popover/lib/popover.module.mjs +4 -4
  196. package/esm2022/popup/index.mjs +2 -1
  197. package/esm2022/popup/lib/popup.component.mjs +49 -69
  198. package/esm2022/popup/lib/popup.interface.mjs +2 -0
  199. package/esm2022/popup/lib/popup.module.mjs +27 -12
  200. package/esm2022/popup/lib/popup.service.mjs +31 -86
  201. package/esm2022/progress-bar/lib/progress-bar.component.mjs +3 -3
  202. package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
  203. package/esm2022/radio/lib/radio.component.mjs +4 -4
  204. package/esm2022/radio/lib/radio.module.mjs +4 -4
  205. package/esm2022/range-slider/lib/range-slider.component.mjs +27 -22
  206. package/esm2022/range-slider/lib/range-slider.module.mjs +7 -6
  207. package/esm2022/result/lib/result.component.mjs +3 -3
  208. package/esm2022/result/lib/result.module.mjs +4 -4
  209. package/esm2022/scheduler/acorex-components-scheduler.mjs +5 -0
  210. package/esm2022/scheduler/index.mjs +4 -0
  211. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +45 -0
  212. package/esm2022/scheduler/lib/scheduler.component.mjs +30 -0
  213. package/esm2022/scheduler/lib/scheduler.module.mjs +26 -0
  214. package/esm2022/search-box/lib/search-box.component.mjs +35 -44
  215. package/esm2022/search-box/lib/search-box.module.mjs +28 -7
  216. package/esm2022/select-box/lib/select-box.component.mjs +11 -9
  217. package/esm2022/select-box/lib/select-box.module.mjs +7 -7
  218. package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
  219. package/esm2022/selection-list/lib/selection-list.module.mjs +6 -6
  220. package/esm2022/switch/lib/switch-content.component.mjs +3 -3
  221. package/esm2022/switch/lib/switch.component.mjs +27 -24
  222. package/esm2022/switch/lib/switch.module.mjs +4 -4
  223. package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
  224. package/esm2022/tabs/lib/tab-item.component.mjs +3 -3
  225. package/esm2022/tabs/lib/tabs.component.mjs +3 -3
  226. package/esm2022/tabs/lib/tabs.module.mjs +4 -4
  227. package/esm2022/tag/lib/tag.component.mjs +3 -3
  228. package/esm2022/tag/lib/tag.module.mjs +4 -4
  229. package/esm2022/text-area/acorex-components-text-area.mjs +5 -0
  230. package/esm2022/text-area/index.mjs +3 -0
  231. package/esm2022/text-area/lib/text-area.component.mjs +36 -0
  232. package/esm2022/text-area/lib/text-area.module.mjs +19 -0
  233. package/esm2022/{checkbox/acorex-components-checkbox.mjs → text-box/acorex-components-text-box.mjs} +1 -1
  234. package/esm2022/text-box/index.mjs +4 -0
  235. package/esm2022/text-box/lib/mask-options.directive.mjs +17 -0
  236. package/esm2022/text-box/lib/text-box.component.mjs +111 -0
  237. package/esm2022/text-box/lib/text-box.module.mjs +38 -0
  238. package/esm2022/time-box/lib/time-box.component.mjs +5 -5
  239. package/esm2022/time-box/lib/time-box.module.mjs +4 -4
  240. package/esm2022/toast/index.mjs +2 -1
  241. package/esm2022/toast/lib/toast.class.mjs +1 -1
  242. package/esm2022/toast/lib/toast.component.mjs +37 -25
  243. package/esm2022/toast/lib/toast.config.mjs +19 -0
  244. package/esm2022/toast/lib/toast.module.mjs +12 -8
  245. package/esm2022/toast/lib/toast.service.mjs +46 -55
  246. package/esm2022/tooltip/lib/tooltip.component.mjs +3 -3
  247. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  248. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  249. package/esm2022/uploader/lib/uploader.component.mjs +3 -3
  250. package/esm2022/uploader/lib/uploader.module.mjs +4 -4
  251. package/fesm2022/acorex-components-action-sheet.mjs +99 -125
  252. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  253. package/fesm2022/acorex-components-alert.mjs +21 -22
  254. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  255. package/fesm2022/acorex-components-avatar.mjs +10 -10
  256. package/fesm2022/acorex-components-badge.mjs +9 -9
  257. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  258. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  259. package/fesm2022/acorex-components-button.mjs +41 -24
  260. package/fesm2022/acorex-components-button.mjs.map +1 -1
  261. package/fesm2022/acorex-components-calendar.mjs +28 -25
  262. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  263. package/fesm2022/acorex-components-check-box.mjs +100 -0
  264. package/fesm2022/acorex-components-check-box.mjs.map +1 -0
  265. package/fesm2022/acorex-components-chips.mjs +10 -9
  266. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  267. package/fesm2022/acorex-components-collapse.mjs +10 -10
  268. package/fesm2022/acorex-components-color-palette.mjs +432 -437
  269. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  270. package/fesm2022/acorex-components-color-picker.mjs +16 -10
  271. package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
  272. package/fesm2022/acorex-components-common.mjs +282 -150
  273. package/fesm2022/acorex-components-common.mjs.map +1 -1
  274. package/fesm2022/acorex-components-context-menu.mjs +8 -8
  275. package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
  276. package/fesm2022/acorex-components-data-pager.mjs +214 -228
  277. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  278. package/fesm2022/acorex-components-data-table.mjs +41 -71
  279. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  280. package/fesm2022/acorex-components-date-picker.mjs +25 -22
  281. package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
  282. package/fesm2022/acorex-components-decorators.mjs +80 -283
  283. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  284. package/fesm2022/acorex-components-dialog.mjs +97 -88
  285. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  286. package/fesm2022/acorex-components-drawer.mjs +31 -39
  287. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  288. package/fesm2022/acorex-components-dropdown.mjs +7 -7
  289. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  290. package/fesm2022/acorex-components-form.mjs +80 -77
  291. package/fesm2022/acorex-components-form.mjs.map +1 -1
  292. package/fesm2022/acorex-components-image.mjs +15 -19
  293. package/fesm2022/acorex-components-image.mjs.map +1 -1
  294. package/fesm2022/acorex-components-label.mjs +21 -21
  295. package/fesm2022/acorex-components-label.mjs.map +1 -1
  296. package/fesm2022/acorex-components-loading.mjs +51 -83
  297. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  298. package/fesm2022/acorex-components-menu.mjs +29 -22
  299. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  300. package/fesm2022/acorex-components-mixin.mjs +4 -5
  301. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  302. package/fesm2022/acorex-components-notification.mjs +131 -107
  303. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  304. package/fesm2022/acorex-components-number-box.mjs +106 -96
  305. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  306. package/fesm2022/acorex-components-otp.mjs +40 -50
  307. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  308. package/fesm2022/acorex-components-page.mjs +12 -12
  309. package/fesm2022/acorex-components-page.mjs.map +1 -1
  310. package/fesm2022/acorex-components-password-box.mjs +41 -30
  311. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  312. package/fesm2022/acorex-components-popover.mjs +10 -10
  313. package/fesm2022/acorex-components-popup.mjs +107 -170
  314. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  315. package/fesm2022/acorex-components-progress-bar.mjs +7 -7
  316. package/fesm2022/acorex-components-radio.mjs +8 -8
  317. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  318. package/fesm2022/acorex-components-range-slider.mjs +31 -27
  319. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  320. package/fesm2022/acorex-components-result.mjs +7 -7
  321. package/fesm2022/acorex-components-scheduler.mjs +98 -0
  322. package/fesm2022/acorex-components-scheduler.mjs.map +1 -0
  323. package/fesm2022/acorex-components-search-box.mjs +61 -49
  324. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  325. package/fesm2022/acorex-components-select-box.mjs +16 -14
  326. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  327. package/fesm2022/acorex-components-selection-list.mjs +8 -8
  328. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  329. package/fesm2022/acorex-components-switch.mjs +33 -31
  330. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  331. package/fesm2022/acorex-components-tabs.mjs +13 -13
  332. package/fesm2022/acorex-components-tag.mjs +7 -7
  333. package/fesm2022/acorex-components-text-area.mjs +59 -0
  334. package/fesm2022/acorex-components-text-area.mjs.map +1 -0
  335. package/fesm2022/{acorex-components-textbox.mjs → acorex-components-text-box.mjs} +49 -32
  336. package/fesm2022/acorex-components-text-box.mjs.map +1 -0
  337. package/fesm2022/acorex-components-time-box.mjs +8 -8
  338. package/fesm2022/acorex-components-time-box.mjs.map +1 -1
  339. package/fesm2022/acorex-components-toast.mjs +116 -94
  340. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  341. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  342. package/fesm2022/acorex-components-uploader.mjs +7 -7
  343. package/fesm2022/acorex-components.mjs.map +1 -1
  344. package/form/lib/form-field.component.d.ts +2 -4
  345. package/form/lib/form.component.d.ts +12 -17
  346. package/form/lib/validation-rule.widget.d.ts +9 -6
  347. package/form/lib/validation-summary.component.d.ts +7 -9
  348. package/image/lib/image.component.d.ts +7 -13
  349. package/label/lib/label.component.d.ts +4 -7
  350. package/loading/index.d.ts +1 -0
  351. package/loading/lib/loading.component.d.ts +9 -12
  352. package/loading/lib/loading.config.d.ts +8 -0
  353. package/loading/lib/loading.directive.d.ts +5 -5
  354. package/loading/lib/loading.module.d.ts +0 -1
  355. package/loading/lib/loading.service.d.ts +0 -18
  356. package/menu/lib/menu.component.d.ts +4 -2
  357. package/mixin/lib/base-components.class.d.ts +2 -2
  358. package/mixin/lib/base-menu-mixin.class.d.ts +5 -5
  359. package/mixin/lib/button-mixin.class.d.ts +2 -2
  360. package/mixin/lib/clickable-mixin.class.d.ts +2 -2
  361. package/mixin/lib/color-look-mixing.class.d.ts +3 -3
  362. package/mixin/lib/datalist-component.class.d.ts +10 -10
  363. package/mixin/lib/dropdown-mixin.class.d.ts +2 -2
  364. package/mixin/lib/interactive-mixin.class.d.ts +4 -4
  365. package/mixin/lib/loading-mixin.class.d.ts +2 -2
  366. package/mixin/lib/mixin.class.d.ts +61 -61
  367. package/mixin/lib/page-component.class.d.ts +2 -2
  368. package/mixin/lib/selection-component.class.d.ts +2 -2
  369. package/mixin/lib/sizable-mixin.class.d.ts +2 -2
  370. package/mixin/lib/textbox-mixin.class.d.ts +2 -2
  371. package/mixin/lib/value-mixin.class.d.ts +8 -8
  372. package/notification/index.d.ts +1 -0
  373. package/notification/lib/notification.class.d.ts +29 -7
  374. package/notification/lib/notification.component.d.ts +13 -14
  375. package/notification/lib/notification.config.d.ts +13 -0
  376. package/notification/lib/notification.module.d.ts +4 -1
  377. package/notification/lib/notification.service.d.ts +5 -9
  378. package/number-box/lib/number-box.component.d.ts +12 -17
  379. package/otp/lib/otp.component.d.ts +7 -14
  380. package/package.json +36 -30
  381. package/page/lib/base-page.class.d.ts +2 -2
  382. package/password-box/lib/password-box.component.d.ts +8 -11
  383. package/popup/index.d.ts +1 -0
  384. package/popup/lib/popup.component.d.ts +14 -19
  385. package/popup/lib/popup.interface.d.ts +26 -0
  386. package/popup/lib/popup.module.d.ts +4 -4
  387. package/popup/lib/popup.service.d.ts +4 -25
  388. package/range-slider/lib/range-slider.component.d.ts +6 -14
  389. package/range-slider/lib/range-slider.module.d.ts +3 -2
  390. package/scheduler/README.md +3 -0
  391. package/scheduler/index.d.ts +3 -0
  392. package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
  393. package/scheduler/lib/scheduler.component.d.ts +11 -0
  394. package/scheduler/lib/scheduler.module.d.ts +13 -0
  395. package/search-box/lib/search-box.component.d.ts +8 -16
  396. package/search-box/lib/search-box.module.d.ts +7 -5
  397. package/select-box/lib/select-box.module.d.ts +2 -2
  398. package/selection-list/lib/selection-list.module.d.ts +1 -1
  399. package/switch/lib/switch.component.d.ts +10 -8
  400. package/tabs/lib/tab-item.component.d.ts +2 -2
  401. package/text-area/README.md +3 -0
  402. package/text-area/index.d.ts +2 -0
  403. package/text-area/lib/text-area.component.d.ts +11 -0
  404. package/text-area/lib/text-area.module.d.ts +9 -0
  405. package/text-box/README.md +3 -0
  406. package/text-box/index.d.ts +3 -0
  407. package/text-box/lib/text-box.component.d.ts +25 -0
  408. package/{textbox/lib/textbox.module.d.ts → text-box/lib/text-box.module.d.ts} +1 -1
  409. package/time-box/lib/time-box.component.d.ts +1 -1
  410. package/toast/index.d.ts +1 -0
  411. package/toast/lib/toast.class.d.ts +14 -5
  412. package/toast/lib/toast.component.d.ts +13 -12
  413. package/toast/lib/toast.config.d.ts +12 -0
  414. package/toast/lib/toast.module.d.ts +4 -1
  415. package/toast/lib/toast.service.d.ts +5 -9
  416. package/action-sheet/lib/action-sheet.interface.d.ts +0 -21
  417. package/checkbox/README.md +0 -3
  418. package/checkbox/index.d.ts +0 -2
  419. package/checkbox/lib/checkbox.component.d.ts +0 -17
  420. package/common/lib/directives/debounce-time.directive.d.ts +0 -17
  421. package/data-table/lib/data-column-cell-template.directive.d.ts +0 -8
  422. package/decorators/lib/content.component.d.ts +0 -9
  423. package/decorators/lib/divider.component.d.ts +0 -5
  424. package/decorators/lib/footer.component.d.ts +0 -9
  425. package/decorators/lib/form-hint.component.d.ts +0 -8
  426. package/decorators/lib/header.component.d.ts +0 -9
  427. package/decorators/lib/overlay.component.d.ts +0 -6
  428. package/decorators/lib/placeholder.component.d.ts +0 -5
  429. package/decorators/lib/prefix.component.d.ts +0 -9
  430. package/decorators/lib/sub-title.component.d.ts +0 -9
  431. package/decorators/lib/suffix.component.d.ts +0 -9
  432. package/decorators/lib/text.component.d.ts +0 -9
  433. package/decorators/lib/title.component.d.ts +0 -8
  434. package/esm2022/action-sheet/lib/action-sheet.interface.mjs +0 -2
  435. package/esm2022/checkbox/index.mjs +0 -3
  436. package/esm2022/checkbox/lib/checkbox.component.mjs +0 -49
  437. package/esm2022/checkbox/lib/checkbox.module.mjs +0 -21
  438. package/esm2022/common/lib/directives/debounce-time.directive.mjs +0 -48
  439. package/esm2022/data-table/lib/data-column-cell-template.directive.mjs +0 -17
  440. package/esm2022/decorators/lib/content.component.mjs +0 -26
  441. package/esm2022/decorators/lib/divider.component.mjs +0 -17
  442. package/esm2022/decorators/lib/footer.component.mjs +0 -26
  443. package/esm2022/decorators/lib/form-hint.component.mjs +0 -20
  444. package/esm2022/decorators/lib/header.component.mjs +0 -26
  445. package/esm2022/decorators/lib/overlay.component.mjs +0 -22
  446. package/esm2022/decorators/lib/placeholder.component.mjs +0 -14
  447. package/esm2022/decorators/lib/prefix.component.mjs +0 -26
  448. package/esm2022/decorators/lib/sub-title.component.mjs +0 -26
  449. package/esm2022/decorators/lib/suffix.component.mjs +0 -26
  450. package/esm2022/decorators/lib/text.component.mjs +0 -21
  451. package/esm2022/decorators/lib/title.component.mjs +0 -20
  452. package/esm2022/textarea/acorex-components-textarea.mjs +0 -5
  453. package/esm2022/textarea/index.mjs +0 -3
  454. package/esm2022/textarea/lib/textarea.component.mjs +0 -37
  455. package/esm2022/textarea/lib/textarea.module.mjs +0 -19
  456. package/esm2022/textbox/acorex-components-textbox.mjs +0 -5
  457. package/esm2022/textbox/index.mjs +0 -4
  458. package/esm2022/textbox/lib/mask-options.directive.mjs +0 -17
  459. package/esm2022/textbox/lib/textbox.component.mjs +0 -93
  460. package/esm2022/textbox/lib/textbox.module.mjs +0 -38
  461. package/fesm2022/acorex-components-checkbox.mjs +0 -74
  462. package/fesm2022/acorex-components-checkbox.mjs.map +0 -1
  463. package/fesm2022/acorex-components-textarea.mjs +0 -60
  464. package/fesm2022/acorex-components-textarea.mjs.map +0 -1
  465. package/fesm2022/acorex-components-textbox.mjs.map +0 -1
  466. package/textarea/README.md +0 -3
  467. package/textarea/index.d.ts +0 -2
  468. package/textarea/lib/textarea.component.d.ts +0 -14
  469. package/textarea/lib/textarea.module.d.ts +0 -9
  470. package/textbox/README.md +0 -3
  471. package/textbox/index.d.ts +0 -3
  472. package/textbox/lib/textbox.component.d.ts +0 -27
  473. /package/{textbox → text-box}/lib/mask-options.directive.d.ts +0 -0
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Directive, Host, Self, Optional, Input, EventEmitter, Output, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, TemplateRef } from '@angular/core';
3
- import * as i1 from '@angular/forms';
4
- import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
2
+ import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Output, TemplateRef } from '@angular/core';
5
3
  import * as i3 from '@angular/common';
6
4
  import { DOCUMENT } from '@angular/common';
7
- import * as i1$1 from '@angular/platform-browser';
5
+ import * as i1 from '@angular/platform-browser';
8
6
  import { Observable } from 'rxjs/internal/Observable';
7
+ import { fromEvent, noop, skip, distinctUntilChanged, debounceTime, merge } from 'rxjs';
9
8
  import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
10
9
  import { classes } from 'polytype';
11
10
  import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
12
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
11
+ import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
12
+ import * as i1$1 from '@angular/forms';
13
13
  import * as i1$2 from '@angular/cdk/overlay';
14
14
  import { OverlayContainer, Overlay } from '@angular/cdk/overlay';
15
15
  import * as i2 from '@angular/cdk/bidi';
@@ -118,45 +118,52 @@ class AXComponentClosedPromise extends Promise {
118
118
  }
119
119
  }
120
120
  class AXComponent {
121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
122
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXComponent }); }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
122
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXComponent }); }
123
123
  }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXComponent, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXComponent, decorators: [{
125
125
  type: Injectable
126
126
  }] });
127
127
  class AXClosbaleComponent extends AXComponent {
128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
129
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXClosbaleComponent }); }
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
129
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClosbaleComponent }); }
130
130
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXClosbaleComponent, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClosbaleComponent, decorators: [{
132
+ type: Injectable
133
+ }] });
134
+ class AXClearableComponent extends AXComponent {
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClearableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
136
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClearableComponent }); }
137
+ }
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXClearableComponent, decorators: [{
132
139
  type: Injectable
133
140
  }] });
134
141
  class AXSearchableComponent extends AXComponent {
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
136
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXSearchableComponent }); }
142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
143
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXSearchableComponent }); }
137
144
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXSearchableComponent, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXSearchableComponent, decorators: [{
139
146
  type: Injectable
140
147
  }] });
141
148
  class AXValuableComponent extends AXComponent {
142
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
143
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXValuableComponent }); }
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
150
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXValuableComponent }); }
144
151
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXValuableComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXValuableComponent, decorators: [{
146
153
  type: Injectable
147
154
  }] });
148
155
  class AXFocusableComponent extends AXComponent {
149
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
150
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXFocusableComponent }); }
156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
157
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXFocusableComponent }); }
151
158
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXFocusableComponent, decorators: [{
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXFocusableComponent, decorators: [{
153
160
  type: Injectable
154
161
  }] });
155
162
  class AXPagedComponent extends AXComponent {
156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
157
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXPagedComponent }); }
163
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
164
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXPagedComponent }); }
158
165
  }
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXPagedComponent, decorators: [{
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXPagedComponent, decorators: [{
160
167
  type: Injectable
161
168
  }] });
162
169
 
@@ -164,15 +171,24 @@ const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'dan
164
171
  const AX_LOCATIONS = ['bottom-start', 'bottom-center', 'bottom-end', 'top-start', 'top-center', 'top-end', 'center-end', 'center-start'];
165
172
  const AX_DIRECTIONS = ['vertical', 'horizontal'];
166
173
 
174
+ ;
175
+
167
176
  class AXAutoFocusDirective {
168
- constructor(el, _host) {
177
+ constructor(renderer, el, _host) {
178
+ this.renderer = renderer;
169
179
  this.el = el;
170
180
  this._host = _host;
171
181
  this.autoFocus = true;
172
- this.time = 100;
182
+ this.time = 50;
173
183
  }
174
- ngAfterContentInit() {
184
+ ngAfterViewInit() {
175
185
  if (this.autoFocus) {
186
+ if (this._host) {
187
+ setTimeout(() => {
188
+ this._host.focus();
189
+ }, this.time);
190
+ return;
191
+ }
176
192
  const list = [
177
193
  'button',
178
194
  'input',
@@ -187,22 +203,22 @@ class AXAutoFocusDirective {
187
203
  focusable.setAttributeNode(attr);
188
204
  const hasTabindex = focusable.hasAttribute('tabindex');
189
205
  if (!hasTabindex) {
190
- focusable.setAttribute('tabIndex', '0');
206
+ focusable.setAttribute('tabindex', '0');
191
207
  }
192
208
  setTimeout(() => {
193
209
  focusable.focus();
194
- }, 100);
210
+ }, this.time);
195
211
  }
196
212
  }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
198
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
214
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
199
215
  }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
201
217
  type: Directive,
202
218
  args: [{
203
219
  selector: '[axAutoFocus]',
204
220
  }]
205
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
221
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
206
222
  type: Host
207
223
  }, {
208
224
  type: Self
@@ -216,49 +232,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
216
232
  args: ['focus-time']
217
233
  }] } });
218
234
 
219
- class AXNgModelChangeDebouncedDirective {
220
- get ngModelChangeDebounceTime() {
221
- return this._ngModelChangeDebounceTime;
222
- }
223
- set ngModelChangeDebounceTime(v) {
224
- if (v != this._ngModelChangeDebounceTime) {
225
- this._ngModelChangeDebounceTime = v;
226
- this.ngModelChangeDebounceTimeChange.emit(v);
227
- this.update();
228
- }
229
- }
230
- ngOnDestroy() {
231
- this.subscription.unsubscribe();
232
- }
233
- constructor(ngModel) {
234
- this.ngModel = ngModel;
235
- this.ngModelChangeDebounced = new EventEmitter();
236
- this.ngModelChangeDebounceTimeChange = new EventEmitter();
237
- this._ngModelChangeDebounceTime = 0;
238
- this.ngModelChangeDebounceTime = 0;
239
- }
240
- update() {
241
- this.subscription?.unsubscribe();
242
- //
243
- this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
244
- distinctUntilChanged(), debounceTime(this.ngModelChangeDebounceTime)).subscribe((value) => this.ngModelChangeDebounced.emit(value));
245
- }
246
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXNgModelChangeDebouncedDirective, deps: [{ token: i1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
247
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: AXNgModelChangeDebouncedDirective, selector: "[ngModelChangeDebounced]", inputs: { ngModelChangeDebounceTime: "ngModelChangeDebounceTime" }, outputs: { ngModelChangeDebounced: "ngModelChangeDebounced", ngModelChangeDebounceTimeChange: "ngModelChangeDebounceTimeChange" }, ngImport: i0 }); }
248
- }
249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXNgModelChangeDebouncedDirective, decorators: [{
250
- type: Directive,
251
- args: [{
252
- selector: '[ngModelChangeDebounced]',
253
- }]
254
- }], ctorParameters: function () { return [{ type: i1.NgModel }]; }, propDecorators: { ngModelChangeDebounced: [{
255
- type: Output
256
- }], ngModelChangeDebounceTimeChange: [{
257
- type: Output
258
- }], ngModelChangeDebounceTime: [{
259
- type: Input
260
- }] } });
261
-
262
235
  class AXHotkeysService {
263
236
  constructor(eventManager, document) {
264
237
  this.eventManager = eventManager;
@@ -288,13 +261,13 @@ class AXHotkeysService {
288
261
  }
289
262
  });
290
263
  }
291
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1$1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
292
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
264
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
265
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
293
266
  }
294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeysService, decorators: [{
267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXHotkeysService, decorators: [{
295
268
  type: Injectable,
296
269
  args: [{ providedIn: 'root' }]
297
- }], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
270
+ }], ctorParameters: function () { return [{ type: i1.EventManager }, { type: Document, decorators: [{
298
271
  type: Inject,
299
272
  args: [DOCUMENT]
300
273
  }] }]; } });
@@ -355,10 +328,10 @@ class AXHotkeyDirective {
355
328
  s.unsubscribe();
356
329
  });
357
330
  }
358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
359
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
331
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
332
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
360
333
  }
361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeyDirective, decorators: [{
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXHotkeyDirective, decorators: [{
362
335
  type: Directive,
363
336
  args: [{
364
337
  selector: '[hotkey]',
@@ -417,10 +390,10 @@ class AXInfiniteScrollerDirective {
417
390
  }));
418
391
  //.subscribe((data) => { console.log(data) }, (err) => console.log(err));
419
392
  }
420
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
421
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
393
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
394
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
422
395
  }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
424
397
  type: Directive,
425
398
  args: [{
426
399
  selector: '[axInfiniteScroller]'
@@ -460,28 +433,26 @@ class AXResponsiveDirective {
460
433
  this._observer?.disconnect();
461
434
  this._observer?.unobserve(this._elementRef.nativeElement);
462
435
  }
463
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
464
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
437
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
465
438
  }
466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXResponsiveDirective, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXResponsiveDirective, decorators: [{
467
440
  type: Directive,
468
441
  args: [{ selector: '[ax-responsive]' }]
469
442
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
470
443
 
471
444
  class AXCommonModule {
472
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
473
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
445
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
446
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.7", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
474
447
  AXInfiniteScrollerDirective,
475
- AXNgModelChangeDebouncedDirective,
476
448
  AXAutoFocusDirective,
477
449
  AXHotkeyDirective], exports: [AXResponsiveDirective,
478
450
  AXInfiniteScrollerDirective,
479
451
  AXAutoFocusDirective,
480
- AXNgModelChangeDebouncedDirective,
481
452
  AXHotkeyDirective] }); }
482
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule }); }
453
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXCommonModule }); }
483
454
  }
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule, decorators: [{
455
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXCommonModule, decorators: [{
485
456
  type: NgModule,
486
457
  args: [{
487
458
  imports: [],
@@ -489,13 +460,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
489
460
  AXResponsiveDirective,
490
461
  AXInfiniteScrollerDirective,
491
462
  AXAutoFocusDirective,
492
- AXNgModelChangeDebouncedDirective,
493
463
  AXHotkeyDirective,
494
464
  ],
495
465
  declarations: [
496
466
  AXResponsiveDirective,
497
467
  AXInfiniteScrollerDirective,
498
- AXNgModelChangeDebouncedDirective,
499
468
  AXAutoFocusDirective,
500
469
  AXHotkeyDirective,
501
470
  ],
@@ -503,12 +472,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
503
472
  }]
504
473
  }] });
505
474
 
475
+ class AXDomService {
476
+ generateElementId() {
477
+ const dateString = Date.now().toString(36);
478
+ const randomness = Math.random().toString(36).substr(2);
479
+ return dateString + randomness;
480
+ }
481
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXDomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
482
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXDomService, providedIn: 'root' }); }
483
+ }
484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXDomService, decorators: [{
485
+ type: Injectable,
486
+ args: [{ providedIn: 'root' }]
487
+ }] });
488
+
506
489
  class MXBaseComponent {
507
- constructor() {
508
- this._cdr = inject(ChangeDetectorRef);
509
- this._elementRef = inject(ElementRef);
510
- this._viewRef = inject(ViewContainerRef);
511
- this.onOptionChanged = new EventEmitter();
490
+ get id() {
491
+ return this._id;
492
+ }
493
+ set id(v) {
494
+ this._id = v;
512
495
  }
513
496
  get cdr() {
514
497
  return this._cdr;
@@ -519,15 +502,26 @@ class MXBaseComponent {
519
502
  getViewContainer() {
520
503
  return this._viewRef;
521
504
  }
522
- onOptionChanging(option) {
505
+ internalOptionChanging(option) {
523
506
  return option?.value;
524
507
  }
525
- init() {
508
+ internalOptionChanged(option) {
509
+ }
510
+ /**
511
+ * @ignore
512
+ */
513
+ constructor() {
514
+ this._cdr = inject(ChangeDetectorRef);
515
+ this._elementRef = inject(ElementRef);
516
+ this._viewRef = inject(ViewContainerRef);
517
+ this._domService = inject(AXDomService);
518
+ this._id = this._domService.generateElementId();
519
+ this.onOptionChanged = new EventEmitter();
526
520
  this.getHostElement().__axContext__ = this;
527
521
  }
528
522
  setOption(option) {
529
523
  const oldValue = this[option.name];
530
- let newValue = this.onOptionChanging({
524
+ let newValue = this.internalOptionChanging({
531
525
  name: option.name,
532
526
  value: option.value,
533
527
  });
@@ -545,6 +539,7 @@ class MXBaseComponent {
545
539
  });
546
540
  const emitter = this[`${option.name}Change`];
547
541
  emitter?.emit(newValue);
542
+ this.internalOptionChanged({ name: option.name, value: newValue });
548
543
  }
549
544
  if (option.afterCallback)
550
545
  option.afterCallback(oldValue, newValue);
@@ -559,12 +554,12 @@ class MXBaseComponent {
559
554
  set rtl(value) {
560
555
  this.setOption({ name: 'rtl', value });
561
556
  }
562
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
563
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXBaseComponent }); }
557
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
558
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXBaseComponent }); }
564
559
  }
565
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXBaseComponent, decorators: [{
560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXBaseComponent, decorators: [{
566
561
  type: Injectable
567
- }] });
562
+ }], ctorParameters: function () { return []; } });
568
563
  const BASE_INPUTS = ['rtl'];
569
564
  const BASE_OUTPUT = [];
570
565
 
@@ -627,6 +622,18 @@ const COLOR_LOOK_INPUTS = [...COLOR_INPUTS, ...LOOK_INPUTS];
627
622
  const COLOR_LOOK_OUTPUT = [...COLOR_OUTPUT, ...LOOK_OUTPUT];
628
623
 
629
624
  class MXInteractiveComponent extends MXBaseComponent {
625
+ registerOnTouched(fn) {
626
+ this.onTouchedCallback = fn;
627
+ }
628
+ get touched() {
629
+ return this._touched;
630
+ }
631
+ markAsTouched() {
632
+ if (!this.touched) {
633
+ this.onTouchedCallback();
634
+ this._touched = true;
635
+ }
636
+ }
630
637
  /**
631
638
  * If set to true, it disables the component.
632
639
  */
@@ -634,7 +641,17 @@ class MXInteractiveComponent extends MXBaseComponent {
634
641
  return this._disabled;
635
642
  }
636
643
  set disabled(value) {
637
- this.setOption({ name: 'disabled', value });
644
+ value = coerceBooleanProperty(value);
645
+ this.setOption({
646
+ name: 'disabled',
647
+ value,
648
+ afterCallback: () => {
649
+ this.cdr.markForCheck();
650
+ },
651
+ });
652
+ }
653
+ setDisabledState(isDisabled) {
654
+ this.disabled = isDisabled;
638
655
  }
639
656
  /**
640
657
  * Specifies the tabindex of the component.
@@ -653,6 +670,7 @@ class MXInteractiveComponent extends MXBaseComponent {
653
670
  });
654
671
  }
655
672
  emitOnBlurEvent(e) {
673
+ this.markAsTouched();
656
674
  this.onBlur.emit({
657
675
  component: this,
658
676
  htmlElement: this.getHostElement(),
@@ -661,6 +679,9 @@ class MXInteractiveComponent extends MXBaseComponent {
661
679
  }
662
680
  constructor() {
663
681
  super();
682
+ this.onTouchedCallback = noop;
683
+ this._touched = false;
684
+ this.disabledChange = new EventEmitter();
664
685
  this._tabIndex = 0;
665
686
  /**
666
687
  * Fires each time the component gets focused.
@@ -684,7 +705,7 @@ class MXInteractiveComponent extends MXBaseComponent {
684
705
  }
685
706
  }
686
707
  const INTERACTIVE_INPUTS = ['disabled', 'tabIndex', ...BASE_INPUTS];
687
- const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', ...BASE_OUTPUT];
708
+ const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', 'disabledChange', ...BASE_OUTPUT];
688
709
 
689
710
  class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
690
711
  /**
@@ -762,7 +783,7 @@ const BUTTON_OUTPUT = [
762
783
  COLOR_LOOK_OUTPUT,
763
784
  ];
764
785
 
765
- class MXValueComponent extends MXBaseComponent {
786
+ class MXValueComponent extends MXInteractiveComponent {
766
787
  constructor() {
767
788
  super(...arguments);
768
789
  /**
@@ -770,11 +791,18 @@ class MXValueComponent extends MXBaseComponent {
770
791
  * @event
771
792
  */
772
793
  this.onValueChanged = new EventEmitter();
794
+ /**
795
+ * @deprecated The event should not be used, use ngModelChange instead
796
+ */
773
797
  this.valueChange = new EventEmitter();
774
798
  this.stateChange = new EventEmitter();
799
+ this.readonlyChange = new EventEmitter();
775
800
  this._readonly = false;
801
+ this._dirty = false;
776
802
  this._isUserInteraction = false;
803
+ //stateChange:EventEmitter<string> = new EventEmitter<string>();
777
804
  this._state = 'clear';
805
+ this.onChangeCallback = noop;
778
806
  }
779
807
  /**
780
808
  * If set to true, user cannot change the value of component.
@@ -783,7 +811,14 @@ class MXValueComponent extends MXBaseComponent {
783
811
  return this._readonly;
784
812
  }
785
813
  set readonly(value) {
786
- this._readonly = coerceBooleanProperty(value);
814
+ value = coerceBooleanProperty(value);
815
+ this.setOption({
816
+ name: 'readonly',
817
+ value,
818
+ afterCallback: () => {
819
+ this.cdr.markForCheck();
820
+ },
821
+ });
787
822
  }
788
823
  get name() {
789
824
  return this._name;
@@ -791,38 +826,30 @@ class MXValueComponent extends MXBaseComponent {
791
826
  set name(value) {
792
827
  this._name = value;
793
828
  }
794
- get isUserInteraction() {
795
- return this._isUserInteraction;
796
- }
797
- set isUserInteraction(value) {
798
- this._isUserInteraction = value;
829
+ get dirty() {
830
+ return this._dirty;
799
831
  }
800
- setUserInteraction() {
801
- this.isUserInteraction = true;
832
+ markAsDirty() {
833
+ this._dirty = true;
802
834
  }
835
+ /**
836
+ * @deprecated The property should not be used, use ngModel instead
837
+ */
803
838
  get value() {
804
- return this.getValue(this._value) || this.defaultValue;
839
+ return this.internalGetValue(this._value) ?? this.defaultValue;
805
840
  }
806
841
  set value(v) {
807
- v = this.setValue(v);
808
- //if (!this._isInited ) {
842
+ v = this.internalSetValue(v);
809
843
  const old = AXObjectUtil.deepJSONClone(this.value);
810
844
  // TODO: check real equality
811
845
  if (v != old) {
812
846
  this._value = v;
813
847
  this.emitOnValueChangedEvent(old, this.value);
814
- this.cdr.markForCheck();
815
848
  if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
816
849
  this.setState('clear');
817
850
  }
818
- // else {
819
- // if (this._isInited) {
820
- // this.validate();
821
- // }
822
- // }
851
+ this.internalValueChanged(this.value);
823
852
  }
824
- this._isUserInteraction = false;
825
- //}
826
853
  }
827
854
  get state() {
828
855
  return this._state;
@@ -838,18 +865,20 @@ class MXValueComponent extends MXBaseComponent {
838
865
  value: newValue,
839
866
  oldValue: oldValue,
840
867
  name: this.name,
841
- isUserInteraction: this.isUserInteraction,
868
+ isUserInteraction: this._isUserInteraction,
842
869
  });
870
+ this.onChangeCallback(newValue);
871
+ this.cdr.markForCheck();
843
872
  this._isUserInteraction = false;
844
873
  }
845
- setValue(value) {
874
+ internalSetValue(value) {
846
875
  return value;
847
876
  }
848
- getValue(value) {
877
+ internalGetValue(value) {
849
878
  return value;
850
879
  }
880
+ internalValueChanged(value) { }
851
881
  ngOnInit() {
852
- super.init();
853
882
  this.getHostElement().setAttribute('ax-form-input', 'true');
854
883
  }
855
884
  ngAfterViewInit() {
@@ -859,9 +888,6 @@ class MXValueComponent extends MXBaseComponent {
859
888
  this.onValueChanged?.unsubscribe();
860
889
  this.onOptionChanged?.unsubscribe();
861
890
  }
862
- clear() {
863
- this.value = null;
864
- }
865
891
  _checkRequired() {
866
892
  const isRequired = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).some((c) => c.__axContext__.enabled && c.__axContext__.rule == 'required');
867
893
  //
@@ -958,10 +984,72 @@ class MXValueComponent extends MXBaseComponent {
958
984
  }
959
985
  this.cdr.markForCheck();
960
986
  }
961
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
962
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXValueComponent }); }
987
+ registerOnChange(fn) {
988
+ this.onChangeCallback = fn;
989
+ }
990
+ writeValue(value) {
991
+ this.value = value;
992
+ }
993
+ commitValue(value, u = false) {
994
+ if (u) {
995
+ this.markAsTouched();
996
+ this.markAsDirty();
997
+ this._isUserInteraction = true;
998
+ }
999
+ this.writeValue(value);
1000
+ }
1001
+ clear(e) {
1002
+ this.commitValue(null, e);
1003
+ this.setState('clear');
1004
+ }
1005
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1006
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXValueComponent }); }
963
1007
  }
964
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXValueComponent, decorators: [{
1008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXValueComponent, decorators: [{
1009
+ type: Injectable
1010
+ }] });
1011
+
1012
+ class MXInputBaseValueComponent extends MXValueComponent {
1013
+ constructor() {
1014
+ super(...arguments);
1015
+ /**
1016
+ * Fires each time the user press a key.
1017
+ * @event
1018
+ */
1019
+ this.onKeyDown = new EventEmitter();
1020
+ /**
1021
+ * Fires each time the user press a key.
1022
+ * @event
1023
+ */
1024
+ this.onKeyUp = new EventEmitter();
1025
+ /**
1026
+ * Fires each time the user press a key.
1027
+ * @event
1028
+ */
1029
+ this.onKeyPress = new EventEmitter();
1030
+ }
1031
+ emitOnKeydownEvent(e) {
1032
+ this.onKeyDown.emit({
1033
+ component: this,
1034
+ nativeEvent: e
1035
+ });
1036
+ }
1037
+ emitOnKeyupEvent(e) {
1038
+ this.onKeyUp.emit({
1039
+ component: this,
1040
+ nativeEvent: e
1041
+ });
1042
+ }
1043
+ emitOnKeypressEvent(e) {
1044
+ this.onKeyPress.emit({
1045
+ component: this,
1046
+ nativeEvent: e
1047
+ });
1048
+ }
1049
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1050
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXInputBaseValueComponent }); }
1051
+ }
1052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
965
1053
  type: Injectable
966
1054
  }] });
967
1055
 
@@ -1040,14 +1128,58 @@ const AXPositions = {
1040
1128
  },
1041
1129
  };
1042
1130
 
1131
+ class AXNgModelDelayedValueChangedDirective {
1132
+ get delayTime() {
1133
+ return this._delayTime;
1134
+ }
1135
+ set delayTime(v) {
1136
+ if (v != this._delayTime) {
1137
+ this._delayTime = v;
1138
+ this.delayTimeChange.emit(v);
1139
+ this.update();
1140
+ }
1141
+ }
1142
+ ngOnDestroy() {
1143
+ this.subscription.unsubscribe();
1144
+ }
1145
+ constructor(ngModel) {
1146
+ this.ngModel = ngModel;
1147
+ this.delayedValueChanged = new EventEmitter();
1148
+ this.delayTimeChange = new EventEmitter();
1149
+ this._delayTime = 0;
1150
+ this.delayTime = 0;
1151
+ }
1152
+ update() {
1153
+ this.subscription?.unsubscribe();
1154
+ //
1155
+ this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
1156
+ distinctUntilChanged(), debounceTime(this.delayTime)).subscribe((value) => this.delayedValueChanged.emit(value));
1157
+ }
1158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, deps: [{ token: i1$1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
1159
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.7", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[delayedValueChanged]", inputs: { delayTime: "delayTime" }, outputs: { delayedValueChanged: "delayedValueChanged", delayTimeChange: "delayTimeChange" }, ngImport: i0 }); }
1160
+ }
1161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, decorators: [{
1162
+ type: Directive,
1163
+ args: [{
1164
+ selector: '[delayedValueChanged]',
1165
+ standalone: true
1166
+ }]
1167
+ }], ctorParameters: function () { return [{ type: i1$1.NgModel }]; }, propDecorators: { delayedValueChanged: [{
1168
+ type: Output
1169
+ }], delayTimeChange: [{
1170
+ type: Output
1171
+ }], delayTime: [{
1172
+ type: Input
1173
+ }] } });
1174
+
1043
1175
  class DynamicOverlayContainer extends OverlayContainer {
1044
1176
  setContainerElement(containerElement) {
1045
1177
  this._containerElement = containerElement;
1046
1178
  }
1047
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1048
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
1179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1180
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
1049
1181
  }
1050
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1051
1183
  type: Injectable,
1052
1184
  args: [{
1053
1185
  providedIn: 'root',
@@ -1067,10 +1199,10 @@ class DynamicOverlay extends Overlay {
1067
1199
  this.setContainerElement(containerElement);
1068
1200
  return super.create(config);
1069
1201
  }
1070
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1$2.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1$2.OverlayPositionBuilder }, { token: i1$2.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2.Directionality }, { token: i0.RendererFactory2 }, { token: i3.Location }, { token: i1$2.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
1071
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
1202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1$2.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1$2.OverlayPositionBuilder }, { token: i1$2.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2.Directionality }, { token: i0.RendererFactory2 }, { token: i3.Location }, { token: i1$2.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
1203
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
1072
1204
  }
1073
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlay, decorators: [{
1205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, decorators: [{
1074
1206
  type: Injectable,
1075
1207
  args: [{
1076
1208
  providedIn: 'root',
@@ -1177,10 +1309,10 @@ class AXOverlayService {
1177
1309
  },
1178
1310
  };
1179
1311
  }
1180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
1181
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
1312
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
1313
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
1182
1314
  }
1183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXOverlayService, decorators: [{
1315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, decorators: [{
1184
1316
  type: Injectable,
1185
1317
  args: [{ providedIn: 'root' }]
1186
1318
  }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
@@ -1189,5 +1321,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
1189
1321
  * Generated bundle index. Do not edit.
1190
1322
  */
1191
1323
 
1192
- export { AXAutoFocusDirective, AXButtonClickEvent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelChangeDebouncedDirective, AXOptionChangedEvent, AXOverlayService, AXPagedComponent, AXPositions, AXRangeChangedEvent, AXResponsiveDirective, AXSearchableComponent, AXSelectionValueChangedEvent, AXValuableComponent, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_COLOR_TYPES, BASE_INPUTS, BASE_OUTPUT, BUTTON_INPUTS, BUTTON_OUTPUT, COLOR_INPUTS, COLOR_LOOK_INPUTS, COLOR_LOOK_OUTPUT, COLOR_OUTPUT, DynamicOverlay, DynamicOverlayContainer, INTERACTIVE_INPUTS, INTERACTIVE_OUTPUT, LOOK_INPUTS, LOOK_OUTPUT, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInteractiveComponent, MXLookComponent, MXValueComponent, TAB_META_KEY };
1324
+ export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent, AXOverlayService, AXPagedComponent, AXPositions, AXRangeChangedEvent, AXResponsiveDirective, AXSearchableComponent, AXSelectionValueChangedEvent, AXValuableComponent, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_COLOR_TYPES, BASE_INPUTS, BASE_OUTPUT, BUTTON_INPUTS, BUTTON_OUTPUT, COLOR_INPUTS, COLOR_LOOK_INPUTS, COLOR_LOOK_OUTPUT, COLOR_OUTPUT, DynamicOverlay, DynamicOverlayContainer, INTERACTIVE_INPUTS, INTERACTIVE_OUTPUT, LOOK_INPUTS, LOOK_OUTPUT, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXValueComponent, TAB_META_KEY };
1193
1325
  //# sourceMappingURL=acorex-components-common.mjs.map