@acorex/components 7.2.8 → 7.3.2

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 (464) 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 +10 -10
  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 +1 -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/color-palette/lib/color-palette-input.component.d.ts +1 -1
  17. package/color-palette/lib/color-palette.module.d.ts +1 -1
  18. package/color-picker/lib/color-picker.component.d.ts +17 -24
  19. package/color-picker/lib/color-picker.module.d.ts +1 -1
  20. package/common/index.d.ts +3 -3
  21. package/common/lib/classes/components.class.d.ts +12 -3
  22. package/common/lib/classes/datalist.class.d.ts +11 -0
  23. package/common/lib/common.module.d.ts +3 -4
  24. package/common/lib/components/base-component.class.d.ts +9 -3
  25. package/common/lib/components/input-base-value-component.class.d.ts +1 -0
  26. package/common/lib/components/value-component.class.d.ts +9 -2
  27. package/common/lib/directives/auto-focus.directive.d.ts +6 -5
  28. package/common/lib/directives/delayed-value-changed.directive.d.ts +17 -0
  29. package/common/lib/services/dom.service.d.ts +6 -0
  30. package/data-pager/lib/data-pager-base.component.d.ts +18 -13
  31. package/data-pager/lib/data-pager-info.component.d.ts +3 -9
  32. package/data-pager/lib/data-pager-input-selector.component.d.ts +5 -9
  33. package/data-pager/lib/data-pager-next-buttons.components.d.ts +2 -8
  34. package/data-pager/lib/data-pager-numeric-selector.component.d.ts +2 -7
  35. package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +2 -6
  36. package/data-pager/lib/data-pager-prev-buttons.component.d.ts +2 -7
  37. package/data-pager/lib/data-pager.component.d.ts +17 -18
  38. package/data-pager/lib/data-pager.module.d.ts +6 -5
  39. package/data-table/index.d.ts +0 -1
  40. package/data-table/lib/data-column.directive.d.ts +3 -8
  41. package/data-table/lib/data-table.component.d.ts +6 -7
  42. package/data-table/lib/data-table.module.d.ts +6 -7
  43. package/date-picker/lib/datepicker.component.d.ts +7 -6
  44. package/date-picker/lib/datepicker.module.d.ts +1 -1
  45. package/decorators/index.d.ts +2 -12
  46. package/decorators/lib/clear-button.component.d.ts +13 -0
  47. package/decorators/lib/close-button.component.d.ts +5 -8
  48. package/decorators/lib/decorators.module.d.ts +6 -15
  49. package/decorators/lib/generic-content.component.d.ts +6 -0
  50. package/decorators/lib/icon.component.d.ts +2 -4
  51. package/dialog/lib/dialog.class.d.ts +11 -3
  52. package/dialog/lib/dialog.component.d.ts +15 -11
  53. package/dialog/lib/dialog.module.d.ts +4 -3
  54. package/dialog/lib/dialog.service.d.ts +4 -12
  55. package/drawer/lib/drawer-container.component.d.ts +2 -5
  56. package/drawer/lib/drawer.component.d.ts +6 -7
  57. package/esm2022/action-sheet/index.mjs +2 -2
  58. package/esm2022/action-sheet/lib/action-sheet.class.mjs +2 -0
  59. package/esm2022/action-sheet/lib/action-sheet.component.mjs +50 -38
  60. package/esm2022/action-sheet/lib/action-sheet.module.mjs +11 -7
  61. package/esm2022/action-sheet/lib/action-sheet.service.mjs +32 -72
  62. package/esm2022/alert/lib/alert.component.mjs +14 -16
  63. package/esm2022/alert/lib/alert.module.mjs +7 -7
  64. package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
  65. package/esm2022/avatar/lib/avatar.component.mjs +3 -3
  66. package/esm2022/avatar/lib/avatar.module.mjs +4 -4
  67. package/esm2022/badge/lib/badge.component.mjs +6 -6
  68. package/esm2022/badge/lib/badge.module.mjs +4 -4
  69. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
  70. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  71. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
  72. package/esm2022/button/lib/button-group.component.mjs +3 -3
  73. package/esm2022/button/lib/button-item.class.mjs +1 -1
  74. package/esm2022/button/lib/button-item.component.mjs +3 -3
  75. package/esm2022/button/lib/button.component.mjs +35 -17
  76. package/esm2022/button/lib/button.module.mjs +4 -4
  77. package/esm2022/calendar/lib/calendar-range.component.mjs +5 -5
  78. package/esm2022/calendar/lib/calendar.class.mjs +3 -3
  79. package/esm2022/calendar/lib/calendar.component.mjs +7 -5
  80. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  81. package/esm2022/check-box/acorex-components-check-box.mjs +5 -0
  82. package/esm2022/check-box/index.mjs +3 -0
  83. package/esm2022/check-box/lib/check-box.component.mjs +76 -0
  84. package/esm2022/check-box/lib/check-box.module.mjs +21 -0
  85. package/esm2022/chips/lib/chips.component.mjs +3 -3
  86. package/esm2022/chips/lib/chips.module.mjs +4 -4
  87. package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
  88. package/esm2022/collapse/lib/collapse.component.mjs +3 -3
  89. package/esm2022/collapse/lib/collapse.module.mjs +4 -4
  90. package/esm2022/color-palette/lib/color-palette-input.component.mjs +18 -12
  91. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +3 -3
  92. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +3 -3
  93. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +3 -3
  94. package/esm2022/color-palette/lib/color-palette.class.mjs +6 -6
  95. package/esm2022/color-palette/lib/color-palette.component.mjs +5 -5
  96. package/esm2022/color-palette/lib/color-palette.module.mjs +6 -6
  97. package/esm2022/color-picker/lib/color-picker.component.mjs +12 -6
  98. package/esm2022/color-picker/lib/color-picker.module.mjs +6 -6
  99. package/esm2022/common/index.mjs +4 -4
  100. package/esm2022/common/lib/classes/components.class.mjs +26 -19
  101. package/esm2022/common/lib/classes/datalist.class.mjs +3 -0
  102. package/esm2022/common/lib/common.module.mjs +5 -10
  103. package/esm2022/common/lib/components/base-component.class.mjs +21 -11
  104. package/esm2022/common/lib/components/input-base-value-component.class.mjs +4 -4
  105. package/esm2022/common/lib/components/value-component.class.mjs +18 -10
  106. package/esm2022/common/lib/directives/auto-focus.directive.mjs +18 -11
  107. package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +49 -0
  108. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
  109. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
  110. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
  111. package/esm2022/common/lib/services/dom.service.mjs +16 -0
  112. package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
  113. package/esm2022/context-menu/lib/context-menu.component.mjs +5 -5
  114. package/esm2022/context-menu/lib/context-menu.module.mjs +4 -4
  115. package/esm2022/data-pager/lib/data-pager-base.component.mjs +35 -21
  116. package/esm2022/data-pager/lib/data-pager-info.component.mjs +13 -26
  117. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +27 -31
  118. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +19 -33
  119. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +31 -38
  120. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +22 -31
  121. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +19 -29
  122. package/esm2022/data-pager/lib/data-pager.component.mjs +66 -38
  123. package/esm2022/data-pager/lib/data-pager.module.mjs +8 -7
  124. package/esm2022/data-table/index.mjs +1 -2
  125. package/esm2022/data-table/lib/data-column.directive.mjs +7 -22
  126. package/esm2022/data-table/lib/data-table.component.mjs +30 -30
  127. package/esm2022/data-table/lib/data-table.module.mjs +6 -7
  128. package/esm2022/date-picker/lib/datepicker.component.mjs +19 -16
  129. package/esm2022/date-picker/lib/datepicker.module.mjs +6 -6
  130. package/esm2022/decorators/index.mjs +3 -13
  131. package/esm2022/decorators/lib/clear-button.component.mjs +58 -0
  132. package/esm2022/decorators/lib/close-button.component.mjs +16 -20
  133. package/esm2022/decorators/lib/decorators.module.mjs +13 -49
  134. package/esm2022/decorators/lib/generic-content.component.mjs +17 -0
  135. package/esm2022/decorators/lib/icon.component.mjs +8 -11
  136. package/esm2022/dialog/lib/dialog.class.mjs +1 -1
  137. package/esm2022/dialog/lib/dialog.component.mjs +41 -23
  138. package/esm2022/dialog/lib/dialog.module.mjs +10 -8
  139. package/esm2022/dialog/lib/dialog.service.mjs +41 -49
  140. package/esm2022/drawer/lib/drawer-container.component.mjs +9 -13
  141. package/esm2022/drawer/lib/drawer.component.mjs +22 -27
  142. package/esm2022/drawer/lib/drawer.module.mjs +4 -4
  143. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +5 -5
  144. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -4
  145. package/esm2022/form/lib/form-field.component.mjs +9 -12
  146. package/esm2022/form/lib/form.component.mjs +38 -42
  147. package/esm2022/form/lib/form.module.mjs +4 -4
  148. package/esm2022/form/lib/validation-rule.widget.mjs +24 -15
  149. package/esm2022/form/lib/validation-summary.component.mjs +15 -14
  150. package/esm2022/image/lib/image.component.mjs +13 -17
  151. package/esm2022/image/lib/image.module.mjs +4 -4
  152. package/esm2022/label/lib/label.component.mjs +18 -18
  153. package/esm2022/label/lib/label.module.mjs +4 -4
  154. package/esm2022/loading/index.mjs +2 -1
  155. package/esm2022/loading/lib/loading-spinner.component.mjs +4 -5
  156. package/esm2022/loading/lib/loading.component.mjs +22 -25
  157. package/esm2022/loading/lib/loading.config.mjs +17 -0
  158. package/esm2022/loading/lib/loading.directive.mjs +20 -51
  159. package/esm2022/loading/lib/loading.module.mjs +7 -18
  160. package/esm2022/loading/lib/loading.service.mjs +36 -60
  161. package/esm2022/menu/lib/menu.component.mjs +26 -19
  162. package/esm2022/menu/lib/menu.module.mjs +4 -4
  163. package/esm2022/mixin/index.mjs +1 -2
  164. package/esm2022/mixin/lib/base-components.class.mjs +3 -3
  165. package/esm2022/mixin/lib/color-look-mixing.class.mjs +1 -1
  166. package/esm2022/notification/index.mjs +2 -1
  167. package/esm2022/notification/lib/notification.class.mjs +1 -1
  168. package/esm2022/notification/lib/notification.component.mjs +51 -35
  169. package/esm2022/notification/lib/notification.config.mjs +20 -0
  170. package/esm2022/notification/lib/notification.module.mjs +11 -7
  171. package/esm2022/notification/lib/notification.service.mjs +46 -59
  172. package/esm2022/number-box/lib/number-box.component.mjs +101 -90
  173. package/esm2022/number-box/lib/number-box.module.mjs +4 -4
  174. package/esm2022/otp/lib/otp.component.mjs +38 -48
  175. package/esm2022/otp/lib/otp.module.mjs +4 -4
  176. package/esm2022/page/lib/base-page.class.mjs +22 -23
  177. package/esm2022/page/lib/page.component.mjs +13 -13
  178. package/esm2022/page/lib/page.module.mjs +4 -4
  179. package/esm2022/password-box/lib/password-box.component.mjs +37 -25
  180. package/esm2022/password-box/lib/password-box.module.mjs +4 -4
  181. package/esm2022/popover/lib/dropdown-component.class.mjs +3 -3
  182. package/esm2022/popover/lib/popover.component.mjs +62 -23
  183. package/esm2022/popover/lib/popover.module.mjs +4 -4
  184. package/esm2022/popup/index.mjs +2 -1
  185. package/esm2022/popup/lib/popup.component.mjs +49 -69
  186. package/esm2022/popup/lib/popup.interface.mjs +2 -0
  187. package/esm2022/popup/lib/popup.module.mjs +27 -12
  188. package/esm2022/popup/lib/popup.service.mjs +31 -86
  189. package/esm2022/progress-bar/lib/progress-bar.component.mjs +9 -13
  190. package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
  191. package/esm2022/radio/lib/radio.component.mjs +4 -4
  192. package/esm2022/radio/lib/radio.module.mjs +4 -4
  193. package/esm2022/range-slider/lib/range-slider.component.mjs +3 -3
  194. package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
  195. package/esm2022/result/lib/result.component.mjs +3 -3
  196. package/esm2022/result/lib/result.module.mjs +4 -4
  197. package/esm2022/scheduler/acorex-components-scheduler.mjs +5 -0
  198. package/esm2022/scheduler/index.mjs +4 -0
  199. package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +45 -0
  200. package/esm2022/scheduler/lib/scheduler.component.mjs +30 -0
  201. package/esm2022/scheduler/lib/scheduler.module.mjs +26 -0
  202. package/esm2022/search-box/lib/search-box.component.mjs +35 -44
  203. package/esm2022/search-box/lib/search-box.module.mjs +28 -7
  204. package/esm2022/select-box/lib/select-box.component.mjs +11 -9
  205. package/esm2022/select-box/lib/select-box.module.mjs +7 -7
  206. package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
  207. package/esm2022/selection-list/lib/selection-list.module.mjs +6 -6
  208. package/esm2022/switch/lib/switch-content.component.mjs +3 -3
  209. package/esm2022/switch/lib/switch.component.mjs +4 -4
  210. package/esm2022/switch/lib/switch.module.mjs +4 -4
  211. package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
  212. package/esm2022/tabs/lib/tab-item.component.mjs +3 -3
  213. package/esm2022/tabs/lib/tabs.component.mjs +3 -3
  214. package/esm2022/tabs/lib/tabs.module.mjs +4 -4
  215. package/esm2022/tag/lib/tag.component.mjs +3 -3
  216. package/esm2022/tag/lib/tag.module.mjs +4 -4
  217. package/esm2022/text-area/acorex-components-text-area.mjs +5 -0
  218. package/esm2022/text-area/index.mjs +3 -0
  219. package/esm2022/text-area/lib/text-area.component.mjs +36 -0
  220. package/esm2022/text-area/lib/text-area.module.mjs +19 -0
  221. package/esm2022/{checkbox/acorex-components-checkbox.mjs → text-box/acorex-components-text-box.mjs} +1 -1
  222. package/esm2022/text-box/index.mjs +4 -0
  223. package/esm2022/text-box/lib/mask-options.directive.mjs +17 -0
  224. package/esm2022/text-box/lib/text-box.component.mjs +111 -0
  225. package/esm2022/text-box/lib/text-box.module.mjs +38 -0
  226. package/esm2022/time-box/lib/time-box.component.mjs +5 -5
  227. package/esm2022/time-box/lib/time-box.module.mjs +4 -4
  228. package/esm2022/toast/index.mjs +2 -1
  229. package/esm2022/toast/lib/toast.class.mjs +1 -1
  230. package/esm2022/toast/lib/toast.component.mjs +37 -25
  231. package/esm2022/toast/lib/toast.config.mjs +25 -0
  232. package/esm2022/toast/lib/toast.module.mjs +16 -8
  233. package/esm2022/toast/lib/toast.service.mjs +46 -55
  234. package/esm2022/tooltip/lib/tooltip.component.mjs +3 -3
  235. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  236. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  237. package/esm2022/uploader/lib/uploader.component.mjs +3 -3
  238. package/esm2022/uploader/lib/uploader.module.mjs +4 -4
  239. package/fesm2022/acorex-components-action-sheet.mjs +99 -125
  240. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  241. package/fesm2022/acorex-components-alert.mjs +16 -18
  242. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  243. package/fesm2022/acorex-components-avatar.mjs +10 -10
  244. package/fesm2022/acorex-components-badge.mjs +8 -8
  245. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  246. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  247. package/fesm2022/acorex-components-button.mjs +42 -24
  248. package/fesm2022/acorex-components-button.mjs.map +1 -1
  249. package/fesm2022/acorex-components-calendar.mjs +17 -15
  250. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  251. package/fesm2022/acorex-components-check-box.mjs +100 -0
  252. package/fesm2022/acorex-components-check-box.mjs.map +1 -0
  253. package/fesm2022/acorex-components-chips.mjs +7 -7
  254. package/fesm2022/acorex-components-collapse.mjs +10 -10
  255. package/fesm2022/acorex-components-color-palette.mjs +42 -36
  256. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  257. package/fesm2022/acorex-components-color-picker.mjs +16 -10
  258. package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
  259. package/fesm2022/acorex-components-common.mjs +155 -261
  260. package/fesm2022/acorex-components-common.mjs.map +1 -1
  261. package/fesm2022/acorex-components-context-menu.mjs +8 -8
  262. package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
  263. package/fesm2022/acorex-components-data-pager.mjs +214 -228
  264. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  265. package/fesm2022/acorex-components-data-table.mjs +41 -71
  266. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  267. package/fesm2022/acorex-components-date-picker.mjs +25 -22
  268. package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
  269. package/fesm2022/acorex-components-decorators.mjs +80 -283
  270. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  271. package/fesm2022/acorex-components-dialog.mjs +97 -88
  272. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  273. package/fesm2022/acorex-components-drawer.mjs +30 -39
  274. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  275. package/fesm2022/acorex-components-dropdown.mjs +8 -8
  276. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  277. package/fesm2022/acorex-components-form.mjs +80 -77
  278. package/fesm2022/acorex-components-form.mjs.map +1 -1
  279. package/fesm2022/acorex-components-image.mjs +15 -19
  280. package/fesm2022/acorex-components-image.mjs.map +1 -1
  281. package/fesm2022/acorex-components-label.mjs +21 -21
  282. package/fesm2022/acorex-components-label.mjs.map +1 -1
  283. package/fesm2022/acorex-components-loading.mjs +123 -178
  284. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  285. package/fesm2022/acorex-components-menu.mjs +29 -22
  286. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  287. package/fesm2022/acorex-components-mixin.mjs +4 -22
  288. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  289. package/fesm2022/acorex-components-notification.mjs +131 -107
  290. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  291. package/fesm2022/acorex-components-number-box.mjs +106 -96
  292. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  293. package/fesm2022/acorex-components-otp.mjs +40 -50
  294. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  295. package/fesm2022/acorex-components-page.mjs +55 -56
  296. package/fesm2022/acorex-components-page.mjs.map +1 -1
  297. package/fesm2022/acorex-components-password-box.mjs +41 -30
  298. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  299. package/fesm2022/acorex-components-popover.mjs +68 -29
  300. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  301. package/fesm2022/acorex-components-popup.mjs +107 -170
  302. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  303. package/fesm2022/acorex-components-progress-bar.mjs +12 -16
  304. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  305. package/fesm2022/acorex-components-radio.mjs +8 -8
  306. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  307. package/fesm2022/acorex-components-range-slider.mjs +7 -7
  308. package/fesm2022/acorex-components-result.mjs +7 -7
  309. package/fesm2022/acorex-components-scheduler.mjs +98 -0
  310. package/fesm2022/acorex-components-scheduler.mjs.map +1 -0
  311. package/fesm2022/acorex-components-search-box.mjs +61 -49
  312. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  313. package/fesm2022/acorex-components-select-box.mjs +16 -14
  314. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  315. package/fesm2022/acorex-components-selection-list.mjs +8 -8
  316. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  317. package/fesm2022/acorex-components-switch.mjs +11 -11
  318. package/fesm2022/acorex-components-tabs.mjs +13 -13
  319. package/fesm2022/acorex-components-tag.mjs +7 -7
  320. package/fesm2022/acorex-components-text-area.mjs +59 -0
  321. package/fesm2022/acorex-components-text-area.mjs.map +1 -0
  322. package/fesm2022/{acorex-components-textbox.mjs → acorex-components-text-box.mjs} +20 -20
  323. package/fesm2022/acorex-components-text-box.mjs.map +1 -0
  324. package/fesm2022/acorex-components-time-box.mjs +8 -8
  325. package/fesm2022/acorex-components-time-box.mjs.map +1 -1
  326. package/fesm2022/acorex-components-toast.mjs +126 -94
  327. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  328. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  329. package/fesm2022/acorex-components-uploader.mjs +7 -7
  330. package/form/lib/form-field.component.d.ts +2 -4
  331. package/form/lib/form.component.d.ts +12 -17
  332. package/form/lib/validation-rule.widget.d.ts +9 -6
  333. package/form/lib/validation-summary.component.d.ts +7 -9
  334. package/image/lib/image.component.d.ts +7 -13
  335. package/label/lib/label.component.d.ts +4 -7
  336. package/loading/index.d.ts +1 -0
  337. package/loading/lib/loading.component.d.ts +9 -12
  338. package/loading/lib/loading.config.d.ts +8 -0
  339. package/loading/lib/loading.directive.d.ts +10 -17
  340. package/loading/lib/loading.module.d.ts +1 -2
  341. package/loading/lib/loading.service.d.ts +10 -33
  342. package/menu/lib/menu.component.d.ts +4 -2
  343. package/mixin/index.d.ts +0 -1
  344. package/mixin/lib/base-components.class.d.ts +2 -2
  345. package/mixin/lib/base-menu-mixin.class.d.ts +5 -5
  346. package/mixin/lib/button-mixin.class.d.ts +2 -2
  347. package/mixin/lib/clickable-mixin.class.d.ts +2 -2
  348. package/mixin/lib/color-look-mixing.class.d.ts +3 -3
  349. package/mixin/lib/datalist-component.class.d.ts +10 -10
  350. package/mixin/lib/dropdown-mixin.class.d.ts +2 -2
  351. package/mixin/lib/interactive-mixin.class.d.ts +4 -4
  352. package/mixin/lib/mixin.class.d.ts +61 -61
  353. package/mixin/lib/page-component.class.d.ts +2 -2
  354. package/mixin/lib/selection-component.class.d.ts +2 -2
  355. package/mixin/lib/sizable-mixin.class.d.ts +2 -2
  356. package/mixin/lib/textbox-mixin.class.d.ts +2 -2
  357. package/mixin/lib/value-mixin.class.d.ts +8 -8
  358. package/notification/index.d.ts +1 -0
  359. package/notification/lib/notification.class.d.ts +29 -7
  360. package/notification/lib/notification.component.d.ts +13 -14
  361. package/notification/lib/notification.config.d.ts +13 -0
  362. package/notification/lib/notification.module.d.ts +4 -1
  363. package/notification/lib/notification.service.d.ts +5 -9
  364. package/number-box/lib/number-box.component.d.ts +12 -17
  365. package/otp/lib/otp.component.d.ts +7 -14
  366. package/package.json +41 -38
  367. package/page/lib/base-page.class.d.ts +8 -12
  368. package/page/lib/page.component.d.ts +4 -4
  369. package/password-box/lib/password-box.component.d.ts +8 -11
  370. package/popover/lib/popover.component.d.ts +13 -5
  371. package/popup/index.d.ts +1 -0
  372. package/popup/lib/popup.component.d.ts +14 -19
  373. package/popup/lib/popup.interface.d.ts +26 -0
  374. package/popup/lib/popup.module.d.ts +4 -4
  375. package/popup/lib/popup.service.d.ts +4 -25
  376. package/progress-bar/lib/progress-bar.component.d.ts +3 -8
  377. package/scheduler/README.md +3 -0
  378. package/scheduler/index.d.ts +3 -0
  379. package/scheduler/lib/scheduler-month-view.component.d.ts +20 -0
  380. package/scheduler/lib/scheduler.component.d.ts +11 -0
  381. package/scheduler/lib/scheduler.module.d.ts +13 -0
  382. package/search-box/lib/search-box.component.d.ts +8 -16
  383. package/search-box/lib/search-box.module.d.ts +7 -5
  384. package/select-box/lib/select-box.module.d.ts +2 -2
  385. package/selection-list/lib/selection-list.module.d.ts +1 -1
  386. package/tabs/lib/tab-item.component.d.ts +2 -2
  387. package/text-area/README.md +3 -0
  388. package/text-area/index.d.ts +2 -0
  389. package/text-area/lib/text-area.component.d.ts +11 -0
  390. package/text-area/lib/text-area.module.d.ts +9 -0
  391. package/text-box/README.md +3 -0
  392. package/text-box/index.d.ts +3 -0
  393. package/{textbox/lib/textbox.component.d.ts → text-box/lib/text-box.component.d.ts} +1 -3
  394. package/{textbox/lib/textbox.module.d.ts → text-box/lib/text-box.module.d.ts} +1 -1
  395. package/time-box/lib/time-box.component.d.ts +1 -1
  396. package/toast/index.d.ts +1 -0
  397. package/toast/lib/toast.class.d.ts +14 -5
  398. package/toast/lib/toast.component.d.ts +13 -12
  399. package/toast/lib/toast.config.d.ts +12 -0
  400. package/toast/lib/toast.module.d.ts +4 -1
  401. package/toast/lib/toast.service.d.ts +5 -9
  402. package/action-sheet/lib/action-sheet.interface.d.ts +0 -21
  403. package/checkbox/README.md +0 -3
  404. package/checkbox/index.d.ts +0 -2
  405. package/checkbox/lib/checkbox.component.d.ts +0 -18
  406. package/common/lib/directives/debounce-time.directive.d.ts +0 -17
  407. package/common/lib/services/custom-cdk-overlay.service.d.ts +0 -19
  408. package/common/lib/services/overlay.service.d.ts +0 -34
  409. package/data-table/lib/data-column-cell-template.directive.d.ts +0 -8
  410. package/decorators/lib/content.component.d.ts +0 -9
  411. package/decorators/lib/divider.component.d.ts +0 -5
  412. package/decorators/lib/footer.component.d.ts +0 -9
  413. package/decorators/lib/form-hint.component.d.ts +0 -8
  414. package/decorators/lib/header.component.d.ts +0 -9
  415. package/decorators/lib/overlay.component.d.ts +0 -6
  416. package/decorators/lib/placeholder.component.d.ts +0 -5
  417. package/decorators/lib/prefix.component.d.ts +0 -9
  418. package/decorators/lib/sub-title.component.d.ts +0 -9
  419. package/decorators/lib/suffix.component.d.ts +0 -9
  420. package/decorators/lib/text.component.d.ts +0 -9
  421. package/decorators/lib/title.component.d.ts +0 -8
  422. package/esm2022/action-sheet/lib/action-sheet.interface.mjs +0 -2
  423. package/esm2022/checkbox/index.mjs +0 -3
  424. package/esm2022/checkbox/lib/checkbox.component.mjs +0 -65
  425. package/esm2022/checkbox/lib/checkbox.module.mjs +0 -21
  426. package/esm2022/common/lib/directives/debounce-time.directive.mjs +0 -48
  427. package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +0 -49
  428. package/esm2022/common/lib/services/overlay.service.mjs +0 -113
  429. package/esm2022/data-table/lib/data-column-cell-template.directive.mjs +0 -17
  430. package/esm2022/decorators/lib/content.component.mjs +0 -26
  431. package/esm2022/decorators/lib/divider.component.mjs +0 -17
  432. package/esm2022/decorators/lib/footer.component.mjs +0 -26
  433. package/esm2022/decorators/lib/form-hint.component.mjs +0 -20
  434. package/esm2022/decorators/lib/header.component.mjs +0 -26
  435. package/esm2022/decorators/lib/overlay.component.mjs +0 -22
  436. package/esm2022/decorators/lib/placeholder.component.mjs +0 -14
  437. package/esm2022/decorators/lib/prefix.component.mjs +0 -26
  438. package/esm2022/decorators/lib/sub-title.component.mjs +0 -26
  439. package/esm2022/decorators/lib/suffix.component.mjs +0 -26
  440. package/esm2022/decorators/lib/text.component.mjs +0 -21
  441. package/esm2022/decorators/lib/title.component.mjs +0 -20
  442. package/esm2022/mixin/lib/loading-mixin.class.mjs +0 -18
  443. package/esm2022/textarea/acorex-components-textarea.mjs +0 -5
  444. package/esm2022/textarea/index.mjs +0 -3
  445. package/esm2022/textarea/lib/textarea.component.mjs +0 -37
  446. package/esm2022/textarea/lib/textarea.module.mjs +0 -19
  447. package/esm2022/textbox/acorex-components-textbox.mjs +0 -5
  448. package/esm2022/textbox/index.mjs +0 -4
  449. package/esm2022/textbox/lib/mask-options.directive.mjs +0 -17
  450. package/esm2022/textbox/lib/textbox.component.mjs +0 -111
  451. package/esm2022/textbox/lib/textbox.module.mjs +0 -38
  452. package/fesm2022/acorex-components-checkbox.mjs +0 -89
  453. package/fesm2022/acorex-components-checkbox.mjs.map +0 -1
  454. package/fesm2022/acorex-components-textarea.mjs +0 -60
  455. package/fesm2022/acorex-components-textarea.mjs.map +0 -1
  456. package/fesm2022/acorex-components-textbox.mjs.map +0 -1
  457. package/mixin/lib/loading-mixin.class.d.ts +0 -40
  458. package/textarea/README.md +0 -3
  459. package/textarea/index.d.ts +0 -2
  460. package/textarea/lib/textarea.component.d.ts +0 -14
  461. package/textarea/lib/textarea.module.d.ts +0 -9
  462. package/textbox/README.md +0 -3
  463. package/textbox/index.d.ts +0 -3
  464. /package/{textbox → text-box}/lib/mask-options.directive.d.ts +0 -0
