@acorex/components 7.1.53 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1071) hide show
  1. package/README.md +3 -20
  2. package/action-sheet/README.md +3 -0
  3. package/action-sheet/index.d.ts +4 -5
  4. package/alert/README.md +3 -0
  5. package/alert/index.d.ts +2 -5
  6. package/avatar/README.md +3 -0
  7. package/avatar/index.d.ts +3 -5
  8. package/badge/README.md +3 -0
  9. package/badge/index.d.ts +2 -5
  10. package/breadcrumbs/README.md +3 -0
  11. package/breadcrumbs/index.d.ts +4 -5
  12. package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +80 -0
  13. package/button/README.md +3 -0
  14. package/button/index.d.ts +5 -5
  15. package/button/lib/button-group.component.d.ts +86 -0
  16. package/button/lib/button-item.component.d.ts +82 -0
  17. package/calendar/README.md +3 -0
  18. package/calendar/index.d.ts +4 -5
  19. package/calendar/lib/calendar.class.d.ts +81 -0
  20. package/checkbox/README.md +3 -0
  21. package/checkbox/index.d.ts +2 -5
  22. package/chips/README.md +3 -0
  23. package/chips/index.d.ts +2 -5
  24. package/chips/lib/chips.component.d.ts +71 -0
  25. package/collapse/README.md +3 -0
  26. package/collapse/index.d.ts +3 -5
  27. package/color-palette/README.md +3 -0
  28. package/color-palette/index.d.ts +7 -5
  29. package/color-picker/README.md +3 -0
  30. package/color-picker/index.d.ts +2 -5
  31. package/color-picker/lib/color-picker.component.d.ts +197 -0
  32. package/common/README.md +3 -0
  33. package/common/index.d.ts +22 -5
  34. package/common/lib/components/button-base-component.class.d.ts +36 -0
  35. package/common/lib/components/interactive-component.class.d.ts +37 -0
  36. package/common/lib/components/look-component.class.d.ts +15 -0
  37. package/context-menu/README.md +3 -0
  38. package/context-menu/index.d.ts +2 -5
  39. package/data-pager/README.md +3 -0
  40. package/data-pager/index.d.ts +9 -5
  41. package/data-pager/lib/data-pager-input-selector.component.d.ts +15 -0
  42. package/data-table/README.md +3 -0
  43. package/data-table/index.d.ts +4 -5
  44. package/date-picker/README.md +3 -0
  45. package/date-picker/index.d.ts +2 -5
  46. package/decorators/README.md +3 -0
  47. package/decorators/index.d.ts +14 -5
  48. package/dialog/README.md +3 -0
  49. package/dialog/index.d.ts +4 -5
  50. package/drawer/README.md +3 -0
  51. package/drawer/index.d.ts +3 -5
  52. package/dropdown/README.md +3 -0
  53. package/dropdown/index.d.ts +2 -5
  54. package/esm2022/acorex-components.mjs +2 -2
  55. package/esm2022/action-sheet/acorex-components-action-sheet.mjs +2 -2
  56. package/esm2022/action-sheet/index.mjs +5 -0
  57. package/esm2022/action-sheet/lib/action-sheet.component.mjs +78 -0
  58. package/esm2022/action-sheet/lib/action-sheet.interface.mjs +3 -0
  59. package/esm2022/action-sheet/lib/action-sheet.module.mjs +26 -0
  60. package/esm2022/action-sheet/lib/action-sheet.service.mjs +88 -0
  61. package/esm2022/alert/acorex-components-alert.mjs +2 -2
  62. package/esm2022/alert/index.mjs +3 -0
  63. package/esm2022/alert/lib/alert.component.mjs +191 -0
  64. package/esm2022/alert/lib/alert.module.mjs +22 -0
  65. package/esm2022/avatar/acorex-components-avatar.mjs +2 -2
  66. package/esm2022/avatar/index.mjs +4 -0
  67. package/esm2022/avatar/lib/avatar-group.component.mjs +16 -0
  68. package/esm2022/avatar/lib/avatar.component.mjs +36 -0
  69. package/esm2022/avatar/lib/avatar.module.mjs +22 -0
  70. package/esm2022/badge/acorex-components-badge.mjs +2 -2
  71. package/esm2022/badge/index.mjs +3 -0
  72. package/esm2022/badge/lib/badge.component.mjs +26 -0
  73. package/esm2022/badge/lib/badge.module.mjs +19 -0
  74. package/esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs +2 -2
  75. package/esm2022/breadcrumbs/index.mjs +5 -0
  76. package/esm2022/breadcrumbs/lib/breadcrumbs-item.class.mjs +2 -0
  77. package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +46 -0
  78. package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +19 -0
  79. package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +20 -0
  80. package/esm2022/button/acorex-components-button.mjs +2 -2
  81. package/esm2022/button/index.mjs +6 -0
  82. package/esm2022/button/lib/button-group.component.mjs +88 -0
  83. package/esm2022/button/lib/button-item.class.mjs +2 -0
  84. package/esm2022/button/lib/button-item.component.mjs +77 -0
  85. package/esm2022/button/lib/button.component.mjs +64 -0
  86. package/esm2022/button/lib/button.module.mjs +32 -0
  87. package/esm2022/calendar/acorex-components-calendar.mjs +2 -2
  88. package/esm2022/calendar/index.mjs +5 -0
  89. package/esm2022/calendar/lib/calendar-range.component.mjs +175 -0
  90. package/esm2022/calendar/lib/calendar.class.mjs +233 -0
  91. package/esm2022/calendar/lib/calendar.component.mjs +417 -0
  92. package/esm2022/calendar/lib/calendar.module.mjs +23 -0
  93. package/esm2022/checkbox/acorex-components-checkbox.mjs +2 -2
  94. package/esm2022/checkbox/index.mjs +3 -0
  95. package/esm2022/checkbox/lib/checkbox.component.mjs +41 -0
  96. package/esm2022/checkbox/lib/checkbox.module.mjs +21 -0
  97. package/esm2022/chips/acorex-components-chips.mjs +2 -2
  98. package/esm2022/chips/index.mjs +3 -0
  99. package/esm2022/chips/lib/chips.component.mjs +32 -0
  100. package/esm2022/chips/lib/chips.module.mjs +19 -0
  101. package/esm2022/collapse/acorex-components-collapse.mjs +2 -2
  102. package/esm2022/collapse/index.mjs +4 -0
  103. package/esm2022/collapse/lib/collapse-group.component.mjs +53 -0
  104. package/esm2022/collapse/lib/collapse.component.mjs +45 -0
  105. package/esm2022/collapse/lib/collapse.module.mjs +20 -0
  106. package/esm2022/color-palette/acorex-components-color-palette.mjs +2 -2
  107. package/esm2022/color-palette/index.mjs +8 -0
  108. package/esm2022/color-palette/lib/color-palette-input.component.mjs +129 -0
  109. package/esm2022/color-palette/lib/color-palette-picker.component.mjs +159 -0
  110. package/esm2022/color-palette/lib/color-palette-preview.component.mjs +60 -0
  111. package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +302 -0
  112. package/esm2022/color-palette/lib/color-palette.class.mjs +17 -0
  113. package/esm2022/color-palette/lib/color-palette.component.mjs +74 -0
  114. package/esm2022/color-palette/lib/color-palette.module.mjs +60 -0
  115. package/esm2022/color-picker/acorex-components-color-picker.mjs +2 -2
  116. package/esm2022/color-picker/index.mjs +3 -0
  117. package/esm2022/color-picker/lib/color-picker.component.mjs +113 -0
  118. package/esm2022/color-picker/lib/color-picker.module.mjs +61 -0
  119. package/esm2022/common/acorex-components-common.mjs +2 -2
  120. package/esm2022/common/index.mjs +23 -0
  121. package/esm2022/common/lib/classes/components.class.mjs +69 -0
  122. package/esm2022/common/lib/classes/data.class.mjs +2 -0
  123. package/esm2022/common/lib/classes/drawing.class.mjs +2 -0
  124. package/esm2022/common/lib/classes/events.class.mjs +79 -0
  125. package/esm2022/common/lib/classes/styles.class.mjs +4 -0
  126. package/esm2022/common/lib/common.module.mjs +42 -0
  127. package/esm2022/common/lib/components/base-component.class.mjs +67 -0
  128. package/esm2022/common/lib/components/button-base-component.class.mjs +80 -0
  129. package/esm2022/common/lib/components/color-component.class.mjs +27 -0
  130. package/esm2022/common/lib/components/colorlook-component.class.mjs +11 -0
  131. package/esm2022/common/lib/components/interactive-component.class.mjs +64 -0
  132. package/esm2022/common/lib/components/look-component.class.mjs +27 -0
  133. package/esm2022/common/lib/components/value-component.class.mjs +202 -0
  134. package/esm2022/common/lib/constant/positions.mjs +75 -0
  135. package/esm2022/common/lib/directives/auto-focus.directive.mjs +56 -0
  136. package/esm2022/common/lib/directives/debounce-time.directive.mjs +48 -0
  137. package/esm2022/common/lib/directives/hotkey.directive.mjs +81 -0
  138. package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +63 -0
  139. package/esm2022/common/lib/directives/responsive.directive.mjs +37 -0
  140. package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +49 -0
  141. package/esm2022/common/lib/services/hotkey.service.mjs +46 -0
  142. package/esm2022/common/lib/services/overlay.service.mjs +113 -0
  143. package/esm2022/context-menu/acorex-components-context-menu.mjs +2 -2
  144. package/esm2022/context-menu/index.mjs +3 -0
  145. package/esm2022/context-menu/lib/context-menu.component.mjs +262 -0
  146. package/esm2022/context-menu/lib/context-menu.module.mjs +36 -0
  147. package/esm2022/data-pager/acorex-components-data-pager.mjs +2 -2
  148. package/esm2022/data-pager/index.mjs +10 -0
  149. package/esm2022/data-pager/lib/data-pager-base.component.mjs +38 -0
  150. package/esm2022/data-pager/lib/data-pager-info.component.mjs +53 -0
  151. package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +65 -0
  152. package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +87 -0
  153. package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +130 -0
  154. package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +95 -0
  155. package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +83 -0
  156. package/esm2022/data-pager/lib/data-pager.component.mjs +143 -0
  157. package/esm2022/data-pager/lib/data-pager.module.mjs +51 -0
  158. package/esm2022/data-table/acorex-components-data-table.mjs +2 -2
  159. package/esm2022/data-table/index.mjs +5 -0
  160. package/esm2022/data-table/lib/data-column-cell-template.directive.mjs +17 -0
  161. package/esm2022/data-table/lib/data-column.directive.mjs +43 -0
  162. package/esm2022/data-table/lib/data-table.component.mjs +137 -0
  163. package/esm2022/data-table/lib/data-table.module.mjs +27 -0
  164. package/esm2022/date-picker/acorex-components-date-picker.mjs +2 -2
  165. package/esm2022/date-picker/index.mjs +3 -0
  166. package/esm2022/date-picker/lib/datepicker.component.mjs +125 -0
  167. package/esm2022/date-picker/lib/datepicker.module.mjs +44 -0
  168. package/esm2022/decorators/acorex-components-decorators.mjs +2 -2
  169. package/esm2022/decorators/index.mjs +15 -0
  170. package/esm2022/decorators/lib/close-button.component.mjs +50 -0
  171. package/esm2022/decorators/lib/content.component.mjs +21 -0
  172. package/esm2022/decorators/lib/decorators.module.mjs +71 -0
  173. package/esm2022/decorators/lib/footer.component.mjs +29 -0
  174. package/esm2022/decorators/lib/form-hint.component.mjs +20 -0
  175. package/esm2022/decorators/lib/header.component.mjs +29 -0
  176. package/esm2022/decorators/lib/icon.component.mjs +29 -0
  177. package/esm2022/decorators/lib/overlay.component.mjs +22 -0
  178. package/esm2022/decorators/lib/placeholder.component.mjs +14 -0
  179. package/esm2022/decorators/lib/prefix.component.mjs +21 -0
  180. package/esm2022/decorators/lib/sub-title.component.mjs +27 -0
  181. package/esm2022/decorators/lib/suffix.component.mjs +21 -0
  182. package/esm2022/decorators/lib/text.component.mjs +21 -0
  183. package/esm2022/decorators/lib/title.component.mjs +20 -0
  184. package/esm2022/dialog/acorex-components-dialog.mjs +2 -2
  185. package/esm2022/dialog/index.mjs +5 -0
  186. package/esm2022/dialog/lib/dialog.class.mjs +2 -0
  187. package/esm2022/dialog/lib/dialog.component.mjs +52 -0
  188. package/esm2022/dialog/lib/dialog.module.mjs +27 -0
  189. package/esm2022/dialog/lib/dialog.service.mjs +152 -0
  190. package/esm2022/drawer/acorex-components-drawer.mjs +2 -2
  191. package/esm2022/drawer/index.mjs +4 -0
  192. package/esm2022/drawer/lib/drawer-container.component.mjs +37 -0
  193. package/esm2022/drawer/lib/drawer.component.mjs +140 -0
  194. package/esm2022/drawer/lib/drawer.module.mjs +22 -0
  195. package/esm2022/dropdown/acorex-components-dropdown.mjs +2 -2
  196. package/esm2022/dropdown/index.mjs +3 -0
  197. package/esm2022/dropdown/lib/dropdown-panel.component.mjs +102 -0
  198. package/esm2022/dropdown/lib/dropdown.module.mjs +25 -0
  199. package/esm2022/form/acorex-components-form.mjs +2 -2
  200. package/esm2022/form/index.mjs +7 -0
  201. package/esm2022/form/lib/form-field.component.mjs +15 -0
  202. package/esm2022/form/lib/form.component.mjs +166 -0
  203. package/esm2022/form/lib/form.module.mjs +63 -0
  204. package/esm2022/form/lib/validation-rule.widget.mjs +115 -0
  205. package/esm2022/form/lib/validation-summary.component.mjs +106 -0
  206. package/esm2022/form/lib/validation.class.mjs +2 -0
  207. package/esm2022/image/acorex-components-image.mjs +2 -2
  208. package/esm2022/image/index.mjs +3 -0
  209. package/esm2022/image/lib/image.component.mjs +76 -0
  210. package/esm2022/image/lib/image.module.mjs +19 -0
  211. package/esm2022/index.mjs +2 -0
  212. package/esm2022/label/acorex-components-label.mjs +2 -2
  213. package/esm2022/label/index.mjs +3 -0
  214. package/esm2022/label/lib/label.component.mjs +45 -0
  215. package/esm2022/label/lib/label.module.mjs +21 -0
  216. package/esm2022/loading/acorex-components-loading.mjs +2 -2
  217. package/esm2022/loading/index.mjs +6 -0
  218. package/esm2022/loading/lib/loading-spinner.component.mjs +68 -0
  219. package/esm2022/loading/lib/loading.component.mjs +64 -0
  220. package/esm2022/loading/lib/loading.directive.mjs +68 -0
  221. package/esm2022/loading/lib/loading.module.mjs +35 -0
  222. package/esm2022/loading/lib/loading.service.mjs +151 -0
  223. package/esm2022/menu/acorex-components-menu.mjs +2 -2
  224. package/esm2022/menu/index.mjs +3 -0
  225. package/esm2022/menu/lib/menu.component.mjs +346 -0
  226. package/esm2022/menu/lib/menu.module.mjs +33 -0
  227. package/esm2022/mixin/acorex-components-mixin.mjs +2 -2
  228. package/esm2022/mixin/index.mjs +18 -0
  229. package/esm2022/mixin/lib/base-components.class.mjs +109 -0
  230. package/esm2022/mixin/lib/base-menu-mixin.class.mjs +137 -0
  231. package/esm2022/mixin/lib/button-mixin.class.mjs +66 -0
  232. package/esm2022/mixin/lib/clickable-mixin.class.mjs +24 -0
  233. package/esm2022/mixin/lib/color-look-mixing.class.mjs +45 -0
  234. package/esm2022/mixin/lib/constratctor.mjs +2 -0
  235. package/esm2022/mixin/lib/datalist-component.class.mjs +157 -0
  236. package/esm2022/mixin/lib/datalist.class.mjs +3 -0
  237. package/esm2022/mixin/lib/dropdown-mixin.class.mjs +97 -0
  238. package/esm2022/mixin/lib/interactive-mixin.class.mjs +83 -0
  239. package/esm2022/mixin/lib/loading-mixin.class.mjs +18 -0
  240. package/esm2022/mixin/lib/mixin.class.mjs +26 -0
  241. package/esm2022/mixin/lib/page-component.class.mjs +11 -0
  242. package/esm2022/mixin/lib/selection-component.class.mjs +180 -0
  243. package/esm2022/mixin/lib/sizable-mixin.class.mjs +16 -0
  244. package/esm2022/mixin/lib/textbox-mixin.class.mjs +58 -0
  245. package/esm2022/mixin/lib/value-mixin.class.mjs +224 -0
  246. package/esm2022/notification/acorex-components-notification.mjs +2 -2
  247. package/esm2022/notification/index.mjs +5 -0
  248. package/esm2022/notification/lib/notification.class.mjs +2 -0
  249. package/esm2022/notification/lib/notification.component.mjs +83 -0
  250. package/esm2022/notification/lib/notification.module.mjs +23 -0
  251. package/esm2022/notification/lib/notification.service.mjs +108 -0
  252. package/esm2022/number-box/acorex-components-number-box.mjs +2 -2
  253. package/esm2022/number-box/index.mjs +3 -0
  254. package/esm2022/number-box/lib/number-box.component.mjs +248 -0
  255. package/esm2022/number-box/lib/number-box.module.mjs +35 -0
  256. package/esm2022/otp/acorex-components-otp.mjs +5 -0
  257. package/esm2022/otp/index.mjs +4 -0
  258. package/esm2022/otp/lib/otp.class.mjs +4 -0
  259. package/esm2022/otp/lib/otp.component.mjs +113 -0
  260. package/esm2022/otp/lib/otp.module.mjs +21 -0
  261. package/esm2022/page/acorex-components-page.mjs +2 -2
  262. package/esm2022/page/index.mjs +4 -0
  263. package/esm2022/page/lib/base-page.class.mjs +61 -0
  264. package/esm2022/page/lib/page.component.mjs +44 -0
  265. package/esm2022/page/lib/page.module.mjs +18 -0
  266. package/esm2022/password-box/acorex-components-password-box.mjs +2 -2
  267. package/esm2022/password-box/index.mjs +3 -0
  268. package/esm2022/password-box/lib/password-box.component.mjs +65 -0
  269. package/esm2022/password-box/lib/password-box.module.mjs +32 -0
  270. package/esm2022/popover/acorex-components-popover.mjs +2 -2
  271. package/esm2022/popover/index.mjs +4 -0
  272. package/esm2022/popover/lib/dropdown-component.class.mjs +73 -0
  273. package/esm2022/popover/lib/popover.component.mjs +264 -0
  274. package/esm2022/popover/lib/popover.module.mjs +19 -0
  275. package/esm2022/popup/acorex-components-popup.mjs +2 -2
  276. package/esm2022/popup/index.mjs +4 -0
  277. package/esm2022/popup/lib/popup.component.mjs +141 -0
  278. package/esm2022/popup/lib/popup.module.mjs +27 -0
  279. package/esm2022/popup/lib/popup.service.mjs +114 -0
  280. package/esm2022/progress-bar/acorex-components-progress-bar.mjs +2 -2
  281. package/esm2022/progress-bar/index.mjs +3 -0
  282. package/esm2022/progress-bar/lib/progress-bar.component.mjs +33 -0
  283. package/esm2022/progress-bar/lib/progress-bar.module.mjs +19 -0
  284. package/esm2022/radio/acorex-components-radio.mjs +2 -2
  285. package/esm2022/radio/index.mjs +3 -0
  286. package/esm2022/radio/lib/radio.component.mjs +39 -0
  287. package/esm2022/radio/lib/radio.module.mjs +22 -0
  288. package/esm2022/range-slider/acorex-components-range-slider.mjs +2 -2
  289. package/esm2022/range-slider/index.mjs +3 -0
  290. package/esm2022/range-slider/lib/range-slider.component.mjs +109 -0
  291. package/esm2022/range-slider/lib/range-slider.module.mjs +22 -0
  292. package/esm2022/result/acorex-components-result.mjs +2 -2
  293. package/esm2022/result/index.mjs +3 -0
  294. package/esm2022/result/lib/result.component.mjs +24 -0
  295. package/esm2022/result/lib/result.module.mjs +19 -0
  296. package/esm2022/search-box/acorex-components-search-box.mjs +2 -2
  297. package/esm2022/search-box/index.mjs +3 -0
  298. package/esm2022/search-box/lib/search-box.component.mjs +60 -0
  299. package/esm2022/search-box/lib/search-box.module.mjs +25 -0
  300. package/esm2022/select-box/acorex-components-select-box.mjs +2 -2
  301. package/esm2022/select-box/index.mjs +3 -0
  302. package/esm2022/select-box/lib/select-box.component.mjs +366 -0
  303. package/esm2022/select-box/lib/select-box.module.mjs +61 -0
  304. package/esm2022/selection-list/acorex-components-selection-list.mjs +2 -2
  305. package/esm2022/selection-list/index.mjs +3 -0
  306. package/esm2022/selection-list/lib/selection-list.component.mjs +60 -0
  307. package/esm2022/selection-list/lib/selection-list.module.mjs +24 -0
  308. package/esm2022/switch/acorex-components-switch.mjs +2 -2
  309. package/esm2022/switch/index.mjs +4 -0
  310. package/esm2022/switch/lib/switch-content.component.mjs +16 -0
  311. package/esm2022/switch/lib/switch.component.mjs +51 -0
  312. package/esm2022/switch/lib/switch.module.mjs +22 -0
  313. package/esm2022/tabs/acorex-components-tabs.mjs +2 -2
  314. package/esm2022/tabs/index.mjs +6 -0
  315. package/esm2022/tabs/lib/tab-content.directive.mjs +29 -0
  316. package/esm2022/tabs/lib/tab-item.component.mjs +142 -0
  317. package/esm2022/tabs/lib/tabs.class.mjs +4 -0
  318. package/esm2022/tabs/lib/tabs.component.mjs +108 -0
  319. package/esm2022/tabs/lib/tabs.module.mjs +25 -0
  320. package/esm2022/tag/acorex-components-tag.mjs +2 -2
  321. package/esm2022/tag/index.mjs +3 -0
  322. package/esm2022/tag/lib/tag.component.mjs +29 -0
  323. package/esm2022/tag/lib/tag.module.mjs +19 -0
  324. package/esm2022/textarea/acorex-components-textarea.mjs +2 -2
  325. package/esm2022/textarea/index.mjs +3 -0
  326. package/esm2022/textarea/lib/textarea.component.mjs +37 -0
  327. package/esm2022/textarea/lib/textarea.module.mjs +19 -0
  328. package/esm2022/textbox/acorex-components-textbox.mjs +2 -2
  329. package/esm2022/textbox/index.mjs +4 -0
  330. package/esm2022/textbox/lib/mask-options.directive.mjs +17 -0
  331. package/esm2022/textbox/lib/textbox.component.mjs +93 -0
  332. package/esm2022/textbox/lib/textbox.module.mjs +38 -0
  333. package/esm2022/time-box/acorex-components-time-box.mjs +2 -2
  334. package/esm2022/time-box/index.mjs +3 -0
  335. package/esm2022/time-box/lib/time-box.component.mjs +296 -0
  336. package/esm2022/time-box/lib/time-box.module.mjs +32 -0
  337. package/esm2022/toast/acorex-components-toast.mjs +2 -2
  338. package/esm2022/toast/index.mjs +5 -0
  339. package/esm2022/toast/lib/toast.class.mjs +2 -0
  340. package/esm2022/toast/lib/toast.component.mjs +67 -0
  341. package/esm2022/toast/lib/toast.module.mjs +22 -0
  342. package/esm2022/toast/lib/toast.service.mjs +135 -0
  343. package/esm2022/tooltip/acorex-components-tooltip.mjs +2 -2
  344. package/esm2022/tooltip/index.mjs +4 -0
  345. package/esm2022/tooltip/lib/tooltip.component.mjs +20 -0
  346. package/esm2022/tooltip/lib/tooltip.directive.mjs +158 -0
  347. package/esm2022/tooltip/lib/tooltip.module.mjs +22 -0
  348. package/esm2022/uploader/acorex-components-uploader.mjs +2 -2
  349. package/esm2022/uploader/index.mjs +3 -0
  350. package/esm2022/uploader/lib/uploader.component.mjs +99 -0
  351. package/esm2022/uploader/lib/uploader.module.mjs +20 -0
  352. package/fesm2022/acorex-components-action-sheet.mjs +17 -19
  353. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  354. package/fesm2022/acorex-components-alert.mjs +13 -17
  355. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  356. package/fesm2022/acorex-components-avatar.mjs +20 -22
  357. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  358. package/fesm2022/acorex-components-badge.mjs +9 -6
  359. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  360. package/fesm2022/acorex-components-breadcrumbs.mjs +9 -15
  361. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  362. package/fesm2022/acorex-components-button.mjs +29 -31
  363. package/fesm2022/acorex-components-button.mjs.map +1 -1
  364. package/fesm2022/acorex-components-calendar.mjs +129 -81
  365. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  366. package/fesm2022/acorex-components-checkbox.mjs +5 -6
  367. package/fesm2022/acorex-components-checkbox.mjs.map +1 -1
  368. package/fesm2022/acorex-components-chips.mjs +8 -9
  369. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  370. package/fesm2022/acorex-components-collapse.mjs +21 -22
  371. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  372. package/fesm2022/acorex-components-color-palette.mjs +286 -293
  373. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  374. package/fesm2022/acorex-components-color-picker.mjs +11 -18
  375. package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
  376. package/fesm2022/acorex-components-common.mjs +821 -851
  377. package/fesm2022/acorex-components-common.mjs.map +1 -1
  378. package/fesm2022/acorex-components-context-menu.mjs +10 -20
  379. package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
  380. package/fesm2022/acorex-components-data-pager.mjs +188 -100
  381. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  382. package/fesm2022/acorex-components-data-table.mjs +37 -47
  383. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  384. package/fesm2022/acorex-components-date-picker.mjs +49 -23
  385. package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
  386. package/fesm2022/acorex-components-decorators.mjs +39 -40
  387. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  388. package/fesm2022/acorex-components-dialog.mjs +8 -14
  389. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  390. package/fesm2022/acorex-components-drawer.mjs +14 -19
  391. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  392. package/fesm2022/acorex-components-dropdown.mjs +15 -18
  393. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  394. package/fesm2022/acorex-components-form.mjs +54 -57
  395. package/fesm2022/acorex-components-form.mjs.map +1 -1
  396. package/fesm2022/acorex-components-image.mjs +16 -19
  397. package/fesm2022/acorex-components-image.mjs.map +1 -1
  398. package/fesm2022/acorex-components-label.mjs +7 -10
  399. package/fesm2022/acorex-components-label.mjs.map +1 -1
  400. package/fesm2022/acorex-components-loading.mjs +82 -84
  401. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  402. package/fesm2022/acorex-components-menu.mjs +43 -30
  403. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  404. package/fesm2022/acorex-components-mixin.mjs +169 -173
  405. package/fesm2022/acorex-components-mixin.mjs.map +1 -1
  406. package/fesm2022/acorex-components-notification.mjs +14 -25
  407. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  408. package/fesm2022/acorex-components-number-box.mjs +40 -31
  409. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  410. package/fesm2022/acorex-components-otp.mjs +141 -0
  411. package/fesm2022/acorex-components-otp.mjs.map +1 -0
  412. package/fesm2022/acorex-components-page.mjs +14 -18
  413. package/fesm2022/acorex-components-page.mjs.map +1 -1
  414. package/fesm2022/acorex-components-password-box.mjs +23 -21
  415. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  416. package/fesm2022/acorex-components-popover.mjs +63 -65
  417. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  418. package/fesm2022/acorex-components-popup.mjs +37 -46
  419. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  420. package/fesm2022/acorex-components-progress-bar.mjs +7 -7
  421. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  422. package/fesm2022/acorex-components-radio.mjs +5 -5
  423. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  424. package/fesm2022/acorex-components-range-slider.mjs +15 -23
  425. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  426. package/fesm2022/acorex-components-result.mjs +7 -9
  427. package/fesm2022/acorex-components-result.mjs.map +1 -1
  428. package/fesm2022/acorex-components-search-box.mjs +10 -12
  429. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  430. package/fesm2022/acorex-components-select-box.mjs +40 -41
  431. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  432. package/fesm2022/acorex-components-selection-list.mjs +10 -9
  433. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  434. package/fesm2022/acorex-components-switch.mjs +7 -10
  435. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  436. package/fesm2022/acorex-components-tabs.mjs +60 -65
  437. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  438. package/fesm2022/acorex-components-tag.mjs +7 -7
  439. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  440. package/fesm2022/acorex-components-textarea.mjs +16 -8
  441. package/fesm2022/acorex-components-textarea.mjs.map +1 -1
  442. package/fesm2022/acorex-components-textbox.mjs +27 -19
  443. package/fesm2022/acorex-components-textbox.mjs.map +1 -1
  444. package/fesm2022/acorex-components-time-box.mjs +36 -21
  445. package/fesm2022/acorex-components-time-box.mjs.map +1 -1
  446. package/fesm2022/acorex-components-toast.mjs +19 -21
  447. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  448. package/fesm2022/acorex-components-tooltip.mjs +12 -19
  449. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  450. package/fesm2022/acorex-components-uploader.mjs +11 -14
  451. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  452. package/fesm2022/acorex-components.mjs +1 -6
  453. package/fesm2022/acorex-components.mjs.map +1 -1
  454. package/form/README.md +3 -0
  455. package/form/index.d.ts +6 -5
  456. package/image/README.md +3 -0
  457. package/image/index.d.ts +2 -5
  458. package/image/lib/image.component.d.ts +27 -0
  459. package/index.d.ts +2 -5
  460. package/label/README.md +3 -0
  461. package/label/index.d.ts +2 -5
  462. package/loading/README.md +3 -0
  463. package/loading/index.d.ts +5 -5
  464. package/loading/lib/loading.directive.d.ts +22 -0
  465. package/menu/README.md +3 -0
  466. package/menu/index.d.ts +2 -5
  467. package/menu/lib/menu.component.d.ts +42 -0
  468. package/mixin/README.md +3 -0
  469. package/mixin/index.d.ts +17 -5
  470. package/mixin/lib/base-components.class.d.ts +84 -0
  471. package/mixin/lib/base-menu-mixin.class.d.ts +53 -0
  472. package/mixin/lib/button-mixin.class.d.ts +53 -0
  473. package/mixin/lib/clickable-mixin.class.d.ts +36 -0
  474. package/mixin/lib/color-look-mixing.class.d.ts +44 -0
  475. package/mixin/lib/datalist-component.class.d.ts +59 -0
  476. package/mixin/lib/dropdown-mixin.class.d.ts +47 -0
  477. package/mixin/lib/interactive-mixin.class.d.ts +60 -0
  478. package/mixin/lib/loading-mixin.class.d.ts +40 -0
  479. package/mixin/lib/mixin.class.d.ts +679 -0
  480. package/mixin/lib/page-component.class.d.ts +28 -0
  481. package/mixin/lib/selection-component.class.d.ts +61 -0
  482. package/mixin/lib/sizable-mixin.class.d.ts +34 -0
  483. package/mixin/lib/textbox-mixin.class.d.ts +68 -0
  484. package/mixin/lib/value-mixin.class.d.ts +63 -0
  485. package/notification/README.md +3 -0
  486. package/notification/index.d.ts +4 -5
  487. package/number-box/README.md +3 -0
  488. package/number-box/index.d.ts +2 -5
  489. package/otp/README.md +3 -0
  490. package/otp/index.d.ts +3 -0
  491. package/otp/lib/otp.class.d.ts +4 -0
  492. package/otp/lib/otp.component.d.ts +25 -0
  493. package/otp/lib/otp.module.d.ts +8 -0
  494. package/package.json +17 -33
  495. package/page/README.md +3 -0
  496. package/page/index.d.ts +3 -5
  497. package/page/lib/page.component.d.ts +14 -0
  498. package/password-box/README.md +3 -0
  499. package/password-box/index.d.ts +2 -5
  500. package/popover/README.md +3 -0
  501. package/popover/index.d.ts +3 -5
  502. package/popup/README.md +3 -0
  503. package/popup/index.d.ts +3 -5
  504. package/progress-bar/README.md +3 -0
  505. package/progress-bar/index.d.ts +2 -5
  506. package/radio/README.md +3 -0
  507. package/radio/index.d.ts +2 -5
  508. package/range-slider/README.md +3 -0
  509. package/range-slider/index.d.ts +2 -5
  510. package/result/README.md +3 -0
  511. package/result/index.d.ts +2 -5
  512. package/result/lib/result.component.d.ts +10 -0
  513. package/search-box/README.md +3 -0
  514. package/search-box/index.d.ts +2 -5
  515. package/select-box/README.md +3 -0
  516. package/select-box/index.d.ts +2 -5
  517. package/select-box/lib/select-box.module.d.ts +18 -0
  518. package/selection-list/README.md +3 -0
  519. package/selection-list/index.d.ts +2 -5
  520. package/switch/README.md +3 -0
  521. package/switch/index.d.ts +3 -5
  522. package/tabs/README.md +3 -0
  523. package/tabs/index.d.ts +5 -5
  524. package/tabs/lib/tab-item.component.d.ts +48 -0
  525. package/tag/README.md +3 -0
  526. package/tag/index.d.ts +2 -5
  527. package/textarea/README.md +3 -0
  528. package/textarea/index.d.ts +2 -5
  529. package/textbox/README.md +3 -0
  530. package/textbox/index.d.ts +3 -5
  531. package/time-box/README.md +3 -0
  532. package/time-box/index.d.ts +2 -5
  533. package/toast/README.md +3 -0
  534. package/toast/index.d.ts +4 -5
  535. package/tooltip/README.md +3 -0
  536. package/tooltip/index.d.ts +3 -5
  537. package/uploader/README.md +3 -0
  538. package/uploader/index.d.ts +2 -5
  539. package/action-sheet/public-api.d.ts +0 -4
  540. package/alert/public-api.d.ts +0 -2
  541. package/avatar/public-api.d.ts +0 -3
  542. package/badge/public-api.d.ts +0 -2
  543. package/breadcrumbs/public-api.d.ts +0 -4
  544. package/breadcrumbs/src/breadcrumbs-item.component.d.ts +0 -79
  545. package/button/public-api.d.ts +0 -5
  546. package/button/src/button-group.component.d.ts +0 -86
  547. package/button/src/button-item.component.d.ts +0 -80
  548. package/calendar/public-api.d.ts +0 -4
  549. package/calendar/src/calendar.class.d.ts +0 -81
  550. package/card/index.d.ts +0 -5
  551. package/card/public-api.d.ts +0 -2
  552. package/card/src/card.component.d.ts +0 -10
  553. package/card/src/card.module.d.ts +0 -8
  554. package/checkbox/public-api.d.ts +0 -2
  555. package/chips/public-api.d.ts +0 -2
  556. package/chips/src/chips.component.d.ts +0 -72
  557. package/collapse/public-api.d.ts +0 -3
  558. package/color-palette/public-api.d.ts +0 -7
  559. package/color-picker/public-api.d.ts +0 -2
  560. package/color-picker/src/color-picker.component.d.ts +0 -195
  561. package/common/public-api.d.ts +0 -16
  562. package/common/src/components/button-base-component.class.d.ts +0 -36
  563. package/common/src/components/index.d.ts +0 -7
  564. package/common/src/components/interactive-component.class.d.ts +0 -37
  565. package/common/src/components/look-component.class.d.ts +0 -15
  566. package/context-menu/public-api.d.ts +0 -2
  567. package/data-pager/public-api.d.ts +0 -9
  568. package/data-pager/src/data-pager-input-selector.component.d.ts +0 -15
  569. package/data-table/public-api.d.ts +0 -4
  570. package/date-picker/public-api.d.ts +0 -2
  571. package/decorators/public-api.d.ts +0 -14
  572. package/dialog/public-api.d.ts +0 -4
  573. package/drawer/public-api.d.ts +0 -3
  574. package/dropdown/public-api.d.ts +0 -2
  575. package/esm2022/action-sheet/public-api.mjs +0 -5
  576. package/esm2022/action-sheet/src/action-sheet.component.mjs +0 -79
  577. package/esm2022/action-sheet/src/action-sheet.interface.mjs +0 -3
  578. package/esm2022/action-sheet/src/action-sheet.module.mjs +0 -27
  579. package/esm2022/action-sheet/src/action-sheet.service.mjs +0 -90
  580. package/esm2022/alert/public-api.mjs +0 -3
  581. package/esm2022/alert/src/alert.component.mjs +0 -196
  582. package/esm2022/alert/src/alert.module.mjs +0 -23
  583. package/esm2022/avatar/public-api.mjs +0 -4
  584. package/esm2022/avatar/src/avatar-group.component.mjs +0 -17
  585. package/esm2022/avatar/src/avatar.component.mjs +0 -39
  586. package/esm2022/avatar/src/avatar.module.mjs +0 -23
  587. package/esm2022/badge/public-api.mjs +0 -3
  588. package/esm2022/badge/src/badge.component.mjs +0 -24
  589. package/esm2022/badge/src/badge.module.mjs +0 -20
  590. package/esm2022/breadcrumbs/public-api.mjs +0 -5
  591. package/esm2022/breadcrumbs/src/breadcrumbs-item.class.mjs +0 -2
  592. package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +0 -51
  593. package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +0 -22
  594. package/esm2022/breadcrumbs/src/breadcrumbs.module.mjs +0 -21
  595. package/esm2022/button/public-api.mjs +0 -6
  596. package/esm2022/button/src/button-group.component.mjs +0 -92
  597. package/esm2022/button/src/button-item.class.mjs +0 -2
  598. package/esm2022/button/src/button-item.component.mjs +0 -80
  599. package/esm2022/button/src/button.component.mjs +0 -62
  600. package/esm2022/button/src/button.module.mjs +0 -33
  601. package/esm2022/calendar/public-api.mjs +0 -5
  602. package/esm2022/calendar/src/calendar-range.component.mjs +0 -174
  603. package/esm2022/calendar/src/calendar.class.mjs +0 -231
  604. package/esm2022/calendar/src/calendar.component.mjs +0 -374
  605. package/esm2022/calendar/src/calendar.module.mjs +0 -24
  606. package/esm2022/card/acorex-components-card.mjs +0 -5
  607. package/esm2022/card/public-api.mjs +0 -3
  608. package/esm2022/card/src/card.component.mjs +0 -19
  609. package/esm2022/card/src/card.module.mjs +0 -20
  610. package/esm2022/checkbox/public-api.mjs +0 -3
  611. package/esm2022/checkbox/src/checkbox.component.mjs +0 -43
  612. package/esm2022/checkbox/src/checkbox.module.mjs +0 -22
  613. package/esm2022/chips/public-api.mjs +0 -3
  614. package/esm2022/chips/src/chips.component.mjs +0 -34
  615. package/esm2022/chips/src/chips.module.mjs +0 -20
  616. package/esm2022/collapse/public-api.mjs +0 -4
  617. package/esm2022/collapse/src/collapse-group.component.mjs +0 -53
  618. package/esm2022/collapse/src/collapse.component.mjs +0 -48
  619. package/esm2022/collapse/src/collapse.module.mjs +0 -21
  620. package/esm2022/color-palette/public-api.mjs +0 -8
  621. package/esm2022/color-palette/src/color-palette-input.component.mjs +0 -131
  622. package/esm2022/color-palette/src/color-palette-picker.component.mjs +0 -160
  623. package/esm2022/color-palette/src/color-palette-preview.component.mjs +0 -63
  624. package/esm2022/color-palette/src/color-palette-swatches.component.mjs +0 -305
  625. package/esm2022/color-palette/src/color-palette.class.mjs +0 -19
  626. package/esm2022/color-palette/src/color-palette.component.mjs +0 -76
  627. package/esm2022/color-palette/src/color-palette.module.mjs +0 -61
  628. package/esm2022/color-picker/public-api.mjs +0 -3
  629. package/esm2022/color-picker/src/color-picker.component.mjs +0 -120
  630. package/esm2022/color-picker/src/color-picker.module.mjs +0 -62
  631. package/esm2022/common/public-api.mjs +0 -17
  632. package/esm2022/common/src/classes/components.class.mjs +0 -78
  633. package/esm2022/common/src/classes/data.class.mjs +0 -2
  634. package/esm2022/common/src/classes/drawing.class.mjs +0 -2
  635. package/esm2022/common/src/classes/events.class.mjs +0 -96
  636. package/esm2022/common/src/classes/styles.class.mjs +0 -4
  637. package/esm2022/common/src/common.module.mjs +0 -43
  638. package/esm2022/common/src/components/base-component.class.mjs +0 -67
  639. package/esm2022/common/src/components/button-base-component.class.mjs +0 -69
  640. package/esm2022/common/src/components/color-component.class.mjs +0 -27
  641. package/esm2022/common/src/components/colorlook-component.class.mjs +0 -11
  642. package/esm2022/common/src/components/index.mjs +0 -8
  643. package/esm2022/common/src/components/interactive-component.class.mjs +0 -63
  644. package/esm2022/common/src/components/look-component.class.mjs +0 -27
  645. package/esm2022/common/src/components/value-component.class.mjs +0 -204
  646. package/esm2022/common/src/constant/positions.mjs +0 -75
  647. package/esm2022/common/src/directives/auto-focus.directive.mjs +0 -58
  648. package/esm2022/common/src/directives/debounce-time.directive.mjs +0 -50
  649. package/esm2022/common/src/directives/hotkey.directive.mjs +0 -83
  650. package/esm2022/common/src/directives/infinite-scroll.directive.mjs +0 -70
  651. package/esm2022/common/src/directives/responsive.directive.mjs +0 -39
  652. package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +0 -52
  653. package/esm2022/common/src/services/hotkey.service.mjs +0 -48
  654. package/esm2022/common/src/services/overlay.service.mjs +0 -116
  655. package/esm2022/context-menu/public-api.mjs +0 -3
  656. package/esm2022/context-menu/src/context-menu.component.mjs +0 -271
  657. package/esm2022/context-menu/src/context-menu.module.mjs +0 -37
  658. package/esm2022/data-pager/public-api.mjs +0 -10
  659. package/esm2022/data-pager/src/data-pager-base.component.mjs +0 -37
  660. package/esm2022/data-pager/src/data-pager-info.component.mjs +0 -62
  661. package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +0 -54
  662. package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +0 -67
  663. package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +0 -99
  664. package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +0 -87
  665. package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +0 -62
  666. package/esm2022/data-pager/src/data-pager.component.mjs +0 -147
  667. package/esm2022/data-pager/src/data-pager.module.mjs +0 -52
  668. package/esm2022/data-table/public-api.mjs +0 -5
  669. package/esm2022/data-table/src/data-column-cell-template.directive.mjs +0 -19
  670. package/esm2022/data-table/src/data-column.directive.mjs +0 -51
  671. package/esm2022/data-table/src/data-table.component.mjs +0 -140
  672. package/esm2022/data-table/src/data-table.module.mjs +0 -28
  673. package/esm2022/date-picker/public-api.mjs +0 -3
  674. package/esm2022/date-picker/src/datepicker.component.mjs +0 -100
  675. package/esm2022/date-picker/src/datepicker.module.mjs +0 -45
  676. package/esm2022/decorators/public-api.mjs +0 -15
  677. package/esm2022/decorators/src/close-button.component.mjs +0 -52
  678. package/esm2022/decorators/src/content.component.mjs +0 -22
  679. package/esm2022/decorators/src/decorators.module.mjs +0 -72
  680. package/esm2022/decorators/src/footer.component.mjs +0 -30
  681. package/esm2022/decorators/src/form-hint.component.mjs +0 -21
  682. package/esm2022/decorators/src/header.component.mjs +0 -30
  683. package/esm2022/decorators/src/icon.component.mjs +0 -31
  684. package/esm2022/decorators/src/overlay.component.mjs +0 -21
  685. package/esm2022/decorators/src/placeholder.component.mjs +0 -15
  686. package/esm2022/decorators/src/prefix.component.mjs +0 -22
  687. package/esm2022/decorators/src/sub-title.component.mjs +0 -28
  688. package/esm2022/decorators/src/suffix.component.mjs +0 -22
  689. package/esm2022/decorators/src/text.component.mjs +0 -23
  690. package/esm2022/decorators/src/title.component.mjs +0 -21
  691. package/esm2022/dialog/public-api.mjs +0 -5
  692. package/esm2022/dialog/src/dialog.class.mjs +0 -2
  693. package/esm2022/dialog/src/dialog.component.mjs +0 -56
  694. package/esm2022/dialog/src/dialog.module.mjs +0 -28
  695. package/esm2022/dialog/src/dialog.service.mjs +0 -155
  696. package/esm2022/drawer/public-api.mjs +0 -4
  697. package/esm2022/drawer/src/drawer-container.component.mjs +0 -39
  698. package/esm2022/drawer/src/drawer.component.mjs +0 -145
  699. package/esm2022/drawer/src/drawer.module.mjs +0 -23
  700. package/esm2022/dropdown/public-api.mjs +0 -3
  701. package/esm2022/dropdown/src/dropdown-panel.component.mjs +0 -106
  702. package/esm2022/dropdown/src/dropdown.module.mjs +0 -26
  703. package/esm2022/form/public-api.mjs +0 -7
  704. package/esm2022/form/src/form-field.component.mjs +0 -16
  705. package/esm2022/form/src/form.component.mjs +0 -168
  706. package/esm2022/form/src/form.module.mjs +0 -64
  707. package/esm2022/form/src/validation-rule.widget.mjs +0 -114
  708. package/esm2022/form/src/validation-summary.component.mjs +0 -110
  709. package/esm2022/form/src/validation.class.mjs +0 -2
  710. package/esm2022/image/public-api.mjs +0 -3
  711. package/esm2022/image/src/image.component.mjs +0 -80
  712. package/esm2022/image/src/image.module.mjs +0 -20
  713. package/esm2022/label/public-api.mjs +0 -3
  714. package/esm2022/label/src/label.component.mjs +0 -49
  715. package/esm2022/label/src/label.module.mjs +0 -22
  716. package/esm2022/loading/public-api.mjs +0 -6
  717. package/esm2022/loading/src/loading-spinner.component.mjs +0 -70
  718. package/esm2022/loading/src/loading.component.mjs +0 -56
  719. package/esm2022/loading/src/loading.directive.mjs +0 -77
  720. package/esm2022/loading/src/loading.module.mjs +0 -36
  721. package/esm2022/loading/src/loading.service.mjs +0 -153
  722. package/esm2022/menu/public-api.mjs +0 -3
  723. package/esm2022/menu/src/menu.component.mjs +0 -333
  724. package/esm2022/menu/src/menu.module.mjs +0 -34
  725. package/esm2022/mixin/public-api.mjs +0 -18
  726. package/esm2022/mixin/src/base-components.class.mjs +0 -108
  727. package/esm2022/mixin/src/base-menu-mixin.class.mjs +0 -134
  728. package/esm2022/mixin/src/button-mixin.class.mjs +0 -71
  729. package/esm2022/mixin/src/clickable-mixin.class.mjs +0 -24
  730. package/esm2022/mixin/src/color-look-mixing.class.mjs +0 -45
  731. package/esm2022/mixin/src/constratctor.mjs +0 -2
  732. package/esm2022/mixin/src/datalist-component.class.mjs +0 -151
  733. package/esm2022/mixin/src/datalist.class.mjs +0 -3
  734. package/esm2022/mixin/src/dropdown-mixin.class.mjs +0 -95
  735. package/esm2022/mixin/src/interactive-mixin.class.mjs +0 -81
  736. package/esm2022/mixin/src/loading-mixin.class.mjs +0 -26
  737. package/esm2022/mixin/src/mixin.class.mjs +0 -26
  738. package/esm2022/mixin/src/page-component.class.mjs +0 -11
  739. package/esm2022/mixin/src/selection-component.class.mjs +0 -176
  740. package/esm2022/mixin/src/sizable-mixin.class.mjs +0 -22
  741. package/esm2022/mixin/src/textbox-mixin.class.mjs +0 -66
  742. package/esm2022/mixin/src/value-mixin.class.mjs +0 -220
  743. package/esm2022/notification/public-api.mjs +0 -5
  744. package/esm2022/notification/src/notification.class.mjs +0 -2
  745. package/esm2022/notification/src/notification.component.mjs +0 -93
  746. package/esm2022/notification/src/notification.module.mjs +0 -24
  747. package/esm2022/notification/src/notification.service.mjs +0 -110
  748. package/esm2022/number-box/public-api.mjs +0 -3
  749. package/esm2022/number-box/src/number-box.component.mjs +0 -240
  750. package/esm2022/number-box/src/number-box.module.mjs +0 -36
  751. package/esm2022/page/public-api.mjs +0 -4
  752. package/esm2022/page/src/base-page.class.mjs +0 -64
  753. package/esm2022/page/src/page.component.mjs +0 -47
  754. package/esm2022/page/src/page.module.mjs +0 -19
  755. package/esm2022/password-box/public-api.mjs +0 -3
  756. package/esm2022/password-box/src/password-box.component.mjs +0 -64
  757. package/esm2022/password-box/src/password-box.module.mjs +0 -33
  758. package/esm2022/picker/acorex-components-picker.mjs +0 -5
  759. package/esm2022/picker/public-api.mjs +0 -4
  760. package/esm2022/picker/src/picker-column.component.mjs +0 -21
  761. package/esm2022/picker/src/picker.component.mjs +0 -17
  762. package/esm2022/picker/src/picker.module.mjs +0 -38
  763. package/esm2022/popover/public-api.mjs +0 -4
  764. package/esm2022/popover/src/dropdown-component.class.mjs +0 -71
  765. package/esm2022/popover/src/popover.component.mjs +0 -270
  766. package/esm2022/popover/src/popover.module.mjs +0 -20
  767. package/esm2022/popup/public-api.mjs +0 -4
  768. package/esm2022/popup/src/popup.component.mjs +0 -147
  769. package/esm2022/popup/src/popup.module.mjs +0 -28
  770. package/esm2022/popup/src/popup.service.mjs +0 -117
  771. package/esm2022/progress-bar/public-api.mjs +0 -3
  772. package/esm2022/progress-bar/src/progress-bar.component.mjs +0 -34
  773. package/esm2022/progress-bar/src/progress-bar.module.mjs +0 -20
  774. package/esm2022/public-api.mjs +0 -5
  775. package/esm2022/radio/public-api.mjs +0 -3
  776. package/esm2022/radio/src/radio.component.mjs +0 -40
  777. package/esm2022/radio/src/radio.module.mjs +0 -23
  778. package/esm2022/range-slider/public-api.mjs +0 -3
  779. package/esm2022/range-slider/src/range-slider.component.mjs +0 -118
  780. package/esm2022/range-slider/src/range-slider.module.mjs +0 -23
  781. package/esm2022/rating/acorex-components-rating.mjs +0 -5
  782. package/esm2022/rating/public-api.mjs +0 -3
  783. package/esm2022/rating/src/rating.component.mjs +0 -42
  784. package/esm2022/rating/src/rating.component.module.mjs +0 -20
  785. package/esm2022/result/public-api.mjs +0 -3
  786. package/esm2022/result/src/result.component.mjs +0 -27
  787. package/esm2022/result/src/result.module.mjs +0 -20
  788. package/esm2022/search-box/public-api.mjs +0 -3
  789. package/esm2022/search-box/src/search-box.component.mjs +0 -63
  790. package/esm2022/search-box/src/search-box.module.mjs +0 -26
  791. package/esm2022/select-box/public-api.mjs +0 -3
  792. package/esm2022/select-box/src/selectbox.component.mjs +0 -367
  793. package/esm2022/select-box/src/selectbox.module.mjs +0 -62
  794. package/esm2022/selection-list/public-api.mjs +0 -3
  795. package/esm2022/selection-list/src/selection-list.component.mjs +0 -60
  796. package/esm2022/selection-list/src/selection-list.module.mjs +0 -25
  797. package/esm2022/switch/public-api.mjs +0 -4
  798. package/esm2022/switch/src/switch-content.component.mjs +0 -17
  799. package/esm2022/switch/src/switch.component.mjs +0 -55
  800. package/esm2022/switch/src/switch.module.mjs +0 -23
  801. package/esm2022/tabs/public-api.mjs +0 -6
  802. package/esm2022/tabs/src/tab-content.directive.mjs +0 -32
  803. package/esm2022/tabs/src/tab-item.component.mjs +0 -141
  804. package/esm2022/tabs/src/tabs.class.mjs +0 -6
  805. package/esm2022/tabs/src/tabs.component.mjs +0 -111
  806. package/esm2022/tabs/src/tabs.module.mjs +0 -26
  807. package/esm2022/tag/public-api.mjs +0 -3
  808. package/esm2022/tag/src/tag.component.mjs +0 -30
  809. package/esm2022/tag/src/tag.module.mjs +0 -20
  810. package/esm2022/textarea/public-api.mjs +0 -3
  811. package/esm2022/textarea/src/textarea.component.mjs +0 -30
  812. package/esm2022/textarea/src/textarea.module.mjs +0 -20
  813. package/esm2022/textbox/public-api.mjs +0 -4
  814. package/esm2022/textbox/src/mask-options.directive.mjs +0 -20
  815. package/esm2022/textbox/src/textbox.component.mjs +0 -84
  816. package/esm2022/textbox/src/textbox.module.mjs +0 -39
  817. package/esm2022/time-box/public-api.mjs +0 -3
  818. package/esm2022/time-box/src/time-box.component.mjs +0 -282
  819. package/esm2022/time-box/src/time-box.module.mjs +0 -33
  820. package/esm2022/toast/public-api.mjs +0 -5
  821. package/esm2022/toast/src/toast.class.mjs +0 -2
  822. package/esm2022/toast/src/toast.component.mjs +0 -68
  823. package/esm2022/toast/src/toast.module.mjs +0 -23
  824. package/esm2022/toast/src/toast.service.mjs +0 -137
  825. package/esm2022/tooltip/public-api.mjs +0 -4
  826. package/esm2022/tooltip/src/tooltip.component.mjs +0 -22
  827. package/esm2022/tooltip/src/tooltip.directive.mjs +0 -164
  828. package/esm2022/tooltip/src/tooltip.module.mjs +0 -23
  829. package/esm2022/tree-view/acorex-components-tree-view.mjs +0 -5
  830. package/esm2022/tree-view/public-api.mjs +0 -3
  831. package/esm2022/tree-view/src/tree-view.component.mjs +0 -108
  832. package/esm2022/tree-view/src/tree-view.module.mjs +0 -21
  833. package/esm2022/uploader/public-api.mjs +0 -3
  834. package/esm2022/uploader/src/uploader.component.mjs +0 -102
  835. package/esm2022/uploader/src/uploader.module.mjs +0 -21
  836. package/fesm2022/acorex-components-card.mjs +0 -41
  837. package/fesm2022/acorex-components-card.mjs.map +0 -1
  838. package/fesm2022/acorex-components-picker.mjs +0 -74
  839. package/fesm2022/acorex-components-picker.mjs.map +0 -1
  840. package/fesm2022/acorex-components-rating.mjs +0 -64
  841. package/fesm2022/acorex-components-rating.mjs.map +0 -1
  842. package/fesm2022/acorex-components-tree-view.mjs +0 -131
  843. package/fesm2022/acorex-components-tree-view.mjs.map +0 -1
  844. package/form/public-api.d.ts +0 -6
  845. package/image/public-api.d.ts +0 -2
  846. package/image/src/image.component.d.ts +0 -27
  847. package/label/public-api.d.ts +0 -2
  848. package/loading/public-api.d.ts +0 -5
  849. package/loading/src/loading.directive.d.ts +0 -22
  850. package/menu/public-api.d.ts +0 -2
  851. package/menu/src/menu.component.d.ts +0 -42
  852. package/mixin/public-api.d.ts +0 -17
  853. package/mixin/src/base-components.class.d.ts +0 -84
  854. package/mixin/src/base-menu-mixin.class.d.ts +0 -53
  855. package/mixin/src/button-mixin.class.d.ts +0 -53
  856. package/mixin/src/clickable-mixin.class.d.ts +0 -36
  857. package/mixin/src/color-look-mixing.class.d.ts +0 -44
  858. package/mixin/src/datalist-component.class.d.ts +0 -59
  859. package/mixin/src/dropdown-mixin.class.d.ts +0 -47
  860. package/mixin/src/interactive-mixin.class.d.ts +0 -60
  861. package/mixin/src/loading-mixin.class.d.ts +0 -40
  862. package/mixin/src/mixin.class.d.ts +0 -679
  863. package/mixin/src/page-component.class.d.ts +0 -28
  864. package/mixin/src/selection-component.class.d.ts +0 -61
  865. package/mixin/src/sizable-mixin.class.d.ts +0 -34
  866. package/mixin/src/textbox-mixin.class.d.ts +0 -66
  867. package/mixin/src/value-mixin.class.d.ts +0 -63
  868. package/notification/public-api.d.ts +0 -4
  869. package/number-box/public-api.d.ts +0 -2
  870. package/page/public-api.d.ts +0 -3
  871. package/page/src/page.component.d.ts +0 -14
  872. package/password-box/public-api.d.ts +0 -2
  873. package/picker/index.d.ts +0 -5
  874. package/picker/public-api.d.ts +0 -3
  875. package/picker/src/picker-column.component.d.ts +0 -11
  876. package/picker/src/picker.component.d.ts +0 -10
  877. package/picker/src/picker.module.d.ts +0 -14
  878. package/popover/public-api.d.ts +0 -3
  879. package/popup/public-api.d.ts +0 -3
  880. package/progress-bar/public-api.d.ts +0 -2
  881. package/public-api.d.ts +0 -1
  882. package/radio/public-api.d.ts +0 -2
  883. package/range-slider/public-api.d.ts +0 -2
  884. package/rating/index.d.ts +0 -5
  885. package/rating/public-api.d.ts +0 -2
  886. package/rating/src/rating.component.d.ts +0 -21
  887. package/rating/src/rating.component.module.d.ts +0 -8
  888. package/result/public-api.d.ts +0 -2
  889. package/result/src/result.component.d.ts +0 -12
  890. package/scss/_mixin.scss +0 -1
  891. package/scss/_variable.scss +0 -1
  892. package/scss/index.scss +0 -2
  893. package/search-box/public-api.d.ts +0 -2
  894. package/select-box/public-api.d.ts +0 -2
  895. package/select-box/src/selectbox.module.d.ts +0 -18
  896. package/selection-list/public-api.d.ts +0 -2
  897. package/switch/public-api.d.ts +0 -3
  898. package/tabs/public-api.d.ts +0 -5
  899. package/tabs/src/tab-item.component.d.ts +0 -48
  900. package/tag/public-api.d.ts +0 -2
  901. package/textarea/public-api.d.ts +0 -2
  902. package/textbox/public-api.d.ts +0 -3
  903. package/time-box/public-api.d.ts +0 -2
  904. package/toast/public-api.d.ts +0 -4
  905. package/tooltip/public-api.d.ts +0 -3
  906. package/tree-view/index.d.ts +0 -5
  907. package/tree-view/public-api.d.ts +0 -2
  908. package/tree-view/src/tree-view.component.d.ts +0 -33
  909. package/tree-view/src/tree-view.module.d.ts +0 -9
  910. package/uploader/public-api.d.ts +0 -2
  911. /package/action-sheet/{src → lib}/action-sheet.component.d.ts +0 -0
  912. /package/action-sheet/{src → lib}/action-sheet.interface.d.ts +0 -0
  913. /package/action-sheet/{src → lib}/action-sheet.module.d.ts +0 -0
  914. /package/action-sheet/{src → lib}/action-sheet.service.d.ts +0 -0
  915. /package/alert/{src → lib}/alert.component.d.ts +0 -0
  916. /package/alert/{src → lib}/alert.module.d.ts +0 -0
  917. /package/avatar/{src → lib}/avatar-group.component.d.ts +0 -0
  918. /package/avatar/{src → lib}/avatar.component.d.ts +0 -0
  919. /package/avatar/{src → lib}/avatar.module.d.ts +0 -0
  920. /package/badge/{src → lib}/badge.component.d.ts +0 -0
  921. /package/badge/{src → lib}/badge.module.d.ts +0 -0
  922. /package/breadcrumbs/{src → lib}/breadcrumbs-item.class.d.ts +0 -0
  923. /package/breadcrumbs/{src → lib}/breadcrumbs.component.d.ts +0 -0
  924. /package/breadcrumbs/{src → lib}/breadcrumbs.module.d.ts +0 -0
  925. /package/button/{src → lib}/button-item.class.d.ts +0 -0
  926. /package/button/{src → lib}/button.component.d.ts +0 -0
  927. /package/button/{src → lib}/button.module.d.ts +0 -0
  928. /package/calendar/{src → lib}/calendar-range.component.d.ts +0 -0
  929. /package/calendar/{src → lib}/calendar.component.d.ts +0 -0
  930. /package/calendar/{src → lib}/calendar.module.d.ts +0 -0
  931. /package/checkbox/{src → lib}/checkbox.component.d.ts +0 -0
  932. /package/checkbox/{src → lib}/checkbox.module.d.ts +0 -0
  933. /package/chips/{src → lib}/chips.module.d.ts +0 -0
  934. /package/collapse/{src → lib}/collapse-group.component.d.ts +0 -0
  935. /package/collapse/{src → lib}/collapse.component.d.ts +0 -0
  936. /package/collapse/{src → lib}/collapse.module.d.ts +0 -0
  937. /package/color-palette/{src → lib}/color-palette-input.component.d.ts +0 -0
  938. /package/color-palette/{src → lib}/color-palette-picker.component.d.ts +0 -0
  939. /package/color-palette/{src → lib}/color-palette-preview.component.d.ts +0 -0
  940. /package/color-palette/{src → lib}/color-palette-swatches.component.d.ts +0 -0
  941. /package/color-palette/{src → lib}/color-palette.class.d.ts +0 -0
  942. /package/color-palette/{src → lib}/color-palette.component.d.ts +0 -0
  943. /package/color-palette/{src → lib}/color-palette.module.d.ts +0 -0
  944. /package/color-picker/{src → lib}/color-picker.module.d.ts +0 -0
  945. /package/common/{src → lib}/classes/components.class.d.ts +0 -0
  946. /package/common/{src → lib}/classes/data.class.d.ts +0 -0
  947. /package/common/{src → lib}/classes/drawing.class.d.ts +0 -0
  948. /package/common/{src → lib}/classes/events.class.d.ts +0 -0
  949. /package/common/{src → lib}/classes/styles.class.d.ts +0 -0
  950. /package/common/{src → lib}/common.module.d.ts +0 -0
  951. /package/common/{src → lib}/components/base-component.class.d.ts +0 -0
  952. /package/common/{src → lib}/components/color-component.class.d.ts +0 -0
  953. /package/common/{src → lib}/components/colorlook-component.class.d.ts +0 -0
  954. /package/common/{src → lib}/components/value-component.class.d.ts +0 -0
  955. /package/common/{src → lib}/constant/positions.d.ts +0 -0
  956. /package/common/{src → lib}/directives/auto-focus.directive.d.ts +0 -0
  957. /package/common/{src → lib}/directives/debounce-time.directive.d.ts +0 -0
  958. /package/common/{src → lib}/directives/hotkey.directive.d.ts +0 -0
  959. /package/common/{src → lib}/directives/infinite-scroll.directive.d.ts +0 -0
  960. /package/common/{src → lib}/directives/responsive.directive.d.ts +0 -0
  961. /package/common/{src → lib}/services/custom-cdk-overlay.service.d.ts +0 -0
  962. /package/common/{src → lib}/services/hotkey.service.d.ts +0 -0
  963. /package/common/{src → lib}/services/overlay.service.d.ts +0 -0
  964. /package/context-menu/{src → lib}/context-menu.component.d.ts +0 -0
  965. /package/context-menu/{src → lib}/context-menu.module.d.ts +0 -0
  966. /package/data-pager/{src → lib}/data-pager-base.component.d.ts +0 -0
  967. /package/data-pager/{src → lib}/data-pager-info.component.d.ts +0 -0
  968. /package/data-pager/{src → lib}/data-pager-next-buttons.components.d.ts +0 -0
  969. /package/data-pager/{src → lib}/data-pager-numeric-selector.component.d.ts +0 -0
  970. /package/data-pager/{src → lib}/data-pager-pagesize-dropdown.component.d.ts +0 -0
  971. /package/data-pager/{src → lib}/data-pager-prev-buttons.component.d.ts +0 -0
  972. /package/data-pager/{src → lib}/data-pager.component.d.ts +0 -0
  973. /package/data-pager/{src → lib}/data-pager.module.d.ts +0 -0
  974. /package/data-table/{src → lib}/data-column-cell-template.directive.d.ts +0 -0
  975. /package/data-table/{src → lib}/data-column.directive.d.ts +0 -0
  976. /package/data-table/{src → lib}/data-table.component.d.ts +0 -0
  977. /package/data-table/{src → lib}/data-table.module.d.ts +0 -0
  978. /package/date-picker/{src → lib}/datepicker.component.d.ts +0 -0
  979. /package/date-picker/{src → lib}/datepicker.module.d.ts +0 -0
  980. /package/decorators/{src → lib}/close-button.component.d.ts +0 -0
  981. /package/decorators/{src → lib}/content.component.d.ts +0 -0
  982. /package/decorators/{src → lib}/decorators.module.d.ts +0 -0
  983. /package/decorators/{src → lib}/footer.component.d.ts +0 -0
  984. /package/decorators/{src → lib}/form-hint.component.d.ts +0 -0
  985. /package/decorators/{src → lib}/header.component.d.ts +0 -0
  986. /package/decorators/{src → lib}/icon.component.d.ts +0 -0
  987. /package/decorators/{src → lib}/overlay.component.d.ts +0 -0
  988. /package/decorators/{src → lib}/placeholder.component.d.ts +0 -0
  989. /package/decorators/{src → lib}/prefix.component.d.ts +0 -0
  990. /package/decorators/{src → lib}/sub-title.component.d.ts +0 -0
  991. /package/decorators/{src → lib}/suffix.component.d.ts +0 -0
  992. /package/decorators/{src → lib}/text.component.d.ts +0 -0
  993. /package/decorators/{src → lib}/title.component.d.ts +0 -0
  994. /package/dialog/{src → lib}/dialog.class.d.ts +0 -0
  995. /package/dialog/{src → lib}/dialog.component.d.ts +0 -0
  996. /package/dialog/{src → lib}/dialog.module.d.ts +0 -0
  997. /package/dialog/{src → lib}/dialog.service.d.ts +0 -0
  998. /package/drawer/{src → lib}/drawer-container.component.d.ts +0 -0
  999. /package/drawer/{src → lib}/drawer.component.d.ts +0 -0
  1000. /package/drawer/{src → lib}/drawer.module.d.ts +0 -0
  1001. /package/dropdown/{src → lib}/dropdown-panel.component.d.ts +0 -0
  1002. /package/dropdown/{src → lib}/dropdown.module.d.ts +0 -0
  1003. /package/form/{src → lib}/form-field.component.d.ts +0 -0
  1004. /package/form/{src → lib}/form.component.d.ts +0 -0
  1005. /package/form/{src → lib}/form.module.d.ts +0 -0
  1006. /package/form/{src → lib}/validation-rule.widget.d.ts +0 -0
  1007. /package/form/{src → lib}/validation-summary.component.d.ts +0 -0
  1008. /package/form/{src → lib}/validation.class.d.ts +0 -0
  1009. /package/image/{src → lib}/image.module.d.ts +0 -0
  1010. /package/label/{src → lib}/label.component.d.ts +0 -0
  1011. /package/label/{src → lib}/label.module.d.ts +0 -0
  1012. /package/loading/{src → lib}/loading-spinner.component.d.ts +0 -0
  1013. /package/loading/{src → lib}/loading.component.d.ts +0 -0
  1014. /package/loading/{src → lib}/loading.module.d.ts +0 -0
  1015. /package/loading/{src → lib}/loading.service.d.ts +0 -0
  1016. /package/menu/{src → lib}/menu.module.d.ts +0 -0
  1017. /package/mixin/{src → lib}/constratctor.d.ts +0 -0
  1018. /package/mixin/{src → lib}/datalist.class.d.ts +0 -0
  1019. /package/notification/{src → lib}/notification.class.d.ts +0 -0
  1020. /package/notification/{src → lib}/notification.component.d.ts +0 -0
  1021. /package/notification/{src → lib}/notification.module.d.ts +0 -0
  1022. /package/notification/{src → lib}/notification.service.d.ts +0 -0
  1023. /package/number-box/{src → lib}/number-box.component.d.ts +0 -0
  1024. /package/number-box/{src → lib}/number-box.module.d.ts +0 -0
  1025. /package/page/{src → lib}/base-page.class.d.ts +0 -0
  1026. /package/page/{src → lib}/page.module.d.ts +0 -0
  1027. /package/password-box/{src → lib}/password-box.component.d.ts +0 -0
  1028. /package/password-box/{src → lib}/password-box.module.d.ts +0 -0
  1029. /package/popover/{src → lib}/dropdown-component.class.d.ts +0 -0
  1030. /package/popover/{src → lib}/popover.component.d.ts +0 -0
  1031. /package/popover/{src → lib}/popover.module.d.ts +0 -0
  1032. /package/popup/{src → lib}/popup.component.d.ts +0 -0
  1033. /package/popup/{src → lib}/popup.module.d.ts +0 -0
  1034. /package/popup/{src → lib}/popup.service.d.ts +0 -0
  1035. /package/progress-bar/{src → lib}/progress-bar.component.d.ts +0 -0
  1036. /package/progress-bar/{src → lib}/progress-bar.module.d.ts +0 -0
  1037. /package/radio/{src → lib}/radio.component.d.ts +0 -0
  1038. /package/radio/{src → lib}/radio.module.d.ts +0 -0
  1039. /package/range-slider/{src → lib}/range-slider.component.d.ts +0 -0
  1040. /package/range-slider/{src → lib}/range-slider.module.d.ts +0 -0
  1041. /package/result/{src → lib}/result.module.d.ts +0 -0
  1042. /package/search-box/{src → lib}/search-box.component.d.ts +0 -0
  1043. /package/search-box/{src → lib}/search-box.module.d.ts +0 -0
  1044. /package/select-box/{src/selectbox.component.d.ts → lib/select-box.component.d.ts} +0 -0
  1045. /package/selection-list/{src → lib}/selection-list.component.d.ts +0 -0
  1046. /package/selection-list/{src → lib}/selection-list.module.d.ts +0 -0
  1047. /package/switch/{src → lib}/switch-content.component.d.ts +0 -0
  1048. /package/switch/{src → lib}/switch.component.d.ts +0 -0
  1049. /package/switch/{src → lib}/switch.module.d.ts +0 -0
  1050. /package/tabs/{src → lib}/tab-content.directive.d.ts +0 -0
  1051. /package/tabs/{src → lib}/tabs.class.d.ts +0 -0
  1052. /package/tabs/{src → lib}/tabs.component.d.ts +0 -0
  1053. /package/tabs/{src → lib}/tabs.module.d.ts +0 -0
  1054. /package/tag/{src → lib}/tag.component.d.ts +0 -0
  1055. /package/tag/{src → lib}/tag.module.d.ts +0 -0
  1056. /package/textarea/{src → lib}/textarea.component.d.ts +0 -0
  1057. /package/textarea/{src → lib}/textarea.module.d.ts +0 -0
  1058. /package/textbox/{src → lib}/mask-options.directive.d.ts +0 -0
  1059. /package/textbox/{src → lib}/textbox.component.d.ts +0 -0
  1060. /package/textbox/{src → lib}/textbox.module.d.ts +0 -0
  1061. /package/time-box/{src → lib}/time-box.component.d.ts +0 -0
  1062. /package/time-box/{src → lib}/time-box.module.d.ts +0 -0
  1063. /package/toast/{src → lib}/toast.class.d.ts +0 -0
  1064. /package/toast/{src → lib}/toast.component.d.ts +0 -0
  1065. /package/toast/{src → lib}/toast.module.d.ts +0 -0
  1066. /package/toast/{src → lib}/toast.service.d.ts +0 -0
  1067. /package/tooltip/{src → lib}/tooltip.component.d.ts +0 -0
  1068. /package/tooltip/{src → lib}/tooltip.directive.d.ts +0 -0
  1069. /package/tooltip/{src → lib}/tooltip.module.d.ts +0 -0
  1070. /package/uploader/{src → lib}/uploader.component.d.ts +0 -0
  1071. /package/uploader/{src → lib}/uploader.module.d.ts +0 -0
