@acorex/components 5.8.0 → 6.0.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 (832) hide show
  1. package/.browserslistrc +16 -0
  2. package/README.md +24 -24
  3. package/action-sheet/index.ts +1 -0
  4. package/action-sheet/ng-package.json +6 -0
  5. package/action-sheet/public-api.ts +3 -0
  6. package/action-sheet/src/action-sheet-item.component.ts +46 -0
  7. package/action-sheet/src/action-sheet.component.html +12 -0
  8. package/action-sheet/src/action-sheet.component.ts +82 -0
  9. package/action-sheet/src/action-sheet.module.ts +13 -0
  10. package/alert/index.ts +1 -0
  11. package/alert/ng-package.json +6 -0
  12. package/alert/public-api.ts +2 -0
  13. package/alert/src/alert.component.html +21 -0
  14. package/alert/src/alert.component.ts +179 -0
  15. package/alert/src/alert.module.ts +15 -0
  16. package/avatar/index.ts +1 -0
  17. package/avatar/ng-package.json +6 -0
  18. package/avatar/public-api.ts +3 -0
  19. package/avatar/src/avatar-group.component.ts +12 -0
  20. package/avatar/src/avatar.component.html +30 -0
  21. package/avatar/src/avatar.component.ts +41 -0
  22. package/avatar/src/avatar.module.ts +15 -0
  23. package/{lib/avatar/index.d.ts → avatar/src/index.ts} +0 -0
  24. package/badge/index.ts +1 -0
  25. package/badge/ng-package.json +6 -0
  26. package/badge/public-api.ts +2 -0
  27. package/badge/src/badge.component.html +3 -0
  28. package/badge/src/badge.component.ts +37 -0
  29. package/badge/src/badge.module.ts +14 -0
  30. package/breadcrumbs/index.ts +4 -0
  31. package/breadcrumbs/ng-package.json +6 -0
  32. package/breadcrumbs/public-api.ts +4 -0
  33. package/breadcrumbs/src/breadcrumbs-item.class.ts +9 -0
  34. package/breadcrumbs/src/breadcrumbs-item.component.html +11 -0
  35. package/breadcrumbs/src/breadcrumbs-item.component.ts +42 -0
  36. package/breadcrumbs/src/breadcrumbs.component.html +8 -0
  37. package/breadcrumbs/src/breadcrumbs.component.ts +28 -0
  38. package/breadcrumbs/src/breadcrumbs.module.ts +12 -0
  39. package/button/index.ts +1 -0
  40. package/button/ng-package.json +6 -0
  41. package/button/public-api.ts +5 -0
  42. package/button/src/button-group.component.html +2 -0
  43. package/button/src/button-group.component.ts +126 -0
  44. package/button/src/button-item.class.ts +24 -0
  45. package/button/src/button-item.component.ts +78 -0
  46. package/button/src/button.component.html +10 -0
  47. package/button/src/button.component.ts +79 -0
  48. package/button/src/button.module.ts +22 -0
  49. package/calendar/index.ts +1 -0
  50. package/calendar/ng-package.json +6 -0
  51. package/calendar/public-api.ts +3 -0
  52. package/calendar/src/calendar.class.ts +143 -0
  53. package/calendar/src/calendar.component.html +70 -0
  54. package/calendar/src/calendar.component.ts +416 -0
  55. package/calendar/src/calendar.module.ts +17 -0
  56. package/carousel/index.ts +1 -0
  57. package/carousel/ng-package.json +6 -0
  58. package/carousel/public-api.ts +7 -0
  59. package/carousel/src/carousel-arrows.component.ts +70 -0
  60. package/carousel/src/carousel-item.component.ts +19 -0
  61. package/carousel/src/carousel-pager.component.ts +83 -0
  62. package/carousel/src/carousel-splidejs.class.ts +115 -0
  63. package/carousel/src/carousel.class.ts +103 -0
  64. package/carousel/src/carousel.component.html +11 -0
  65. package/carousel/src/carousel.component.ts +477 -0
  66. package/carousel/src/carousel.module.ts +17 -0
  67. package/checkbox/index.ts +1 -0
  68. package/checkbox/ng-package.json +6 -0
  69. package/checkbox/public-api.ts +2 -0
  70. package/checkbox/src/checkbox.component.html +14 -0
  71. package/checkbox/src/checkbox.component.ts +50 -0
  72. package/checkbox/src/checkbox.module.ts +12 -0
  73. package/collapse/index.ts +1 -0
  74. package/collapse/ng-package.json +6 -0
  75. package/collapse/public-api.ts +3 -0
  76. package/collapse/src/collapse-group.component.ts +53 -0
  77. package/collapse/src/collapse.component.html +25 -0
  78. package/collapse/src/collapse.component.ts +52 -0
  79. package/collapse/src/collapse.module.ts +12 -0
  80. package/color-palette/index.ts +1 -0
  81. package/color-palette/ng-package.json +6 -0
  82. package/color-palette/public-api.ts +7 -0
  83. package/color-palette/src/color-palette-input.component.html +40 -0
  84. package/color-palette/src/color-palette-input.component.ts +102 -0
  85. package/color-palette/src/color-palette-picker.component.html +11 -0
  86. package/color-palette/src/color-palette-picker.component.ts +105 -0
  87. package/color-palette/src/color-palette-preview.component.ts +59 -0
  88. package/color-palette/src/color-palette-swatches.component.ts +296 -0
  89. package/color-palette/src/color-palette.class.ts +23 -0
  90. package/color-palette/src/color-palette.component.html +21 -0
  91. package/color-palette/src/color-palette.component.ts +99 -0
  92. package/color-palette/src/color-palette.module.ts +39 -0
  93. package/color-picker/index.ts +1 -0
  94. package/color-picker/ng-package.json +6 -0
  95. package/color-picker/public-api.ts +2 -0
  96. package/color-picker/src/color-picker.component.html +24 -0
  97. package/color-picker/src/color-picker.component.ts +125 -0
  98. package/color-picker/src/color-picker.module.ts +34 -0
  99. package/common/index.ts +1 -0
  100. package/common/ng-package.json +6 -0
  101. package/common/public-api.ts +12 -0
  102. package/common/src/auto-focus.directive.ts +51 -0
  103. package/common/src/common.module.ts +22 -0
  104. package/common/src/components.class.ts +44 -0
  105. package/common/src/custom-cdk-overlay.service.ts +86 -0
  106. package/common/src/drawing.class.ts +9 -0
  107. package/common/src/events.class.ts +97 -0
  108. package/common/src/hotkey.directive.ts +86 -0
  109. package/common/src/hotkey.service.ts +43 -0
  110. package/common/src/infinite-scroll.directive.ts +95 -0
  111. package/common/src/overlay.service.ts +117 -0
  112. package/common/src/responsive.directive.ts +31 -0
  113. package/common/src/styles.class.ts +47 -0
  114. package/data-pager/index.ts +1 -0
  115. package/data-pager/ng-package.json +6 -0
  116. package/data-pager/public-api.ts +9 -0
  117. package/data-pager/src/data-pager-base.component.ts +50 -0
  118. package/data-pager/src/data-pager-info.component.ts +61 -0
  119. package/data-pager/src/data-pager-input-selector.component.ts +43 -0
  120. package/data-pager/src/data-pager-next-buttons.components.ts +49 -0
  121. package/data-pager/src/data-pager-numeric-selector.component.ts +86 -0
  122. package/data-pager/src/data-pager-pagesize-dropdown.component.ts +77 -0
  123. package/data-pager/src/data-pager-prev-buttons.component.ts +51 -0
  124. package/data-pager/src/data-pager.component.html +33 -0
  125. package/data-pager/src/data-pager.component.ts +163 -0
  126. package/data-pager/src/data-pager.module.ts +32 -0
  127. package/data-table/index.ts +1 -0
  128. package/data-table/ng-package.json +6 -0
  129. package/data-table/public-api.ts +4 -0
  130. package/data-table/src/data-column-cell-template.directive.ts +13 -0
  131. package/data-table/src/data-column.directive.ts +45 -0
  132. package/data-table/src/data-table.component.html +89 -0
  133. package/data-table/src/data-table.component.ts +159 -0
  134. package/data-table/src/data-table.module.ts +20 -0
  135. package/{lib/data-table/index.d.ts → data-table/src/index.ts} +0 -0
  136. package/date-picker/index.ts +1 -0
  137. package/date-picker/ng-package.json +6 -0
  138. package/date-picker/public-api.ts +2 -0
  139. package/date-picker/src/datepicker.component.html +37 -0
  140. package/date-picker/src/datepicker.component.ts +289 -0
  141. package/date-picker/src/datepicker.module.ts +31 -0
  142. package/decorators/index.ts +1 -0
  143. package/decorators/ng-package.json +6 -0
  144. package/decorators/public-api.ts +10 -0
  145. package/decorators/src/addon.component.ts +21 -0
  146. package/decorators/src/close-button.component.ts +48 -0
  147. package/decorators/src/content.component.ts +21 -0
  148. package/decorators/src/decorators.module.ts +32 -0
  149. package/decorators/src/footer.component.ts +25 -0
  150. package/decorators/src/header.component.ts +25 -0
  151. package/decorators/src/icon.component.ts +31 -0
  152. package/decorators/src/prefix.component.ts +21 -0
  153. package/decorators/src/suffix.component.ts +21 -0
  154. package/decorators/src/title.component.ts +26 -0
  155. package/dialog/index.ts +1 -0
  156. package/dialog/ng-package.json +6 -0
  157. package/dialog/public-api.ts +4 -0
  158. package/dialog/src/dialog.class.ts +13 -0
  159. package/dialog/src/dialog.component.html +21 -0
  160. package/dialog/src/dialog.component.ts +61 -0
  161. package/dialog/src/dialog.module.ts +20 -0
  162. package/dialog/src/dialog.service.ts +159 -0
  163. package/drawer/index.ts +1 -0
  164. package/drawer/ng-package.json +6 -0
  165. package/drawer/public-api.ts +3 -0
  166. package/drawer/src/drawer-container.component.ts +40 -0
  167. package/drawer/src/drawer.component.ts +168 -0
  168. package/drawer/src/drawer.module.ts +15 -0
  169. package/dropdown/index.ts +1 -0
  170. package/dropdown/ng-package.json +6 -0
  171. package/dropdown/public-api.ts +2 -0
  172. package/dropdown/src/dropdown-panel.component.html +6 -0
  173. package/dropdown/src/dropdown-panel.component.ts +113 -0
  174. package/dropdown/src/dropdown.module.ts +15 -0
  175. package/form/index.ts +1 -0
  176. package/form/ng-package.json +6 -0
  177. package/form/public-api.ts +7 -0
  178. package/form/src/form-field.component.ts +21 -0
  179. package/form/src/form-field.module.ts +55 -0
  180. package/form/src/form-hint.component.ts +18 -0
  181. package/form/src/form.component.ts +89 -0
  182. package/form/src/validation-rule.widget.ts +133 -0
  183. package/form/src/validation-summary.component.ts +82 -0
  184. package/form/src/validation.class.ts +25 -0
  185. package/index.ts +1 -0
  186. package/input-mask/index.ts +1 -0
  187. package/input-mask/ng-package.json +6 -0
  188. package/input-mask/public-api.ts +2 -0
  189. package/input-mask/src/input-mask.component.ts +70 -0
  190. package/input-mask/src/input-mask.module.ts +16 -0
  191. package/karma.conf.js +44 -0
  192. package/label/index.ts +1 -0
  193. package/label/ng-package.json +6 -0
  194. package/label/public-api.ts +2 -0
  195. package/label/src/label.component.html +3 -0
  196. package/label/src/label.component.ts +34 -0
  197. package/label/src/label.module.ts +14 -0
  198. package/loading/index.ts +1 -0
  199. package/loading/ng-package.json +6 -0
  200. package/loading/public-api.ts +5 -0
  201. package/loading/src/loading-spinner.component.ts +39 -0
  202. package/loading/src/loading.component.ts +79 -0
  203. package/loading/src/loading.directive.ts +88 -0
  204. package/loading/src/loading.module.ts +32 -0
  205. package/loading/src/loading.service.ts +205 -0
  206. package/menu/index.ts +1 -0
  207. package/menu/ng-package.json +6 -0
  208. package/menu/public-api.ts +2 -0
  209. package/menu/src/menu.component.html +64 -0
  210. package/menu/src/menu.component.ts +234 -0
  211. package/menu/src/menu.module.ts +18 -0
  212. package/mixin/index.ts +1 -0
  213. package/mixin/ng-package.json +7 -0
  214. package/mixin/public-api.ts +17 -0
  215. package/mixin/src/base-components.class.ts +140 -0
  216. package/mixin/src/base-menu-mixin.class.ts +165 -0
  217. package/mixin/src/button-mixin.class.ts +84 -0
  218. package/mixin/src/clickable-mixin.class.ts +32 -0
  219. package/mixin/src/color-look-mixing.class.ts +56 -0
  220. package/mixin/src/constratctor.ts +3 -0
  221. package/mixin/src/datalist-component.class.ts +176 -0
  222. package/mixin/src/datalist.class.ts +14 -0
  223. package/mixin/src/dropdown-mixin.class.ts +135 -0
  224. package/mixin/src/interactive-mixin.class.ts +97 -0
  225. package/mixin/src/loading-mixin.class.ts +31 -0
  226. package/mixin/src/mixin.class.ts +70 -0
  227. package/mixin/src/page-component.class.ts +15 -0
  228. package/mixin/src/selection-component.class.ts +212 -0
  229. package/mixin/src/sizable-mixin.class.ts +29 -0
  230. package/mixin/src/textbox-mixin.class.ts +116 -0
  231. package/mixin/src/value-mixin.class.ts +230 -0
  232. package/ng-package.json +7 -0
  233. package/number-box/index.ts +1 -0
  234. package/number-box/ng-package.json +6 -0
  235. package/number-box/public-api.ts +2 -0
  236. package/number-box/src/number-box.component.html +40 -0
  237. package/number-box/src/number-box.component.ts +272 -0
  238. package/number-box/src/number-box.module.ts +24 -0
  239. package/package.json +33 -35
  240. package/page/index.ts +1 -0
  241. package/page/ng-package.json +6 -0
  242. package/page/public-api.ts +4 -0
  243. package/page/src/base-page.class.ts +109 -0
  244. package/page/src/page.component.ts +42 -0
  245. package/page/src/page.module.ts +11 -0
  246. package/password-box/index.ts +1 -0
  247. package/password-box/ng-package.json +6 -0
  248. package/password-box/public-api.ts +2 -0
  249. package/password-box/src/password-box.component.html +15 -0
  250. package/password-box/src/password-box.component.ts +65 -0
  251. package/password-box/src/password-box.module.ts +22 -0
  252. package/popover/index.ts +1 -0
  253. package/popover/ng-package.json +6 -0
  254. package/popover/public-api.ts +3 -0
  255. package/popover/src/popover.component.html +3 -0
  256. package/popover/src/popover.component.ts +309 -0
  257. package/popover/src/popover.module.ts +11 -0
  258. package/popup/index.ts +1 -0
  259. package/popup/ng-package.json +6 -0
  260. package/popup/public-api.ts +3 -0
  261. package/popup/src/popup.component.html +14 -0
  262. package/popup/src/popup.component.ts +178 -0
  263. package/popup/src/popup.module.ts +20 -0
  264. package/popup/src/popup.service.ts +114 -0
  265. package/progress-bar/index.ts +1 -0
  266. package/progress-bar/ng-package.json +6 -0
  267. package/progress-bar/public-api.ts +2 -0
  268. package/progress-bar/src/progress-bar.component.html +6 -0
  269. package/progress-bar/src/progress-bar.component.ts +32 -0
  270. package/progress-bar/src/progress-bar.module.ts +11 -0
  271. package/public-api.ts +5 -0
  272. package/radio/index.ts +1 -0
  273. package/radio/ng-package.json +6 -0
  274. package/radio/public-api.ts +2 -0
  275. package/radio/src/radio.component.html +11 -0
  276. package/radio/src/radio.component.ts +44 -0
  277. package/radio/src/radio.module.ts +15 -0
  278. package/range-slider/index.ts +1 -0
  279. package/range-slider/ng-package.json +6 -0
  280. package/range-slider/public-api.ts +2 -0
  281. package/range-slider/src/range-slider.component.html +1 -0
  282. package/range-slider/src/range-slider.component.ts +132 -0
  283. package/range-slider/src/range-slider.module.ts +15 -0
  284. package/rating/index.ts +1 -0
  285. package/rating/ng-package.json +6 -0
  286. package/rating/public-api.ts +2 -0
  287. package/rating/src/rating.component.html +5 -0
  288. package/rating/src/rating.component.module.ts +11 -0
  289. package/rating/src/rating.component.ts +43 -0
  290. package/result/index.ts +1 -0
  291. package/result/ng-package.json +6 -0
  292. package/result/public-api.ts +2 -0
  293. package/result/src/result.component.html +1958 -0
  294. package/result/src/result.component.ts +29 -0
  295. package/result/src/result.module.ts +11 -0
  296. package/search-box/index.ts +1 -0
  297. package/search-box/ng-package.json +6 -0
  298. package/search-box/public-api.ts +2 -0
  299. package/search-box/src/search-box.component.html +13 -0
  300. package/search-box/src/search-box.component.ts +62 -0
  301. package/search-box/src/search-box.module.ts +18 -0
  302. package/select-box/index.ts +1 -0
  303. package/select-box/ng-package.json +6 -0
  304. package/select-box/public-api.ts +2 -0
  305. package/select-box/src/selectbox.component.html +147 -0
  306. package/select-box/src/selectbox.component.ts +410 -0
  307. package/select-box/src/selectbox.module.ts +35 -0
  308. package/selection-list/index.ts +1 -0
  309. package/selection-list/ng-package.json +6 -0
  310. package/selection-list/public-api.ts +2 -0
  311. package/selection-list/src/selection-list.component.html +62 -0
  312. package/selection-list/src/selection-list.component.ts +69 -0
  313. package/selection-list/src/selection-list.module.ts +17 -0
  314. package/switch/index.ts +1 -0
  315. package/switch/ng-package.json +6 -0
  316. package/switch/public-api.ts +2 -0
  317. package/switch/src/switch.component.html +14 -0
  318. package/switch/src/switch.component.ts +52 -0
  319. package/switch/src/switch.module.ts +13 -0
  320. package/tabs/index.ts +1 -0
  321. package/tabs/ng-package.json +6 -0
  322. package/tabs/public-api.ts +5 -0
  323. package/tabs/src/tab-content.directive.ts +23 -0
  324. package/tabs/src/tab-item.component.ts +125 -0
  325. package/tabs/src/tabs.class.ts +7 -0
  326. package/tabs/src/tabs.component.ts +108 -0
  327. package/tabs/src/tabs.module.ts +18 -0
  328. package/test.ts +27 -0
  329. package/textarea/index.ts +1 -0
  330. package/textarea/ng-package.json +6 -0
  331. package/textarea/public-api.ts +2 -0
  332. package/textarea/src/textarea.component.html +6 -0
  333. package/textarea/src/textarea.component.ts +32 -0
  334. package/textarea/src/textarea.module.ts +11 -0
  335. package/textbox/index.ts +1 -0
  336. package/textbox/ng-package.json +6 -0
  337. package/textbox/public-api.ts +2 -0
  338. package/textbox/src/textbox.component.html +17 -0
  339. package/textbox/src/textbox.component.ts +37 -0
  340. package/textbox/src/textbox.module.ts +22 -0
  341. package/time-box/index.ts +1 -0
  342. package/time-box/ng-package.json +6 -0
  343. package/time-box/public-api.ts +2 -0
  344. package/time-box/src/time-box.component.html +16 -0
  345. package/time-box/src/time-box.component.ts +315 -0
  346. package/time-box/src/time-box.module.ts +22 -0
  347. package/toast/index.ts +1 -0
  348. package/toast/ng-package.json +6 -0
  349. package/toast/public-api.ts +4 -0
  350. package/toast/src/toast.class.ts +18 -0
  351. package/toast/src/toast.component.html +21 -0
  352. package/toast/src/toast.component.ts +65 -0
  353. package/toast/src/toast.module.ts +19 -0
  354. package/toast/src/toast.service.ts +160 -0
  355. package/tooltip/index.ts +1 -0
  356. package/tooltip/ng-package.json +6 -0
  357. package/tooltip/public-api.ts +3 -0
  358. package/tooltip/src/tooltip.component.html +6 -0
  359. package/tooltip/src/tooltip.component.ts +36 -0
  360. package/tooltip/src/tooltip.directive.ts +93 -0
  361. package/tooltip/src/tooltip.module.ts +16 -0
  362. package/tree-view/index.ts +1 -0
  363. package/tree-view/ng-package.json +6 -0
  364. package/tree-view/public-api.ts +2 -0
  365. package/tree-view/src/tree-view.component.html +15 -0
  366. package/tree-view/src/tree-view.component.ts +105 -0
  367. package/tree-view/src/tree-view.module.ts +12 -0
  368. package/tsconfig.lib.json +15 -0
  369. package/tsconfig.lib.prod.json +10 -0
  370. package/tsconfig.spec.json +17 -0
  371. package/esm2020/acorex-components.mjs +0 -5
  372. package/esm2020/lib/action-sheet/action-sheet-item.component.mjs +0 -37
  373. package/esm2020/lib/action-sheet/action-sheet.component.mjs +0 -87
  374. package/esm2020/lib/action-sheet/action-sheet.module.mjs +0 -22
  375. package/esm2020/lib/action-sheet/index.mjs +0 -4
  376. package/esm2020/lib/alert/alert.component.mjs +0 -146
  377. package/esm2020/lib/alert/alert.module.mjs +0 -24
  378. package/esm2020/lib/alert/index.mjs +0 -3
  379. package/esm2020/lib/avatar/avatar-group.component.mjs +0 -17
  380. package/esm2020/lib/avatar/avatar.component.mjs +0 -42
  381. package/esm2020/lib/avatar/avatar.module.mjs +0 -22
  382. package/esm2020/lib/avatar/index.mjs +0 -4
  383. package/esm2020/lib/badge/badge.component.mjs +0 -28
  384. package/esm2020/lib/badge/badge.module.mjs +0 -21
  385. package/esm2020/lib/badge/index.mjs +0 -3
  386. package/esm2020/lib/base/auto-focus.directive.mjs +0 -43
  387. package/esm2020/lib/base/common.module.mjs +0 -21
  388. package/esm2020/lib/base/components.class.mjs +0 -45
  389. package/esm2020/lib/base/custom-cdk-overlay.service.mjs +0 -47
  390. package/esm2020/lib/base/drawing.class.mjs +0 -11
  391. package/esm2020/lib/base/events.class.mjs +0 -58
  392. package/esm2020/lib/base/hotkey.directive.mjs +0 -79
  393. package/esm2020/lib/base/index.mjs +0 -12
  394. package/esm2020/lib/base/infinite-scroll.directive.mjs +0 -63
  395. package/esm2020/lib/base/mixin/base-components.class.mjs +0 -100
  396. package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +0 -140
  397. package/esm2020/lib/base/mixin/button-mixin.class.mjs +0 -70
  398. package/esm2020/lib/base/mixin/clickable-mixin.class.mjs +0 -24
  399. package/esm2020/lib/base/mixin/color-look-mixing.class.mjs +0 -48
  400. package/esm2020/lib/base/mixin/constratctor.mjs +0 -2
  401. package/esm2020/lib/base/mixin/datalist-component.class.mjs +0 -160
  402. package/esm2020/lib/base/mixin/datalist.class.mjs +0 -3
  403. package/esm2020/lib/base/mixin/dropdown-mixin.class.mjs +0 -99
  404. package/esm2020/lib/base/mixin/index.mjs +0 -5
  405. package/esm2020/lib/base/mixin/interactive-mixin.class.mjs +0 -84
  406. package/esm2020/lib/base/mixin/loading-mixin.class.mjs +0 -18
  407. package/esm2020/lib/base/mixin/mixin.class.mjs +0 -26
  408. package/esm2020/lib/base/mixin/selection-component.class.mjs +0 -181
  409. package/esm2020/lib/base/mixin/sizable-mixin.class.mjs +0 -18
  410. package/esm2020/lib/base/mixin/textbox-mixin.class.mjs +0 -90
  411. package/esm2020/lib/base/mixin/value-mixin.class.mjs +0 -197
  412. package/esm2020/lib/base/overlay.service.mjs +0 -91
  413. package/esm2020/lib/base/responsive.directive.mjs +0 -34
  414. package/esm2020/lib/base/styles.class.mjs +0 -4
  415. package/esm2020/lib/breadcrumbs/breadcrumbs-item.class.mjs +0 -2
  416. package/esm2020/lib/breadcrumbs/breadcrumbs-item.component.mjs +0 -20
  417. package/esm2020/lib/breadcrumbs/breadcrumbs.component.mjs +0 -18
  418. package/esm2020/lib/breadcrumbs/breadcrumbs.module.mjs +0 -20
  419. package/esm2020/lib/breadcrumbs/index.mjs +0 -5
  420. package/esm2020/lib/button/button-group.component.mjs +0 -90
  421. package/esm2020/lib/button/button-item.class.mjs +0 -2
  422. package/esm2020/lib/button/button-item.component.mjs +0 -80
  423. package/esm2020/lib/button/button.component.mjs +0 -54
  424. package/esm2020/lib/button/button.module.mjs +0 -32
  425. package/esm2020/lib/button/index.mjs +0 -6
  426. package/esm2020/lib/calendar/calendar.class.mjs +0 -126
  427. package/esm2020/lib/calendar/calendar.component.mjs +0 -330
  428. package/esm2020/lib/calendar/calendar.module.mjs +0 -25
  429. package/esm2020/lib/calendar/index.mjs +0 -3
  430. package/esm2020/lib/carousel/carousel-arrows.component.mjs +0 -56
  431. package/esm2020/lib/carousel/carousel-item.component.mjs +0 -21
  432. package/esm2020/lib/carousel/carousel-pager.component.mjs +0 -74
  433. package/esm2020/lib/carousel/carousel-splidejs.class.mjs +0 -91
  434. package/esm2020/lib/carousel/carousel.class.mjs +0 -10
  435. package/esm2020/lib/carousel/carousel.component.mjs +0 -438
  436. package/esm2020/lib/carousel/carousel.module.mjs +0 -24
  437. package/esm2020/lib/carousel/index.mjs +0 -7
  438. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -42
  439. package/esm2020/lib/checkbox/checkbox.module.mjs +0 -21
  440. package/esm2020/lib/checkbox/index.mjs +0 -3
  441. package/esm2020/lib/collapse/collapse-group.component.mjs +0 -50
  442. package/esm2020/lib/collapse/collapse.component.mjs +0 -42
  443. package/esm2020/lib/collapse/collapse.module.mjs +0 -20
  444. package/esm2020/lib/collapse/index.mjs +0 -4
  445. package/esm2020/lib/color-palette/color-palette-input.component.mjs +0 -80
  446. package/esm2020/lib/color-palette/color-palette-picker.component.mjs +0 -79
  447. package/esm2020/lib/color-palette/color-palette-preview.component.mjs +0 -44
  448. package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +0 -272
  449. package/esm2020/lib/color-palette/color-palette.class.mjs +0 -17
  450. package/esm2020/lib/color-palette/color-palette.component.mjs +0 -73
  451. package/esm2020/lib/color-palette/color-palette.module.mjs +0 -57
  452. package/esm2020/lib/color-palette/index.mjs +0 -7
  453. package/esm2020/lib/color-picker/color-picker.component.mjs +0 -90
  454. package/esm2020/lib/color-picker/color-picker.module.mjs +0 -61
  455. package/esm2020/lib/color-picker/index.mjs +0 -3
  456. package/esm2020/lib/data-pager/data-pager-base.component.mjs +0 -37
  457. package/esm2020/lib/data-pager/data-pager-info.component.mjs +0 -52
  458. package/esm2020/lib/data-pager/data-pager-input-selector.component.mjs +0 -50
  459. package/esm2020/lib/data-pager/data-pager-next-buttons.components.mjs +0 -60
  460. package/esm2020/lib/data-pager/data-pager-numeric-selector.component.mjs +0 -99
  461. package/esm2020/lib/data-pager/data-pager-pagesize-dropdown.component.mjs +0 -86
  462. package/esm2020/lib/data-pager/data-pager-prev-buttons.component.mjs +0 -58
  463. package/esm2020/lib/data-pager/data-pager.component.mjs +0 -132
  464. package/esm2020/lib/data-pager/data-pager.module.mjs +0 -51
  465. package/esm2020/lib/data-pager/index.mjs +0 -9
  466. package/esm2020/lib/data-table/data-column-cell-template.directive.mjs +0 -17
  467. package/esm2020/lib/data-table/data-column.directive.mjs +0 -43
  468. package/esm2020/lib/data-table/data-table.component.mjs +0 -124
  469. package/esm2020/lib/data-table/data-table.module.mjs +0 -27
  470. package/esm2020/lib/data-table/index.mjs +0 -5
  471. package/esm2020/lib/datalist/datalist.component.mjs +0 -75
  472. package/esm2020/lib/datalist/datalist.module.mjs +0 -24
  473. package/esm2020/lib/datalist/index.mjs +0 -3
  474. package/esm2020/lib/datepicker/datepicker.component.mjs +0 -189
  475. package/esm2020/lib/datepicker/datepicker.module.mjs +0 -44
  476. package/esm2020/lib/datepicker/index.mjs +0 -3
  477. package/esm2020/lib/decorators/addon.component.mjs +0 -20
  478. package/esm2020/lib/decorators/close-button.component.mjs +0 -40
  479. package/esm2020/lib/decorators/content.component.mjs +0 -26
  480. package/esm2020/lib/decorators/decorators.module.mjs +0 -55
  481. package/esm2020/lib/decorators/footer.component.mjs +0 -24
  482. package/esm2020/lib/decorators/header.component.mjs +0 -24
  483. package/esm2020/lib/decorators/icon.component.mjs +0 -28
  484. package/esm2020/lib/decorators/index.mjs +0 -12
  485. package/esm2020/lib/decorators/prefix.component.mjs +0 -24
  486. package/esm2020/lib/decorators/suffix.component.mjs +0 -24
  487. package/esm2020/lib/decorators/title.component.mjs +0 -24
  488. package/esm2020/lib/dialog/dialog.class.mjs +0 -2
  489. package/esm2020/lib/dialog/dialog.component.mjs +0 -53
  490. package/esm2020/lib/dialog/dialog.module.mjs +0 -27
  491. package/esm2020/lib/dialog/dialog.service.mjs +0 -150
  492. package/esm2020/lib/dialog/index.mjs +0 -5
  493. package/esm2020/lib/drawer/drawer-container.component.mjs +0 -43
  494. package/esm2020/lib/drawer/drawer.component.mjs +0 -149
  495. package/esm2020/lib/drawer/drawer.module.mjs +0 -22
  496. package/esm2020/lib/drawer/index.mjs +0 -4
  497. package/esm2020/lib/dropdown/dropdown-panel.component.mjs +0 -83
  498. package/esm2020/lib/dropdown/dropdown.module.mjs +0 -23
  499. package/esm2020/lib/dropdown/index.mjs +0 -3
  500. package/esm2020/lib/form/form-field.component.mjs +0 -20
  501. package/esm2020/lib/form/form-field.module.mjs +0 -21
  502. package/esm2020/lib/form/form-hint.component.mjs +0 -20
  503. package/esm2020/lib/form/form.component.mjs +0 -85
  504. package/esm2020/lib/form/index.mjs +0 -5
  505. package/esm2020/lib/input-mask/index.mjs +0 -3
  506. package/esm2020/lib/input-mask/input-mask.component.mjs +0 -56
  507. package/esm2020/lib/input-mask/input-mask.module.mjs +0 -24
  508. package/esm2020/lib/label/index.mjs +0 -3
  509. package/esm2020/lib/label/label.component.mjs +0 -27
  510. package/esm2020/lib/label/label.module.mjs +0 -21
  511. package/esm2020/lib/loading/index.mjs +0 -6
  512. package/esm2020/lib/loading/loading-spinner.component.mjs +0 -35
  513. package/esm2020/lib/loading/loading.component.mjs +0 -62
  514. package/esm2020/lib/loading/loading.directive.mjs +0 -67
  515. package/esm2020/lib/loading/loading.module.mjs +0 -35
  516. package/esm2020/lib/loading/loading.service.mjs +0 -154
  517. package/esm2020/lib/menu/index.mjs +0 -3
  518. package/esm2020/lib/menu/menu.component.mjs +0 -182
  519. package/esm2020/lib/menu/menu.module.mjs +0 -34
  520. package/esm2020/lib/number-box/index.mjs +0 -3
  521. package/esm2020/lib/number-box/number-box.component.mjs +0 -230
  522. package/esm2020/lib/number-box/number-box.module.mjs +0 -35
  523. package/esm2020/lib/page/base-page.class.mjs +0 -86
  524. package/esm2020/lib/page/index.mjs +0 -4
  525. package/esm2020/lib/page/page.component.mjs +0 -58
  526. package/esm2020/lib/page/page.module.mjs +0 -17
  527. package/esm2020/lib/password-box/index.mjs +0 -3
  528. package/esm2020/lib/password-box/password-box.component.mjs +0 -59
  529. package/esm2020/lib/password-box/password-box.module.mjs +0 -32
  530. package/esm2020/lib/picker/index.mjs +0 -3
  531. package/esm2020/lib/picker/picker.component.mjs +0 -283
  532. package/esm2020/lib/picker/picker.model.class.mjs +0 -2
  533. package/esm2020/lib/picker/picker.module.mjs +0 -20
  534. package/esm2020/lib/popover/index.mjs +0 -3
  535. package/esm2020/lib/popover/popover.component.mjs +0 -253
  536. package/esm2020/lib/popover/popover.module.mjs +0 -19
  537. package/esm2020/lib/popup/index.mjs +0 -4
  538. package/esm2020/lib/popup/popup.component.mjs +0 -125
  539. package/esm2020/lib/popup/popup.module.mjs +0 -26
  540. package/esm2020/lib/popup/popup.service.mjs +0 -95
  541. package/esm2020/lib/progress-bar/index.mjs +0 -3
  542. package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -34
  543. package/esm2020/lib/progress-bar/progress-bar.module.mjs +0 -19
  544. package/esm2020/lib/radio/index.mjs +0 -3
  545. package/esm2020/lib/radio/radio.component.mjs +0 -34
  546. package/esm2020/lib/radio/radio.module.mjs +0 -22
  547. package/esm2020/lib/range-slider/index.mjs +0 -3
  548. package/esm2020/lib/range-slider/range-slider.component.mjs +0 -105
  549. package/esm2020/lib/range-slider/range-slider.module.mjs +0 -22
  550. package/esm2020/lib/rating/index.mjs +0 -3
  551. package/esm2020/lib/rating/rating.component.mjs +0 -41
  552. package/esm2020/lib/rating/rating.component.module.mjs +0 -19
  553. package/esm2020/lib/result/index.mjs +0 -3
  554. package/esm2020/lib/result/result.component.mjs +0 -23
  555. package/esm2020/lib/result/result.module.mjs +0 -19
  556. package/esm2020/lib/searchbox/index.mjs +0 -3
  557. package/esm2020/lib/searchbox/searchbox.component.mjs +0 -53
  558. package/esm2020/lib/searchbox/searchbox.module.mjs +0 -25
  559. package/esm2020/lib/selectbox/index.mjs +0 -3
  560. package/esm2020/lib/selectbox/selectbox.component.mjs +0 -338
  561. package/esm2020/lib/selectbox/selectbox.module.mjs +0 -64
  562. package/esm2020/lib/selection-list/index.mjs +0 -3
  563. package/esm2020/lib/selection-list/selection-list.component.mjs +0 -50
  564. package/esm2020/lib/selection-list/selection-list.module.mjs +0 -24
  565. package/esm2020/lib/switch/index.mjs +0 -3
  566. package/esm2020/lib/switch/switch.component.mjs +0 -33
  567. package/esm2020/lib/switch/switch.module.mjs +0 -21
  568. package/esm2020/lib/tabs/index.mjs +0 -6
  569. package/esm2020/lib/tabs/tab-content.directive.mjs +0 -29
  570. package/esm2020/lib/tabs/tab-item.component.mjs +0 -121
  571. package/esm2020/lib/tabs/tabs.class.mjs +0 -4
  572. package/esm2020/lib/tabs/tabs.component.mjs +0 -95
  573. package/esm2020/lib/tabs/tabs.module.mjs +0 -25
  574. package/esm2020/lib/textarea/index.mjs +0 -3
  575. package/esm2020/lib/textarea/textarea.component.mjs +0 -25
  576. package/esm2020/lib/textarea/textarea.module.mjs +0 -24
  577. package/esm2020/lib/textbox/index.mjs +0 -3
  578. package/esm2020/lib/textbox/textbox.component.mjs +0 -34
  579. package/esm2020/lib/textbox/textbox.module.mjs +0 -37
  580. package/esm2020/lib/time-box/index.mjs +0 -3
  581. package/esm2020/lib/time-box/time-box.component.mjs +0 -262
  582. package/esm2020/lib/time-box/time-box.module.mjs +0 -32
  583. package/esm2020/lib/toast/index.mjs +0 -5
  584. package/esm2020/lib/toast/toast.class.mjs +0 -2
  585. package/esm2020/lib/toast/toast.component.mjs +0 -61
  586. package/esm2020/lib/toast/toast.module.mjs +0 -24
  587. package/esm2020/lib/toast/toast.service.mjs +0 -148
  588. package/esm2020/lib/tooltip/index.mjs +0 -4
  589. package/esm2020/lib/tooltip/tooltip.component.mjs +0 -38
  590. package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -86
  591. package/esm2020/lib/tooltip/tooltip.module.mjs +0 -23
  592. package/esm2020/lib/treeview/index.mjs +0 -3
  593. package/esm2020/lib/treeview/tree-view.component.mjs +0 -108
  594. package/esm2020/lib/treeview/tree-view.module.mjs +0 -20
  595. package/esm2020/lib/validation/index.mjs +0 -4
  596. package/esm2020/lib/validation/validation-rule.widget.mjs +0 -99
  597. package/esm2020/lib/validation/validation-summary.component.mjs +0 -102
  598. package/esm2020/lib/validation/validation.class.mjs +0 -2
  599. package/esm2020/lib/validation/validation.module.mjs +0 -44
  600. package/esm2020/public-api.mjs +0 -54
  601. package/fesm2015/acorex-components.mjs +0 -10318
  602. package/fesm2015/acorex-components.mjs.map +0 -1
  603. package/fesm2020/acorex-components.mjs +0 -10225
  604. package/fesm2020/acorex-components.mjs.map +0 -1
  605. package/index.d.ts +0 -5
  606. package/lib/action-sheet/action-sheet-item.component.d.ts +0 -15
  607. package/lib/action-sheet/action-sheet.component.d.ts +0 -19
  608. package/lib/action-sheet/action-sheet.module.d.ts +0 -11
  609. package/lib/action-sheet/index.d.ts +0 -3
  610. package/lib/alert/alert.component.d.ts +0 -78
  611. package/lib/alert/alert.module.d.ts +0 -9
  612. package/lib/alert/index.d.ts +0 -2
  613. package/lib/avatar/avatar-group.component.d.ts +0 -8
  614. package/lib/avatar/avatar.component.d.ts +0 -22
  615. package/lib/avatar/avatar.module.d.ts +0 -9
  616. package/lib/badge/badge.component.d.ts +0 -41
  617. package/lib/badge/badge.module.d.ts +0 -8
  618. package/lib/badge/index.d.ts +0 -2
  619. package/lib/base/auto-focus.directive.d.ts +0 -12
  620. package/lib/base/common.module.d.ts +0 -10
  621. package/lib/base/components.class.d.ts +0 -42
  622. package/lib/base/custom-cdk-overlay.service.d.ts +0 -19
  623. package/lib/base/drawing.class.d.ts +0 -9
  624. package/lib/base/events.class.d.ts +0 -85
  625. package/lib/base/hotkey.directive.d.ts +0 -22
  626. package/lib/base/index.d.ts +0 -11
  627. package/lib/base/infinite-scroll.directive.d.ts +0 -25
  628. package/lib/base/mixin/base-components.class.d.ts +0 -85
  629. package/lib/base/mixin/base-menu-mixin.class.d.ts +0 -52
  630. package/lib/base/mixin/button-mixin.class.d.ts +0 -52
  631. package/lib/base/mixin/clickable-mixin.class.d.ts +0 -35
  632. package/lib/base/mixin/color-look-mixing.class.d.ts +0 -43
  633. package/lib/base/mixin/constratctor.d.ts +0 -4
  634. package/lib/base/mixin/datalist-component.class.d.ts +0 -58
  635. package/lib/base/mixin/datalist.class.d.ts +0 -11
  636. package/lib/base/mixin/dropdown-mixin.class.d.ts +0 -48
  637. package/lib/base/mixin/index.d.ts +0 -4
  638. package/lib/base/mixin/interactive-mixin.class.d.ts +0 -59
  639. package/lib/base/mixin/loading-mixin.class.d.ts +0 -39
  640. package/lib/base/mixin/mixin.class.d.ts +0 -693
  641. package/lib/base/mixin/selection-component.class.d.ts +0 -63
  642. package/lib/base/mixin/sizable-mixin.class.d.ts +0 -33
  643. package/lib/base/mixin/textbox-mixin.class.d.ts +0 -75
  644. package/lib/base/mixin/value-mixin.class.d.ts +0 -63
  645. package/lib/base/overlay.service.d.ts +0 -31
  646. package/lib/base/responsive.directive.d.ts +0 -10
  647. package/lib/base/styles.class.d.ts +0 -17
  648. package/lib/breadcrumbs/breadcrumbs-item.class.d.ts +0 -9
  649. package/lib/breadcrumbs/breadcrumbs-item.component.d.ts +0 -12
  650. package/lib/breadcrumbs/breadcrumbs.component.d.ts +0 -11
  651. package/lib/breadcrumbs/breadcrumbs.module.d.ts +0 -9
  652. package/lib/breadcrumbs/index.d.ts +0 -4
  653. package/lib/button/button-group.component.d.ts +0 -85
  654. package/lib/button/button-item.class.d.ts +0 -23
  655. package/lib/button/button-item.component.d.ts +0 -79
  656. package/lib/button/button.component.d.ts +0 -20
  657. package/lib/button/button.module.d.ts +0 -11
  658. package/lib/button/index.d.ts +0 -5
  659. package/lib/calendar/calendar.class.d.ts +0 -50
  660. package/lib/calendar/calendar.component.d.ts +0 -50
  661. package/lib/calendar/calendar.module.d.ts +0 -12
  662. package/lib/calendar/index.d.ts +0 -2
  663. package/lib/carousel/carousel-arrows.component.d.ts +0 -15
  664. package/lib/carousel/carousel-item.component.d.ts +0 -8
  665. package/lib/carousel/carousel-pager.component.d.ts +0 -22
  666. package/lib/carousel/carousel-splidejs.class.d.ts +0 -18
  667. package/lib/carousel/carousel.class.d.ts +0 -71
  668. package/lib/carousel/carousel.component.d.ts +0 -110
  669. package/lib/carousel/carousel.module.d.ts +0 -11
  670. package/lib/carousel/index.d.ts +0 -6
  671. package/lib/checkbox/checkbox.component.d.ts +0 -12
  672. package/lib/checkbox/checkbox.module.d.ts +0 -10
  673. package/lib/checkbox/index.d.ts +0 -2
  674. package/lib/collapse/collapse-group.component.d.ts +0 -15
  675. package/lib/collapse/collapse.component.d.ts +0 -16
  676. package/lib/collapse/collapse.module.d.ts +0 -9
  677. package/lib/collapse/index.d.ts +0 -3
  678. package/lib/color-palette/color-palette-input.component.d.ts +0 -15
  679. package/lib/color-palette/color-palette-picker.component.d.ts +0 -21
  680. package/lib/color-palette/color-palette-preview.component.d.ts +0 -11
  681. package/lib/color-palette/color-palette-swatches.component.d.ts +0 -17
  682. package/lib/color-palette/color-palette.class.d.ts +0 -23
  683. package/lib/color-palette/color-palette.component.d.ts +0 -24
  684. package/lib/color-palette/color-palette.module.d.ts +0 -18
  685. package/lib/color-palette/index.d.ts +0 -6
  686. package/lib/color-picker/color-picker.component.d.ts +0 -190
  687. package/lib/color-picker/color-picker.module.d.ts +0 -18
  688. package/lib/color-picker/index.d.ts +0 -2
  689. package/lib/data-pager/data-pager-base.component.d.ts +0 -48
  690. package/lib/data-pager/data-pager-info.component.d.ts +0 -15
  691. package/lib/data-pager/data-pager-input-selector.component.d.ts +0 -15
  692. package/lib/data-pager/data-pager-next-buttons.components.d.ts +0 -16
  693. package/lib/data-pager/data-pager-numeric-selector.component.d.ts +0 -18
  694. package/lib/data-pager/data-pager-pagesize-dropdown.component.d.ts +0 -19
  695. package/lib/data-pager/data-pager-prev-buttons.component.d.ts +0 -15
  696. package/lib/data-pager/data-pager.component.d.ts +0 -34
  697. package/lib/data-pager/data-pager.module.d.ts +0 -18
  698. package/lib/data-pager/index.d.ts +0 -8
  699. package/lib/data-table/data-column-cell-template.directive.d.ts +0 -8
  700. package/lib/data-table/data-column.directive.d.ts +0 -16
  701. package/lib/data-table/data-table.component.d.ts +0 -34
  702. package/lib/data-table/data-table.module.d.ts +0 -14
  703. package/lib/datalist/datalist.component.d.ts +0 -25
  704. package/lib/datalist/datalist.module.d.ts +0 -11
  705. package/lib/datalist/index.d.ts +0 -2
  706. package/lib/datepicker/datepicker.component.d.ts +0 -151
  707. package/lib/datepicker/datepicker.module.d.ts +0 -15
  708. package/lib/datepicker/index.d.ts +0 -2
  709. package/lib/decorators/addon.component.d.ts +0 -8
  710. package/lib/decorators/close-button.component.d.ts +0 -13
  711. package/lib/decorators/content.component.d.ts +0 -8
  712. package/lib/decorators/decorators.module.d.ts +0 -16
  713. package/lib/decorators/footer.component.d.ts +0 -8
  714. package/lib/decorators/header.component.d.ts +0 -8
  715. package/lib/decorators/icon.component.d.ts +0 -10
  716. package/lib/decorators/index.d.ts +0 -11
  717. package/lib/decorators/prefix.component.d.ts +0 -8
  718. package/lib/decorators/suffix.component.d.ts +0 -8
  719. package/lib/decorators/title.component.d.ts +0 -9
  720. package/lib/dialog/dialog.class.d.ts +0 -12
  721. package/lib/dialog/dialog.component.d.ts +0 -16
  722. package/lib/dialog/dialog.module.d.ts +0 -14
  723. package/lib/dialog/dialog.service.d.ts +0 -36
  724. package/lib/dialog/index.d.ts +0 -4
  725. package/lib/drawer/drawer-container.component.d.ts +0 -10
  726. package/lib/drawer/drawer.component.d.ts +0 -36
  727. package/lib/drawer/drawer.module.d.ts +0 -9
  728. package/lib/drawer/index.d.ts +0 -3
  729. package/lib/dropdown/dropdown-panel.component.d.ts +0 -26
  730. package/lib/dropdown/dropdown.module.d.ts +0 -12
  731. package/lib/dropdown/index.d.ts +0 -2
  732. package/lib/form/form-field.component.d.ts +0 -8
  733. package/lib/form/form-field.module.d.ts +0 -10
  734. package/lib/form/form-hint.component.d.ts +0 -8
  735. package/lib/form/form.component.d.ts +0 -31
  736. package/lib/form/index.d.ts +0 -4
  737. package/lib/input-mask/index.d.ts +0 -2
  738. package/lib/input-mask/input-mask.component.d.ts +0 -25
  739. package/lib/input-mask/input-mask.module.d.ts +0 -10
  740. package/lib/label/index.d.ts +0 -2
  741. package/lib/label/label.component.d.ts +0 -13
  742. package/lib/label/label.module.d.ts +0 -8
  743. package/lib/loading/index.d.ts +0 -5
  744. package/lib/loading/loading-spinner.component.d.ts +0 -6
  745. package/lib/loading/loading.component.d.ts +0 -21
  746. package/lib/loading/loading.directive.d.ts +0 -22
  747. package/lib/loading/loading.module.d.ts +0 -13
  748. package/lib/loading/loading.service.d.ts +0 -48
  749. package/lib/menu/index.d.ts +0 -2
  750. package/lib/menu/menu.component.d.ts +0 -52
  751. package/lib/menu/menu.module.d.ts +0 -12
  752. package/lib/number-box/index.d.ts +0 -2
  753. package/lib/number-box/number-box.component.d.ts +0 -75
  754. package/lib/number-box/number-box.module.d.ts +0 -12
  755. package/lib/page/base-page.class.d.ts +0 -45
  756. package/lib/page/index.d.ts +0 -3
  757. package/lib/page/page.component.d.ts +0 -14
  758. package/lib/page/page.module.d.ts +0 -6
  759. package/lib/password-box/index.d.ts +0 -2
  760. package/lib/password-box/password-box.component.d.ts +0 -23
  761. package/lib/password-box/password-box.module.d.ts +0 -11
  762. package/lib/picker/index.d.ts +0 -2
  763. package/lib/picker/picker.component.d.ts +0 -62
  764. package/lib/picker/picker.model.class.d.ts +0 -10
  765. package/lib/picker/picker.module.d.ts +0 -9
  766. package/lib/popover/index.d.ts +0 -2
  767. package/lib/popover/popover.component.d.ts +0 -50
  768. package/lib/popover/popover.module.d.ts +0 -8
  769. package/lib/popup/index.d.ts +0 -3
  770. package/lib/popup/popup.component.d.ts +0 -45
  771. package/lib/popup/popup.module.d.ts +0 -13
  772. package/lib/popup/popup.service.d.ts +0 -38
  773. package/lib/progress-bar/index.d.ts +0 -2
  774. package/lib/progress-bar/progress-bar.component.d.ts +0 -18
  775. package/lib/progress-bar/progress-bar.module.d.ts +0 -8
  776. package/lib/radio/index.d.ts +0 -2
  777. package/lib/radio/radio.component.d.ts +0 -17
  778. package/lib/radio/radio.module.d.ts +0 -9
  779. package/lib/range-slider/index.d.ts +0 -2
  780. package/lib/range-slider/range-slider.component.d.ts +0 -39
  781. package/lib/range-slider/range-slider.module.d.ts +0 -9
  782. package/lib/rating/index.d.ts +0 -2
  783. package/lib/rating/rating.component.d.ts +0 -21
  784. package/lib/rating/rating.component.module.d.ts +0 -8
  785. package/lib/result/index.d.ts +0 -2
  786. package/lib/result/result.component.d.ts +0 -12
  787. package/lib/result/result.module.d.ts +0 -8
  788. package/lib/searchbox/index.d.ts +0 -2
  789. package/lib/searchbox/searchbox.component.d.ts +0 -17
  790. package/lib/searchbox/searchbox.module.d.ts +0 -12
  791. package/lib/selectbox/index.d.ts +0 -2
  792. package/lib/selectbox/selectbox.component.d.ts +0 -65
  793. package/lib/selectbox/selectbox.module.d.ts +0 -19
  794. package/lib/selection-list/index.d.ts +0 -2
  795. package/lib/selection-list/selection-list.component.d.ts +0 -21
  796. package/lib/selection-list/selection-list.module.d.ts +0 -13
  797. package/lib/switch/index.d.ts +0 -2
  798. package/lib/switch/switch.component.d.ts +0 -12
  799. package/lib/switch/switch.module.d.ts +0 -10
  800. package/lib/tabs/index.d.ts +0 -5
  801. package/lib/tabs/tab-content.directive.d.ts +0 -11
  802. package/lib/tabs/tab-item.component.d.ts +0 -49
  803. package/lib/tabs/tabs.class.d.ts +0 -6
  804. package/lib/tabs/tabs.component.d.ts +0 -24
  805. package/lib/tabs/tabs.module.d.ts +0 -12
  806. package/lib/textarea/index.d.ts +0 -2
  807. package/lib/textarea/textarea.component.d.ts +0 -12
  808. package/lib/textarea/textarea.module.d.ts +0 -9
  809. package/lib/textbox/index.d.ts +0 -2
  810. package/lib/textbox/textbox.component.d.ts +0 -16
  811. package/lib/textbox/textbox.module.d.ts +0 -12
  812. package/lib/time-box/index.d.ts +0 -2
  813. package/lib/time-box/time-box.component.d.ts +0 -48
  814. package/lib/time-box/time-box.module.d.ts +0 -11
  815. package/lib/toast/index.d.ts +0 -4
  816. package/lib/toast/toast.class.d.ts +0 -15
  817. package/lib/toast/toast.component.d.ts +0 -24
  818. package/lib/toast/toast.module.d.ts +0 -11
  819. package/lib/toast/toast.service.d.ts +0 -23
  820. package/lib/tooltip/index.d.ts +0 -3
  821. package/lib/tooltip/tooltip.component.d.ts +0 -10
  822. package/lib/tooltip/tooltip.directive.d.ts +0 -18
  823. package/lib/tooltip/tooltip.module.d.ts +0 -10
  824. package/lib/treeview/index.d.ts +0 -2
  825. package/lib/treeview/tree-view.component.d.ts +0 -33
  826. package/lib/treeview/tree-view.module.d.ts +0 -9
  827. package/lib/validation/index.d.ts +0 -3
  828. package/lib/validation/validation-rule.widget.d.ts +0 -17
  829. package/lib/validation/validation-summary.component.d.ts +0 -20
  830. package/lib/validation/validation.class.d.ts +0 -18
  831. package/lib/validation/validation.module.d.ts +0 -13
  832. package/public-api.d.ts +0 -53
