@ardium-pl/ui 5.0.0-alpha.106

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 (489) hide show
  1. package/README.md +25 -0
  2. package/fesm2022/ardium-pl-ui.mjs +18003 -0
  3. package/fesm2022/ardium-pl-ui.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/_internal/boolean-component.d.ts +65 -0
  6. package/lib/_internal/clear-button/clear-button.component.d.ts +7 -0
  7. package/lib/_internal/clear-button/clear-button.module.d.ts +8 -0
  8. package/lib/_internal/disablable-component.d.ts +24 -0
  9. package/lib/_internal/focusable-component.d.ts +56 -0
  10. package/lib/_internal/form-field-component.d.ts +22 -0
  11. package/lib/_internal/item-storages/dropdown-item-storage.d.ts +79 -0
  12. package/lib/_internal/item-storages/simple-item-storage.d.ts +167 -0
  13. package/lib/_internal/item-storages/simplest-item-storage.d.ts +75 -0
  14. package/lib/_internal/models/pagination.model.d.ts +49 -0
  15. package/lib/_internal/models/queue.d.ts +21 -0
  16. package/lib/_internal/ngmodel-component.d.ts +58 -0
  17. package/lib/_internal/public-api.d.ts +3 -0
  18. package/lib/_internal/selectable-list-component.d.ts +76 -0
  19. package/lib/_internal/utils/context-to-inputs.d.ts +3 -0
  20. package/lib/_internal/utils/date.utils.d.ts +21 -0
  21. package/lib/badge/badge.defaults.d.ts +13 -0
  22. package/lib/badge/badge.directive.d.ts +27 -0
  23. package/lib/badge/badge.module.d.ts +8 -0
  24. package/lib/badge/badge.types.d.ts +17 -0
  25. package/lib/badge/index.d.ts +4 -0
  26. package/lib/breakpoints/breakpoint.service.d.ts +12 -0
  27. package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
  28. package/lib/breakpoints/breakpoints.d.ts +13 -0
  29. package/lib/breakpoints/index.d.ts +2 -0
  30. package/lib/buttons/_button-base.d.ts +25 -0
  31. package/lib/buttons/_button-base.defaults.d.ts +17 -0
  32. package/lib/buttons/button/button.component.d.ts +22 -0
  33. package/lib/buttons/button/button.defaults.d.ts +10 -0
  34. package/lib/buttons/button/button.directive.d.ts +23 -0
  35. package/lib/buttons/button/button.module.d.ts +9 -0
  36. package/lib/buttons/button/index.d.ts +4 -0
  37. package/lib/buttons/button-group/button-group.component.d.ts +25 -0
  38. package/lib/buttons/button-group/button-group.defaults.d.ts +7 -0
  39. package/lib/buttons/button-group/button-group.module.d.ts +8 -0
  40. package/lib/buttons/button-group/index.d.ts +3 -0
  41. package/lib/buttons/fab/fab.component.d.ts +13 -0
  42. package/lib/buttons/fab/fab.defaults.d.ts +8 -0
  43. package/lib/buttons/fab/fab.module.d.ts +8 -0
  44. package/lib/buttons/fab/index.d.ts +3 -0
  45. package/lib/buttons/general-button.types.d.ts +57 -0
  46. package/lib/buttons/icon-button/icon-button.component.d.ts +20 -0
  47. package/lib/buttons/icon-button/icon-button.defaults.d.ts +7 -0
  48. package/lib/buttons/icon-button/icon-button.module.d.ts +8 -0
  49. package/lib/buttons/icon-button/index.d.ts +3 -0
  50. package/lib/calendar/abstract-calendar.d.ts +135 -0
  51. package/lib/calendar/calendar.component.d.ts +15 -0
  52. package/lib/calendar/calendar.defaults.d.ts +34 -0
  53. package/lib/calendar/calendar.directives.d.ts +51 -0
  54. package/lib/calendar/calendar.internal-directives.d.ts +33 -0
  55. package/lib/calendar/calendar.internal-types.d.ts +5 -0
  56. package/lib/calendar/calendar.module.d.ts +10 -0
  57. package/lib/calendar/calendar.types.d.ts +111 -0
  58. package/lib/calendar/index.d.ts +8 -0
  59. package/lib/calendar/range-calendar.component.d.ts +17 -0
  60. package/lib/calendar/range-calendar.directives.d.ts +51 -0
  61. package/lib/calendar/range-calendar.module.d.ts +10 -0
  62. package/lib/calendar/views/calendar-views.module.d.ts +13 -0
  63. package/lib/calendar/views/days-view/days-view.component.d.ts +86 -0
  64. package/lib/calendar/views/days-view/days-view.helpers.d.ts +20 -0
  65. package/lib/calendar/views/months-view/months-view.component.d.ts +73 -0
  66. package/lib/calendar/views/months-view/months-view.helpers.d.ts +3 -0
  67. package/lib/calendar/views/years-view/years-view.component.d.ts +71 -0
  68. package/lib/calendar/views/years-view/years-view.helpers.d.ts +3 -0
  69. package/lib/card/card.children.d.ts +44 -0
  70. package/lib/card/card.component.d.ts +15 -0
  71. package/lib/card/card.defaults.d.ts +10 -0
  72. package/lib/card/card.module.d.ts +9 -0
  73. package/lib/card/card.types.d.ts +10 -0
  74. package/lib/card/index.d.ts +5 -0
  75. package/lib/checkbox/checkbox.component.d.ts +38 -0
  76. package/lib/checkbox/checkbox.defaults.d.ts +12 -0
  77. package/lib/checkbox/checkbox.directives.d.ts +15 -0
  78. package/lib/checkbox/checkbox.internal-directives.d.ts +10 -0
  79. package/lib/checkbox/checkbox.module.d.ts +10 -0
  80. package/lib/checkbox/checkbox.types.d.ts +22 -0
  81. package/lib/checkbox/index.d.ts +5 -0
  82. package/lib/checkbox-list/checkbox-list.component.d.ts +55 -0
  83. package/lib/checkbox-list/checkbox-list.defaults.d.ts +20 -0
  84. package/lib/checkbox-list/checkbox-list.directives.d.ts +16 -0
  85. package/lib/checkbox-list/checkbox-list.module.d.ts +11 -0
  86. package/lib/checkbox-list/checkbox-list.types.d.ts +11 -0
  87. package/lib/checkbox-list/index.d.ts +5 -0
  88. package/lib/chip/chip.component.d.ts +20 -0
  89. package/lib/chip/chip.defaults.d.ts +15 -0
  90. package/lib/chip/chip.module.d.ts +11 -0
  91. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +23 -0
  92. package/lib/chip/deletable-chip/deletable-chip.defaults.d.ts +8 -0
  93. package/lib/chip/index.d.ts +7 -0
  94. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +25 -0
  95. package/lib/chip/selectable-chip/selectable-chip.defaults.d.ts +9 -0
  96. package/lib/dialog/dialog.component.d.ts +47 -0
  97. package/lib/dialog/dialog.defaults.d.ts +19 -0
  98. package/lib/dialog/dialog.directives.d.ts +15 -0
  99. package/lib/dialog/dialog.module.d.ts +11 -0
  100. package/lib/dialog/dialog.types.d.ts +38 -0
  101. package/lib/dialog/index.d.ts +5 -0
  102. package/lib/divider/divider.component.d.ts +6 -0
  103. package/lib/divider/divider.defaults.d.ts +11 -0
  104. package/lib/divider/divider.directive.d.ts +18 -0
  105. package/lib/divider/divider.module.d.ts +9 -0
  106. package/lib/divider/divider.types.d.ts +5 -0
  107. package/lib/divider/index.d.ts +5 -0
  108. package/lib/dropdown-panel/dropdown-panel.component.d.ts +36 -0
  109. package/lib/dropdown-panel/dropdown-panel.defaults.d.ts +10 -0
  110. package/lib/dropdown-panel/dropdown-panel.module.d.ts +8 -0
  111. package/lib/dropdown-panel/dropdown-panel.types.d.ts +12 -0
  112. package/lib/dropdown-panel/index.d.ts +4 -0
  113. package/lib/file-inputs/file-drop-area/file-drop-area.component.d.ts +26 -0
  114. package/lib/file-inputs/file-drop-area/file-drop-area.defaults.d.ts +10 -0
  115. package/lib/file-inputs/file-drop-area/file-drop-area.directives.d.ts +21 -0
  116. package/lib/file-inputs/file-drop-area/file-drop-area.module.d.ts +12 -0
  117. package/lib/file-inputs/file-drop-area/index.d.ts +4 -0
  118. package/lib/file-inputs/file-input/file-input.component.d.ts +38 -0
  119. package/lib/file-inputs/file-input/file-input.defaults.d.ts +17 -0
  120. package/lib/file-inputs/file-input/file-input.directives.d.ts +46 -0
  121. package/lib/file-inputs/file-input/file-input.module.d.ts +13 -0
  122. package/lib/file-inputs/file-input/index.d.ts +4 -0
  123. package/lib/file-inputs/file-input-base.d.ts +60 -0
  124. package/lib/file-inputs/file-input-base.defaults.d.ts +7 -0
  125. package/lib/file-inputs/file-input-types.d.ts +41 -0
  126. package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
  127. package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
  128. package/lib/form-field/error/error.component.d.ts +6 -0
  129. package/lib/form-field/error/error.directive.d.ts +9 -0
  130. package/lib/form-field/form-field-base.d.ts +30 -0
  131. package/lib/form-field/form-field-child.token.d.ts +8 -0
  132. package/lib/form-field/form-field-native-inputs.d.ts +17 -0
  133. package/lib/form-field/form-field.component.d.ts +7 -0
  134. package/lib/form-field/form-field.defaults.d.ts +11 -0
  135. package/lib/form-field/form-field.module.d.ts +17 -0
  136. package/lib/form-field/hint/hint.component.d.ts +6 -0
  137. package/lib/form-field/hint/hint.directive.d.ts +9 -0
  138. package/lib/form-field/hint-error/hint-error.component.d.ts +6 -0
  139. package/lib/form-field/hint-error/hint-error.directive.d.ts +9 -0
  140. package/lib/form-field/horizontal-form-field.component.d.ts +7 -0
  141. package/lib/form-field/index.d.ts +15 -0
  142. package/lib/form-field/label/label.component.d.ts +12 -0
  143. package/lib/form-field-frame/form-field-frame.component.d.ts +43 -0
  144. package/lib/form-field-frame/form-field-frame.defaults.d.ts +13 -0
  145. package/lib/form-field-frame/form-field-frame.directives.d.ts +15 -0
  146. package/lib/form-field-frame/form-field-frame.module.d.ts +9 -0
  147. package/lib/form-field-frame/form-field-frame.types.d.ts +10 -0
  148. package/lib/form-field-frame/index.d.ts +5 -0
  149. package/lib/grid/grid.component.d.ts +63 -0
  150. package/lib/grid/grid.defaults.d.ts +16 -0
  151. package/lib/grid/grid.module.d.ts +7 -0
  152. package/lib/grid/grid.types.d.ts +38 -0
  153. package/lib/grid/grid.utils.d.ts +20 -0
  154. package/lib/grid/index.d.ts +4 -0
  155. package/lib/icon/icon.component.d.ts +28 -0
  156. package/lib/icon/icon.defaults.d.ts +11 -0
  157. package/lib/icon/icon.module.d.ts +9 -0
  158. package/lib/icon/icon.pipe.d.ts +7 -0
  159. package/lib/icon/index.d.ts +4 -0
  160. package/lib/inputs/_simple-input-base.d.ts +67 -0
  161. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +69 -0
  162. package/lib/inputs/autocomplete-input/autocomplete-input.defaults.d.ts +18 -0
  163. package/lib/inputs/autocomplete-input/autocomplete-input.directives.d.ts +34 -0
  164. package/lib/inputs/autocomplete-input/autocomplete-input.module.d.ts +13 -0
  165. package/lib/inputs/autocomplete-input/index.d.ts +4 -0
  166. package/lib/inputs/date-input/abstract-date-input.d.ts +109 -0
  167. package/lib/inputs/date-input/date-input.component.d.ts +52 -0
  168. package/lib/inputs/date-input/date-input.defaults.d.ts +54 -0
  169. package/lib/inputs/date-input/date-input.directives.d.ts +83 -0
  170. package/lib/inputs/date-input/date-input.module.d.ts +17 -0
  171. package/lib/inputs/date-input/date-input.serializers.d.ts +5 -0
  172. package/lib/inputs/date-input/date-input.types.d.ts +17 -0
  173. package/lib/inputs/date-input/date-range-input.component.d.ts +36 -0
  174. package/lib/inputs/date-input/date-range-input.directives.d.ts +83 -0
  175. package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
  176. package/lib/inputs/date-input/index.d.ts +11 -0
  177. package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +50 -0
  178. package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +83 -0
  179. package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
  180. package/lib/inputs/digit-input/digit-input.component.d.ts +62 -0
  181. package/lib/inputs/digit-input/digit-input.defaults.d.ts +16 -0
  182. package/lib/inputs/digit-input/digit-input.model.d.ts +27 -0
  183. package/lib/inputs/digit-input/digit-input.module.d.ts +9 -0
  184. package/lib/inputs/digit-input/digit-input.types.d.ts +30 -0
  185. package/lib/inputs/digit-input/digit-input.utils.d.ts +20 -0
  186. package/lib/inputs/digit-input/index.d.ts +4 -0
  187. package/lib/inputs/hex-input/hex-input.component.d.ts +57 -0
  188. package/lib/inputs/hex-input/hex-input.defaults.d.ts +22 -0
  189. package/lib/inputs/hex-input/hex-input.directives.d.ts +21 -0
  190. package/lib/inputs/hex-input/hex-input.model.d.ts +26 -0
  191. package/lib/inputs/hex-input/hex-input.module.d.ts +11 -0
  192. package/lib/inputs/hex-input/index.d.ts +4 -0
  193. package/lib/inputs/input/index.d.ts +4 -0
  194. package/lib/inputs/input/input.component.d.ts +15 -0
  195. package/lib/inputs/input/input.defaults.d.ts +9 -0
  196. package/lib/inputs/input/input.directives.d.ts +21 -0
  197. package/lib/inputs/input/input.module.d.ts +11 -0
  198. package/lib/inputs/input-transformers.d.ts +24 -0
  199. package/lib/inputs/input-types.d.ts +15 -0
  200. package/lib/inputs/input-utils.d.ts +66 -0
  201. package/lib/inputs/number-input/index.d.ts +4 -0
  202. package/lib/inputs/number-input/number-input.component.d.ts +78 -0
  203. package/lib/inputs/number-input/number-input.defaults.d.ts +28 -0
  204. package/lib/inputs/number-input/number-input.directives.d.ts +21 -0
  205. package/lib/inputs/number-input/number-input.module.d.ts +11 -0
  206. package/lib/inputs/number-input/number-input.types.d.ts +6 -0
  207. package/lib/inputs/password-input/index.d.ts +5 -0
  208. package/lib/inputs/password-input/password-input.component.d.ts +48 -0
  209. package/lib/inputs/password-input/password-input.defaults.d.ts +20 -0
  210. package/lib/inputs/password-input/password-input.directives.d.ts +28 -0
  211. package/lib/inputs/password-input/password-input.module.d.ts +11 -0
  212. package/lib/inputs/password-input/password-input.types.d.ts +3 -0
  213. package/lib/kbd/index.d.ts +5 -0
  214. package/lib/kbd/kbd.component.d.ts +15 -0
  215. package/lib/kbd/kbd.defaults.d.ts +8 -0
  216. package/lib/kbd/kbd.directive.d.ts +13 -0
  217. package/lib/kbd/kbd.module.d.ts +10 -0
  218. package/lib/kbd/kbd.pipe.d.ts +8 -0
  219. package/lib/kbd-shortcut/index.d.ts +3 -0
  220. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +18 -0
  221. package/lib/kbd-shortcut/kbd-shortcut.defaults.d.ts +8 -0
  222. package/lib/kbd-shortcut/kbd-shortcut.module.d.ts +9 -0
  223. package/lib/modal/index.d.ts +5 -0
  224. package/lib/modal/modal.component.d.ts +39 -0
  225. package/lib/modal/modal.defaults.d.ts +18 -0
  226. package/lib/modal/modal.directives.d.ts +8 -0
  227. package/lib/modal/modal.module.d.ts +12 -0
  228. package/lib/modal/modal.types.d.ts +3 -0
  229. package/lib/option/index.d.ts +2 -0
  230. package/lib/option/option.component.d.ts +25 -0
  231. package/lib/option/option.module.d.ts +8 -0
  232. package/lib/progress-bar/index.d.ts +4 -0
  233. package/lib/progress-bar/progress-bar.component.d.ts +18 -0
  234. package/lib/progress-bar/progress-bar.defaults.d.ts +13 -0
  235. package/lib/progress-bar/progress-bar.module.d.ts +8 -0
  236. package/lib/progress-bar/progress-bar.types.d.ts +22 -0
  237. package/lib/progress-circle/index.d.ts +5 -0
  238. package/lib/progress-circle/progress-circle.component.d.ts +25 -0
  239. package/lib/progress-circle/progress-circle.defaults.d.ts +15 -0
  240. package/lib/progress-circle/progress-circle.directive.d.ts +9 -0
  241. package/lib/progress-circle/progress-circle.module.d.ts +9 -0
  242. package/lib/progress-circle/progress-circle.types.d.ts +20 -0
  243. package/lib/radio/index.d.ts +4 -0
  244. package/lib/radio/radio/radio.component.d.ts +68 -0
  245. package/lib/radio/radio/radio.defaults.d.ts +8 -0
  246. package/lib/radio/radio-group.component.d.ts +40 -0
  247. package/lib/radio/radio.module.d.ts +9 -0
  248. package/lib/search-functions.d.ts +10 -0
  249. package/lib/segment/index.d.ts +5 -0
  250. package/lib/segment/segment.component.d.ts +40 -0
  251. package/lib/segment/segment.defaults.d.ts +18 -0
  252. package/lib/segment/segment.directives.d.ts +8 -0
  253. package/lib/segment/segment.module.d.ts +9 -0
  254. package/lib/segment/segment.types.d.ts +17 -0
  255. package/lib/select/index.d.ts +5 -0
  256. package/lib/select/select.component.d.ts +230 -0
  257. package/lib/select/select.defaults.d.ts +70 -0
  258. package/lib/select/select.directive.d.ts +95 -0
  259. package/lib/select/select.module.d.ts +14 -0
  260. package/lib/select/select.types.d.ts +60 -0
  261. package/lib/select/select.utils.d.ts +2 -0
  262. package/lib/slide-toggle/index.d.ts +4 -0
  263. package/lib/slide-toggle/slide-toggle.component.d.ts +21 -0
  264. package/lib/slide-toggle/slide-toggle.defaults.d.ts +14 -0
  265. package/lib/slide-toggle/slide-toggle.module.d.ts +8 -0
  266. package/lib/slide-toggle/slide-toggle.types.d.ts +5 -0
  267. package/lib/slider/abstract-slider.d.ts +96 -0
  268. package/lib/slider/index.d.ts +8 -0
  269. package/lib/slider/range-slider/range-slider.component.d.ts +37 -0
  270. package/lib/slider/range-slider/range-slider.module.d.ts +8 -0
  271. package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
  272. package/lib/slider/slider.component.d.ts +24 -0
  273. package/lib/slider/slider.defaults.d.ts +6 -0
  274. package/lib/slider/slider.directive.d.ts +9 -0
  275. package/lib/slider/slider.module.d.ts +10 -0
  276. package/lib/slider/slider.types.d.ts +28 -0
  277. package/lib/snackbar/index.d.ts +4 -0
  278. package/lib/snackbar/snackbar-ref.d.ts +69 -0
  279. package/lib/snackbar/snackbar.component.d.ts +16 -0
  280. package/lib/snackbar/snackbar.service.d.ts +57 -0
  281. package/lib/snackbar/snackbar.token.d.ts +5 -0
  282. package/lib/snackbar/snackbar.types.d.ts +84 -0
  283. package/lib/spinner/index.d.ts +3 -0
  284. package/lib/spinner/spinner.component.d.ts +9 -0
  285. package/lib/spinner/spinner.defaults.d.ts +7 -0
  286. package/lib/spinner/spinner.module.d.ts +8 -0
  287. package/lib/stack/index.d.ts +3 -0
  288. package/lib/stack/stack.component.d.ts +26 -0
  289. package/lib/stack/stack.defaults.d.ts +14 -0
  290. package/lib/stack/stack.module.d.ts +7 -0
  291. package/lib/star/index.d.ts +5 -0
  292. package/lib/star/rating-display/index.d.ts +5 -0
  293. package/lib/star/rating-display/rating-display.component.d.ts +18 -0
  294. package/lib/star/rating-display/rating-display.defaults.d.ts +9 -0
  295. package/lib/star/rating-display/rating-display.directives.d.ts +9 -0
  296. package/lib/star/rating-display/rating-display.module.d.ts +10 -0
  297. package/lib/star/rating-display/rating-display.types.d.ts +8 -0
  298. package/lib/star/rating-input/index.d.ts +5 -0
  299. package/lib/star/rating-input/rating-input.component.d.ts +48 -0
  300. package/lib/star/rating-input/rating-input.defaults.d.ts +9 -0
  301. package/lib/star/rating-input/rating-input.directives.d.ts +9 -0
  302. package/lib/star/rating-input/rating-input.module.d.ts +10 -0
  303. package/lib/star/rating-input/rating-input.types.d.ts +12 -0
  304. package/lib/star/star-button/index.d.ts +5 -0
  305. package/lib/star/star-button/star-button.component.d.ts +26 -0
  306. package/lib/star/star-button/star-button.defaults.d.ts +10 -0
  307. package/lib/star/star-button/star-button.directives.d.ts +9 -0
  308. package/lib/star/star-button/star-button.module.d.ts +10 -0
  309. package/lib/star/star-button/star-button.types.d.ts +7 -0
  310. package/lib/star/star.component.d.ts +15 -0
  311. package/lib/star/star.defaults.d.ts +8 -0
  312. package/lib/star/star.directives.d.ts +9 -0
  313. package/lib/star/star.module.d.ts +10 -0
  314. package/lib/star/star.types.d.ts +33 -0
  315. package/lib/tabber/index.d.ts +6 -0
  316. package/lib/tabber/tab/tab.component.d.ts +27 -0
  317. package/lib/tabber/tabber.component.d.ts +44 -0
  318. package/lib/tabber/tabber.defaults.d.ts +14 -0
  319. package/lib/tabber/tabber.directives.d.ts +9 -0
  320. package/lib/tabber/tabber.module.d.ts +10 -0
  321. package/lib/tabber/tabber.types.d.ts +5 -0
  322. package/lib/table/index.d.ts +5 -0
  323. package/lib/table/table-item-storage.d.ts +273 -0
  324. package/lib/table/table.component.d.ts +111 -0
  325. package/lib/table/table.defaults.d.ts +50 -0
  326. package/lib/table/table.directives.d.ts +36 -0
  327. package/lib/table/table.module.d.ts +13 -0
  328. package/lib/table/table.types.d.ts +83 -0
  329. package/lib/table/utils.d.ts +4 -0
  330. package/lib/table-from-csv/index.d.ts +3 -0
  331. package/lib/table-from-csv/table-from-csv.component.d.ts +55 -0
  332. package/lib/table-from-csv/table-from-csv.defaults.d.ts +7 -0
  333. package/lib/table-from-csv/table-from-csv.module.d.ts +9 -0
  334. package/lib/table-pagination/index.d.ts +4 -0
  335. package/lib/table-pagination/table-pagination.component.d.ts +40 -0
  336. package/lib/table-pagination/table-pagination.defaults.d.ts +20 -0
  337. package/lib/table-pagination/table-pagination.module.d.ts +11 -0
  338. package/lib/table-pagination/table-pagination.types.d.ts +9 -0
  339. package/lib/text-list/index.d.ts +3 -0
  340. package/lib/text-list/text-list.component.d.ts +9 -0
  341. package/lib/text-list/text-list.module.d.ts +9 -0
  342. package/lib/text-list/text-list.pipe.d.ts +7 -0
  343. package/lib/types/alignment.types.d.ts +17 -0
  344. package/lib/types/button.types.d.ts +6 -0
  345. package/lib/types/colors.types.d.ts +71 -0
  346. package/lib/types/item-storage.types.d.ts +50 -0
  347. package/lib/types/theming.types.d.ts +62 -0
  348. package/lib/types/utility.types.d.ts +16 -0
  349. package/package.json +39 -0
  350. package/prebuilt-themes/default/badge.css +237 -0
  351. package/prebuilt-themes/default/badge.css.map +1 -0
  352. package/prebuilt-themes/default/buttons/button-group.css +19 -0
  353. package/prebuilt-themes/default/buttons/button-group.css.map +1 -0
  354. package/prebuilt-themes/default/buttons/button.css +339 -0
  355. package/prebuilt-themes/default/buttons/button.css.map +1 -0
  356. package/prebuilt-themes/default/buttons/fab.css +330 -0
  357. package/prebuilt-themes/default/buttons/fab.css.map +1 -0
  358. package/prebuilt-themes/default/buttons/icon-button.css +304 -0
  359. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -0
  360. package/prebuilt-themes/default/calendar.css +393 -0
  361. package/prebuilt-themes/default/calendar.css.map +1 -0
  362. package/prebuilt-themes/default/card.css +154 -0
  363. package/prebuilt-themes/default/card.css.map +1 -0
  364. package/prebuilt-themes/default/checkbox-list.css +101 -0
  365. package/prebuilt-themes/default/checkbox-list.css.map +1 -0
  366. package/prebuilt-themes/default/checkbox.css +383 -0
  367. package/prebuilt-themes/default/checkbox.css.map +1 -0
  368. package/prebuilt-themes/default/chips.css +421 -0
  369. package/prebuilt-themes/default/chips.css.map +1 -0
  370. package/prebuilt-themes/default/color-display.css +37 -0
  371. package/prebuilt-themes/default/color-display.css.map +1 -0
  372. package/prebuilt-themes/default/color-picker.css +108 -0
  373. package/prebuilt-themes/default/color-picker.css.map +1 -0
  374. package/prebuilt-themes/default/core.css +112 -0
  375. package/prebuilt-themes/default/core.css.map +1 -0
  376. package/prebuilt-themes/default/dialog.css +22 -0
  377. package/prebuilt-themes/default/dialog.css.map +1 -0
  378. package/prebuilt-themes/default/divider.css +87 -0
  379. package/prebuilt-themes/default/divider.css.map +1 -0
  380. package/prebuilt-themes/default/dropdown-panel.css +45 -0
  381. package/prebuilt-themes/default/dropdown-panel.css.map +1 -0
  382. package/prebuilt-themes/default/file-drop-area.css +332 -0
  383. package/prebuilt-themes/default/file-drop-area.css.map +1 -0
  384. package/prebuilt-themes/default/form-field-frame.css +105 -0
  385. package/prebuilt-themes/default/form-field-frame.css.map +1 -0
  386. package/prebuilt-themes/default/form-field.css +153 -0
  387. package/prebuilt-themes/default/form-field.css.map +1 -0
  388. package/prebuilt-themes/default/inputs/autocomplete-input.css +198 -0
  389. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -0
  390. package/prebuilt-themes/default/inputs/color-input.css +108 -0
  391. package/prebuilt-themes/default/inputs/color-input.css.map +1 -0
  392. package/prebuilt-themes/default/inputs/date-input.css +152 -0
  393. package/prebuilt-themes/default/inputs/date-input.css.map +1 -0
  394. package/prebuilt-themes/default/inputs/digit-input.css +129 -0
  395. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -0
  396. package/prebuilt-themes/default/inputs/file-input.css +399 -0
  397. package/prebuilt-themes/default/inputs/file-input.css.map +1 -0
  398. package/prebuilt-themes/default/inputs/hex-input.css +165 -0
  399. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -0
  400. package/prebuilt-themes/default/inputs/input.css +152 -0
  401. package/prebuilt-themes/default/inputs/input.css.map +1 -0
  402. package/prebuilt-themes/default/inputs/number-input.css +230 -0
  403. package/prebuilt-themes/default/inputs/number-input.css.map +1 -0
  404. package/prebuilt-themes/default/inputs/password-input.css +132 -0
  405. package/prebuilt-themes/default/inputs/password-input.css.map +1 -0
  406. package/prebuilt-themes/default/kbd-shortcut.css +17 -0
  407. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -0
  408. package/prebuilt-themes/default/kbd.css +29 -0
  409. package/prebuilt-themes/default/kbd.css.map +1 -0
  410. package/prebuilt-themes/default/modal.css +99 -0
  411. package/prebuilt-themes/default/modal.css.map +1 -0
  412. package/prebuilt-themes/default/progress-bar.css +286 -0
  413. package/prebuilt-themes/default/progress-bar.css.map +1 -0
  414. package/prebuilt-themes/default/progress-circle.css +181 -0
  415. package/prebuilt-themes/default/progress-circle.css.map +1 -0
  416. package/prebuilt-themes/default/radio.css +261 -0
  417. package/prebuilt-themes/default/radio.css.map +1 -0
  418. package/prebuilt-themes/default/segment.css +441 -0
  419. package/prebuilt-themes/default/segment.css.map +1 -0
  420. package/prebuilt-themes/default/select.css +322 -0
  421. package/prebuilt-themes/default/select.css.map +1 -0
  422. package/prebuilt-themes/default/slide-toggle.css +322 -0
  423. package/prebuilt-themes/default/slide-toggle.css.map +1 -0
  424. package/prebuilt-themes/default/slider.css +428 -0
  425. package/prebuilt-themes/default/slider.css.map +1 -0
  426. package/prebuilt-themes/default/snackbar.css +202 -0
  427. package/prebuilt-themes/default/snackbar.css.map +1 -0
  428. package/prebuilt-themes/default/spinner.css +164 -0
  429. package/prebuilt-themes/default/spinner.css.map +1 -0
  430. package/prebuilt-themes/default/stars.css +284 -0
  431. package/prebuilt-themes/default/stars.css.map +1 -0
  432. package/prebuilt-themes/default/tabber.css +253 -0
  433. package/prebuilt-themes/default/tabber.css.map +1 -0
  434. package/prebuilt-themes/default/table-pagination.css +60 -0
  435. package/prebuilt-themes/default/table-pagination.css.map +1 -0
  436. package/prebuilt-themes/default/table.css +467 -0
  437. package/prebuilt-themes/default/table.css.map +1 -0
  438. package/public-api.d.ts +59 -0
  439. package/themes/_variables.scss +124 -0
  440. package/themes/default/_clear-button.scss +78 -0
  441. package/themes/default/_coloring.scss +144 -0
  442. package/themes/default/_dropdown-arrow.scss +12 -0
  443. package/themes/default/_mixins.scss +91 -0
  444. package/themes/default/badge.scss +129 -0
  445. package/themes/default/buttons/_button-mixins.scss +152 -0
  446. package/themes/default/buttons/button-group.scss +19 -0
  447. package/themes/default/buttons/button.scss +119 -0
  448. package/themes/default/buttons/fab.scss +112 -0
  449. package/themes/default/buttons/icon-button.scss +91 -0
  450. package/themes/default/calendar.scss +298 -0
  451. package/themes/default/card.scss +181 -0
  452. package/themes/default/checkbox-list.scss +125 -0
  453. package/themes/default/checkbox.scss +123 -0
  454. package/themes/default/chips.scss +269 -0
  455. package/themes/default/color-display.scss +53 -0
  456. package/themes/default/color-picker.scss +113 -0
  457. package/themes/default/core.scss +129 -0
  458. package/themes/default/dialog.scss +25 -0
  459. package/themes/default/divider.scss +115 -0
  460. package/themes/default/dropdown-panel.scss +60 -0
  461. package/themes/default/file-drop-area.scss +221 -0
  462. package/themes/default/form-field-frame.scss +91 -0
  463. package/themes/default/form-field.scss +161 -0
  464. package/themes/default/inputs/_shared.scss +99 -0
  465. package/themes/default/inputs/autocomplete-input.scss +119 -0
  466. package/themes/default/inputs/color-input.scss +48 -0
  467. package/themes/default/inputs/date-input.scss +106 -0
  468. package/themes/default/inputs/digit-input.scss +138 -0
  469. package/themes/default/inputs/file-input.scss +187 -0
  470. package/themes/default/inputs/hex-input.scss +81 -0
  471. package/themes/default/inputs/input.scss +63 -0
  472. package/themes/default/inputs/number-input.scss +214 -0
  473. package/themes/default/inputs/password-input.scss +116 -0
  474. package/themes/default/kbd-shortcut.scss +21 -0
  475. package/themes/default/kbd.scss +40 -0
  476. package/themes/default/modal.scss +130 -0
  477. package/themes/default/progress-bar.scss +181 -0
  478. package/themes/default/progress-circle.scss +64 -0
  479. package/themes/default/radio.scss +154 -0
  480. package/themes/default/segment.scss +383 -0
  481. package/themes/default/select.scss +327 -0
  482. package/themes/default/slide-toggle.scss +228 -0
  483. package/themes/default/slider.scss +287 -0
  484. package/themes/default/snackbar.scss +78 -0
  485. package/themes/default/spinner.scss +31 -0
  486. package/themes/default/stars.scss +133 -0
  487. package/themes/default/tabber.scss +131 -0
  488. package/themes/default/table-pagination.scss +72 -0
  489. package/themes/default/table.scss +459 -0
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ardium-pl/ui" />
5
+ export * from './public-api';
@@ -0,0 +1,65 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import { BooleanLike } from '@ardium-ui/devkit';
3
+ import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
4
+ import * as i0 from "@angular/core";
5
+ export interface _BooleanComponentDefaults extends _NgModelComponentDefaults {
6
+ reverseSelected: boolean;
7
+ }
8
+ export declare const _booleanComponentDefaults: _BooleanComponentDefaults;
9
+ /**
10
+ * Common code for components, which only operate on the "selected" state.
11
+ */
12
+ export declare abstract class _BooleanComponentBase extends _NgModelComponentBase implements ControlValueAccessor {
13
+ protected readonly _DEFAULTS: _BooleanComponentDefaults;
14
+ protected abstract readonly _componentId: string;
15
+ protected abstract readonly _componentName: string;
16
+ writeValue(v: any): void;
17
+ /**
18
+ * Emits all select-state-related events.
19
+ */
20
+ protected _emitChange(): void;
21
+ /**
22
+ * The event emitter responsible for firing `select` events. Fired when the `selected` state is set to true.
23
+ */
24
+ readonly selectEvent: import("@angular/core").OutputEmitterRef<null>;
25
+ /**
26
+ * The event emitter responsible for firing `unselect` events. Fired when the `selected` state is set to false.
27
+ */
28
+ readonly unselectEvent: import("@angular/core").OutputEmitterRef<null>;
29
+ /**
30
+ * The event emitter responsible for firing `change` events. Fired when the `selected` state is changed.
31
+ */
32
+ readonly changeEvent: import("@angular/core").OutputEmitterRef<boolean>;
33
+ readonly selected: import("@angular/core").WritableSignal<boolean>;
34
+ /**
35
+ * The selection state of the component. Coercible into a boolean.
36
+ */
37
+ set _selected(v: any);
38
+ get _selectedHostAttribute(): boolean;
39
+ /**
40
+ * The event emitter responsible for firing `selectedChange` events. Fired when the `selected` state is changed.
41
+ */
42
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
43
+ /**
44
+ * The reverse of the `selected` state. Coercible into a boolean. Useful for cases where the "selected" state is semantically reversed, e.g. "disabled".
45
+ */
46
+ readonly reverseSelected: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
47
+ /**
48
+ * The "selected" state, accounting for the `reverseSelected` input.
49
+ */
50
+ readonly selectedAccountingForReverse: import("@angular/core").Signal<boolean>;
51
+ /**
52
+ * Toggles the selected state. Emits all appropriate events.
53
+ */
54
+ toggleSelected(): void;
55
+ /**
56
+ * Sets the state to "selected". Emits all appropriate events only if the state changes.
57
+ */
58
+ select(): void;
59
+ /**
60
+ * Sets the state to "unselected". Emits all appropriate events only if the state changes.
61
+ */
62
+ unselect(): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<_BooleanComponentBase, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_BooleanComponentBase, never, never, { "_selected": { "alias": "selected"; "required": false; }; "reverseSelected": { "alias": "reverseSelected"; "required": false; "isSignal": true; }; }, { "selectEvent": "select"; "unselectEvent": "unselect"; "changeEvent": "change"; "selectedChange": "selectedChange"; }, never, never, true, never>;
65
+ }
@@ -0,0 +1,7 @@
1
+ import { _FocusableComponentBase } from './../focusable-component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class _ClearButtonComponent extends _FocusableComponentBase {
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<_ClearButtonComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<_ClearButtonComponent, "ard-clear-button", never, {}, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./clear-button.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class _ClearButtonModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<_ClearButtonModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<_ClearButtonModule, [typeof i1._ClearButtonComponent], [typeof i2.CommonModule], [typeof i1._ClearButtonComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<_ClearButtonModule>;
8
+ }
@@ -0,0 +1,24 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface _DisablableComponentDefaults {
3
+ readonly: boolean;
4
+ disabled: boolean;
5
+ }
6
+ export declare const _disablableComponentDefaults: _DisablableComponentDefaults;
7
+ export declare abstract class _DisablableComponentBase {
8
+ protected readonly _DEFAULTS: _DisablableComponentDefaults;
9
+ constructor(_DEFAULTS: _DisablableComponentDefaults);
10
+ /**
11
+ * Whether the component is read-only. Defines the `readonly` host attribute and `ard-readonly` host class. Coercible into a boolean.
12
+ */
13
+ readonly readonly: import("@angular/core").WritableSignal<boolean>;
14
+ set _readonly(v: any);
15
+ /**
16
+ * Whether the component is disabled. Defines the `disabled` host attribute and `ard-disabled` host class. Coercible into a boolean.
17
+ */
18
+ readonly disabled: import("@angular/core").WritableSignal<boolean>;
19
+ set _disabled(v: any);
20
+ get _readonlyHostAttribute(): boolean;
21
+ get _disabledHostAttribute(): boolean;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<_DisablableComponentBase, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_DisablableComponentBase, never, never, { "_readonly": { "alias": "readonly"; "required": false; }; "_disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,56 @@
1
+ import { NumberLike } from '@ardium-ui/devkit';
2
+ import { _DisablableComponentBase, _DisablableComponentDefaults } from './disablable-component';
3
+ import * as i0 from "@angular/core";
4
+ export interface _FocusableComponentDefaults extends _DisablableComponentDefaults {
5
+ tabIndex: number;
6
+ }
7
+ export declare const _focusableComponentDefaults: _FocusableComponentDefaults;
8
+ export declare abstract class _FocusableComponentBase extends _DisablableComponentBase {
9
+ protected readonly _DEFAULTS: _FocusableComponentDefaults;
10
+ private readonly _focusableElement;
11
+ /**
12
+ * Focuses the correct element in the component.
13
+ */
14
+ focus(): void;
15
+ /**
16
+ * Focuses the first of all available elements in the component.
17
+ */
18
+ focusFirst(): void;
19
+ /**
20
+ * Focuses the last of all available elements in the component.
21
+ */
22
+ focusLast(): void;
23
+ /**
24
+ * Blurs all focusable elements in the component.
25
+ */
26
+ blur(): void;
27
+ /**
28
+ * The component's overall tab index. If the component is disabled, it is always `-1`. Coercible into a number, defaults to `0`.
29
+ */
30
+ readonly tabIndex: import("@angular/core").Signal<number>;
31
+ readonly _tabIndex: import("@angular/core").InputSignalWithTransform<number, NumberLike>;
32
+ /**
33
+ * The event emitter responsible for firing `focus` events.
34
+ */
35
+ readonly focusEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
36
+ /**
37
+ * The event emitter responsible for firing `blur` events.
38
+ */
39
+ readonly blurEvent: import("@angular/core").OutputEmitterRef<FocusEvent>;
40
+ /**
41
+ * Whether the component is currently focused.
42
+ */
43
+ readonly isFocused: import("@angular/core").WritableSignal<boolean>;
44
+ /**
45
+ * Function to handle when an element is focused. Sets `isFocused` and fires the `focus` event.
46
+ * @param event The focus event to emit.
47
+ */
48
+ onFocus(event: FocusEvent): void;
49
+ /**
50
+ * Function to handle when an element is blurred. Sets `isFocused` and fires the `blur` event.
51
+ * @param event The focus event to emit.
52
+ */
53
+ onBlur(event: FocusEvent): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<_FocusableComponentBase, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_FocusableComponentBase, never, never, { "_tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "focusEvent": "focus"; "blurEvent": "blur"; }, never, never, true, never>;
56
+ }
@@ -0,0 +1,22 @@
1
+ import { ControlValueAccessor } from '@angular/forms';
2
+ import { BooleanLike } from '@ardium-ui/devkit';
3
+ import { ArdFormFieldControl } from '../form-field/form-field-child.token';
4
+ import { _NgModelComponentBase, _NgModelComponentDefaults } from './ngmodel-component';
5
+ import * as i0 from "@angular/core";
6
+ export interface _FormFieldComponentDefaults extends _NgModelComponentDefaults {
7
+ required: boolean | undefined;
8
+ }
9
+ export declare const _formFieldComponentDefaults: _FormFieldComponentDefaults;
10
+ /**
11
+ * Common code for components which implement the ControlValueAccessor.
12
+ *
13
+ * **Warning**: `writeValue` function should be implemented on the child component!
14
+ */
15
+ export declare abstract class _FormFieldComponentBase extends _NgModelComponentBase implements ControlValueAccessor, ArdFormFieldControl {
16
+ protected readonly _DEFAULTS: _FormFieldComponentDefaults;
17
+ readonly _required: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
18
+ readonly required: import("@angular/core").Signal<boolean>;
19
+ readonly isSuccess: import("@angular/core").InputSignalWithTransform<boolean, BooleanLike>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<_FormFieldComponentBase, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_FormFieldComponentBase, never, never, { "_required": { "alias": "required"; "required": false; "isSignal": true; }; "isSuccess": { "alias": "isSuccess"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,79 @@
1
+ import { Signal } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { AddCustomFn } from '../../select/select.types';
4
+ import { ArdOption, ArdOptionGroup, CompareWithFn, GroupByFn, SearchFn } from '../../types/item-storage.types';
5
+ import { Nullable } from '../../types/utility.types';
6
+ export interface ItemStorageHost {
7
+ readonly valueFrom: Signal<string>;
8
+ readonly labelFrom: Signal<string>;
9
+ readonly disabledFrom: Signal<string>;
10
+ readonly invertDisabled: Signal<boolean>;
11
+ readonly groupLabelFrom: Signal<string | GroupByFn>;
12
+ readonly groupDisabledFrom: Signal<string>;
13
+ readonly childrenFrom: Signal<string>;
14
+ readonly itemsAlreadyGrouped: Signal<Nullable<boolean>>;
15
+ readonly hideSelected: Signal<boolean>;
16
+ readonly deferValueWrites: Signal<boolean>;
17
+ readonly searchCaseSensitive: Signal<boolean>;
18
+ readonly searchFn: Signal<SearchFn | null>;
19
+ readonly compareWith: Signal<Nullable<CompareWithFn>>;
20
+ readonly multiselectable: Signal<boolean>;
21
+ readonly maxSelectedItems: Signal<Nullable<number>>;
22
+ readonly addCustom: Signal<boolean | AddCustomFn<any> | AddCustomFn<Promise<any>>>;
23
+ readonly _componentId: string;
24
+ }
25
+ export declare class ItemStorage {
26
+ private readonly _ardParentComp;
27
+ private readonly _items;
28
+ readonly filteredItems: Signal<ArdOption[]>;
29
+ readonly selectedItems: Signal<ArdOption[]>;
30
+ readonly highlightedItems: Signal<ArdOption[]>;
31
+ private readonly _lastHighlightedItem;
32
+ private readonly _recentlyHighlightedItem;
33
+ private readonly _groups;
34
+ private _updateItems;
35
+ private _updateItemsFromArray;
36
+ constructor(_ardParentComp: ItemStorageHost);
37
+ readonly groups: Signal<ArdOptionGroup[]>;
38
+ readonly items: Signal<ArdOption[]>;
39
+ readonly lastSelectedItem: Signal<ArdOption>;
40
+ readonly value: Signal<any[]>;
41
+ private _itemsToValue;
42
+ readonly isNoItemsToSelect: Signal<boolean>;
43
+ readonly isNoItemsFound: Signal<boolean>;
44
+ readonly isAnyItemExactMatch: Signal<boolean>;
45
+ readonly isAnyItemSelected: Signal<boolean>;
46
+ readonly isAnyItemHighlighted: Signal<boolean>;
47
+ readonly itemsLeftUntilLimit: Signal<number>;
48
+ readonly isItemLimitReached: Signal<boolean>;
49
+ private readonly _highlightableItems;
50
+ setItems(items: any[]): void;
51
+ updateItemFromOptionComponent(itemValue: any, updatedItem: Partial<ArdOption>): void;
52
+ private _addSingleItem;
53
+ private _primitiveItemsMapFn;
54
+ private _ungroupAlreadyGroupedItems;
55
+ private _setItemsMapFn;
56
+ private _createEmptyGroupMap;
57
+ private _isWriteValueValid;
58
+ private _valueToWriteAfterItemsLoad;
59
+ handleWriteValue(ngModel: any): Promise<void>;
60
+ findItemByValue(valueToFind: any): ArdOption | undefined;
61
+ addCustomOption(value: string, fn: AddCustomFn<any> | AddCustomFn<Promise<any>> | AddCustomFn<Observable<any>>): Promise<ArdOption | null>;
62
+ clearAllSelected(): any[];
63
+ clearLastSelected(): ArdOption;
64
+ selectItem(...items: ArdOption[]): [any[], any[], any[]];
65
+ unselectItem(...items: ArdOption[]): any[];
66
+ toggleItem(item: ArdOption): void;
67
+ clearAllHighlights(): void;
68
+ highlightGroup(group: ArdOptionGroup): ArdOption;
69
+ highlightSingleItem(item: ArdOption): ArdOption | null;
70
+ highlightItem(...items: ArdOption[]): ArdOption;
71
+ unhighlightItem(...items: ArdOption[]): void;
72
+ highlightFirstItem(): ArdOption | null;
73
+ highlightLastItem(): ArdOption | null;
74
+ highlightAllItems(): void;
75
+ setRecentlyHighlighted(itemToSet: ArdOption): void;
76
+ highlightNextItem(offset: number, hasShift?: boolean): ArdOption | null;
77
+ filter(filterTerm: string): void;
78
+ resetFiltered(): ArdOption[];
79
+ }
@@ -0,0 +1,167 @@
1
+ import { Signal } from '@angular/core';
2
+ import { ArdOptionSimple, CompareWithFn } from '../../types/item-storage.types';
3
+ import { Nullable } from '../../types/utility.types';
4
+ export interface ItemStorageHostDefaults {
5
+ valueFrom: string;
6
+ labelFrom: string;
7
+ disabledFrom: string;
8
+ }
9
+ export interface SimpleItemStorageHost {
10
+ readonly valueFrom: Signal<Nullable<string>>;
11
+ readonly labelFrom: Signal<Nullable<string>>;
12
+ readonly disabledFrom: Signal<Nullable<string>>;
13
+ readonly invertDisabled: Signal<boolean>;
14
+ readonly DEFAULTS: ItemStorageHostDefaults;
15
+ readonly compareWith: Signal<Nullable<CompareWithFn>>;
16
+ readonly multiselectable: Signal<boolean>;
17
+ readonly isValueRequired: Signal<boolean>;
18
+ readonly maxSelectedItems: Signal<Nullable<number>>;
19
+ readonly _componentId: string;
20
+ readonly _componentName: string;
21
+ }
22
+ export declare class SimpleItemStorage {
23
+ private readonly _ardParentComp;
24
+ private readonly _items;
25
+ constructor(_ardParentComp: SimpleItemStorageHost);
26
+ /**
27
+ * Gets all items.
28
+ */
29
+ readonly items: Signal<ArdOptionSimple[]>;
30
+ /**
31
+ * Gets all currently selected items.
32
+ */
33
+ readonly selectedItems: Signal<ArdOptionSimple[]>;
34
+ /**
35
+ * Gets all currently highlighted items.
36
+ */
37
+ readonly highlightedItems: Signal<ArdOptionSimple[]>;
38
+ /**
39
+ * Gets the values of the currently selected items.
40
+ */
41
+ readonly value: Signal<any[]>;
42
+ /**
43
+ * Maps an array of items into their values.
44
+ * @param items The items to convert to value.
45
+ * @returns An array of item values.
46
+ */
47
+ private _itemsToValue;
48
+ private _updateItems;
49
+ private _updateItemsFromArray;
50
+ /**
51
+ * Returns true if at least one item is highlighted, otherwise false.
52
+ */
53
+ readonly isAnyItemHighlighted: Signal<boolean>;
54
+ /**
55
+ * Finds all highlightable items. An item is considered highlightable if it is **not** disabled.
56
+ * @returns An array of all highlightable items.
57
+ */
58
+ private readonly _highlightableItems;
59
+ readonly itemsLeftUntilLimit: Signal<number>;
60
+ /**
61
+ * Returns true if the parent component defines the limit of concurrently selectable items and the amount of currently selected items matches that limit. Otherwise returns false.
62
+ *
63
+ * **TLDR**: true if `maxSelectedItems` is defined and the number of selected items matches that value.
64
+ */
65
+ readonly isItemLimitReached: Signal<boolean>;
66
+ private _areItemsInitialized;
67
+ /**
68
+ * Sets the component's items. Takes into account the values defined by the parent component for `valueFrom`, `labelFrom`, and `disabledFrom`.
69
+ * @param items An array of items to be set as the component's items.
70
+ * @returns true if at least one of the items is of primitive type, otherwise false.
71
+ */
72
+ setItems(items: unknown[]): void;
73
+ private _primitiveItemsMapFn;
74
+ private _setItemsMapFn;
75
+ private _valueBeforeItemsSet;
76
+ /**
77
+ * Writes a new value to the item storage. Selects the correct items based on the provided values, warning the user if the value is not found.
78
+ * @param ngModel The value of the ngModel to set.
79
+ */
80
+ writeValue(ngModel: any): void;
81
+ private _validateSingleElementType;
82
+ /**
83
+ * Validates that all values of the value to be written are able to be accurately compared against the storage items.
84
+ *
85
+ * An item from the ngModel array is considered valid if it is a primitive value, or if all of the below points are met:
86
+ * 1. The parent component defines the `compareWith` property.
87
+ * 2. The ngModel value item is an object (or array).
88
+ * 3. The parent component has a defined `valueFrom` property.
89
+ * @param ngModel The value of ngModel to validate.
90
+ * @returns true if all items are valid, otherwise false.
91
+ */
92
+ private _validateWriteValue;
93
+ findItemByValue(valueToFind: any): ArdOptionSimple | undefined;
94
+ /**
95
+ * Unselects all selected items.
96
+ *
97
+ * If the parent component requires at least one value to be selected at all times, the first selected items is left selected.
98
+ * @returns An array of items cleared, mapped to only their values.
99
+ */
100
+ unselectAll(): any[];
101
+ /**
102
+ * Unselects all selected items, no matter what the component settings are.
103
+ * @returns An array of items cleared, mapped to only their values.
104
+ */
105
+ private _forceUnselectAll;
106
+ /**
107
+ * Selects one or multiple items.
108
+ *
109
+ * Accounts for the limit of concurrently selected items defined by the parent component.
110
+ * @param items A rest operator array of item objects to be selected.
111
+ * @returns A tuple containing three arrays, all mapped to only their values:
112
+ * - An array of items selected,
113
+ * - An array of items unselected,
114
+ * - An array of items failed to select due to the limit.
115
+ */
116
+ selectItem(...items: ArdOptionSimple[]): [any[], any[], any[]];
117
+ /**
118
+ *
119
+ * @param items A rest operator array of item objects to be unselected.
120
+ * @returns An array of items unselected, mapped to only their values.
121
+ */
122
+ unselectItem(...items: ArdOptionSimple[]): any[];
123
+ /**
124
+ * Unhighlights all currently highlighted items.
125
+ */
126
+ unhighlightAll(): void;
127
+ /**
128
+ * Highlights the given item, while unhighlighting all other items. Does nothing when the item is disabled.
129
+ * @param item The item to be highlighted.
130
+ * @returns The highlighted item.
131
+ */
132
+ highlightSingleItem(item: ArdOptionSimple): ArdOptionSimple | null;
133
+ /**
134
+ * Highlights all given items.
135
+ * @param items A rest operator array of items to be highlighted.
136
+ * @returns The last highlighted item.
137
+ */
138
+ highlightItem(...items: ArdOptionSimple[]): ArdOptionSimple;
139
+ /**
140
+ * Unhighlights all given items.
141
+ * @param items A rest operator array of items to be unhighlighted.
142
+ */
143
+ unhighlightItem(...items: ArdOptionSimple[]): void;
144
+ /**
145
+ * Highlights the first item out of all items.
146
+ * @returns The highlighted item.
147
+ */
148
+ highlightFirstItem(): ArdOptionSimple | null;
149
+ /**
150
+ * Highlights the last item out of all items.
151
+ * @returns The highlighted item.
152
+ */
153
+ highlightLastItem(): ArdOptionSimple | null;
154
+ /**
155
+ * Highlights all non-disabled items.
156
+ */
157
+ highlightAllItems(): void;
158
+ /**
159
+ * Highlights the next non-disabled item defined by the offset amount.
160
+ *
161
+ * If `hasShift` is set to true, all originally highlighted items are kept. Otherwise, all original items are unselected.
162
+ * @param offset The amount of items to offset the highlight by.
163
+ * @param hasShift Whether the user has the shift key pressed.
164
+ * @returns The item highlighted.
165
+ */
166
+ highlightNextItem(offset: number, hasShift?: boolean): ArdOptionSimple | null;
167
+ }
@@ -0,0 +1,75 @@
1
+ import { Signal } from '@angular/core';
2
+ import { ArdSimplestStorageItem } from '../../types/item-storage.types';
3
+ import { Nullable } from '../../types/utility.types';
4
+ export interface SimplestItemStorageHostDefaults {
5
+ suggValueFrom: string;
6
+ suggLabelFrom: string;
7
+ }
8
+ export interface SimplestItemStorageHost {
9
+ readonly valueFrom: Signal<Nullable<string>>;
10
+ readonly labelFrom: Signal<Nullable<string>>;
11
+ readonly DEFAULTS: SimplestItemStorageHostDefaults;
12
+ }
13
+ export declare class SimplestItemStorage {
14
+ private readonly _ardParentComp;
15
+ private readonly _items;
16
+ private readonly _highlightedItem;
17
+ constructor(_ardParentComp: SimplestItemStorageHost);
18
+ /**
19
+ * Gets all items.
20
+ */
21
+ readonly items: import("@ardium-ui/devkit").ArraySignal<ArdSimplestStorageItem>;
22
+ /**
23
+ * The currently highlighted item.
24
+ */
25
+ readonly highlightedItem: Signal<Nullable<ArdSimplestStorageItem>>;
26
+ /**
27
+ * True if at least one item is highlighted, otherwise false.
28
+ */
29
+ readonly isAnyItemHighlighted: Signal<boolean>;
30
+ /**
31
+ * Sets the component's items. Takes into account the values defined by the parent component for `suggValueFrom` and `suggLabelFrom`.
32
+ * @param items An array of items to be set as the component's items.
33
+ * @returns true if at least one of the items is of primitive type, otherwise false.
34
+ */
35
+ setItems(items: any[]): void;
36
+ private _primitiveItemsMapFn;
37
+ private _setItemsMapFn;
38
+ /**
39
+ * Selects the given item.
40
+ * @param items The item to select.
41
+ * @returns The value of the selected item.
42
+ */
43
+ selectItem(item: ArdSimplestStorageItem): any;
44
+ selectCurrent(): any;
45
+ /**
46
+ * Unhighlights all currently highlighted items.
47
+ */
48
+ unhighlightCurrent(): void;
49
+ /**
50
+ * Highlights a given item.
51
+ * @param item The item to be highlighted.
52
+ */
53
+ highlightItem(item: ArdSimplestStorageItem): void;
54
+ /**
55
+ * Unhighlights a given item.
56
+ * @param item The item to be unhighlighted.
57
+ */
58
+ unhighlightItem(item: ArdSimplestStorageItem): void;
59
+ /**
60
+ * Highlights the first item out of all items.
61
+ * @returns The highlighted item.
62
+ */
63
+ highlightFirstItem(): ArdSimplestStorageItem | null;
64
+ /**
65
+ * Highlights the last item out of all items.
66
+ * @returns The highlighted item.
67
+ */
68
+ highlightLastItem(): ArdSimplestStorageItem | null;
69
+ /**
70
+ * Highlights the next non-disabled item defined by the offset amount.
71
+ * @param offset The amount of items to offset the highlight by.
72
+ * @returns The item highlighted.
73
+ */
74
+ highlightNextItem(offset: number): ArdSimplestStorageItem | null;
75
+ }
@@ -0,0 +1,49 @@
1
+ import { ModelSignal, Signal } from '@angular/core';
2
+ export interface PaginationModelHost {
3
+ readonly componentId: string;
4
+ readonly totalItems: Signal<number>;
5
+ readonly options: Signal<number[] | {
6
+ value: number;
7
+ label: string;
8
+ }[]>;
9
+ readonly itemsPerPage: ModelSignal<number>;
10
+ readonly page: ModelSignal<number>;
11
+ }
12
+ export interface PaginationCurrentItemsContext {
13
+ readonly currentItemsFrom: number;
14
+ readonly currentItemsTo: number;
15
+ readonly totalItems: number;
16
+ readonly totalPages: number;
17
+ readonly page: number;
18
+ }
19
+ export interface PaginationContext extends PaginationCurrentItemsContext {
20
+ readonly itemsPerPageOptions: number[] | {
21
+ value: number;
22
+ label: string;
23
+ }[];
24
+ readonly itemsPerPage: number;
25
+ readonly onItemsPerPageChange: (newValue: number) => void;
26
+ readonly firstPageDisabled: boolean;
27
+ readonly prevPageDisabled: boolean;
28
+ readonly nextPageDisabled: boolean;
29
+ readonly lastPageDisabled: boolean;
30
+ readonly onPageChange: (newPage: number) => void;
31
+ }
32
+ export declare class PaginationModel {
33
+ private readonly _ardHostCmp;
34
+ constructor(_ardHostCmp: PaginationModelHost);
35
+ readonly isTotalItemsDefined: Signal<boolean>;
36
+ readonly lastPageNum: Signal<number | null>;
37
+ readonly isLastPage: Signal<boolean>;
38
+ readonly itemsOnCurrentPage: Signal<[number, number] | null>;
39
+ readonly firstPageDisabled: Signal<boolean>;
40
+ readonly lastPageDisabled: Signal<boolean>;
41
+ setPage(v: number): void;
42
+ getPage(): number;
43
+ goToFirstPage(): number | null;
44
+ goToPrevPage(): number | null;
45
+ goToNextPage(): number | null;
46
+ goToLastPage(): number | null;
47
+ readonly getCurrentItemsContext: Signal<PaginationCurrentItemsContext>;
48
+ readonly getPartialContext: Signal<Omit<PaginationContext, "onItemsPerPageChange" | "onPageChange">>;
49
+ }
@@ -0,0 +1,21 @@
1
+ interface IQueue {
2
+ readonly length: number;
3
+ }
4
+ export declare class Queue<T = unknown> implements IQueue {
5
+ private head?;
6
+ private tail?;
7
+ push(item: T): void;
8
+ pushFront(item: T): void;
9
+ pop(): T | undefined;
10
+ peek(): T | undefined;
11
+ clear(): void;
12
+ get length(): number;
13
+ isEmpty(): boolean;
14
+ toArray(): T[];
15
+ }
16
+ export declare class QueueItem<T> {
17
+ value: T;
18
+ next?: QueueItem<T> | undefined;
19
+ constructor(value: T, next?: QueueItem<T> | undefined);
20
+ }
21
+ export {};
@@ -0,0 +1,58 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { Nullable } from '../types/utility.types';
4
+ import { _FocusableComponentBase, _FocusableComponentDefaults } from './focusable-component';
5
+ import * as i0 from "@angular/core";
6
+ export interface _NgModelComponentDefaults extends _FocusableComponentDefaults {
7
+ }
8
+ export declare const _ngModelComponentDefaults: _NgModelComponentDefaults;
9
+ /**
10
+ * Common code for components which implement the ControlValueAccessor.
11
+ *
12
+ * **Warning**: `writeValue` function should be implemented on the child component!
13
+ */
14
+ export declare abstract class _NgModelComponentBase extends _FocusableComponentBase implements ControlValueAccessor, OnInit, OnDestroy {
15
+ protected readonly _DEFAULTS: _NgModelComponentDefaults;
16
+ protected _onChangeRegistered: (_: any) => void;
17
+ protected _onTouchedRegistered: () => void;
18
+ /**
19
+ * Registers a function to handle touched state. Required by ControlValueAccessor.
20
+ * @param fn The function to register.
21
+ */
22
+ registerOnTouched(fn: () => void): void;
23
+ /**
24
+ * Registers a function to handle value change. Required by ControlValueAccessor.
25
+ * @param fn The function to register.
26
+ */
27
+ registerOnChange(fn: (_: any) => void): void;
28
+ /**
29
+ * Sets the component's disabled state. Required by ControlValueAccessor.
30
+ * @param isDisabled the new disabled state.
31
+ */
32
+ setDisabledState(isDisabled: boolean): void;
33
+ /**
34
+ * Writes the a new value into the component. Required by ControlValueAccessor.
35
+ * @abstract
36
+ * @param v The new value to write.
37
+ */
38
+ abstract writeValue(v: any): void;
39
+ /**
40
+ * Writes the a new value into the component. Required by ControlValueAccessor.
41
+ * @abstract
42
+ * @param v The new value to write.
43
+ */
44
+ protected abstract _emitChange(): void;
45
+ onFocus(event: FocusEvent): void;
46
+ protected _shouldEmitTouched: boolean;
47
+ onBlur(event: FocusEvent): void;
48
+ protected _emitTouched(): void;
49
+ readonly control: import("@ardium-ui/devkit").TrackedFormControl<any>;
50
+ ngOnInit(): void;
51
+ readonly htmlId: import("@angular/core").InputSignal<string>;
52
+ readonly htmlName: import("@angular/core").InputSignal<Nullable<string>>;
53
+ readonly _hasError: import("@angular/core").InputSignalWithTransform<boolean | undefined, any>;
54
+ readonly hasError: import("@angular/core").Signal<boolean>;
55
+ ngOnDestroy(): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<_NgModelComponentBase, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_NgModelComponentBase, never, never, { "htmlId": { "alias": "htmlId"; "required": false; "isSignal": true; }; "htmlName": { "alias": "htmlName"; "required": false; "isSignal": true; }; "_hasError": { "alias": "hasError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
58
+ }
@@ -0,0 +1,3 @@
1
+ import { _FormFieldComponentBase } from './form-field-component';
2
+ export interface ArdFormFieldComponent extends _FormFieldComponentBase {
3
+ }