@acorex/components 7.2.7 → 7.2.8

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 (275) hide show
  1. package/alert/lib/alert.component.d.ts +2 -1
  2. package/button/lib/button-group.component.d.ts +6 -6
  3. package/button/lib/button-item.component.d.ts +6 -6
  4. package/calendar/lib/calendar.component.d.ts +1 -0
  5. package/checkbox/lib/checkbox.component.d.ts +4 -3
  6. package/chips/lib/chips.component.d.ts +2 -2
  7. package/color-palette/lib/color-palette-input.component.d.ts +9 -6
  8. package/color-palette/lib/color-palette-picker.component.d.ts +10 -5
  9. package/color-palette/lib/color-palette-preview.component.d.ts +8 -4
  10. package/color-palette/lib/color-palette-swatches.component.d.ts +9 -6
  11. package/color-palette/lib/color-palette.class.d.ts +12 -6
  12. package/color-palette/lib/color-palette.component.d.ts +3 -15
  13. package/color-palette/lib/color-palette.module.d.ts +9 -8
  14. package/color-picker/lib/color-picker.component.d.ts +16 -16
  15. package/common/index.d.ts +1 -0
  16. package/common/lib/classes/components.class.d.ts +2 -1
  17. package/common/lib/components/base-component.class.d.ts +4 -2
  18. package/common/lib/components/input-base-value-component.class.d.ts +26 -0
  19. package/common/lib/components/interactive-component.class.d.ts +7 -0
  20. package/common/lib/components/value-component.class.d.ts +15 -8
  21. package/drawer/lib/drawer.component.d.ts +1 -1
  22. package/esm2022/acorex-components.mjs +1 -1
  23. package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
  24. package/esm2022/action-sheet/lib/action-sheet.module.mjs +4 -4
  25. package/esm2022/action-sheet/lib/action-sheet.service.mjs +3 -3
  26. package/esm2022/alert/lib/alert.component.mjs +12 -11
  27. package/esm2022/alert/lib/alert.module.mjs +4 -4
  28. package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
  29. package/esm2022/avatar/lib/avatar.component.mjs +3 -3
  30. package/esm2022/avatar/lib/avatar.module.mjs +4 -4
  31. package/esm2022/badge/lib/badge.component.mjs +5 -5
  32. package/esm2022/badge/lib/badge.module.mjs +4 -4
  33. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
  34. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  35. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
  36. package/esm2022/button/lib/button-group.component.mjs +3 -3
  37. package/esm2022/button/lib/button-item.component.mjs +3 -3
  38. package/esm2022/button/lib/button.component.mjs +3 -3
  39. package/esm2022/button/lib/button.module.mjs +4 -4
  40. package/esm2022/calendar/lib/calendar-range.component.mjs +3 -3
  41. package/esm2022/calendar/lib/calendar.class.mjs +3 -3
  42. package/esm2022/calendar/lib/calendar.component.mjs +15 -14
  43. package/esm2022/calendar/lib/calendar.module.mjs +4 -4
  44. package/esm2022/checkbox/lib/checkbox.component.mjs +28 -12
  45. package/esm2022/checkbox/lib/checkbox.module.mjs +4 -4
  46. package/esm2022/chips/lib/chips.component.mjs +7 -6
  47. package/esm2022/chips/lib/chips.module.mjs +4 -4
  48. package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
  49. package/esm2022/collapse/lib/collapse.component.mjs +3 -3
  50. package/esm2022/collapse/lib/collapse.module.mjs +4 -4
  51. package/esm2022/color-palette/lib/color-palette-input.component.mjs +56 -71
  52. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +63 -58
  53. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +30 -25
  54. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +32 -246
  55. package/esm2022/color-palette/lib/color-palette.class.mjs +229 -8
  56. package/esm2022/color-palette/lib/color-palette.component.mjs +32 -47
  57. package/esm2022/color-palette/lib/color-palette.module.mjs +9 -6
  58. package/esm2022/color-picker/lib/color-picker.component.mjs +3 -3
  59. package/esm2022/color-picker/lib/color-picker.module.mjs +4 -4
  60. package/esm2022/common/index.mjs +2 -1
  61. package/esm2022/common/lib/classes/components.class.mjs +19 -19
  62. package/esm2022/common/lib/common.module.mjs +4 -4
  63. package/esm2022/common/lib/components/base-component.class.mjs +9 -6
  64. package/esm2022/common/lib/components/input-base-value-component.class.mjs +47 -0
  65. package/esm2022/common/lib/components/interactive-component.class.mjs +31 -4
  66. package/esm2022/common/lib/components/value-component.class.mjs +47 -31
  67. package/esm2022/common/lib/directives/auto-focus.directive.mjs +3 -3
  68. package/esm2022/common/lib/directives/debounce-time.directive.mjs +3 -3
  69. package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
  70. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
  71. package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
  72. package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +6 -6
  73. package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
  74. package/esm2022/common/lib/services/overlay.service.mjs +3 -3
  75. package/esm2022/context-menu/lib/context-menu.component.mjs +3 -3
  76. package/esm2022/context-menu/lib/context-menu.module.mjs +4 -4
  77. package/esm2022/data-pager/lib/data-pager-base.component.mjs +6 -6
  78. package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
  79. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +3 -3
  80. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +3 -3
  81. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +3 -3
  82. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +3 -3
  83. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +3 -3
  84. package/esm2022/data-pager/lib/data-pager.component.mjs +3 -3
  85. package/esm2022/data-pager/lib/data-pager.module.mjs +4 -4
  86. package/esm2022/data-table/lib/data-column-cell-template.directive.mjs +3 -3
  87. package/esm2022/data-table/lib/data-column.directive.mjs +3 -3
  88. package/esm2022/data-table/lib/data-table.component.mjs +3 -3
  89. package/esm2022/data-table/lib/data-table.module.mjs +4 -4
  90. package/esm2022/date-picker/lib/datepicker.component.mjs +3 -3
  91. package/esm2022/date-picker/lib/datepicker.module.mjs +4 -4
  92. package/esm2022/decorators/lib/close-button.component.mjs +3 -3
  93. package/esm2022/decorators/lib/content.component.mjs +3 -3
  94. package/esm2022/decorators/lib/decorators.module.mjs +4 -4
  95. package/esm2022/decorators/lib/divider.component.mjs +3 -3
  96. package/esm2022/decorators/lib/footer.component.mjs +3 -3
  97. package/esm2022/decorators/lib/form-hint.component.mjs +3 -3
  98. package/esm2022/decorators/lib/header.component.mjs +3 -3
  99. package/esm2022/decorators/lib/icon.component.mjs +3 -3
  100. package/esm2022/decorators/lib/overlay.component.mjs +3 -3
  101. package/esm2022/decorators/lib/placeholder.component.mjs +3 -3
  102. package/esm2022/decorators/lib/prefix.component.mjs +3 -3
  103. package/esm2022/decorators/lib/sub-title.component.mjs +3 -3
  104. package/esm2022/decorators/lib/suffix.component.mjs +3 -3
  105. package/esm2022/decorators/lib/text.component.mjs +3 -3
  106. package/esm2022/decorators/lib/title.component.mjs +3 -3
  107. package/esm2022/dialog/lib/dialog.component.mjs +3 -3
  108. package/esm2022/dialog/lib/dialog.module.mjs +4 -4
  109. package/esm2022/dialog/lib/dialog.service.mjs +3 -3
  110. package/esm2022/drawer/lib/drawer-container.component.mjs +3 -3
  111. package/esm2022/drawer/lib/drawer.component.mjs +6 -5
  112. package/esm2022/drawer/lib/drawer.module.mjs +4 -4
  113. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +3 -3
  114. package/esm2022/dropdown/lib/dropdown.module.mjs +4 -4
  115. package/esm2022/form/lib/form-field.component.mjs +3 -3
  116. package/esm2022/form/lib/form.component.mjs +3 -3
  117. package/esm2022/form/lib/form.module.mjs +4 -4
  118. package/esm2022/form/lib/validation-rule.widget.mjs +3 -3
  119. package/esm2022/form/lib/validation-summary.component.mjs +3 -3
  120. package/esm2022/image/lib/image.component.mjs +3 -3
  121. package/esm2022/image/lib/image.module.mjs +4 -4
  122. package/esm2022/index.mjs +1 -1
  123. package/esm2022/label/lib/label.component.mjs +3 -3
  124. package/esm2022/label/lib/label.module.mjs +4 -4
  125. package/esm2022/loading/lib/loading-spinner.component.mjs +3 -3
  126. package/esm2022/loading/lib/loading.component.mjs +3 -3
  127. package/esm2022/loading/lib/loading.directive.mjs +3 -3
  128. package/esm2022/loading/lib/loading.module.mjs +4 -4
  129. package/esm2022/loading/lib/loading.service.mjs +3 -3
  130. package/esm2022/menu/lib/menu.component.mjs +3 -3
  131. package/esm2022/menu/lib/menu.module.mjs +4 -4
  132. package/esm2022/mixin/lib/base-components.class.mjs +3 -3
  133. package/esm2022/mixin/lib/base-menu-mixin.class.mjs +3 -3
  134. package/esm2022/notification/lib/notification.component.mjs +3 -3
  135. package/esm2022/notification/lib/notification.module.mjs +4 -4
  136. package/esm2022/notification/lib/notification.service.mjs +3 -3
  137. package/esm2022/number-box/lib/number-box.component.mjs +3 -3
  138. package/esm2022/number-box/lib/number-box.module.mjs +4 -4
  139. package/esm2022/otp/lib/otp.component.mjs +3 -3
  140. package/esm2022/otp/lib/otp.module.mjs +4 -4
  141. package/esm2022/page/lib/base-page.class.mjs +3 -3
  142. package/esm2022/page/lib/page.component.mjs +3 -3
  143. package/esm2022/page/lib/page.module.mjs +4 -4
  144. package/esm2022/password-box/lib/password-box.component.mjs +3 -3
  145. package/esm2022/password-box/lib/password-box.module.mjs +4 -4
  146. package/esm2022/popover/lib/dropdown-component.class.mjs +3 -3
  147. package/esm2022/popover/lib/popover.component.mjs +3 -3
  148. package/esm2022/popover/lib/popover.module.mjs +4 -4
  149. package/esm2022/popup/lib/popup.component.mjs +3 -3
  150. package/esm2022/popup/lib/popup.module.mjs +4 -4
  151. package/esm2022/popup/lib/popup.service.mjs +3 -3
  152. package/esm2022/progress-bar/lib/progress-bar.component.mjs +3 -3
  153. package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
  154. package/esm2022/radio/lib/radio.component.mjs +3 -3
  155. package/esm2022/radio/lib/radio.module.mjs +4 -4
  156. package/esm2022/range-slider/lib/range-slider.component.mjs +27 -22
  157. package/esm2022/range-slider/lib/range-slider.module.mjs +7 -6
  158. package/esm2022/result/lib/result.component.mjs +3 -3
  159. package/esm2022/result/lib/result.module.mjs +4 -4
  160. package/esm2022/search-box/lib/search-box.component.mjs +3 -3
  161. package/esm2022/search-box/lib/search-box.module.mjs +4 -4
  162. package/esm2022/select-box/lib/select-box.component.mjs +3 -3
  163. package/esm2022/select-box/lib/select-box.module.mjs +4 -4
  164. package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
  165. package/esm2022/selection-list/lib/selection-list.module.mjs +4 -4
  166. package/esm2022/switch/lib/switch-content.component.mjs +3 -3
  167. package/esm2022/switch/lib/switch.component.mjs +27 -24
  168. package/esm2022/switch/lib/switch.module.mjs +4 -4
  169. package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
  170. package/esm2022/tabs/lib/tab-item.component.mjs +3 -3
  171. package/esm2022/tabs/lib/tabs.component.mjs +3 -3
  172. package/esm2022/tabs/lib/tabs.module.mjs +4 -4
  173. package/esm2022/tag/lib/tag.component.mjs +3 -3
  174. package/esm2022/tag/lib/tag.module.mjs +4 -4
  175. package/esm2022/textarea/lib/textarea.component.mjs +3 -3
  176. package/esm2022/textarea/lib/textarea.module.mjs +4 -4
  177. package/esm2022/textbox/lib/mask-options.directive.mjs +3 -3
  178. package/esm2022/textbox/lib/textbox.component.mjs +39 -21
  179. package/esm2022/textbox/lib/textbox.module.mjs +4 -4
  180. package/esm2022/time-box/lib/time-box.component.mjs +3 -3
  181. package/esm2022/time-box/lib/time-box.module.mjs +4 -4
  182. package/esm2022/toast/lib/toast.component.mjs +3 -3
  183. package/esm2022/toast/lib/toast.module.mjs +4 -4
  184. package/esm2022/toast/lib/toast.service.mjs +3 -3
  185. package/esm2022/tooltip/lib/tooltip.component.mjs +3 -3
  186. package/esm2022/tooltip/lib/tooltip.directive.mjs +3 -3
  187. package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
  188. package/esm2022/uploader/lib/uploader.component.mjs +3 -3
  189. package/esm2022/uploader/lib/uploader.module.mjs +4 -4
  190. package/fesm2022/acorex-components-action-sheet.mjs +10 -10
  191. package/fesm2022/acorex-components-alert.mjs +15 -14
  192. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  193. package/fesm2022/acorex-components-avatar.mjs +10 -10
  194. package/fesm2022/acorex-components-badge.mjs +8 -8
  195. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  196. package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
  197. package/fesm2022/acorex-components-button.mjs +13 -13
  198. package/fesm2022/acorex-components-calendar.mjs +24 -23
  199. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  200. package/fesm2022/acorex-components-checkbox.mjs +32 -17
  201. package/fesm2022/acorex-components-checkbox.mjs.map +1 -1
  202. package/fesm2022/acorex-components-chips.mjs +10 -9
  203. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  204. package/fesm2022/acorex-components-collapse.mjs +10 -10
  205. package/fesm2022/acorex-components-color-palette.mjs +423 -434
  206. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  207. package/fesm2022/acorex-components-color-picker.mjs +7 -7
  208. package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
  209. package/fesm2022/acorex-components-common.mjs +176 -88
  210. package/fesm2022/acorex-components-common.mjs.map +1 -1
  211. package/fesm2022/acorex-components-context-menu.mjs +7 -7
  212. package/fesm2022/acorex-components-data-pager.mjs +31 -31
  213. package/fesm2022/acorex-components-data-table.mjs +13 -13
  214. package/fesm2022/acorex-components-date-picker.mjs +7 -7
  215. package/fesm2022/acorex-components-decorators.mjs +46 -46
  216. package/fesm2022/acorex-components-dialog.mjs +10 -10
  217. package/fesm2022/acorex-components-drawer.mjs +11 -10
  218. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  219. package/fesm2022/acorex-components-dropdown.mjs +7 -7
  220. package/fesm2022/acorex-components-form.mjs +16 -16
  221. package/fesm2022/acorex-components-image.mjs +7 -7
  222. package/fesm2022/acorex-components-label.mjs +7 -7
  223. package/fesm2022/acorex-components-loading.mjs +16 -16
  224. package/fesm2022/acorex-components-menu.mjs +7 -7
  225. package/fesm2022/acorex-components-mixin.mjs +4 -5
  226. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  227. package/fesm2022/acorex-components-notification.mjs +10 -10
  228. package/fesm2022/acorex-components-number-box.mjs +7 -7
  229. package/fesm2022/acorex-components-otp.mjs +7 -7
  230. package/fesm2022/acorex-components-page.mjs +10 -10
  231. package/fesm2022/acorex-components-password-box.mjs +7 -7
  232. package/fesm2022/acorex-components-popover.mjs +10 -10
  233. package/fesm2022/acorex-components-popup.mjs +10 -10
  234. package/fesm2022/acorex-components-progress-bar.mjs +7 -7
  235. package/fesm2022/acorex-components-radio.mjs +7 -7
  236. package/fesm2022/acorex-components-range-slider.mjs +31 -27
  237. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  238. package/fesm2022/acorex-components-result.mjs +7 -7
  239. package/fesm2022/acorex-components-search-box.mjs +7 -7
  240. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  241. package/fesm2022/acorex-components-select-box.mjs +7 -7
  242. package/fesm2022/acorex-components-selection-list.mjs +7 -7
  243. package/fesm2022/acorex-components-switch.mjs +33 -31
  244. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  245. package/fesm2022/acorex-components-tabs.mjs +13 -13
  246. package/fesm2022/acorex-components-tag.mjs +7 -7
  247. package/fesm2022/acorex-components-textarea.mjs +7 -7
  248. package/fesm2022/acorex-components-textbox.mjs +45 -28
  249. package/fesm2022/acorex-components-textbox.mjs.map +1 -1
  250. package/fesm2022/acorex-components-time-box.mjs +7 -7
  251. package/fesm2022/acorex-components-toast.mjs +10 -10
  252. package/fesm2022/acorex-components-tooltip.mjs +10 -10
  253. package/fesm2022/acorex-components-uploader.mjs +7 -7
  254. package/fesm2022/acorex-components.mjs.map +1 -1
  255. package/mixin/lib/base-components.class.d.ts +2 -2
  256. package/mixin/lib/base-menu-mixin.class.d.ts +5 -5
  257. package/mixin/lib/button-mixin.class.d.ts +2 -2
  258. package/mixin/lib/clickable-mixin.class.d.ts +2 -2
  259. package/mixin/lib/color-look-mixing.class.d.ts +2 -2
  260. package/mixin/lib/datalist-component.class.d.ts +10 -10
  261. package/mixin/lib/dropdown-mixin.class.d.ts +2 -2
  262. package/mixin/lib/interactive-mixin.class.d.ts +4 -4
  263. package/mixin/lib/loading-mixin.class.d.ts +2 -2
  264. package/mixin/lib/mixin.class.d.ts +61 -61
  265. package/mixin/lib/page-component.class.d.ts +2 -2
  266. package/mixin/lib/selection-component.class.d.ts +2 -2
  267. package/mixin/lib/sizable-mixin.class.d.ts +2 -2
  268. package/mixin/lib/textbox-mixin.class.d.ts +2 -2
  269. package/mixin/lib/value-mixin.class.d.ts +8 -8
  270. package/package.json +19 -19
  271. package/range-slider/lib/range-slider.component.d.ts +6 -14
  272. package/range-slider/lib/range-slider.module.d.ts +3 -2
  273. package/switch/lib/switch.component.d.ts +10 -8
  274. package/tabs/lib/tab-item.component.d.ts +2 -2
  275. package/textbox/lib/textbox.component.d.ts +8 -8
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Directive, Host, Self, Optional, Input, EventEmitter, Output, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, TemplateRef } from '@angular/core';
3
3
  import * as i1 from '@angular/forms';