@@ -1,19 +1,14 @@
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, noop, merge } from 'rxjs';
5
- import * as i3 from '@angular/common';
2
+ import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Output } from '@angular/core';
6
3
  import { DOCUMENT } from '@angular/common';
7
- import * as i1$1 from '@angular/platform-browser';
4
+ import * as i1 from '@angular/platform-browser';
8
5
  import { Observable } from 'rxjs/internal/Observable';
6
+ import { fromEvent, noop, skip, distinctUntilChanged, debounceTime } from 'rxjs';
9
7
  import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
10
8
  import { classes } from 'polytype';
11
9
  import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
12
10
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
13
- import * as i1$2 from '@angular/cdk/overlay';
14
- import { OverlayContainer, Overlay } from '@angular/cdk/overlay';
15
- import * as i2 from '@angular/cdk/bidi';
16
- import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
11
+ import * as i1$1 from '@angular/forms';
17
12
 
18
13
  /**
19
14
  * Contains native event
@@ -118,45 +113,52 @@ class AXComponentClosedPromise extends Promise {
118
113
  }
119
114
  }
120
115
  class AXComponent {
121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
122
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXComponent }); }
116
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
117
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXComponent }); }
123
118
  }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXComponent, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXComponent, decorators: [{
125
120
  type: Injectable
126
121
  }] });
127
122
  class AXClosbaleComponent extends AXComponent {
128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
129
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXClosbaleComponent }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
124
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClosbaleComponent }); }
130
125
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXClosbaleComponent, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClosbaleComponent, decorators: [{
127
+ type: Injectable
128
+ }] });
129
+ class AXClearableComponent extends AXComponent {
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClearableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
131
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClearableComponent }); }
132
+ }
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXClearableComponent, decorators: [{
132
134
  type: Injectable
133
135
  }] });
134
136
  class AXSearchableComponent extends AXComponent {
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
136
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXSearchableComponent }); }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
138
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXSearchableComponent }); }
137
139
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXSearchableComponent, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXSearchableComponent, decorators: [{
139
141
  type: Injectable
140
142
  }] });
141
143
  class AXValuableComponent extends AXComponent {
142
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
143
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXValuableComponent }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
145
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXValuableComponent }); }
144
146
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXValuableComponent, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXValuableComponent, decorators: [{
146
148
  type: Injectable
147
149
  }] });
148
150
  class AXFocusableComponent extends AXComponent {
149
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
150
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXFocusableComponent }); }
151
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
152
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXFocusableComponent }); }
151
153
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXFocusableComponent, decorators: [{
154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXFocusableComponent, decorators: [{
153
155
  type: Injectable
154
156
  }] });
155
157
  class AXPagedComponent extends AXComponent {
156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
157
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXPagedComponent }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
159
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXPagedComponent }); }
158
160
  }
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXPagedComponent, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXPagedComponent, decorators: [{
160
162
  type: Injectable
161
163
  }] });
162
164
 
@@ -164,15 +166,24 @@ const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'dan
164
166
  const AX_LOCATIONS = ['bottom-start', 'bottom-center', 'bottom-end', 'top-start', 'top-center', 'top-end', 'center-end', 'center-start'];
165
167
  const AX_DIRECTIONS = ['vertical', 'horizontal'];
166
168
 
169
+ ;
170
+
167
171
  class AXAutoFocusDirective {
168
- constructor(el, _host) {
172
+ constructor(renderer, el, _host) {
173
+ this.renderer = renderer;
169
174
  this.el = el;
170
175
  this._host = _host;
171
176
  this.autoFocus = true;
172
- this.time = 100;
177
+ this.time = 50;
173
178
  }
174
- ngAfterContentInit() {
179
+ ngAfterViewInit() {
175
180
  if (this.autoFocus) {
181
+ if (this._host) {
182
+ setTimeout(() => {
183
+ this._host.focus();
184
+ }, this.time);
185
+ return;
186
+ }
176
187
  const list = [
177
188
  'button',
178
189
  'input',
@@ -187,22 +198,22 @@ class AXAutoFocusDirective {
187
198
  focusable.setAttributeNode(attr);
188
199
  const hasTabindex = focusable.hasAttribute('tabindex');
189
200
  if (!hasTabindex) {
190
- focusable.setAttribute('tabIndex', '0');
201
+ focusable.setAttribute('tabindex', '0');
191
202
  }
192
203
  setTimeout(() => {
193
204
  focusable.focus();
194
- }, 100);
205
+ }, this.time);
195
206
  }
196
207
  }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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.6", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
208
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
209
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
199
210
  }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
201
212
  type: Directive,
202
213
  args: [{
203
214
  selector: '[axAutoFocus]',
204
215
  }]
205
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
216
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
206
217
  type: Host
207
218
  }, {
208
219
  type: Self
@@ -216,49 +227,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
216
227
  args: ['focus-time']
217
228
  }] } });
218
229
 
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.6", 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.6", 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.6", 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
230
  class AXHotkeysService {
263
231
  constructor(eventManager, document) {
264
232
  this.eventManager = eventManager;
@@ -288,13 +256,13 @@ class AXHotkeysService {
288
256
  }
289
257
  });
290
258
  }
291
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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.6", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
259
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
260
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
293
261
  }
294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXHotkeysService, decorators: [{
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXHotkeysService, decorators: [{
295
263
  type: Injectable,
296
264
  args: [{ providedIn: 'root' }]
297
- }], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
265
+ }], ctorParameters: function () { return [{ type: i1.EventManager }, { type: Document, decorators: [{
298
266
  type: Inject,
299
267
  args: [DOCUMENT]
300
268
  }] }]; } });
@@ -355,10 +323,10 @@ class AXHotkeyDirective {
355
323
  s.unsubscribe();
356
324
  });
357
325
  }
358
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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.6", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
326
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
327
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
360
328
  }
361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXHotkeyDirective, decorators: [{
329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXHotkeyDirective, decorators: [{
362
330
  type: Directive,
363
331
  args: [{
364
332
  selector: '[hotkey]',
@@ -417,10 +385,10 @@ class AXInfiniteScrollerDirective {
417
385
  }));
418
386
  //.subscribe((data) => { console.log(data) }, (err) => console.log(err));
419
387
  }
420
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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.6", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
388
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
389
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
422
390
  }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
424
392
  type: Directive,
425
393
  args: [{
426
394
  selector: '[axInfiniteScroller]'
@@ -460,28 +428,26 @@ class AXResponsiveDirective {
460
428
  this._observer?.disconnect();
461
429
  this._observer?.unobserve(this._elementRef.nativeElement);
462
430
  }
463
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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.6", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
431
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
432
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
465
433
  }
466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXResponsiveDirective, decorators: [{
434
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXResponsiveDirective, decorators: [{
467
435
  type: Directive,
468
436
  args: [{ selector: '[ax-responsive]' }]
469
437
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
470
438
 
471
439
  class AXCommonModule {
472
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
473
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
440
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
441
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
474
442
  AXInfiniteScrollerDirective,
475
- AXNgModelChangeDebouncedDirective,
476
443
  AXAutoFocusDirective,
477
444
  AXHotkeyDirective], exports: [AXResponsiveDirective,
478
445
  AXInfiniteScrollerDirective,
479
446
  AXAutoFocusDirective,
480
- AXNgModelChangeDebouncedDirective,
481
447
  AXHotkeyDirective] }); }
482
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule }); }
448
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXCommonModule }); }
483
449
  }
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule, decorators: [{
450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXCommonModule, decorators: [{
485
451
  type: NgModule,
486
452
  args: [{
487
453
  imports: [],
@@ -489,13 +455,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
489
455
  AXResponsiveDirective,
490
456
  AXInfiniteScrollerDirective,
491
457
  AXAutoFocusDirective,
492
- AXNgModelChangeDebouncedDirective,
493
458
  AXHotkeyDirective,
494
459
  ],
495
460
  declarations: [
496
461
  AXResponsiveDirective,
497
462
  AXInfiniteScrollerDirective,
498
- AXNgModelChangeDebouncedDirective,
499
463
  AXAutoFocusDirective,
500
464
  AXHotkeyDirective,
501
465
  ],
@@ -503,12 +467,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
503
467
  }]
504
468
  }] });
505
469
 
470
+ class AXDomService {
471
+ generateElementId() {
472
+ const dateString = Date.now().toString(36);
473
+ const randomness = Math.random().toString(36).substr(2);
474
+ return dateString + randomness;
475
+ }
476
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXDomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
477
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXDomService, providedIn: 'root' }); }
478
+ }
479
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXDomService, decorators: [{
480
+ type: Injectable,
481
+ args: [{ providedIn: 'root' }]
482
+ }] });
483
+
506
484
  class MXBaseComponent {
507
- constructor() {
508
- this._cdr = inject(ChangeDetectorRef);
509
- this._elementRef = inject(ElementRef);
510
- this._viewRef = inject(ViewContainerRef);
511
- this.onOptionChanged = new EventEmitter();
485
+ get id() {
486
+ return this._id;
487
+ }
488
+ set id(v) {
489
+ this._id = v;
512
490
  }
513
491
  get cdr() {
514
492
  return this._cdr;
@@ -524,7 +502,16 @@ class MXBaseComponent {
524
502
  }
525
503
  internalOptionChanged(option) {
526
504
  }
527
- init() {
505
+ /**
506
+ * @ignore
507
+ */
508
+ constructor() {
509
+ this._cdr = inject(ChangeDetectorRef);
510
+ this._elementRef = inject(ElementRef);
511
+ this._viewRef = inject(ViewContainerRef);
512
+ this._domService = inject(AXDomService);
513
+ this._id = this._domService.generateElementId();
514
+ this.onOptionChanged = new EventEmitter();
528
515
  this.getHostElement().__axContext__ = this;
529
516
  }