@@ -1,15 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Directive, Host, Self, Optional, Input, Output, Inject, TemplateRef, NgModule } from '@angular/core';
3
- import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
4
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
5
- import { classes } from 'polytype';
6
- import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
2
+ import { Injectable, Directive, Host, Self, Optional, Input, EventEmitter, Output, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, TemplateRef } from '@angular/core';
7
3
  import * as i1 from '@angular/forms';
4
+ import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
8
5
  import * as i3 from '@angular/common';
9
6
  import { DOCUMENT } from '@angular/common';
10
- import { Observable } from 'rxjs/internal/Observable';
11
7
  import * as i1$1 from '@angular/platform-browser';
8
+ import { Observable } from 'rxjs/internal/Observable';
12
9
  import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
10
+ import { classes } from 'polytype';
11
+ import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
12
+ import { coerceNumberProperty, coerceBooleanProperty } 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';
@@ -20,65 +20,53 @@ import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
20
20
  * @category Events
21
21
  */
22
22
  class AXEvent {
23
- /**
24
- * The sender component
25
- */
26
- component;
27
- /**
28
- * The root native element
29
- */
30
- htmlElement;
31
- isUserInteraction = false;
23
+ constructor() {
24
+ this.isUserInteraction = false;
25
+ }
32
26
  }