4
- import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
4
+ import { skip, distinctUntilChanged, debounceTime, fromEvent, noop, merge } from 'rxjs';
5
5
  import * as i3 from '@angular/common';
6
6
  import { DOCUMENT } from '@angular/common';
7
7
  import * as i1$1 from '@angular/platform-browser';
@@ -9,7 +9,7 @@ import { Observable } from 'rxjs/internal/Observable';
9
9
  import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
10
10
  import { classes } from 'polytype';
11
11
  import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
12
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
12
+ import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
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,45 @@ 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.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 }); }
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.6", 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.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 }); }
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.6", ngImport: i0, type: AXClosbaleComponent, decorators: [{
132
132
  type: Injectable
133
133
  }] });
134
134
  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 }); }
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
137
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXSearchableComponent, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXSearchableComponent, decorators: [{
139
139
  type: Injectable
140
140
  }] });
141
141
  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 }); }
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
144
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXValuableComponent, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXValuableComponent, decorators: [{
146
146
  type: Injectable
147
147
  }] });
148
148
  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 }); }
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
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXFocusableComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXFocusableComponent, decorators: [{
153
153
  type: Injectable
154
154
  }] });
155
155
  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 }); }
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
158
  }
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXPagedComponent, decorators: [{
159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXPagedComponent, decorators: [{
160
160
  type: Injectable
161
161
  }] });