530
517
  setOption(option) {
@@ -562,12 +549,12 @@ class MXBaseComponent {
562
549
  set rtl(value) {
563
550
  this.setOption({ name: 'rtl', value });
564
551
  }
565
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
566
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXBaseComponent }); }
552
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
553
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXBaseComponent }); }
567
554
  }
568
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXBaseComponent, decorators: [{
555
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXBaseComponent, decorators: [{
569
556
  type: Injectable
570
- }] });
557
+ }], ctorParameters: function () { return []; } });
571
558
  const BASE_INPUTS = ['rtl'];
572
559
  const BASE_OUTPUT = [];
573
560
 
@@ -799,12 +786,16 @@ class MXValueComponent extends MXInteractiveComponent {
799
786
  * @event
800
787
  */
801
788
  this.onValueChanged = new EventEmitter();
789
+ /**
790
+ * @deprecated The event should not be used, use ngModelChange instead
791
+ */
802
792
  this.valueChange = new EventEmitter();
803
793
  this.stateChange = new EventEmitter();
804
794
  this.readonlyChange = new EventEmitter();
805
795
  this._readonly = false;
806
796
  this._dirty = false;
807
797
  this._isUserInteraction = false;
798
+ //stateChange:EventEmitter<string> = new EventEmitter<string>();
808
799
  this._state = 'clear';
809
800
  this.onChangeCallback = noop;
810
801
  }