33
27
  /**
34
28
  * Contains native event
35
29
  * @category Events
36
30
  */
37
31
  class AXHtmlEvent extends AXEvent {
38
- nativeEvent;
39
32
  }
40
33
  /**
41
34
  * Contains native event
42
35
  * @category Events
43
36
  */
44
37
  class AXValueChangedEvent extends AXEvent {
45
- name;
46
- value;
47
- oldValue;
48
38
  }
49
39
  /**
50
40
  * Contains native event
51
41
  * @category Events
52
42
  */
53
43
  class AXOptionChangedEvent extends AXEvent {
54
- name;
55
- newValue;
56
- oldValue;
57
44
  }
58
45
  /**
59
46
  * Fires each time the user click the element.
60
47
  * @category Events
61
48
  */
62
49
  class AXClickEvent extends AXHtmlEvent {
63
- /**
64
- * uses for extra data
65
- */
66
- data = null;
67
- nativeEvent = null;
50
+ constructor() {
51
+ super(...arguments);
52
+ /**
53
+ * uses for extra data
54
+ */
55
+ this.data = null;
56
+ this.nativeEvent = null;
57
+ }
68
58
  }
69
59
  /**
70
60
  * Fires each time the user click the element.
71
61
  * @category Events
72
62
  */
73
63
  class AXButtonClickEvent extends AXClickEvent {
74
- name;
75
64
  }