162
162
 
@@ -194,10 +194,10 @@ class AXAutoFocusDirective {
194
194
  }, 100);
195
195
  }
196
196
  }
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 }); }
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 }); }
199
199
  }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
201
201
  type: Directive,
202
202
  args: [{
203
203
  selector: '[axAutoFocus]',
@@ -243,10 +243,10 @@ class AXNgModelChangeDebouncedDirective {
243
243
  this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
244
244
  distinctUntilChanged(), debounceTime(this.ngModelChangeDebounceTime)).subscribe((value) => this.ngModelChangeDebounced.emit(value));
245
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 }); }
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
248
  }
249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXNgModelChangeDebouncedDirective, decorators: [{
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXNgModelChangeDebouncedDirective, decorators: [{
250
250
  type: Directive,
251
251
  args: [{
252
252
  selector: '[ngModelChangeDebounced]',
@@ -288,10 +288,10 @@ class AXHotkeysService {
288
288
  }
289
289
  });
290
290
  }
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' }); }
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' }); }
293
293
  }
294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeysService, decorators: [{
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXHotkeysService, decorators: [{
295
295
  type: Injectable,
296
296
  args: [{ providedIn: 'root' }]
297
297
  }], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
@@ -355,10 +355,10 @@ class AXHotkeyDirective {
355
355
  s.unsubscribe();
356
356
  });
357
357
  }
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 }); }
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 }); }
360
360
  }