@@ -836,6 +827,9 @@ class MXValueComponent extends MXInteractiveComponent {
836
827
  markAsDirty() {
837
828
  this._dirty = true;
838
829
  }
830
+ /**
831
+ * @deprecated The property should not be used, use ngModel instead
832
+ */
839
833
  get value() {
840
834
  return this.internalGetValue(this._value) ?? this.defaultValue;
841
835
  }
@@ -878,11 +872,8 @@ class MXValueComponent extends MXInteractiveComponent {
878
872
  internalGetValue(value) {
879
873
  return value;
880
874
  }
881
- internalValueChanged(value) {
882
- }
883
- ;
875
+ internalValueChanged(value) { }
884
876
  ngOnInit() {
885
- super.init();
886
877
  this.getHostElement().setAttribute('ax-form-input', 'true');
887
878
  }
888
879
  ngAfterViewInit() {
@@ -1002,10 +993,14 @@ class MXValueComponent extends MXInteractiveComponent {
1002
993
  }
1003
994
  this.writeValue(value);
1004
995
  }
1005
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1006
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXValueComponent }); }
996
+ clear(e) {
997
+ this.commitValue(null, e);
998
+ this.setState('clear');
999
+ }
1000
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1001
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXValueComponent }); }
1007
1002
  }
1008
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXValueComponent, decorators: [{
1003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXValueComponent, decorators: [{
1009
1004
  type: Injectable
1010
1005
  }] });