76
65
  /**
77
66
  * Fires each time the user click the element.
78
67
  * @category Events
79
68
  */
80
69
  class AXItemClickEvent extends AXHtmlEvent {
81
- item;
82
70
  }
83
71
  /**
84
72
  * Fires each time the component gets focused.
@@ -91,43 +79,35 @@ class AXFocusEvent extends AXHtmlEvent {
91
79
  * @category Events
92
80
  */
93
81
  class AXSelectionValueChangedEvent extends AXValueChangedEvent {
94
- value = null;
95
- oldValue = null;
96
- selectedKeys = [];
97
- selectedItems = [];
82
+ constructor() {
83
+ super(...arguments);
84
+ this.value = null;
85
+ this.oldValue = null;
86
+ this.selectedKeys = [];
87
+ this.selectedItems = [];
88
+ }
98
89
  }
99
90
  /**
100
91
  * Contains range start & end values
101
92
  * @category Events
102
93
  */
103
94
  class AXRangeChangedEvent extends AXEvent {
104
- /**
105
- * The range start value
106
- */
107
- start;
108
- /**
109
- * The range end value
110
- */
111
- end;
112
95
  }
113
96
 
114
97
  const TAB_META_KEY = '__meta__';
115
98
  class AXComponentCloseEvent extends AXEvent {
116
- data;
117
99
  }