361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXHotkeyDirective, decorators: [{
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXHotkeyDirective, decorators: [{
362
362
  type: Directive,
363
363
  args: [{
364
364
  selector: '[hotkey]',
@@ -417,10 +417,10 @@ class AXInfiniteScrollerDirective {
417
417
  }));
418
418
  //.subscribe((data) => { console.log(data) }, (err) => console.log(err));
419
419
  }
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 }); }
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 }); }
422
422
  }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
424
424
  type: Directive,
425
425
  args: [{
426
426
  selector: '[axInfiniteScroller]'
@@ -460,17 +460,17 @@ class AXResponsiveDirective {
460
460
  this._observer?.disconnect();
461
461
  this._observer?.unobserve(this._elementRef.nativeElement);
462
462
  }
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 }); }
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 }); }
465
465
  }
466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXResponsiveDirective, decorators: [{
466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXResponsiveDirective, decorators: [{
467
467
  type: Directive,
468
468
  args: [{ selector: '[ax-responsive]' }]
469
469
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
470
470
 
471
471
  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,
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,
474
474
  AXInfiniteScrollerDirective,
475
475
  AXNgModelChangeDebouncedDirective,
476
476
  AXAutoFocusDirective,
@@ -479,9 +479,9 @@ class AXCommonModule {
479
479
  AXAutoFocusDirective,
480
480
  AXNgModelChangeDebouncedDirective,
481
481
  AXHotkeyDirective] }); }
482
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule }); }
482
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule }); }
483
483
  }