1011
1006
 
@@ -1046,10 +1041,10 @@ class MXInputBaseValueComponent extends MXValueComponent {
1046
1041
  nativeEvent: e
1047
1042
  });
1048
1043
  }
1049
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1050
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXInputBaseValueComponent }); }
1044
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1045
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXInputBaseValueComponent }); }
1051
1046
  }
1052
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
1047
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
1053
1048
  type: Injectable
1054
1049
  }] });
1055
1050
 
@@ -1128,154 +1123,53 @@ const AXPositions = {
1128
1123
  },
1129
1124
  };
1130
1125
 
1131
- class DynamicOverlayContainer extends OverlayContainer {
1132
- setContainerElement(containerElement) {
1133
- this._containerElement = containerElement;
1126
+ class AXNgModelDelayedValueChangedDirective {
1127
+ get delayTime() {
1128
+ return this._delayTime;
1129
+ }
1130
+ set delayTime(v) {
1131
+ if (v != this._delayTime) {
1132
+ this._delayTime = v;
1133
+ this.delayTimeChange.emit(v);
1134
+ this.update();
1135
+ }
1134
1136
  }
1135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1136
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
1137
- }
1138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1139
- type: Injectable,
1140
- args: [{
1141
- providedIn: 'root',
1142
- }]
1143
- }] });
1144
- class DynamicOverlay extends Overlay {
1145
- constructor(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, rendererFactory, _location, _outsideClickDispatcher) {
1146
- super(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher);
1147
- this.renderer = rendererFactory.createRenderer(null, null);
1148
- this._dynamicOverlayContainer = _overlayContainer;
1149
- }
1150
- setContainerElement(containerElement) {
1151
- this.renderer.setStyle(containerElement, 'transform', 'translateZ(0)');
1152
- this._dynamicOverlayContainer.setContainerElement(containerElement);
1153
- }
1154
- createOn(containerElement, config) {
1155
- this.setContainerElement(containerElement);
1156
- return super.create(config);
1157
- }
1158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", 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 }); }
1159
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
1137
+ ngOnDestroy() {
1138
+ this.subscription.unsubscribe();
1139
+ }
1140
+ constructor(ngModel) {
1141
+ this.ngModel = ngModel;
1142
+ this.delayedValueChanged = new EventEmitter();
1143
+ this.delayTimeChange = new EventEmitter();
1144
+ this._delayTime = 0;
1145
+ this.delayTime = 0;
1146
+ }
1147
+ update() {
1148
+ this.subscription?.unsubscribe();
1149
+ //
1150
+ this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
1151
+ distinctUntilChanged(), debounceTime(this.delayTime)).subscribe((value) => this.delayedValueChanged.emit(value));
1152
+ }
1153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, deps: [{ token: i1$1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
1154
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.8", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[delayedValueChanged]", inputs: { delayTime: "delayTime" }, outputs: { delayedValueChanged: "delayedValueChanged", delayTimeChange: "delayTimeChange" }, ngImport: i0 }); }
1160
1155
  }