118
100
  class AXComponentClosing {
119
- cancel = false;
120
- data;
101
+ constructor() {
102
+ this.cancel = false;
103
+ }
121
104
  }
122
105
  class AXComponentResult {
123
- sender;
124
- data;
125
106
  }
126
107
  /**
127
108
  * Defines a CSS class—or multiple classes separated by spaces— which are applied to a span element inside the Button. Allows the usage of custom icons after the primary text.
128
109
  */
129
110
  class AXComponentClosedPromise extends Promise {
130
- closeMethod;
131
111
  constructor(executor) {
132
112
  super(executor);
133
113
  }
@@ -138,43 +118,43 @@ class AXComponentClosedPromise extends Promise {
138
118
  }
139
119
  }
140
120
  class AXComponent {
141
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
142
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent });
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
122
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent }); }
143
123
  }
144
124
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent, decorators: [{
145
125
  type: Injectable
146
126
  }] });
147
127
  class AXClosbaleComponent extends AXComponent {
148
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
149
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent });
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
129
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent }); }
150
130
  }
151
131
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent, decorators: [{
152
132
  type: Injectable
153
133
  }] });
154
134
  class AXSearchableComponent extends AXComponent {
155
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
156
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent });
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
136
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent }); }
157
137
  }
158
138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent, decorators: [{
159
139
  type: Injectable
160
140
  }] });
161
141
  class AXValuableComponent extends AXComponent {
162
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
163
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent });
142
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
143
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent }); }
164
144
  }
165
145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent, decorators: [{
166
146
  type: Injectable
167
147
  }] });
168
148
  class AXFocusableComponent extends AXComponent {
169
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
170
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent });
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
150
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent }); }
171
151
  }
172
152
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent, decorators: [{
173
153
  type: Injectable
174
154
  }] });
175
155
  class AXPagedComponent extends AXComponent {
176
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
177
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent });
156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
157
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent }); }
178
158
  }
179
159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent, decorators: [{
180
160
  type: Injectable
@@ -184,362 +164,639 @@ const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'dan
184
164
  const AX_LOCATIONS = ['bottom-start', 'bottom-center', 'bottom-end', 'top-start', 'top-center', 'top-end', 'center-end', 'center-start'];
185
165
  const AX_DIRECTIONS = ['vertical', 'horizontal'];
186
166
 
187
- const AXPositions = {
188
- topStart: {
189
- originX: 'start',
190
- originY: 'top',
191
- overlayX: 'start',
192
- overlayY: 'bottom',
193
- },
194
- topCenter: {
195
- originX: 'center',
196
- originY: 'top',
197
- overlayX: 'center',
198
- overlayY: 'bottom',
199
- },
200
- topEnd: {
201
- originX: 'end',
202
- originY: 'top',
203
- overlayX: 'end',
204
- overlayY: 'bottom',
205
- },
206
- startStart: {
207
- originX: 'start',
208
- originY: 'top',
209
- overlayX: 'end',
210
- overlayY: 'top',
211
- },
212
- startCenter: {
213
- originX: 'start',
214
- originY: 'center',
215
- overlayX: 'end',
216
- overlayY: 'center',
217
- },
218
- startEnd: {
219
- originX: 'start',
220
- originY: 'bottom',
221
- overlayX: 'end',
222
- overlayY: 'bottom',
223
- },
224
- bottomStart: {
225
- originX: 'start',
226
- originY: 'bottom',
227
- overlayX: 'start',
228
- overlayY: 'top',
229
- },
230
- bottomCenter: {
231
- originX: 'center',
232
- originY: 'bottom',
233
- overlayX: 'center',
234
- overlayY: 'top',
235
- },
236
- bottomEnd: {
237
- originX: 'end',
238
- originY: 'bottom',
239
- overlayX: 'end',
240
- overlayY: 'top',
241
- },
242
- endStart: {
243
- originX: 'end',
244
- originY: 'top',
245
- overlayX: 'start',
246
- overlayY: 'top',
247
- },
248
- endCenter: {
249
- originX: 'end',
250
- originY: 'center',
251
- overlayX: 'start',
252
- overlayY: 'center',
253
- },
254
- endEnd: {
255
- originX: 'end',
256
- originY: 'bottom',
257
- overlayX: 'start',
258
- overlayY: 'bottom',
259
- },
260
- };
261
-
262
- class MXBaseComponent {
263
- id;
264
- _cdr = inject(ChangeDetectorRef);
265
- _elementRef = inject(ElementRef);
266
- _viewRef = inject(ViewContainerRef);
267
- get cdr() {
268
- return this._cdr;
269
- }
270
- getHostElement() {
271
- return this._elementRef.nativeElement;
272
- }
273
- getViewContainer() {
274
- return this._viewRef;
275
- }
276
- onOptionChanging(option) {
277
- return option?.value;
278
- }
279
- init() {
280
- debugger;
281
- this.getHostElement().__axContext__ = this;
167
+ class AXAutoFocusDirective {
168
+ constructor(el, _host) {
169
+ this.el = el;
170
+ this._host = _host;
171
+ this.autoFocus = true;
172
+ this.time = 100;
282
173
  }
283
- onOptionChanged = new EventEmitter();
284
- setOption(option) {
285
- const oldValue = this[option.name];
286
- const newValue = this.onOptionChanging({
287
- name: option.name,
288
- value: option.value,
289
- });
290
- //TODO : check real changes
291
- if (option.beforeCallback)
292
- option.beforeCallback(oldValue, newValue);
293
- if (oldValue != newValue) {
294
- this[`_${option.name}`] = option.value;
295
- this.onOptionChanged.emit({
296
- component: this,
297
- name: option.name,
298
- newValue,
299
- oldValue,
300
- });
301
- const emitter = this[`${option.name}Change`];
302
- emitter?.emit(newValue);
174
+ ngAfterContentInit() {
175
+ if (this.autoFocus) {
176
+ const list = [
177
+ 'button',
178
+ 'input',
179
+ '[href]',
180
+ 'select',
181
+ 'textarea',
182
+ '[tabindex]',
183
+ ].map((c) => c + ':not([tabindex="-1"])');
184
+ const focusable = this.el.nativeElement.querySelector(list.join(', ')) ??
185
+ this.el.nativeElement;
186
+ const attr = document.createAttribute('autofocus');
187
+ focusable.setAttributeNode(attr);
188
+ const hasTabindex = focusable.hasAttribute('tabindex');
189
+ if (!hasTabindex) {
190
+ focusable.setAttribute('tabIndex', '0');
191
+ }
192
+ setTimeout(() => {
193
+ focusable.focus();
194
+ }, 100);
303
195
  }
304
- if (option.afterCallback)
305
- option.afterCallback(oldValue, newValue);
306
- }
307
- _rtl;
308
- get rtl() {
309
- if (this._rtl)
310
- return this._rtl;
311
- else
312
- return this.getHostElement().classList.contains('ax-rtl') || window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl';
313
- }
314
- set rtl(value) {
315
- this.setOption({ name: 'rtl', value });
316
196
  }
317
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
318
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent });
197
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
319
199
  }
320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, decorators: [{
321
- type: Injectable
322
- }] });
323
- const BASE_INPUTS = ['rtl'];
324
- const BASE_OUTPUT = [];
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
201
+ type: Directive,
202
+ args: [{
203
+ selector: '[axAutoFocus]',
204
+ }]
205
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
206
+ type: Host
207
+ }, {
208
+ type: Self
209
+ }, {
210
+ type: Optional
211
+ }] }]; }, propDecorators: { autoFocus: [{
212
+ type: Input,
213
+ args: ['axAutoFocus']
214
+ }], time: [{
215
+ type: Input,
216
+ args: ['focus-time']
217
+ }] } });
325
218
 