@@ -0,0 +1,410 @@
1
+ import { AXPlatform } from '@acorex/core/platform';
2
+ import { AXTranslator } from '@acorex/core/translation';
3
+ import {
4
+ ChangeDetectionStrategy,
5
+ ChangeDetectorRef,
6
+ Component,
7
+ ContentChild,
8
+ ElementRef,
9
+ HostListener,
10
+ Input,
11
+ NgZone,
12
+ TemplateRef,
13
+ ViewChild,
14
+ ViewEncapsulation,
15
+ } from '@angular/core';
16
+ import {findLast, findLastIndex, first, last, nth} from 'lodash-es';
17
+ import {
18
+
19
+ AXClickEvent,
20
+ AXClosbaleComponent,
21
+ AXSearchableComponent,
22
+ } from '@acorex/components/common';
23
+
24
+
25
+ import { AXPopoverComponent } from '@acorex/components/popover';
26
+ import { AXSearchBoxComponent } from '@acorex/components/search-box';
27
+ import { AXBaseSelectionDropdownMixin } from '@acorex/components/mixin';
28
+
29
+
30
+ /**
31
+ * The Button is a component which detects user interaction and triggers a corresponding event
32
+ *
33
+ * @category Components
34
+ */
35
+ @Component({
36
+ selector: 'ax-select-box',
37
+ templateUrl: 'selectbox.component.html',
38
+ inputs: [
39
+ 'isOpen','fitParent', 'dropdownWidth','position',
40
+ 'disabled', 'tabIndex',
41
+ 'readonly','allowNull','value','name', 'checked',
42
+ 'placeholder', 'maxLength', 'allowNull', 'debounceTime', 'type', 'autoComplete', 'readonly','allowNull','value','name', 'checked',
43
+ 'pageSize', 'valueField', 'textField', 'items',
44
+ 'valueField',
45
+ 'textField',
46
+ 'disabledField',
47
+ 'disabledCallback',
48
+ 'multiple',
49
+ 'selectionMode',
50
+ ],
51
+ outputs: [
52
+ 'onOpened', 'onClosed',
53
+ 'onBlur', 'onFocus',
54
+ 'valueChange', 'onValueChanged',
55
+ 'valueChange', 'onValueChanged',
56
+ 'onValueChanged', 'valueChanged',
57
+ ],
58
+ encapsulation: ViewEncapsulation.None,
59
+ changeDetection: ChangeDetectionStrategy.OnPush,
60
+ providers: [
61
+ { provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
62
+ { provide: AXSearchableComponent, useExisting: AXSelectBoxComponent },
63
+ ],
64
+ host: { class: 'ax-select-box ax-editor-container ax-drop-down' },
65
+ })
66
+ export class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
67
+ @ViewChild(AXPopoverComponent, { static: true })
68
+ popover: AXPopoverComponent;
69
+
70
+ @ContentChild(AXSearchBoxComponent, { static: true })
71
+ _searchBox: AXSearchBoxComponent;
72
+
73
+ _target: HTMLDivElement;
74
+ _popoverTitle: string;
75
+ _popoverWidth: number;
76
+
77
+ /**
78
+ * Defines the clearButton.
79
+ */
80
+ @Input()
81
+ clearButton: boolean = false;
82
+
83
+ /**
84
+ * Defines the checkbox.
85
+ */
86
+ @Input()
87
+ checkbox: boolean = false;
88
+
89
+ @ViewChild('listContainer', { static: true })
90
+ private listContainer: ElementRef<HTMLDivElement>;
91
+
92
+ @ContentChild('emptyTemplate')
93
+ private _contentEmptyTemplate: TemplateRef<any>;
94
+
95
+ get emptyTemplate(): TemplateRef<any> {
96
+ return this._contentEmptyTemplate;
97
+ }
98
+
99
+ _isMobile: boolean = false;
100
+ _forceFocus: boolean = false;
101
+ /**
102
+ * @ignore
103
+ */
104
+ constructor(
105
+ private _elementRef: ElementRef<HTMLDivElement>,
106
+ private _cdr: ChangeDetectorRef,
107
+ private _zone: NgZone,
108
+ private _platform: AXPlatform
109
+ ) {
110
+ super(_elementRef, _cdr);
111
+ this._isMobile = this._platform.is('Mobile');
112
+ this._platform.resize.subscribe(() => {
113
+ this._isMobile = this._platform.is('Mobile');
114
+ this.popover.dispose();
115
+ this._popoverWidth = this._isMobile ? 0 : this._target.offsetWidth;
116
+ });
117
+ }
118
+
119
+ _handleArrowClickEvent(e: AXClickEvent) {
120
+ e.nativeEvent.stopPropagation();
121
+ this.toggle();
122
+ }
123
+
124
+ _handleInputClickEvent(e: MouseEvent) {
125
+ e.stopPropagation();
126
+ this.toggle();
127
+ }
128
+
129
+ onInit() {
130
+ super.onInit();
131
+ this._target = this._elementRef.nativeElement;
132
+
133
+ this._updatePopupTitle();
134
+ }
135
+
136
+ onViewInit() {
137
+ super.onViewInit();
138
+ this._popoverWidth = this._isMobile ? 0 : this._target.offsetWidth;
139
+ }
140
+
141
+ refresh() {
142
+ this.value = null;
143
+ super.refresh();
144
+ }
145
+
146
+ private _updatePopupTitle() {
147
+ // const count =this.selectedItems?.length;
148
+ // this._popoverTitle = count > 1 ? `(${count}) items selected`: this.placeholder || AXTranslator.get('selectbox.popover.title')
149
+ this._popoverTitle =
150
+ this.placeholder || AXTranslator.get('selectbox.popover.title');
151
+ }
152
+
153
+ _handleOnItemClick(e: MouseEvent, item: any) {
154
+ if (this.isItemDisabled(item)) {
155
+ return;
156
+ }
157
+ if (!this.multiple) this.close();
158
+ this.toggleSelect(item);
159
+ this._cdr.detectChanges();
160
+ }
161
+
162
+ _handleListScroll(e: Event) {
163
+ const list = e.target as HTMLDivElement;
164
+ if (list.scrollTop < list.scrollHeight - list.clientHeight) {
165
+ return;
166
+ }
167
+ this._fetchData();
168
+ }
169
+
170
+ private _checkForLoadData() {
171
+ const list: any = this.listContainer.nativeElement;
172
+ if (
173
+ this.loadedCount < this.totalCount &&
174
+ list.scrollHeight < list.parentElement.clientHeight * 1.5
175
+ ) {
176
+ this._fetchData();
177
+ }
178
+ }
179
+
180
+ _onDataLoaded() {
181
+ if (this.popover.isOpen) {
182
+ setTimeout(() => {
183
+ this._checkForLoadData();
184
+ this.popover.updatePosition();
185
+ if (this._forceFocus) {
186
+ this._focusSelectedItem();
187
+ this._forceFocus = false;
188
+ }
189
+ this._focusSearchBox();
190
+ }, 100);
191
+ }
192
+ }
193
+
194
+ _onValueChanged(oldValue: any, newValue: any) {
195
+ super._onValueChanged(oldValue, newValue);
196
+ }
197
+
198
+ _handleOnRemoveItemClick(e: MouseEvent, item: any) {
199
+ this.unselectItems(item);
200
+ e.stopPropagation();
201
+ }
202
+
203
+ _handleBadgeRemove(e: MouseEvent, item) {
204
+ this.unselectItems(item);
205
+ e.stopPropagation();
206
+ this.close();
207
+ }
208
+
209
+ @HostListener('keydown', ['$event'])
210
+ _handleKeydown(e: KeyboardEvent) {
211
+ const isLetter = new RegExp(/[a-zA-Z0-9\-]/).test(
212
+ String.fromCharCode(e.keyCode)
213
+ );
214
+ if (
215
+ e.code === 'Backspace' &&
216
+ e.type === 'keydown' &&
217
+ ((this.allowNull === true && this.selectedItems.length > 0) ||
218
+ (this.allowNull !== true && this.selectedItems.length > 1))
219
+ ) {
220
+ this.isUserInput = true;
221
+ this.unselectItems(this.selectedItems.pop());
222
+ e.preventDefault();
223
+ return;
224
+ } else if (
225
+ (e.code === 'ArrowDown' || e.code === 'ArrowUp' || e.code === 'Space') &&
226
+ !this.popover.isOpen &&
227
+ e.type === 'keydown'
228
+ ) {
229
+ if (this.multiple) {
230
+ this.open();
231
+ } else {
232
+ this.isUserInput = true;
233
+ if (e.ctrlKey || e.code === 'Space') {
234
+ this.open();
235
+ } else {
236
+ this._selectedItemByNav(e.key === 'ArrowDown' ? 1 : -1);
237
+ }
238
+ }
239
+ e.preventDefault();
240
+ return;
241
+ } else if (isLetter) {
242
+ this.text = e.key;
243
+ this.open();
244
+ e.preventDefault();
245
+ return;
246
+ }
247
+ }
248
+
249
+ _handlePopoverKeydown(e: KeyboardEvent) {
250
+ if (
251
+ (e.target as HTMLElement).tagName == 'INPUT' &&
252
+ ['Space', 'Backspace'].includes(e.code)
253
+ )
254
+ return;
255
+ if (
256
+ (e.key === 'ArrowDown' || e.key === 'ArrowUp') &&
257
+ this.displayItems.length > 0
258
+ ) {
259
+ this.isUserInput = true;
260
+ this._focusItemByNav(e.key === 'ArrowDown' ? 1 : -1);
261
+ e.preventDefault();
262
+ } else if (
263
+ e.code === 'Backspace' &&
264
+ ((this.allowNull === true && this.selectedItems.length > 0) ||
265
+ (this.allowNull !== true && this.selectedItems.length > 1))
266
+ ) {
267
+ this.isUserInput = true;
268
+ this.unselectItems(this.selectedItems.pop());
269
+ e.preventDefault();
270
+ } else if (e.code === 'Space' || e.code === 'Enter') {
271
+ e.preventDefault();
272
+ const focusedItemId =
273
+ this.listContainer.nativeElement.querySelector<HTMLElement>(
274
+ '.ax-state-focus'
275
+ )?.dataset?.id;
276
+ const focusedItem = findLast(this.flatItems, [
277
+ this.valueField,
278
+ focusedItemId,
279
+ ]);
280
+ if (focusedItem) {
281
+ if (this.isItemDisabled(focusedItem)) {
282
+ return;
283
+ }
284
+ if (this.multiple) {
285
+ this.isUserInput = true;
286
+ this.toggleSelect(focusedItem);
287
+ } else {
288
+ this.isUserInput = true;
289
+ this.selectItems(focusedItem);
290
+ this.close();
291
+ }
292
+ }
293
+ } else if (e.code === 'Tab') {
294
+ this.close();
295
+ e.preventDefault();
296
+ e.stopPropagation();
297
+ } else if (e.key === 'Escape') {
298
+ this.close();
299
+ e.preventDefault();
300
+ e.stopPropagation();
301
+ }
302
+ }
303
+
304
+ async _handlePopupOnOpened(e) {
305
+ this.popover.focus();
306
+ if (this.displayItems.length == 0) {
307
+ this._forceFocus = true;
308
+ this._fetchData();
309
+ } else {
310
+ this._focusSelectedItem();
311
+ }
312
+ this._focusSearchBox();
313
+ }
314
+
315
+ _handlePopupOnClosed(e) {
316
+ this.focus();
317
+ }
318
+
319
+ private _focusSearchBox() {
320
+ if (this._searchBox && (!this._isMobile || this._searchBox.searchExp)) {
321
+ this._searchBox.focus();
322
+ }
323
+ }
324
+
325
+ private _focusItemByNav(sign: -1 | 1): void {
326
+ const list = this.listContainer.nativeElement;
327
+ const fn = (s) => list.querySelector<HTMLElement>(s);
328
+ const itemDiv: any =
329
+ fn(`.ax-list-item.ax-state-focus`) ||
330
+ fn(`.ax-list-item.ax-state-selected`) ||
331
+ fn(`.ax-list-item`);
332
+ let next = (
333
+ sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling
334
+ ) as HTMLElement;
335
+ if (next) {
336
+ this._focusItemElement(next);
337
+ } else {
338
+ const parent = itemDiv.closest('.ax-list-item-group');
339
+ if (parent) {
340
+ const lis = (
341
+ sign == 1 ? parent.nextElementSibling : parent.previousElementSibling
342
+ )?.querySelectorAll('li');
343
+ const a = sign == 1 ? first(lis) : last(lis);
344
+ if (a) {
345
+ this._focusItemElement(a as any);
346
+ }
347
+ }
348
+ }
349
+ }
350
+
351
+ private _focusSelectedItem() {
352
+ this._zone.runOutsideAngular(() => {
353
+ const list = this.listContainer.nativeElement;
354
+ const fn = (s) => list.querySelector<HTMLElement>(s);
355
+ const itemDiv =
356
+ fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
357
+ if (itemDiv) {
358
+ this._focusItemElement(itemDiv);
359
+ }
360
+ });
361
+ }
362
+
363
+ private _focusItemElement(el: HTMLElement) {
364
+ this._zone.runOutsideAngular(() => {
365
+ const list = this.listContainer.nativeElement;
366
+ list.querySelectorAll('.ax-list-item').forEach((c) => {
367
+ if (c == el) {
368
+ c.classList.add('ax-state-focus');
369
+ el.scrollIntoView({ behavior: 'auto' });
370
+ } else {
371
+ c.classList.remove('ax-state-focus');
372
+ }
373
+ });
374
+ if (!this._isMobile && this._searchBox) this._searchBox.focus();
375
+ else el.focus();
376
+ });
377
+ }
378
+
379
+ private _selectedItemByNav(sign: -1 | 1): void {
380
+ const _last:any = last(this.selectedItems);
381
+ let i = 0;
382
+ if (_last) {
383
+ i = findLastIndex(this.flatItems, [
384
+ this.valueField,
385
+ _last[this.valueField],
386
+ ]);
387
+ }
388
+ i += sign;
389
+ let next = nth<any>(this.flatItems, i);
390
+ while (next?.children && next?.children.length) {
391
+ i += sign;
392
+ next = nth<any>(this.flatItems, i);
393
+ }
394
+ if (next) {
395
+ this.selectItems(next);
396
+ } else if (next == null && sign == 1) {
397
+ this._fetchData();
398
+ }
399
+ }
400
+
401
+ search(exp: string) {
402
+ this.empty();
403
+ this._forceFocus = true;
404
+ this._fetchData();
405
+ }
406
+
407
+ _fetchData() {
408
+ super._fetchData({ searchQuery: this._searchBox?.searchExp });
409
+ }
410
+ }
@@ -0,0 +1,35 @@
1
+ import { AXTranslationModule } from '@acorex/core/translation';
2
+ import { CommonModule } from '@angular/common';
3
+ import { NgModule } from '@angular/core';
4
+ import { FormsModule } from '@angular/forms';
5
+ import { AXBadgeModule } from '@acorex/components/badge';
6
+ import { AXButtonModule } from '@acorex/components/button';
7
+ import { AXCheckBoxModule } from '@acorex/components/checkbox';
8
+ import { AXDecoratorModule } from '@acorex/components/decorators';
9
+ import { AXLoadingModule } from '@acorex/components/loading';
10
+ import { AXPopoverModule } from '@acorex/components/popover';
11
+ import { A11yModule } from '@angular/cdk/a11y';
12
+
13
+ import { AXSelectBoxComponent } from './selectbox.component';
14
+ import { AXTextBoxModule } from '@acorex/components/textbox';
15
+ import { AXCommonModule } from '@acorex/components/common';
16
+
17
+ @NgModule({
18
+ imports: [CommonModule,
19
+ AXCommonModule,
20
+ FormsModule,
21
+ AXCheckBoxModule,
22
+ AXBadgeModule,
23
+ AXDecoratorModule,
24
+ AXTranslationModule,
25
+ AXPopoverModule,
26
+ AXButtonModule,
27
+ AXLoadingModule,
28
+ A11yModule,
29
+ AXTextBoxModule
30
+ ],
31
+ exports: [AXSelectBoxComponent],
32
+ declarations: [AXSelectBoxComponent],
33
+ providers: [],
34
+ })
35
+ export class AXSelectBoxModule { }
@@ -0,0 +1 @@
1
+ export * from './public-api'
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "lib": {
4
+ "entryFile": "public-api.ts"
5
+ }
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/selection-list.component';
2
+ export * from './src/selection-list.module';
@@ -0,0 +1,62 @@
1
+ <div class="ax-selection-list ax-{{direction}}">
2
+ <ng-container *ngIf="multiple; then checkboxList; else radioButtonList"></ng-container>
3
+ <ng-template #checkboxList>
4
+ <ng-container *ngFor="let item of displayItems;let i = index">
5
+ <div class="ax-flex ax-items-start ax-checkbox-container" [class.ax-state-selected]="isItemSelected(item)" (click)="ic.click()">
6
+ <div class="ax-flex ax-items-center ax-h-5 ax-check-box">
7
+ <input #ic [id]="id+'-'+i" class="ax-checkbox" type="checkbox" (change)="_handleOnItemValueChange(item, $event)" [checked]="isItemSelected(item)" [disabled]="disabled || item.disabled" [readonly]="readonly || item.readonly">
8
+ </div>
9
+ <div class="ax-ms-3 ax-text-sm">
10
+ <label [for]="id+'-'+i" class="ax-text-light-700 dark:ax-text-light-100"> {{item[textField]}}</label>
11
+ <p class="ax-text-light-500"> {{item.hint ? item.hint : item[hintField]}}</p>
12
+ </div>
13
+ </div>
14
+ </ng-container>
15
+ </ng-template>
16
+ <ng-template #radioButtonList>
17
+ <ng-container *ngFor="let item of displayItems;let i = index">
18
+ <div class="ax-flex ax-items-start ax-radio-container" [class.ax-state-selected]="isItemSelected(item)" (click)="ir.click()">
19
+ <div class="ax-flex ax-items-center ax-h-5 ax-radio">
20
+ <input #ir [id]="id+'-'+i" class="ax-radio" type="radio" [attr.name]="id" (change)="_handleOnItemValueChange(item, $event)" [checked]="isItemSelected(item)" [disabled]="disabled || item.disabled" [readonly]="readonly || item.readonly">
21
+ </div>
22
+ <div class="ax-ms-3 ax-text-sm">
23
+ <label [for]="id+'-'+i" class="ax-text-light-700 dark:ax-text-light-100"> {{item[textField]}}</label>
24
+ <p class="ax-text-light-500"> {{item.hint ? item.hint : item[hintField]}}</p>
25
+ </div>
26
+ </div>
27
+ </ng-container>
28
+ </ng-template>
29
+ <ng-content select="ax-validation-rule">
30
+ </ng-content>
31
+ </div>
32
+
33
+ <!-- <div class="ax-selection-list ax-{{direction}}">
34
+ <ng-container *ngIf="multiple; then checkboxList; else radioButtonList"></ng-container>
35
+ <ng-template #checkboxList>
36
+ <ng-container *ngFor="let item of displayItems;let i = index">
37
+ <div class="ax-flex ax-items-start ax-checkbox-container ax-mb-2">
38
+ <div class="ax-flex ax-items-center ax-h-5">
39
+ <ax-check-box [checked]="isItemSelected(item)" [disabled]="disabled || item.disabled" [readonly]="readonly || item.readonly">
40
+
41
+ <ax-label> {{item[textField]}} | {{isItemSelected(item)}}</ax-label>
42
+ <ax-form-hint *ngIf="item[hintField]"> {{item[hintField]}} </ax-form-hint>
43
+ </ax-check-box>
44
+ </div>
45
+ </div>
46
+ </ng-container>
47
+ </ng-template>
48
+ <ng-template #radioButtonList>
49
+ <ng-container *ngFor="let item of displayItems;let i = index">
50
+ <div class="ax-flex ax-items-start ax-radio-container ax-mb-2">
51
+ <div class="ax-flex ax-items-center ax-h-5">
52
+ <ax-radio [id]="id+'-'+i" [checked]="isItemSelected(item)" [disabled]="disabled || item.disabled" [readonly]="readonly || item.readonly">
53
+ <ax-label>{{item[textField]}} | {{isItemSelected(item)}}</ax-label>
54
+ <ax-form-hint *ngIf="item[hintField]"> {{item[hintField]}} </ax-form-hint>
55
+ </ax-radio>
56
+ </div>
57
+ </div>
58
+ </ng-container>
59
+ </ng-template>
60
+ <ng-content select="ax-validation-rule">
61
+ </ng-content>
62
+ </div> -->
@@ -0,0 +1,69 @@
1
+ import { AXDirection } from '@acorex/components/common';
2
+ import { AXBaseSelectionValueMixin } from '@acorex/components/mixin';
3
+ import {
4
+ Component,
5
+ ChangeDetectionStrategy,
6
+ ViewEncapsulation,
7
+ ElementRef,
8
+ ChangeDetectorRef,
9
+ Input,
10
+ } from '@angular/core';
11
+
12
+ /**
13
+ * The Button is a component which detects user interaction and triggers a corresponding event
14
+ *
15
+ * @category Components
16
+ */
17
+ @Component({
18
+ selector: 'ax-selection-list',
19
+ templateUrl: './selection-list.component.html',
20
+ inputs: [
21
+ 'disabled',
22
+ 'readonly',
23
+ 'tabIndex',
24
+ 'size',
25
+ 'value',
26
+ 'valueField',
27
+ 'textField',
28
+ 'multiple',
29
+ 'items',
30
+ 'selectionMode',
31
+ ],
32
+ outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'],
33
+ host: { class: 'ax-selection-list' },
34
+ encapsulation: ViewEncapsulation.None,
35
+ changeDetection: ChangeDetectionStrategy.OnPush,
36
+ })
37
+ export class AXSelectionListComponent extends AXBaseSelectionValueMixin {
38
+
39
+ /**
40
+ * @ignore
41
+ */
42
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {
43
+ super(elementRef, cdr);
44
+ }
45
+
46
+
47
+ /**
48
+ * Defines the direction.
49
+ */
50
+ @Input()
51
+ direction: AXDirection = 'horizontal';
52
+
53
+ _handleOnItemValueChange(item: any, e: Event) {
54
+ if (this.readonly || this.disabled) {
55
+ e.preventDefault();
56
+ e.stopPropagation();
57
+ } else {
58
+ (e.target as any).checked ? this.selectItems(item) : this.unselectItems(item);
59
+ }
60
+ }
61
+
62
+ // _handleOnClickEvent(e: MouseEvent) {
63
+ //
64
+ // if (this.readonly || this.disabled) {
65
+ // e.preventDefault();
66
+ // e.stopPropagation();
67
+ // }
68
+ // }
69
+ }
@@ -0,0 +1,17 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { AXSelectionListComponent } from './selection-list.component';
4
+ import { FormsModule } from '@angular/forms';
5
+
6
+ import { AXCheckBoxModule } from '@acorex/components/checkbox';
7
+ import { AXRadioModule } from '@acorex/components/radio';
8
+ import { AXLabelModule } from '@acorex/components/label';
9
+ import { AXFormModule } from '@acorex/components/form';
10
+
11
+ @NgModule({
12
+ declarations: [AXSelectionListComponent],
13
+ imports: [CommonModule, FormsModule, AXCheckBoxModule,AXRadioModule,AXLabelModule,AXFormModule],
14
+ exports: [AXSelectionListComponent],
15
+ providers: []
16
+ })
17
+ export class AXSelectionListModule { }
@@ -0,0 +1 @@
1
+ export * from './public-api'
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "../../../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "lib": {
4
+ "entryFile": "public-api.ts"
5
+ }
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './src/switch.component';
2
+ export * from './src/switch.module';
@@ -0,0 +1,14 @@
1
+ <button type="button" role="switch" [class.ax-state-disabled]="disabled" [class.ax-state-readonly]="readonly"
2
+ [class.ax-switch-checked]="value" (click)="_handleOnClickEvent($event)">
3
+ <div class="ax-switch-handle">
4
+ <ax-loading *ngIf="loading"></ax-loading>
5
+ </div>
6
+ <span class="ax-switch-inner" *ngIf="!value">
7
+ <ng-content select="ax-prefix"></ng-content>
8
+
9
+ </span>
10
+ <span class="ax-switch-inner" *ngIf="value">
11
+ <ng-content select="ax-suffix"></ng-content>
12
+ </span>
13
+
14
+ </button>
@@ -0,0 +1,52 @@
1
+
2
+ import { VALUE_INPUTS, VALUE_OUTPUT, AXBaseValueComponentMixin } from '@acorex/components/mixin';
3
+ import {
4
+ Component,
5
+ ChangeDetectorRef,
6
+ ChangeDetectionStrategy,
7
+ ViewEncapsulation,
8
+ ElementRef,
9
+ Input,
10
+ } from '@angular/core';
11
+
12
+
13
+ @Component({
14
+ selector: 'ax-switch',
15
+ templateUrl: './switch.component.html',
16
+ inputs: [
17
+ 'disabled',
18
+ 'readonly',
19
+ 'tabIndex',
20
+ 'size',
21
+ 'cssClass',
22
+ 'cssStyle',
23
+ 'readonly','allowNull','value','name', 'checked',
24
+ ],
25
+ outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],
26
+ host: { class: 'ax-switch' },
27
+ encapsulation: ViewEncapsulation.None,
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ })
30
+ export class AXSwitchComponent extends AXBaseValueComponentMixin {
31
+ @Input()
32
+ uncheckedText: string;
33
+
34
+ @Input()
35
+ checkedText: string;
36
+
37
+ @Input()
38
+ loading: boolean;
39
+
40
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {
41
+ super(elementRef, cdr);
42
+ }
43
+
44
+ _handleOnClickEvent(e: MouseEvent) {
45
+ if (this.readonly || this.disabled) {
46
+ e.preventDefault();
47
+ e.stopPropagation();
48
+ } else {
49
+ this.value = !this.value;
50
+ }
51
+ }
52
+ }