1161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlay, decorators: [{
1162
- type: Injectable,
1156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, decorators: [{
1157
+ type: Directive,
1163
1158
  args: [{
1164
- providedIn: 'root',
1159
+ selector: '[delayedValueChanged]',
1160
+ standalone: true
1165
1161
  }]
1166
- }], ctorParameters: function () { return [{ type: i1$2.ScrollStrategyOptions }, { type: DynamicOverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i1$2.OverlayPositionBuilder }, { type: i1$2.OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
1167
- type: Inject,
1168
- args: [DOCUMENT]
1169
- }] }, { type: i2.Directionality }, { type: i0.RendererFactory2 }, { type: i3.Location }, { type: i1$2.OverlayOutsideClickDispatcher }]; } });
1170
-
1171
- class AXOverlayService {
1172
- constructor(overlayService, overlayService2, appRef) {
1173
- this.overlayService = overlayService;
1174
- this.overlayService2 = overlayService2;
1175
- this.appRef = appRef;
1176
- }
1177
- position() {
1178
- return this.overlayService.position();
1179
- }
1180
- show(content, context, configs) {
1181
- configs = Object.assign({
1182
- hasBackdrop: true,
1183
- transparentBackdrop: true,
1184
- closeOnClickOutside: true,
1185
- }, configs || {});
1186
- // get root viewref
1187
- const viewRef = this.appRef.components[0].instance.viewRef;
1188
- // let portal: Portal<any>;
1189
- // get component by route
1190
- if (typeof content === 'string') {
1191
- // TODO: ???
1192
- }
1193
- // create portal from component
1194
- else if (content instanceof TemplateRef) {
1195
- this.portal = new TemplatePortal(content, viewRef, context);
1196
- }
1197
- else if (typeof content === 'function') {
1198
- this.portal = new ComponentPortal(content, viewRef);
1199
- }
1200
- let positionStrategy;
1201
- if (configs.position && configs.targetElement) {
1202
- const p = Array.isArray(configs.position)
1203
- ? configs.position
1204
- : [configs.position];
1205
- positionStrategy = this.overlayService
1206
- .position()
1207
- .flexibleConnectedTo(configs.targetElement)
1208
- .withPositions(p)
1209
- .withPush(true);
1210
- }
1211
- else {
1212
- positionStrategy = configs.position
1213
- ? configs.position
1214
- : this.overlayService
1215
- .position()
1216
- .global()
1217
- .centerHorizontally()
1218
- .centerVertically();
1219
- }
1220
- let scrollStrategy = this.overlayService.scrollStrategies.reposition({ autoClose: true });
1221
- if (configs.scroll === 'block') {
1222
- scrollStrategy = this.overlayService.scrollStrategies.block();
1223
- }
1224
- if (configs.scroll === 'close') {
1225
- scrollStrategy = this.overlayService.scrollStrategies.close();
1226
- }
1227
- const config = {
1228
- positionStrategy,
1229
- scrollStrategy,
1230
- hasBackdrop: configs.hasBackdrop,
1231
- disposeOnNavigation: true,
1232
- backdropClass: configs.backdropClass
1233
- ? configs.backdropClass
1234
- : configs.transparentBackdrop
1235
- ? 'cdk-overlay-transparent-backdrop'
1236
- : undefined,
1237
- panelClass: configs.panelClass
1238
- ? configs.panelClass
1239
- : ['ax-animate-animated', 'ax-animate-zoomIn', 'ax-animate-faster'],
1240
- };
1241
- let overlayRef = configs.containerElement
1242
- ? this.overlayService.createOn(configs.containerElement, config)
1243
- : this.overlayService2.create(config);
1244
- const host = overlayRef.attach(this.portal);
1245
- if (host.instance) {
1246
- Object.assign(host.instance, context);
1247
- setTimeout(() => {
1248
- host.changeDetectorRef.detectChanges();
1249
- }, 0);
1250
- }
1251
- if (configs.closeOnClickOutside) {
1252
- merge(overlayRef.backdropClick(), overlayRef.detachments()).subscribe(() => {
1253
- overlayRef.dispose();
1254
- overlayRef = undefined;
1255
- if (configs.onBackdropClick) {
1256
- configs.onBackdropClick();
1257
- }
1258
- });
1259
- }
1260
- return {
1261
- instance: host.instance,
1262
- dispose: overlayRef.dispose.bind(overlayRef),
1263
- isOpen: () => {
1264
- return overlayRef.hasAttached();
1265
- },
1266
- };
1267
- }
1268
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
1269
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
1270
- }
1271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXOverlayService, decorators: [{
1272
- type: Injectable,
1273
- args: [{ providedIn: 'root' }]
1274
- }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
1162
+ }], ctorParameters: function () { return [{ type: i1$1.NgModel }]; }, propDecorators: { delayedValueChanged: [{
1163
+ type: Output
1164
+ }], delayTimeChange: [{
1165
+ type: Output
1166
+ }], delayTime: [{
1167
+ type: Input
1168
+ }] } });
1275
1169
 
1276
1170
  /**
1277
1171
  * Generated bundle index. Do not edit.
1278
1172
  */
1279
1173
 
1280
- 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, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXValueComponent, TAB_META_KEY };
1174
+ export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXDomService, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent, 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, INTERACTIVE_INPUTS, INTERACTIVE_OUTPUT, LOOK_INPUTS, LOOK_OUTPUT, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXValueComponent, TAB_META_KEY };
1281
1175
  //# sourceMappingURL=acorex-components-common.mjs.map