326
- class MXInteractiveComponent extends MXBaseComponent {
327
- _disabled;
328
- /**
329
- * If set to true, it disables the component.
330
- */
331
- get disabled() {
332
- return this._disabled;
333
- }
334
- set disabled(value) {
335
- this.setOption({ name: "disabled", value });
336
- }
337
- _tabIndex = 0;
338
- /**
339
- * Specifies the tabindex of the component.
340
- */
341
- get tabIndex() { return this.disabled ? -1 : this._tabIndex; }
342
- set tabIndex(value) {
343
- this.setOption({ name: "tabIndex", value: value != null ? coerceNumberProperty(value) : 0 });
344
- }
345
- /**
346
- * Fires each time the component gets focused.
347
- * @event
348
- */
349
- onFocus = new EventEmitter();
350
- emitOnFocusEvent(e) {
351
- this.onFocus.emit({
352
- component: this,
353
- htmlElement: this.getHostElement(),
354
- nativeEvent: e
355
- });
219
+ class AXNgModelChangeDebouncedDirective {
220
+ get ngModelChangeDebounceTime() {
221
+ return this._ngModelChangeDebounceTime;
356
222
  }
357
- /**
358
- * Fires each time the component gets blurred.
359
- * @event
360
- */
361
- onBlur = new EventEmitter();
362
- emitOnBlurEvent(e) {
363
- this.onBlur.emit({
364
- component: this,
365
- htmlElement: this.getHostElement(),
366
- nativeEvent: e
367
- });
223
+ set ngModelChangeDebounceTime(v) {
224
+ if (v != this._ngModelChangeDebounceTime) {
225
+ this._ngModelChangeDebounceTime = v;
226
+ this.ngModelChangeDebounceTimeChange.emit(v);
227
+ this.update();
228
+ }
368
229
  }
369
- constructor() {
370
- super();
230
+ ngOnDestroy() {
231
+ this.subscription.unsubscribe();
371
232
  }
372
- focus() {
373
- AXHtmlUtil.focusElement(this.getHostElement());
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;
374
239
  }
375
- /**
376
- * Check component is focused or has any focused element.
377
- */
378
- hasFocus() {
379
- return AXHtmlUtil.hasFocus(this.getHostElement());
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));
380
245
  }
246
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", type: AXNgModelChangeDebouncedDirective, selector: "[ngModelChangeDebounced]", inputs: { ngModelChangeDebounceTime: "ngModelChangeDebounceTime" }, outputs: { ngModelChangeDebounced: "ngModelChangeDebounced", ngModelChangeDebounceTimeChange: "ngModelChangeDebounceTimeChange" }, ngImport: i0 }); }
381
248
  }
382
- const INTERACTIVE_INPUTS = ['disabled', 'tabIndex', ...BASE_INPUTS];
383
- const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', ...BASE_OUTPUT];
384
-
385
- class MXColorComponent extends MXBaseComponent {
386
- constructor() {
387
- super();
388
- }
389
- colorChange = new EventEmitter();
390
- _color = 'default';
391
- /**
392
- * Predefined color schemes
393
- */
394
- get color() {
395
- return this._color;
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", 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
+ class AXHotkeysService {
263
+ constructor(eventManager, document) {
264
+ this.eventManager = eventManager;
265
+ this.document = document;
266
+ this.defaults = {
267
+ element: this.document,
268
+ };
396
269
  }
397
- set color(value) {
398
- this.setOption({
399
- name: 'color',
400
- value,
401
- afterCallback: () => {
402
- this.cdr.markForCheck();
403
- },
270
+ addShortcut(options) {
271
+ const merged = { ...this.defaults, ...options };
272
+ const event = `keydown.${merged.keys}`;
273
+ return new Observable(observer => {
274
+ const handler = (e) => {
275
+ e.preventDefault();
276
+ observer.next(e);
277
+ };
278
+ if (merged.element) {
279
+ // Todo: check addEventListener is not function
280
+ const dispose = this.eventManager.addEventListener(merged.element, event, handler);
281
+ return () => {
282
+ dispose();
283
+ };
284
+ }
285
+ else {
286
+ // console.error('Element is not accessible');
287
+ return null;
288
+ }
404
289
  });
405
290
  }
291
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
406
293
  }
407
- const COLOR_INPUTS = ['color', ...BASE_INPUTS];
408
- const COLOR_OUTPUT = ['colorChange', ...BASE_OUTPUT];
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, decorators: [{
295
+ type: Injectable,
296
+ args: [{ providedIn: 'root' }]
297
+ }], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
298
+ type: Inject,
299
+ args: [DOCUMENT]
300
+ }] }]; } });
409
301
 
410
- class MXLookComponent extends MXBaseComponent {
411
- constructor() {
412
- super();
302
+ class AXHotkeyDirective {
303
+ constructor(el, _host, hs) {
304
+ this.el = el;
305
+ this._host = _host;
306
+ this.hs = hs;
307
+ this.hotkey = '';
308
+ this._subs = [];
413
309
  }
414
- lookChange = new EventEmitter();
415
- _look = 'default';
416
- /**
417
- * Predefined look schemes
418
- */
419
- get look() {
420
- return this._look;
310
+ ngAfterViewInit() {
311
+ if (!this.hotkey || !this._host)
312
+ return;
313
+ if (typeof this.hotkey == 'string') {
314
+ this._addDefaultAction(this.hotkey);
315
+ }
316
+ else if (typeof this.hotkey == 'object' && !Array.isArray(this.hotkey)) {
317
+ this._addHotKeyAction([this.hotkey]);
318
+ }
319
+ else if (Array.isArray(this.hotkey)) {
320
+ this._addHotKeyAction(this.hotkey);
321
+ }
421
322
  }
422
- set look(value) {
423
- this.setOption({
424
- name: 'look',
425
- value,
426
- afterCallback: () => {
427
- this.cdr.markForCheck();
323
+ _addDefaultAction(hotkey) {
324
+ this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
325
+ ['click', 'toggle', 'open', 'focus'].forEach((a) => {
326
+ if (this._host[a]) {
327
+ this._host[a]();
328
+ return;
329
+ }
330
+ });
331
+ }));
332
+ }
333
+ _addHotKeyAction(hotkeys) {
334
+ hotkeys.forEach((k) => {
335
+ const hotkey = Object.entries(k)[0][0];
336
+ const action = Object.entries(k)[0][1];
337
+ if (!action)
338
+ this._addDefaultAction(hotkey);
339
+ else {
340
+ this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
341
+ if (typeof action == 'string' && this._host[action]) {
342
+ this._host[action]();
343
+ return;
344
+ }
345
+ if (typeof action == 'function') {
346
+ action();
347
+ return;
348
+ }
349
+ }));
428
350
  }
429
351
  });
430
352
  }
431
- }
432
- const LOOK_INPUTS = ['look', ...BASE_INPUTS];
433
- const LOOK_OUTPUT = ['lookChange', ...BASE_OUTPUT];
434
-
435
- class MXColorLookComponent extends classes(MXColorComponent, MXLookComponent) {
436
- constructor() {
437
- super();
353
+ ngOnDestroy() {
354
+ this._subs.forEach((s) => {
355
+ s.unsubscribe();
356
+ });
438
357
  }
358
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
439
360
  }
440
- const COLOR_LOOK_INPUTS = [...COLOR_INPUTS, ...LOOK_INPUTS];
441
- const COLOR_LOOK_OUTPUT = [...COLOR_OUTPUT, ...LOOK_OUTPUT];
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeyDirective, decorators: [{
362
+ type: Directive,
363
+ args: [{
364
+ selector: '[hotkey]',
365
+ }]
366
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXComponent, decorators: [{
367
+ type: Host
368
+ }, {
369
+ type: Self
370
+ }, {
371
+ type: Optional
372
+ }] }, { type: AXHotkeysService }]; }, propDecorators: { hotkey: [{
373
+ type: Input,
374
+ args: ['hotkey']
375
+ }] } });
442
376
 