484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXCommonModule, decorators: [{
484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXCommonModule, decorators: [{
485
485
  type: NgModule,
486
486
  args: [{
487
487
  imports: [],
@@ -519,15 +519,17 @@ class MXBaseComponent {
519
519
  getViewContainer() {
520
520
  return this._viewRef;
521
521
  }
522
- onOptionChanging(option) {
522
+ internalOptionChanging(option) {
523
523
  return option?.value;
524
524
  }
525
+ internalOptionChanged(option) {
526
+ }
525
527
  init() {
526
528
  this.getHostElement().__axContext__ = this;
527
529
  }
528
530
  setOption(option) {
529
531
  const oldValue = this[option.name];
530
- let newValue = this.onOptionChanging({
532
+ let newValue = this.internalOptionChanging({
531
533
  name: option.name,
532
534
  value: option.value,
533
535
  });
@@ -545,6 +547,7 @@ class MXBaseComponent {
545
547
  });
546
548
  const emitter = this[`${option.name}Change`];
547
549
  emitter?.emit(newValue);
550
+ this.internalOptionChanged({ name: option.name, value: newValue });
548
551
  }
549
552
  if (option.afterCallback)
550
553
  option.afterCallback(oldValue, newValue);
@@ -559,10 +562,10 @@ class MXBaseComponent {
559
562
  set rtl(value) {
560
563
  this.setOption({ name: 'rtl', value });
561
564
  }
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 }); }
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 }); }
564
567
  }
565
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXBaseComponent, decorators: [{
568
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXBaseComponent, decorators: [{
566
569
  type: Injectable
567
570
  }] });
568
571
  const BASE_INPUTS = ['rtl'];
@@ -627,6 +630,18 @@ const COLOR_LOOK_INPUTS = [...COLOR_INPUTS, ...LOOK_INPUTS];
627
630
  const COLOR_LOOK_OUTPUT = [...COLOR_OUTPUT, ...LOOK_OUTPUT];
628
631
 
629
632
  class MXInteractiveComponent extends MXBaseComponent {
633
+ registerOnTouched(fn) {
634
+ this.onTouchedCallback = fn;
635
+ }
636
+ get touched() {
637
+ return this._touched;
638
+ }
639
+ markAsTouched() {
640
+ if (!this.touched) {
641
+ this.onTouchedCallback();
642
+ this._touched = true;
643
+ }
644
+ }
630
645
  /**
631
646
  * If set to true, it disables the component.
632
647
  */
@@ -634,7 +649,17 @@ class MXInteractiveComponent extends MXBaseComponent {
634
649
  return this._disabled;
635
650
  }
636
651
  set disabled(value) {
637
- this.setOption({ name: 'disabled', value });
652
+ value = coerceBooleanProperty(value);
653
+ this.setOption({
654
+ name: 'disabled',
655
+ value,
656
+ afterCallback: () => {
657
+ this.cdr.markForCheck();
658
+ },
659
+ });
660
+ }
661
+ setDisabledState(isDisabled) {
662
+ this.disabled = isDisabled;
638
663
  }
639
664
  /**
640
665
  * Specifies the tabindex of the component.
@@ -653,6 +678,7 @@ class MXInteractiveComponent extends MXBaseComponent {
653
678
  });
654
679
  }
655
680
  emitOnBlurEvent(e) {
681
+ this.markAsTouched();
656
682
  this.onBlur.emit({
657
683
  component: this,
658
684
  htmlElement: this.getHostElement(),
@@ -661,6 +687,9 @@ class MXInteractiveComponent extends MXBaseComponent {
661
687
  }
662
688
  constructor() {
663
689
  super();
690
+ this.onTouchedCallback = noop;
691
+ this._touched = false;
692
+ this.disabledChange = new EventEmitter();
664
693
  this._tabIndex = 0;
665
694
  /**
666
695
  * Fires each time the component gets focused.
@@ -684,7 +713,7 @@ class MXInteractiveComponent extends MXBaseComponent {
684
713
  }
685
714
  }
686
715
  const INTERACTIVE_INPUTS = ['disabled', 'tabIndex', ...BASE_INPUTS];
687
- const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', ...BASE_OUTPUT];
716
+ const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', 'disabledChange', ...BASE_OUTPUT];
688
717
 
689
718
  class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
690
719
  /**
@@ -762,7 +791,7 @@ const BUTTON_OUTPUT = [
762
791
  COLOR_LOOK_OUTPUT,
763
792
  ];
764
793
 
765
- class MXValueComponent extends MXBaseComponent {
794
+ class MXValueComponent extends MXInteractiveComponent {
766
795
  constructor() {
767
796
  super(...arguments);
768
797
  /**
@@ -772,9 +801,12 @@ class MXValueComponent extends MXBaseComponent {
772
801
  this.onValueChanged = new EventEmitter();
773
802
  this.valueChange = new EventEmitter();
774
803
  this.stateChange = new EventEmitter();
804
+ this.readonlyChange = new EventEmitter();
775
805
  this._readonly = false;
806
+ this._dirty = false;
776
807
  this._isUserInteraction = false;
777
808
  this._state = 'clear';
809
+ this.onChangeCallback = noop;
778
810
  }
779
811
  /**
780
812
  * If set to true, user cannot change the value of component.
@@ -783,7 +815,14 @@ class MXValueComponent extends MXBaseComponent {
783
815
  return this._readonly;
784
816
  }
785
817
  set readonly(value) {
786
- this._readonly = coerceBooleanProperty(value);
818
+ value = coerceBooleanProperty(value);
819
+ this.setOption({
820
+ name: 'readonly',
821
+ value,
822
+ afterCallback: () => {
823
+ this.cdr.markForCheck();
824
+ },
825
+ });
787
826
  }
788
827
  get name() {
789
828
  return this._name;
@@ -791,38 +830,27 @@ class MXValueComponent extends MXBaseComponent {
791
830
  set name(value) {
792
831
  this._name = value;
793
832
  }
794
- get isUserInteraction() {
795
- return this._isUserInteraction;
833
+ get dirty() {
834
+ return this._dirty;
796
835
  }
797
- set isUserInteraction(value) {
798
- this._isUserInteraction = value;
799
- }
800
- setUserInteraction() {
801
- this.isUserInteraction = true;
836
+ markAsDirty() {
837
+ this._dirty = true;
802
838
  }
803
839
  get value() {
804
- return this.getValue(this._value) || this.defaultValue;
840
+ return this.internalGetValue(this._value) ?? this.defaultValue;
805
841
  }
806
842
  set value(v) {
807
- v = this.setValue(v);
808
- //if (!this._isInited ) {
843
+ v = this.internalSetValue(v);
809
844
  const old = AXObjectUtil.deepJSONClone(this.value);
810
845
  // TODO: check real equality
811
846
  if (v != old) {
812
847
  this._value = v;
813
848
  this.emitOnValueChangedEvent(old, this.value);
814
- this.cdr.markForCheck();
815
849
  if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
816
850
  this.setState('clear');
817
851
  }
818
- // else {
819
- // if (this._isInited) {
820
- // this.validate();
821
- // }
822
- // }
852
+ this.internalValueChanged(this.value);
823
853
  }
824
- this._isUserInteraction = false;
825
- //}
826
854
  }
827
855
  get state() {
828
856
  return this._state;
@@ -838,16 +866,21 @@ class MXValueComponent extends MXBaseComponent {
838
866
  value: newValue,
839
867
  oldValue: oldValue,
840
868
  name: this.name,
841
- isUserInteraction: this.isUserInteraction,
869
+ isUserInteraction: this._isUserInteraction,
842
870
  });
871
+ this.onChangeCallback(newValue);
872
+ this.cdr.markForCheck();
843
873
  this._isUserInteraction = false;
844
874
  }
845
- setValue(value) {
875
+ internalSetValue(value) {
846
876
  return value;
847
877
  }
848
- getValue(value) {
878
+ internalGetValue(value) {
849
879
  return value;
850
880
  }
881
+ internalValueChanged(value) {
882
+ }
883
+ ;
851
884
  ngOnInit() {
852
885
  super.init();
853
886
  this.getHostElement().setAttribute('ax-form-input', 'true');
@@ -859,9 +892,6 @@ class MXValueComponent extends MXBaseComponent {
859
892
  this.onValueChanged?.unsubscribe();
860
893
  this.onOptionChanged?.unsubscribe();
861
894
  }
862
- clear() {
863
- this.value = null;
864
- }
865
895
  _checkRequired() {
866
896
  const isRequired = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).some((c) => c.__axContext__.enabled && c.__axContext__.rule == 'required');
867
897
  //
@@ -958,10 +988,68 @@ class MXValueComponent extends MXBaseComponent {
958
988
  }
959
989
  this.cdr.markForCheck();
960
990
  }
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 }); }
991
+ registerOnChange(fn) {
992
+ this.onChangeCallback = fn;
993
+ }
994
+ writeValue(value) {
995
+ this.value = value;
996
+ }
997
+ commitValue(value, u = false) {
998
+ if (u) {
999
+ this.markAsTouched();
1000
+ this.markAsDirty();
1001
+ this._isUserInteraction = true;
1002
+ }
1003
+ this.writeValue(value);
1004
+ }
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 }); }
1007
+ }
1008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", 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.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 }); }
963
1051
  }
964
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MXValueComponent, decorators: [{
1052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
965
1053
  type: Injectable
966
1054
  }] });
967
1055
 
@@ -1044,10 +1132,10 @@ class DynamicOverlayContainer extends OverlayContainer {
1044
1132
  setContainerElement(containerElement) {
1045
1133
  this._containerElement = containerElement;
1046
1134
  }
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' }); }
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' }); }
1049
1137
  }
1050
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1051
1139
  type: Injectable,
1052
1140
  args: [{
1053
1141
  providedIn: 'root',
@@ -1067,10 +1155,10 @@ class DynamicOverlay extends Overlay {
1067
1155
  this.setContainerElement(containerElement);
1068
1156
  return super.create(config);
1069
1157
  }
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' }); }
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' }); }
1072
1160
  }
1073
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: DynamicOverlay, decorators: [{
1161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: DynamicOverlay, decorators: [{
1074
1162
  type: Injectable,
1075
1163
  args: [{
1076
1164
  providedIn: 'root',
@@ -1177,10 +1265,10 @@ class AXOverlayService {
1177
1265
  },
1178
1266
  };
1179
1267
  }
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' }); }
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' }); }
1182
1270
  }
1183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AXOverlayService, decorators: [{
1271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AXOverlayService, decorators: [{
1184
1272
  type: Injectable,
1185
1273
  args: [{ providedIn: 'root' }]
1186
1274
  }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
@@ -1189,5 +1277,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
1189
1277
  * Generated bundle index. Do not edit.
1190
1278
  */
1191
1279
 
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 };
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 };
1193
1281
  //# sourceMappingURL=acorex-components-common.mjs.map