443
- class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
444
- textChange = new EventEmitter();
445
- _text;
446
- /**
447
- * Defines the primary text to show inside the button.
448
- */
449
- get text() {
450
- return this._text;
377
+ ;
378
+ const AX_DEFAULT_SCROLL_POSITION = {
379
+ scrollHeight: 0,
380
+ scrollTop: 0,
381
+ clientHeight: 0
382
+ };
383
+ class AXInfiniteScrollerDirective {
384
+ constructor(elm) {
385
+ this.elm = elm;
386
+ this.scrollPercent = 70;
387
+ this.isUserScrollingDown = (positions) => {
388
+ return positions[0].sT < positions[1].sT;
389
+ };
390
+ this.isScrollExpectedPercent = (position) => {
391
+ return ((position.sT + position.cH) / position.sH) > (this.scrollPercent / 100);
392
+ };
451
393
  }
452
- set text(v) {
453
- this.setOption({
454
- name: 'text',
455
- value: v,
456
- afterCallback: () => {
457
- this.cdr.markForCheck();
458
- }
459
- });
394
+ ngAfterViewInit() {
395
+ this.registerScrollEvent();
396
+ this.streamScrollEvents();
397
+ this.requestCallbackOnScroll();
460
398
  }
461
- toggleableChange = new EventEmitter();
462
- _toggleable = false;
463
- /**
464
- * Provides visual styling that indicates if the Button is active
465
- */
466
- get toggleable() {
467
- return this._toggleable;
399
+ registerScrollEvent() {
400
+ this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
468
401
  }
469
- set toggleable(value) {
470
- this.setOption({
471
- name: 'toggleable',
472
- value
473
- });
402
+ streamScrollEvents() {
403
+ this.userScrolledDown$ = this.scrollEvent$
404
+ .pipe(map((e) => ({
405
+ scrollHeight: e.target.scrollHeight,
406
+ scrollTop: e.target.scrollTop,
407
+ clientHeight: e.target.clientHeight
408
+ })), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
474
409
  }
475
- selectedChange = new EventEmitter();
476
- _selected = false;
477
- /**
478
- * Indicates if the Button is selected or not
479
- */
480
- get selected() {
481
- return this._selected;
410
+ requestCallbackOnScroll() {
411
+ this.requestOnScroll$ = this.userScrolledDown$;
412
+ if (this.immediateCallback) {
413
+ this.requestOnScroll$ = this.requestOnScroll$.pipe(startWith([AX_DEFAULT_SCROLL_POSITION, AX_DEFAULT_SCROLL_POSITION]));
414
+ }
415
+ this.requestOnScroll$.pipe(exhaustMap(() => {
416
+ return this.scrollCallback();
417
+ }));
418
+ //.subscribe((data) => { console.log(data) }, (err) => console.log(err));
482
419
  }
483
- set selected(value) {
484
- this.setOption({
485
- name: 'selected',
486
- value,
487
- afterCallback: () => {
488
- this.cdr.markForCheck();
420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
422
+ }
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
424
+ type: Directive,
425
+ args: [{
426
+ selector: '[axInfiniteScroller]'
427
+ }]
428
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
429
+ type: Input
430
+ }], immediateCallback: [{
431
+ type: Input
432
+ }], scrollPercent: [{
433
+ type: Input
434
+ }] } });
435
+
436
+ class AXResponsiveDirective {
437
+ constructor(_elementRef) {
438
+ this._elementRef = _elementRef;
439
+ this._observer = new ResizeObserver(entries => {
440
+ for (let entry of entries) {
441
+ if (entry.target) {
442
+ const e = entry.target;
443
+ const elements = [e, ...Array.from(e.querySelectorAll(`[class*='sm:']`))];
444
+ elements
445
+ .map(c => ({
446
+ element: c,
447
+ classList: Array.from(c.classList)
448
+ .filter(c => c.includes('sm'))
449
+ .map(c => c.slice(3)),
450
+ }))
451
+ .forEach(c => {
452
+ e.clientWidth < 320 ? c.element.classList.add(...c.classList) : c.element.classList.remove(...c.classList);
453
+ });
454
+ }
489
455
  }
490
456
  });
457
+ this._observer.observe(_elementRef.nativeElement);
491
458
  }
492
- constructor() {
493
- super();
494
- }
495
- get cssClasses() {
496
- const cssClasses = {
497
- 'ax-button-icon': !this.text,
498
- 'ax-state-disabled': this["disabled"],
499
- 'ax-state-selected': this.selected
500
- };
501
- cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
502
- return cssClasses;
459
+ ngOnDestroy() {
460
+ this._observer?.disconnect();
461
+ this._observer?.unobserve(this._elementRef.nativeElement);
503
462
  }
463
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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.4", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
504
465
  }
505
- const BUTTON_INPUTS = ['text', 'toggleable', 'selected', ...INTERACTIVE_INPUTS, COLOR_LOOK_INPUTS];
506
- const BUTTON_OUTPUT = ['textChange', 'toggleableChange', 'selectedChange', ...INTERACTIVE_OUTPUT, COLOR_LOOK_OUTPUT];
466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXResponsiveDirective, decorators: [{
467
+ type: Directive,
468
+ args: [{ selector: '[ax-responsive]' }]
469
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
507
470
 
508
- class MXValueComponent extends MXBaseComponent {
509
- /**
510
- * Fires each time the user press a key.
511
- * @event
512
- */
513
- onValueChanged = new EventEmitter();
514
- valueChange = new EventEmitter();
515
- stateChange = new EventEmitter();
516
- _readonly = false;
517
- /**
518
- * If set to true, user cannot change the value of component.
519
- */
520
- get readonly() {
521
- return this._readonly;
522
- }
523
- set readonly(value) {
524
- this._readonly = coerceBooleanProperty(value);
525
- }
526
- _name;
527
- get name() {
528
- return this._name;
529
- }
530
- set name(value) {
531
- this._name = value;
532
- }
533
- _isUserInteraction = false;
534
- get isUserInteraction() {
535
- return this._isUserInteraction;
536
- }
471
+ class AXCommonModule {
472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
473
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
474
+ AXInfiniteScrollerDirective,
475
+ AXNgModelChangeDebouncedDirective,
476
+ AXAutoFocusDirective,
477
+ AXHotkeyDirective], exports: [AXResponsiveDirective,
478
+ AXInfiniteScrollerDirective,
479
+ AXAutoFocusDirective,
480
+ AXNgModelChangeDebouncedDirective,
481
+ AXHotkeyDirective] }); }
482
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule }); }
483
+ }
484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, decorators: [{
485
+ type: NgModule,
486
+ args: [{
487
+ imports: [],
488
+ exports: [
489
+ AXResponsiveDirective,
490
+ AXInfiniteScrollerDirective,
491
+ AXAutoFocusDirective,
492
+ AXNgModelChangeDebouncedDirective,
493
+ AXHotkeyDirective,
494
+ ],
495
+ declarations: [
496
+ AXResponsiveDirective,
497
+ AXInfiniteScrollerDirective,
498
+ AXNgModelChangeDebouncedDirective,
499
+ AXAutoFocusDirective,
500
+ AXHotkeyDirective,
501
+ ],
502
+ providers: [],
503
+ }]
504
+ }] });
505
+
506
+ class MXBaseComponent {
507
+ constructor() {
508
+ this._cdr = inject(ChangeDetectorRef);
509
+ this._elementRef = inject(ElementRef);
510
+ this._viewRef = inject(ViewContainerRef);
511
+ this.onOptionChanged = new EventEmitter();
512
+ }
513
+ get cdr() {
514
+ return this._cdr;
515
+ }
516
+ getHostElement() {
517
+ return this._elementRef.nativeElement;
518
+ }
519
+ getViewContainer() {
520
+ return this._viewRef;
521
+ }
522
+ onOptionChanging(option) {
523
+ return option?.value;
524
+ }
525
+ init() {
526
+ debugger;
527
+ this.getHostElement().__axContext__ = this;
528
+ }
529
+ setOption(option) {
530
+ const oldValue = this[option.name];
531
+ const newValue = this.onOptionChanging({
532
+ name: option.name,
533
+ value: option.value,
534
+ });
535
+ //TODO : check real changes
536
+ if (option.beforeCallback)
537
+ option.beforeCallback(oldValue, newValue);
538
+ if (oldValue != newValue) {
539
+ this[`_${option.name}`] = option.value;
540
+ this.onOptionChanged.emit({
541
+ component: this,
542
+ name: option.name,
543
+ newValue,
544
+ oldValue,
545
+ });
546
+ const emitter = this[`${option.name}Change`];
547
+ emitter?.emit(newValue);
548
+ }
549
+ if (option.afterCallback)
550
+ option.afterCallback(oldValue, newValue);
551
+ }
552
+ get rtl() {
553
+ if (this._rtl)
554
+ return this._rtl;
555
+ else
556
+ return (this.getHostElement().classList.contains('ax-rtl') ||
557
+ window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl');
558
+ }
559
+ set rtl(value) {
560
+ this.setOption({ name: 'rtl', value });
561
+ }
562
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
563
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent }); }
564
+ }
565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, decorators: [{
566
+ type: Injectable
567
+ }] });
568
+ const BASE_INPUTS = ['rtl'];
569
+ const BASE_OUTPUT = [];
570
+
571
+ class MXColorComponent extends MXBaseComponent {
572
+ constructor() {
573
+ super();
574
+ this.colorChange = new EventEmitter();
575
+ this._color = 'default';
576
+ }
577
+ /**
578
+ * Predefined color schemes
579
+ */
580
+ get color() {
581
+ return this._color;
582
+ }
583
+ set color(value) {
584
+ this.setOption({
585
+ name: 'color',
586
+ value,
587
+ afterCallback: () => {
588
+ this.cdr.markForCheck();
589
+ },
590
+ });
591
+ }
592
+ }
593
+ const COLOR_INPUTS = ['color', ...BASE_INPUTS];
594
+ const COLOR_OUTPUT = ['colorChange', ...BASE_OUTPUT];
595
+
596
+ class MXLookComponent extends MXBaseComponent {
597
+ constructor() {
598
+ super();
599
+ this.lookChange = new EventEmitter();
600
+ this._look = 'default';
601
+ }
602
+ /**
603
+ * Predefined look schemes
604
+ */
605
+ get look() {
606
+ return this._look;
607
+ }
608
+ set look(value) {
609
+ this.setOption({
610
+ name: 'look',
611
+ value,
612
+ afterCallback: () => {
613
+ this.cdr.markForCheck();
614
+ },
615
+ });
616
+ }
617
+ }
618
+ const LOOK_INPUTS = ['look', ...BASE_INPUTS];
619
+ const LOOK_OUTPUT = ['lookChange', ...BASE_OUTPUT];
620
+
621
+ class MXColorLookComponent extends classes(MXColorComponent, MXLookComponent) {
622
+ constructor() {
623
+ super();
624
+ }
625
+ }
626
+ const COLOR_LOOK_INPUTS = [...COLOR_INPUTS, ...LOOK_INPUTS];
627
+ const COLOR_LOOK_OUTPUT = [...COLOR_OUTPUT, ...LOOK_OUTPUT];
628
+
629
+ class MXInteractiveComponent extends MXBaseComponent {
630
+ /**
631
+ * If set to true, it disables the component.
632
+ */
633
+ get disabled() {
634
+ return this._disabled;
635
+ }
636
+ set disabled(value) {
637
+ this.setOption({ name: 'disabled', value });
638
+ }
639
+ /**
640
+ * Specifies the tabindex of the component.
641
+ */
642
+ get tabIndex() {
643
+ return this.disabled ? -1 : this._tabIndex;
644
+ }
645
+ set tabIndex(value) {
646
+ this.setOption({ name: 'tabIndex', value: value != null ? coerceNumberProperty(value) : 0 });
647
+ }
648
+ emitOnFocusEvent(e) {
649
+ this.onFocus.emit({
650
+ component: this,
651
+ htmlElement: this.getHostElement(),
652
+ nativeEvent: e,
653
+ });
654
+ }
655
+ emitOnBlurEvent(e) {
656
+ this.onBlur.emit({
657
+ component: this,
658
+ htmlElement: this.getHostElement(),
659
+ nativeEvent: e,
660
+ });
661
+ }
662
+ constructor() {
663
+ super();
664
+ this._tabIndex = 0;
665
+ /**
666
+ * Fires each time the component gets focused.
667
+ * @event
668
+ */
669
+ this.onFocus = new EventEmitter();
670
+ /**
671
+ * Fires each time the component gets blurred.
672
+ * @event
673
+ */
674
+ this.onBlur = new EventEmitter();
675
+ }
676
+ focus() {
677
+ AXHtmlUtil.focusElement(this.getHostElement());
678
+ }
679
+ /**
680
+ * Check component is focused or has any focused element.
681
+ */
682
+ hasFocus() {
683
+ return AXHtmlUtil.hasFocus(this.getHostElement());
684
+ }
685
+ }
686
+ const INTERACTIVE_INPUTS = ['disabled', 'tabIndex', ...BASE_INPUTS];
687
+ const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', ...BASE_OUTPUT];
688
+
689
+ class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
690
+ /**
691
+ * Defines the primary text to show inside the button.
692
+ */
693
+ get text() {
694
+ return this._text;
695
+ }
696
+ set text(v) {
697
+ this.setOption({
698
+ name: 'text',
699
+ value: v,
700
+ afterCallback: () => {
701
+ this.cdr.markForCheck();
702
+ },
703
+ });
704
+ }
705
+ /**
706
+ * Provides visual styling that indicates if the Button is active
707
+ */
708
+ get toggleable() {
709
+ return this._toggleable;
710
+ }
711
+ set toggleable(value) {
712
+ this.setOption({
713
+ name: 'toggleable',
714
+ value,
715
+ });
716
+ }
717
+ /**
718
+ * Indicates if the Button is selected or not
719
+ */
720
+ get selected() {
721
+ return this._selected;
722
+ }
723
+ set selected(value) {
724
+ this.setOption({
725
+ name: 'selected',
726
+ value,
727
+ afterCallback: () => {
728
+ this.cdr.markForCheck();
729
+ },
730
+ });
731
+ }
732
+ constructor() {
733
+ super();
734
+ this.textChange = new EventEmitter();
735
+ this.toggleableChange = new EventEmitter();
736
+ this._toggleable = false;
737
+ this.selectedChange = new EventEmitter();
738
+ this._selected = false;
739
+ }
740
+ get cssClasses() {
741
+ const cssClasses = {
742
+ 'ax-button-icon': !this.text,
743
+ 'ax-state-disabled': this['disabled'],
744
+ 'ax-state-selected': this.selected,
745
+ };
746
+ cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
747
+ return cssClasses;
748
+ }
749
+ }
750
+ const BUTTON_INPUTS = [
751
+ 'text',
752
+ 'toggleable',
753
+ 'selected',
754
+ ...INTERACTIVE_INPUTS,
755
+ COLOR_LOOK_INPUTS,
756
+ ];
757
+ const BUTTON_OUTPUT = [
758
+ 'textChange',
759
+ 'toggleableChange',
760
+ 'selectedChange',
761
+ ...INTERACTIVE_OUTPUT,
762
+ COLOR_LOOK_OUTPUT,
763
+ ];
764
+
765
+ class MXValueComponent extends MXBaseComponent {
766
+ constructor() {
767
+ super(...arguments);
768
+ /**
769
+ * Fires each time the user press a key.
770
+ * @event
771
+ */
772
+ this.onValueChanged = new EventEmitter();
773
+ this.valueChange = new EventEmitter();
774
+ this.stateChange = new EventEmitter();
775
+ this._readonly = false;
776
+ this._isUserInteraction = false;
777
+ this._state = 'clear';
778
+ }
779
+ /**
780
+ * If set to true, user cannot change the value of component.
781
+ */
782
+ get readonly() {
783
+ return this._readonly;
784
+ }
785
+ set readonly(value) {
786
+ this._readonly = coerceBooleanProperty(value);
787
+ }
788
+ get name() {
789
+ return this._name;
790
+ }
791
+ set name(value) {
792
+ this._name = value;
793
+ }
794
+ get isUserInteraction() {
795
+ return this._isUserInteraction;
796
+ }
537
797
  set isUserInteraction(value) {
538
798
  this._isUserInteraction = value;
539
799
  }
540
- initValue;
541
- defaultValue;
542
- _value;
543
800
  get value() {
544
801
  return this.getValue(this._value) || this.defaultValue;
545
802
  }
@@ -564,7 +821,6 @@ class MXValueComponent extends MXBaseComponent {
564
821
  this._isUserInteraction = false;
565
822
  //}
566
823
  }
567
- _state = 'clear';
568
824
  get state() {
569
825
  return this._state;
570
826
  }
@@ -586,449 +842,204 @@ class MXValueComponent extends MXBaseComponent {
586
842
  setValue(value) {
587
843
  return value;
588
844
  }
589
- getValue(value) {
590
- return value;
591
- }
592
- ngOnInit() {
593
- super.init();
594
- this.getHostElement().setAttribute('ax-form-input', 'true');
595
- }
596
- ngAfterViewInit() {
597
- this._checkRequired();
598
- }
599
- ngOnDestroy() {
600
- this.onValueChanged?.unsubscribe();
601
- this.onOptionChanged?.unsubscribe();
602
- }
603
- clear() {
604
- this.value = null;
605
- }
606
- _checkRequired() {
607
- const isRequired = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).some(c => c.__axContext__.enabled && c.__axContext__.rule == 'required');
608
- //
609
- if (isRequired) {
610
- const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
611
- const formField = container?.closest('.ax-form-field');
612
- const label = formField?.querySelector('ax-label')?.__axContext__;
613
- if (label)
614
- label.required = true;
615
- }
616
- }
617
- validate() {
618
- debugger;
619
- const rules = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).filter(c => c.__axContext__.enabled);
620
- //
621
- if (!rules || rules.length === 0) {
622
- this.setState('clear');
623
- return Promise.resolve({
624
- result: true,
625
- value: this.value,
626
- name: this.name,
627
- id: this.id,
628
- });
629
- }
630
- return new Promise(resolve => {
631
- Promise.all(rules
632
- .filter(c => typeof c?.validate === 'function')
633
- .map(c => {
634
- return c.validate(this.value);
635
- })).then(d => {
636
- const error = d.find(c => c.result === false);
637
- if (error) {
638
- this.setState('error', error.message);
639
- resolve({
640
- result: false,
641
- value: this.value,
642
- message: error.message,
643
- name: this.name,
644
- id: this.id,
645
- });
646
- }
647
- else {
648
- this.setState('success');
649
- resolve({
650
- result: true,
651
- value: this.value,
652
- name: this.name,
653
- id: this.id,
654
- });
655
- }
656
- });
657
- });
658
- }
659
- setState(state, ...args) {
660
- const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
661
- const formField = container?.closest('.ax-form-field');
662
- const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
663
- let target = container || this.getHostElement().firstElementChild;
664
- if (target?.querySelector('.ax-error-container')) {
665
- target = target.querySelector('.ax-error-container');
666
- }
667
- const parent = target?.parentElement;
668
- if (!target || !parent)
669
- return;
670
- switch (state) {
671
- case 'clear':
672
- this._state = 'clear';
673
- if (parent.querySelector('span.ax-error-message')) {
674
- parent.removeChild(parent.querySelector('span.ax-error-message'));
675
- }
676
- label?.classList.remove('ax-state-error');
677
- target.classList.remove('ax-state-error', 'ax-state-success');
678
- break;
679
- case 'success':
680
- this.setState('clear');
681
- target.classList.add('ax-state-success');
682
- this._state = 'success';
683
- break;
684
- case 'error':
685
- this.setState('clear');
686
- if (args[0]) {
687
- const span = document.createElement('span');
688
- span.innerText = args[0];
689
- span.classList.add('ax-error-message');
690
- parent.appendChild(span);
691
- }
692
- label?.classList.add('ax-state-error');
693
- target.classList.add('ax-state-error');
694
- this._state = 'error';
695
- break;
696
- }
697
- this.cdr.markForCheck();
698
- }
699
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
700
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent });
701
- }
702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, decorators: [{
703
- type: Injectable
704
- }] });
705
-
706
- class AXAutoFocusDirective {
707
- el;
708
- _host;
709
- autoFocus = true;
710
- constructor(el, _host) {
711
- this.el = el;
712
- this._host = _host;
713
- }
714
- time = 100;
715
- ngAfterContentInit() {
716
- if (this.autoFocus) {
717
- const list = [
718
- 'button',
719
- 'input',
720
- '[href]',
721
- 'select',
722
- 'textarea',
723
- '[tabindex]',
724
- ].map((c) => c + ':not([tabindex="-1"])');
725
- const focusable = this.el.nativeElement.querySelector(list.join(', ')) ??
726
- this.el.nativeElement;
727
- const attr = document.createAttribute('autofocus');
728
- focusable.setAttributeNode(attr);
729
- const hasTabindex = focusable.hasAttribute('tabindex');
730
- if (!hasTabindex) {
731
- focusable.setAttribute('tabIndex', '0');
732
- }
733
- setTimeout(() => {
734
- focusable.focus();
735
- }, 100);
736
- }
737
- }
738
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
739
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 });
740
- }
741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
742
- type: Directive,
743
- args: [{
744
- selector: '[axAutoFocus]',
745
- }]
746
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
747
- type: Host
748
- }, {
749
- type: Self
750
- }, {
751
- type: Optional
752
- }] }]; }, propDecorators: { autoFocus: [{
753
- type: Input,
754
- args: ['axAutoFocus']
755
- }], time: [{
756
- type: Input,
757
- args: ['focus-time']
758
- }] } });
759
-
760
- class AXNgModelChangeDebouncedDirective {
761
- ngModel;
762
- ngModelChangeDebounced = new EventEmitter();
763
- ngModelChangeDebounceTimeChange = new EventEmitter();
764
- _ngModelChangeDebounceTime = 0;
765
- get ngModelChangeDebounceTime() {
766
- return this._ngModelChangeDebounceTime;
767
- }
768
- set ngModelChangeDebounceTime(v) {
769
- if (v != this._ngModelChangeDebounceTime) {
770
- this._ngModelChangeDebounceTime = v;
771
- this.ngModelChangeDebounceTimeChange.emit(v);
772
- this.update();
773
- }
774
- }
775
- subscription;
776
- ngOnDestroy() {
777
- this.subscription.unsubscribe();
778
- }
779
- constructor(ngModel) {
780
- this.ngModel = ngModel;
781
- this.ngModelChangeDebounceTime = 0;
782
- }
783
- update() {
784
- this.subscription?.unsubscribe();
785
- //
786
- this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
787
- distinctUntilChanged(), debounceTime(this.ngModelChangeDebounceTime)).subscribe((value) => this.ngModelChangeDebounced.emit(value));
788
- }
789
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXNgModelChangeDebouncedDirective, deps: [{ token: i1.NgModel }], target: i0.ɵɵFactoryTarget.Directive });
790
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXNgModelChangeDebouncedDirective, selector: "[ngModelChangeDebounced]", inputs: { ngModelChangeDebounceTime: "ngModelChangeDebounceTime" }, outputs: { ngModelChangeDebounced: "ngModelChangeDebounced", ngModelChangeDebounceTimeChange: "ngModelChangeDebounceTimeChange" }, ngImport: i0 });
791
- }
792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXNgModelChangeDebouncedDirective, decorators: [{
793
- type: Directive,
794
- args: [{
795
- selector: '[ngModelChangeDebounced]',
796
- }]
797
- }], ctorParameters: function () { return [{ type: i1.NgModel }]; }, propDecorators: { ngModelChangeDebounced: [{
798
- type: Output
799
- }], ngModelChangeDebounceTimeChange: [{
800
- type: Output
801
- }], ngModelChangeDebounceTime: [{
802
- type: Input
803
- }] } });
804
-
805
- class AXHotkeysService {
806
- eventManager;
807
- document;
808
- defaults = {
809
- element: this.document,
810
- };
811
- constructor(eventManager, document) {
812
- this.eventManager = eventManager;
813
- this.document = document;
814
- }
815
- addShortcut(options) {
816
- const merged = { ...this.defaults, ...options };
817
- const event = `keydown.${merged.keys}`;
818
- return new Observable(observer => {
819
- const handler = (e) => {
820
- e.preventDefault();
821
- observer.next(e);
822
- };
823
- if (merged.element) {
824
- // Todo: check addEventListener is not function
825
- const dispose = this.eventManager.addEventListener(merged.element, event, handler);
826
- return () => {
827
- dispose();
828
- };
829
- }
830
- else {
831
- // console.error('Element is not accessible');
832
- return null;
833
- }
834
- });
835
- }
836
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1$1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
837
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, providedIn: 'root' });
838
- }
839
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, decorators: [{
840
- type: Injectable,
841
- args: [{ providedIn: 'root' }]
842
- }], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
843
- type: Inject,
844
- args: [DOCUMENT]
845
- }] }]; } });
846
-
847
- class AXHotkeyDirective {
848
- el;
849
- _host;
850
- hs;
851
- hotkey = '';
852
- _subs = [];
853
- constructor(el, _host, hs) {
854
- this.el = el;
855
- this._host = _host;
856
- this.hs = hs;
857
- }
858
- ngAfterViewInit() {
859
- if (!this.hotkey || !this._host)
860
- return;
861
- if (typeof this.hotkey == 'string') {
862
- this._addDefaultAction(this.hotkey);
863
- }
864
- else if (typeof this.hotkey == 'object' && !Array.isArray(this.hotkey)) {
865
- this._addHotKeyAction([this.hotkey]);
866
- }
867
- else if (Array.isArray(this.hotkey)) {
868
- this._addHotKeyAction(this.hotkey);
869
- }
870
- }
871
- _addDefaultAction(hotkey) {
872
- this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
873
- ['click', 'toggle', 'open', 'focus'].forEach((a) => {
874
- if (this._host[a]) {
875
- this._host[a]();
876
- return;
877
- }
878
- });
879
- }));
880
- }
881
- _addHotKeyAction(hotkeys) {
882
- hotkeys.forEach((k) => {
883
- const hotkey = Object.entries(k)[0][0];
884
- const action = Object.entries(k)[0][1];
885
- if (!action)
886
- this._addDefaultAction(hotkey);
887
- else {
888
- this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
889
- if (typeof action == 'string' && this._host[action]) {
890
- this._host[action]();
891
- return;
892
- }
893
- if (typeof action == 'function') {
894
- action();
895
- return;
896
- }
897
- }));
898
- }
899
- });
900
- }
901
- ngOnDestroy() {
902
- this._subs.forEach((s) => {
903
- s.unsubscribe();
904
- });
905
- }
906
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive });
907
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 });
908
- }
909
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeyDirective, decorators: [{
910
- type: Directive,
911
- args: [{
912
- selector: '[hotkey]',
913
- }]
914
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXComponent, decorators: [{
915
- type: Host
916
- }, {
917
- type: Self
918
- }, {
919
- type: Optional
920
- }] }, { type: AXHotkeysService }]; }, propDecorators: { hotkey: [{
921
- type: Input,
922
- args: ['hotkey']
923
- }] } });
924
-
925
- ;
926
- const AX_DEFAULT_SCROLL_POSITION = {
927
- scrollHeight: 0,
928
- scrollTop: 0,
929
- clientHeight: 0
930
- };
931
- class AXInfiniteScrollerDirective {
932
- elm;
933
- scrollEvent$;
934
- userScrolledDown$;
935
- requestOnScroll$;
936
- scrollCallback;
937
- immediateCallback;
938
- scrollPercent = 70;
939
- constructor(elm) {
940
- this.elm = elm;
941
- }
845
+ getValue(value) {
846
+ return value;
847
+ }
848
+ ngOnInit() {
849
+ super.init();
850
+ this.getHostElement().setAttribute('ax-form-input', 'true');
851
+ }
942
852
  ngAfterViewInit() {
943
- this.registerScrollEvent();
944
- this.streamScrollEvents();
945
- this.requestCallbackOnScroll();
853
+ this._checkRequired();
946
854
  }
947
- registerScrollEvent() {
948
- this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
855
+ ngOnDestroy() {
856
+ this.onValueChanged?.unsubscribe();
857
+ this.onOptionChanged?.unsubscribe();
949
858
  }
950
- streamScrollEvents() {
951
- this.userScrolledDown$ = this.scrollEvent$
952
- .pipe(map((e) => ({
953
- scrollHeight: e.target.scrollHeight,
954
- scrollTop: e.target.scrollTop,
955
- clientHeight: e.target.clientHeight
956
- })), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
859
+ clear() {
860
+ this.value = null;
957
861
  }
958
- requestCallbackOnScroll() {
959
- this.requestOnScroll$ = this.userScrolledDown$;
960
- if (this.immediateCallback) {
961
- this.requestOnScroll$ = this.requestOnScroll$.pipe(startWith([AX_DEFAULT_SCROLL_POSITION, AX_DEFAULT_SCROLL_POSITION]));
862
+ _checkRequired() {
863
+ const isRequired = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).some(c => c.__axContext__.enabled && c.__axContext__.rule == 'required');
864
+ //
865
+ if (isRequired) {
866
+ const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
867
+ const formField = container?.closest('.ax-form-field');
868
+ const label = formField?.querySelector('ax-label')?.__axContext__;
869
+ if (label)
870
+ label.required = true;
962
871
  }
963
- this.requestOnScroll$.pipe(exhaustMap(() => {
964
- return this.scrollCallback();
965
- }));
966
- //.subscribe((data) => { console.log(data) }, (err) => console.log(err));
967
872
  }
968
- isUserScrollingDown = (positions) => {
969
- return positions[0].sT < positions[1].sT;
970
- };
971
- isScrollExpectedPercent = (position) => {
972
- return ((position.sT + position.cH) / position.sH) > (this.scrollPercent / 100);
973
- };
974
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
975
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 });
976
- }
977
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
978
- type: Directive,
979
- args: [{
980
- selector: '[axInfiniteScroller]'
981
- }]
982
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
983
- type: Input
984
- }], immediateCallback: [{
985
- type: Input
986
- }], scrollPercent: [{
987
- type: Input
988
- }] } });
989
-
990
- class AXResponsiveDirective {
991
- _elementRef;
992
- _observer = new ResizeObserver(entries => {
993
- for (let entry of entries) {
994
- if (entry.target) {
995
- const e = entry.target;
996
- const elements = [e, ...Array.from(e.querySelectorAll(`[class*='sm:']`))];
997
- elements
998
- .map(c => ({
999
- element: c,
1000
- classList: Array.from(c.classList)
1001
- .filter(c => c.includes('sm'))
1002
- .map(c => c.slice(3)),
1003
- }))
1004
- .forEach(c => {
1005
- e.clientWidth < 320 ? c.element.classList.add(...c.classList) : c.element.classList.remove(...c.classList);
1006
- });
1007
- }
873
+ validate() {
874
+ debugger;
875
+ const rules = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).filter(c => c.__axContext__.enabled);
876
+ //
877
+ if (!rules || rules.length === 0) {
878
+ this.setState('clear');
879
+ return Promise.resolve({
880
+ result: true,
881
+ value: this.value,
882
+ name: this.name,
883
+ id: this.id,
884
+ });
1008
885
  }
1009
- });
1010
- constructor(_elementRef) {
1011
- this._elementRef = _elementRef;
1012
- this._observer.observe(_elementRef.nativeElement);
886
+ return new Promise(resolve => {
887
+ Promise.all(rules
888
+ .filter(c => typeof c?.validate === 'function')
889
+ .map(c => {
890
+ return c.validate(this.value);
891
+ })).then(d => {
892
+ const error = d.find(c => c.result === false);
893
+ if (error) {
894
+ this.setState('error', error.message);
895
+ resolve({
896
+ result: false,
897
+ value: this.value,
898
+ message: error.message,
899
+ name: this.name,
900
+ id: this.id,
901
+ });
902
+ }
903
+ else {
904
+ this.setState('success');
905
+ resolve({
906
+ result: true,
907
+ value: this.value,
908
+ name: this.name,
909
+ id: this.id,
910
+ });
911
+ }
912
+ });
913
+ });
1013
914
  }
1014
- ngOnDestroy() {
1015
- this._observer?.disconnect();
1016
- this._observer?.unobserve(this._elementRef.nativeElement);
915
+ setState(state, ...args) {
916
+ const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
917
+ const formField = container?.closest('.ax-form-field');
918
+ const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
919
+ let target = container || this.getHostElement().firstElementChild;
920
+ if (target?.querySelector('.ax-error-container')) {
921
+ target = target.querySelector('.ax-error-container');
922
+ }
923
+ const parent = target?.parentElement;
924
+ if (!target || !parent)
925
+ return;
926
+ switch (state) {
927
+ case 'clear':
928
+ this._state = 'clear';
929
+ if (parent.querySelector('span.ax-error-message')) {
930
+ parent.removeChild(parent.querySelector('span.ax-error-message'));
931
+ }
932
+ label?.classList.remove('ax-state-error');
933
+ target.classList.remove('ax-state-error', 'ax-state-success');
934
+ break;
935
+ case 'success':
936
+ this.setState('clear');
937
+ target.classList.add('ax-state-success');
938
+ this._state = 'success';
939
+ break;
940
+ case 'error':
941
+ this.setState('clear');
942
+ if (args[0]) {
943
+ const span = document.createElement('span');
944
+ span.innerText = args[0];
945
+ span.classList.add('ax-error-message');
946
+ parent.appendChild(span);
947
+ }
948
+ label?.classList.add('ax-state-error');
949
+ target.classList.add('ax-state-error');
950
+ this._state = 'error';
951
+ break;
952
+ }
953
+ this.cdr.markForCheck();
1017
954
  }
1018
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
1019
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 });
955
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
956
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent }); }
1020
957
  }
1021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXResponsiveDirective, decorators: [{
1022
- type: Directive,
1023
- args: [{ selector: '[ax-responsive]' }]
1024
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
958
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, decorators: [{
959
+ type: Injectable
960
+ }] });
961
+
962
+ const AXPositions = {
963
+ topStart: {
964
+ originX: 'start',
965
+ originY: 'top',
966
+ overlayX: 'start',
967
+ overlayY: 'bottom',
968
+ },
969
+ topCenter: {
970
+ originX: 'center',
971
+ originY: 'top',
972
+ overlayX: 'center',
973
+ overlayY: 'bottom',
974
+ },
975
+ topEnd: {
976
+ originX: 'end',
977
+ originY: 'top',
978
+ overlayX: 'end',
979
+ overlayY: 'bottom',
980
+ },
981
+ startStart: {
982
+ originX: 'start',
983
+ originY: 'top',
984
+ overlayX: 'end',
985
+ overlayY: 'top',
986
+ },
987
+ startCenter: {
988
+ originX: 'start',
989
+ originY: 'center',
990
+ overlayX: 'end',
991
+ overlayY: 'center',
992
+ },
993
+ startEnd: {
994
+ originX: 'start',
995
+ originY: 'bottom',
996
+ overlayX: 'end',
997
+ overlayY: 'bottom',
998
+ },
999
+ bottomStart: {
1000
+ originX: 'start',
1001
+ originY: 'bottom',
1002
+ overlayX: 'start',
1003
+ overlayY: 'top',
1004
+ },
1005
+ bottomCenter: {
1006
+ originX: 'center',
1007
+ originY: 'bottom',
1008
+ overlayX: 'center',
1009
+ overlayY: 'top',
1010
+ },
1011
+ bottomEnd: {
1012
+ originX: 'end',
1013
+ originY: 'bottom',
1014
+ overlayX: 'end',
1015
+ overlayY: 'top',
1016
+ },
1017
+ endStart: {
1018
+ originX: 'end',
1019
+ originY: 'top',
1020
+ overlayX: 'start',
1021
+ overlayY: 'top',
1022
+ },
1023
+ endCenter: {
1024
+ originX: 'end',
1025
+ originY: 'center',
1026
+ overlayX: 'start',
1027
+ overlayY: 'center',
1028
+ },
1029
+ endEnd: {
1030
+ originX: 'end',
1031
+ originY: 'bottom',
1032
+ overlayX: 'start',
1033
+ overlayY: 'bottom',
1034
+ },
1035
+ };
1025
1036
 
1026
1037
  class DynamicOverlayContainer extends OverlayContainer {
1027
1038
  setContainerElement(containerElement) {
1028
1039
  this._containerElement = containerElement;
1029
1040
  }
1030
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
1031
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' });
1041
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1042
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
1032
1043
  }
1033
1044
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
1034
1045
  type: Injectable,
@@ -1037,8 +1048,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
1037
1048
  }]
1038
1049
  }] });
1039
1050
  class DynamicOverlay extends Overlay {
1040
- _dynamicOverlayContainer;
1041
- renderer;
1042
1051
  constructor(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, rendererFactory, _location, _outsideClickDispatcher) {
1043
1052
  super(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher);
1044
1053
  this.renderer = rendererFactory.createRenderer(null, null);
@@ -1052,8 +1061,8 @@ class DynamicOverlay extends Overlay {
1052
1061
  this.setContainerElement(containerElement);
1053
1062
  return super.create(config);
1054
1063
  }
1055
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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 });
1056
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, providedIn: 'root' });
1064
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", 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 }); }
1065
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
1057
1066
  }
1058
1067
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, decorators: [{
1059
1068
  type: Injectable,
@@ -1066,10 +1075,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
1066
1075
  }] }, { type: i2.Directionality }, { type: i0.RendererFactory2 }, { type: i3.Location }, { type: i1$2.OverlayOutsideClickDispatcher }]; } });
1067
1076
 
1068
1077
  class AXOverlayService {
1069
- overlayService;
1070
- overlayService2;
1071
- appRef;
1072
- portal;
1073
1078
  constructor(overlayService, overlayService2, appRef) {
1074
1079
  this.overlayService = overlayService;
1075
1080
  this.overlayService2 = overlayService2;
@@ -1166,49 +1171,14 @@ class AXOverlayService {
1166
1171
  },
1167
1172
  };
1168
1173
  }
1169
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
1170
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, providedIn: 'root' });
1174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
1175
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
1171
1176
  }
1172
1177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, decorators: [{
1173
1178
  type: Injectable,
1174
1179
  args: [{ providedIn: 'root' }]
1175
1180
  }], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
1176
1181
 
1177
- class AXCommonModule {
1178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1179
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
1180
- AXInfiniteScrollerDirective,
1181
- AXNgModelChangeDebouncedDirective,
1182
- AXAutoFocusDirective,
1183
- AXHotkeyDirective], exports: [AXResponsiveDirective,
1184
- AXInfiniteScrollerDirective,
1185
- AXAutoFocusDirective,
1186
- AXNgModelChangeDebouncedDirective,
1187
- AXHotkeyDirective] });
1188
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule });
1189
- }
1190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, decorators: [{
1191
- type: NgModule,
1192
- args: [{
1193
- imports: [],
1194
- exports: [
1195
- AXResponsiveDirective,
1196
- AXInfiniteScrollerDirective,
1197
- AXAutoFocusDirective,
1198
- AXNgModelChangeDebouncedDirective,
1199
- AXHotkeyDirective,
1200
- ],
1201
- declarations: [
1202
- AXResponsiveDirective,
1203
- AXInfiniteScrollerDirective,
1204
- AXNgModelChangeDebouncedDirective,
1205
- AXAutoFocusDirective,
1206
- AXHotkeyDirective,
1207
- ],
1208
- providers: [],
1209
- }]
1210
- }] });
1211
-
1212
1182
  /**
1213
1183
  * Generated bundle index. Do not edit.
1214
1184
  */