@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
@@ -0,0 +1,221 @@
1
+ @use './coloring' as CM;
2
+
3
+ @layer ard-ui {
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ --ard-file-drop-area-min-width: 15rem;
8
+ --ard-file-drop-area-min-height: 10rem;
9
+ --ard-file-drop-area-padding: 0.625rem;
10
+ --ard-file-drop-area-outline-border-width: 2px;
11
+ --ard-file-drop-area-outline-border-style: dashed;
12
+ --ard-file-drop-area-outline-padding: 0.375rem;
13
+ --ard-file-drop-area-content-gap-min: 0.2rem;
14
+ --ard-file-drop-area-content-gap-preferred: 10%;
15
+ --ard-file-drop-area-content-gap-max: 1rem;
16
+ --ard-file-drop-area-icon-font-size: 220%;
17
+ --ard-file-drop-area-drop-text-font-weight: 500;
18
+ --ard-file-drop-area-drop-text-font-size: 105%;
19
+ --ard-file-drop-area-or-text-font-weight: 400;
20
+ --ard-file-drop-area-or-text-font-size: 95%;
21
+ --ard-file-drop-area-dragover-text-font-weight: 500;
22
+ --ard-file-drop-area-dragover-text-font-size: 105%;
23
+ --ard-file-drop-area-dragover-amount-font-weight: 600;
24
+ --ard-file-drop-area-dragover-amount-font-size: 120%;
25
+ --ard-file-drop-area-uploaded-container-gap: 0.75rem;
26
+ --ard-file-drop-area-uploaded-message-font-weight: 500;
27
+ --ard-file-drop-area-uploaded-message-font-size: 105%;
28
+ --ard-file-drop-area-uploaded-amount-font-weight: 600;
29
+ --ard-file-drop-area-uploaded-amount-font-size: 100%;
30
+ --ard-file-drop-area-uploaded-files-gap: 0.45rem;
31
+ --ard-file-drop-area-file-gap: 0.75rem;
32
+ --ard-file-drop-area-file-icon-font-size: 220%;
33
+ --ard-file-drop-area-file-info-gap: 0.5ch;
34
+ --ard-file-drop-area-filename-gap: 0;
35
+ --ard-file-drop-area-filename-name-line-height: 1;
36
+ --ard-file-drop-area-filename-name-height: 1em;
37
+ --ard-file-drop-area-filesize-font-weight: 500;
38
+ --ard-file-drop-area-filesize-font-size: 83%;
39
+ --ard-file-drop-area-filesize-opacity: 60%;
40
+ --ard-file-drop-area-variant-rounded-corner-radius: 0.875rem;
41
+ --ard-file-drop-area-outline-corner-radius: 0.25rem;
42
+ --ard-file-drop-area-font-size-compact: 85%;
43
+ --ard-file-drop-area-min-width-compact: 12rem;
44
+ --ard-file-drop-area-min-height-compact: 8rem;
45
+ --ard-file-drop-area-content-gap-min-compact: 0.1667rem;
46
+ --ard-file-drop-area-content-gap-preferred-compact: 10%;
47
+ --ard-file-drop-area-content-gap-max-compact: 0.75rem;
48
+ }
49
+
50
+ ard-file-drop-area {
51
+ display: block;
52
+ width: 100%;
53
+ max-width: 100%;
54
+ height: 100%;
55
+ max-height: 100%;
56
+ }
57
+
58
+ .ard-file-drop-area {
59
+ @include CM.typeColors();
60
+ width: 100%;
61
+ max-width: 100%;
62
+ height: 100%;
63
+ max-height: 100%;
64
+ min-width: var(--ard-file-drop-area-min-width, 15rem);
65
+ min-height: var(--ard-file-drop-area-min-height, 10rem);
66
+ padding: var(--ard-file-drop-area-padding, 0.625rem);
67
+ box-sizing: border-box;
68
+ background: var(--ard-cmpcl--bg-colored-verylight);
69
+ display: flex;
70
+
71
+ .ard-file-drop-area-outline {
72
+ width: 100%;
73
+ min-height: 100%;
74
+ box-sizing: border-box;
75
+ border: var(--ard-file-drop-area-outline-border-width, 2px) var(--ard-file-drop-area-outline-border-style, dashed)
76
+ var(--ard-cmpcl--border);
77
+ padding: var(--ard-file-drop-area-outline-padding, 0.375rem);
78
+ pointer-events: none;
79
+
80
+ * {
81
+ pointer-events: none;
82
+ user-select: none;
83
+ }
84
+ }
85
+ .ard-file-drop-area-content {
86
+ height: 100%;
87
+ display: flex;
88
+ flex-direction: column;
89
+ align-items: center;
90
+ justify-content: center;
91
+ gap: clamp(
92
+ var(--ard-file-drop-area-content-gap-min, 0.2rem),
93
+ var(--ard-file-drop-area-content-gap-preferred, 10%),
94
+ var(--ard-file-drop-area-content-gap-max, 1rem)
95
+ );
96
+ padding: var(--ard-file-drop-area-content-padding, 0.2rem 0);
97
+ box-sizing: border-box;
98
+ }
99
+
100
+ //! state-specific styling
101
+ //idle
102
+ .ard-file-drop-area-icon {
103
+ font-size: var(--ard-file-drop-area-icon-font-size, 220%);
104
+ }
105
+ .ard-file-drop-area-drop-text {
106
+ font-weight: var(--ard-file-drop-area-drop-text-font-weight, 500);
107
+ font-size: var(--ard-file-drop-area-drop-text-font-size, 105%);
108
+ }
109
+ .ard-file-drop-area-or-text {
110
+ font-weight: var(--ard-file-drop-area-or-text-font-weight, 400);
111
+ font-size: var(--ard-file-drop-area-or-text-font-size, 95%);
112
+ }
113
+ .ard-file-drop-area-browse-button > button {
114
+ border: 1px solid var(--ard-cmpcl--border);
115
+ pointer-events: all;
116
+ }
117
+ //dragover
118
+ .ard-file-drop-area-dragover-text {
119
+ font-weight: var(--ard-file-drop-area-dragover-text-font-weight, 500);
120
+ font-size: var(--ard-file-drop-area-dragover-text-font-size, 105%);
121
+ }
122
+ .ard-file-drop-area-dragover-amount {
123
+ font-weight: var(--ard-file-drop-area-dragover-amount-font-weight, 600);
124
+ font-size: var(--ard-file-drop-area-dragover-amount-font-size, 120%);
125
+ }
126
+ //uploaded
127
+ .ard-file-drop-area-uploaded-container {
128
+ max-height: 100%;
129
+ height: 100%;
130
+ width: 100%;
131
+ display: grid;
132
+ grid-template-columns: 1fr;
133
+ grid-template-rows: max-content 1fr;
134
+ gap: var(--ard-file-drop-area-uploaded-container-gap, 0.75rem);
135
+ justify-items: center;
136
+ }
137
+ .ard-file-drop-area-uploaded-message {
138
+ font-weight: var(--ard-file-drop-area-uploaded-message-font-weight, 500);
139
+ font-size: var(--ard-file-drop-area-uploaded-message-font-size, 105%);
140
+ }
141
+ .ard-file-drop-area-uploaded-amount {
142
+ font-weight: var(--ard-file-drop-area-uploaded-amount-font-weight, 600);
143
+ font-size: var(--ard-file-drop-area-uploaded-amount-font-size, 100%);
144
+ }
145
+ .ard-file-drop-area-uploaded-files {
146
+ max-width: 100%;
147
+ width: 100%;
148
+ display: flex;
149
+ flex-direction: column;
150
+ align-items: flex-start;
151
+ gap: var(--ard-file-drop-area-uploaded-files-gap, 0.45rem);
152
+ overflow: hidden auto;
153
+ box-sizing: border-box;
154
+
155
+ .ard-file-drop-area-file {
156
+ max-width: 100%;
157
+ display: grid;
158
+ align-items: center;
159
+ grid-template-columns: max-content 1fr;
160
+ gap: var(--ard-file-drop-area-file-gap, 0.75rem);
161
+ max-height: min-content;
162
+
163
+ ard-icon {
164
+ font-size: var(--ard-file-drop-area-file-icon-font-size, 220%);
165
+ }
166
+ .ard-file-drop-area-file-info {
167
+ display: flex;
168
+ flex-direction: column;
169
+ line-height: 1;
170
+ gap: var(--ard-file-drop-area-file-info-gap, 0.5ch);
171
+ }
172
+ .ard-file-drop-area-filename {
173
+ max-width: 100%;
174
+ display: grid;
175
+ grid-template-columns: 1fr max-content;
176
+ gap: var(--ard-file-drop-area-filename-gap, 0);
177
+ }
178
+ .ard-file-drop-area-filename-name {
179
+ max-width: 100%;
180
+ line-height: var(--ard-file-drop-area-filename-name-line-height, 1);
181
+ text-overflow: ellipsis;
182
+ overflow: hidden;
183
+ white-space: nowrap;
184
+ height: var(--ard-file-drop-area-filename-name-height, 1em);
185
+ }
186
+ .ard-file-drop-area-filesize {
187
+ font-weight: var(--ard-file-drop-area-filesize-font-weight, 500);
188
+ font-size: var(--ard-file-drop-area-filesize-font-size, 83%);
189
+ opacity: var(--ard-file-drop-area-filesize-opacity, 60%);
190
+ }
191
+ }
192
+ }
193
+
194
+ //! variant
195
+ &.ard-variant-rounded,
196
+ &.ard-variant-pill {
197
+ border-radius: var(--ard-file-drop-area-variant-rounded-corner-radius, 0.875rem);
198
+
199
+ .ard-file-drop-area-outline {
200
+ border-radius: var(--ard-file-drop-area-outline-corner-radius, 0.25rem);
201
+ }
202
+ }
203
+ &.ard-variant-sharp {
204
+ border-radius: 0;
205
+ }
206
+ //! compact
207
+ &.ard-compact {
208
+ font-size: var(--ard-file-drop-area-font-size-compact, 85%);
209
+ min-width: var(--ard-file-drop-area-min-width-compact, 12rem);
210
+ min-height: var(--ard-file-drop-area-min-height-compact, 8rem);
211
+
212
+ .ard-file-drop-area-content {
213
+ gap: clamp(
214
+ var(--ard-file-drop-area-content-gap-min-compact, 0.1667rem),
215
+ var(--ard-file-drop-area-content-gap-preferred-compact, 10%),
216
+ var(--ard-file-drop-area-content-gap-max-compact, 0.75rem)
217
+ );
218
+ }
219
+ }
220
+ }
221
+ }
@@ -0,0 +1,91 @@
1
+ @use './mixins' as defaultMixins;
2
+ @use '../variables' as ARD;
3
+
4
+ @layer ard-ui {
5
+ .ard-form-field-frame {
6
+ box-sizing: border-box;
7
+ min-height: ARD.$form-field-height;
8
+ height: max-content;
9
+ max-width: 100%;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: stretch;
13
+ position: relative;
14
+ font-family: var(--ard-font-family);
15
+
16
+ .ard-form-field-content-container {
17
+ flex-grow: 1;
18
+ min-height: inherit;
19
+
20
+ > * {
21
+ min-height: inherit;
22
+ }
23
+ }
24
+ .ard-form-field-prefix-container,
25
+ .ard-form-field-suffix-container {
26
+ height: max-content;
27
+ max-height: 100%;
28
+ display: flex;
29
+ align-items: center;
30
+ }
31
+ .ard-form-field-prefix-container {
32
+ padding-left: var(--ard-form-field-padding-left, 0.375rem);
33
+ }
34
+ .ard-form-field-suffix-container {
35
+ padding-right: var(--ard-form-field-padding-right, 0.375rem);
36
+ }
37
+
38
+ //! compact
39
+ &.ard-compact {
40
+ min-height: ARD.$form-field-compact-height;
41
+ }
42
+
43
+ //! appearance & variant
44
+ @include defaultMixins.formAppearances();
45
+ @include defaultMixins.formVariants();
46
+ background: var(--ard-appearance-background);
47
+ border: var(--ard-appearance-border);
48
+
49
+ .ard-form-field-overlay {
50
+ background: ARD.$overlay;
51
+ opacity: 0;
52
+ }
53
+
54
+ &:hover {
55
+ .ard-form-field-overlay {
56
+ opacity: var(--ard-form-field-hover-overlay-opacity, 3%);
57
+ }
58
+ }
59
+ &.ard-focused {
60
+ .ard-form-field-overlay {
61
+ opacity: var(--ard-form-field-focus-overlay-opacity, 6%);
62
+ }
63
+ }
64
+ &.ard-enable-transitions {
65
+ transition: border-color var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn;
66
+
67
+ .ard-form-field-overlay {
68
+ transition:
69
+ opacity var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn,
70
+ background-color var(--ard-form-field-transitions-duration, 150ms) ARD.$timing-fn;
71
+ }
72
+ }
73
+ }
74
+ .ard-disabled .ard-form-field-frame {
75
+ pointer-events: none;
76
+ opacity: var(--ard-form-field-disabled-opacity, 50%);
77
+
78
+ &.ard-appearance-transparent {
79
+ .ard-form-field-overlay {
80
+ opacity: var(--ard-form-field-disabled-transparent-overlay-opacity, 4.5%);
81
+ }
82
+ }
83
+ }
84
+ .ard-readonly .ard-form-field-frame {
85
+ &:hover {
86
+ .ard-form-field-overlay {
87
+ opacity: 0;
88
+ }
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,161 @@
1
+ @use '../variables' as ARD;
2
+
3
+ @layer ard-ui {
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ --ard-form-field-label-padding: 0.25rem 0 0.125rem 0.125rem;
8
+ --ard-form-field-label-font-size: 0.9375rem;
9
+ --ard-form-field-label-font-weight: 500;
10
+ --ard-form-field-label-required-font-weight: 500;
11
+ --ard-form-field-label-required-font-size: 112.5%;
12
+ --ard-form-field-label-required-color: orangered;
13
+ --ard-form-field-label-optional-font-weight: 400;
14
+ --ard-form-field-label-optional-font-size: 0.8125rem;
15
+ // --ard-form-field-label-optional-color: ;
16
+ --ard-form-field-label-optional-font-style: italic;
17
+ // --ard-form-field-error-color: ;
18
+ // --ard-form-field-success-color: ;
19
+ --ard-form-field-hint-padding: 0.125rem 0 0.25rem 0.125rem;
20
+ --ard-form-field-hint-font-size: 0.8125rem;
21
+ --ard-form-field-hint-line-height: 1.2;
22
+ --ard-form-field-hint-right-padding-left: 0.5rem;
23
+ --ard-form-field-hint-error-line-height: 1.2;
24
+ --ard-form-field-hint-error-gap: 0.375em;
25
+ --ard-form-field-label-disabled-opacity: 40%;
26
+ --ard-form-field-hint-disabled-opacity: 50%;
27
+ --ard-form-field-error-animation-duration: 0.25s;
28
+ --ard-horizontal-form-field-gap: 0.5rem;
29
+ }
30
+
31
+ ard-form-field,
32
+ ard-horizontal-form-field {
33
+ display: block;
34
+ width: 100%;
35
+ }
36
+
37
+ .ard-form-field,
38
+ .ard-horizontal-form-field {
39
+ display: flex;
40
+ flex-direction: column;
41
+
42
+ .ard-label {
43
+ padding: var(--ard-form-field-label-padding, 0.25rem 0 0.125rem 0.125rem);
44
+ font-size: var(--ard-form-field-label-font-size, 0.9375rem);
45
+ font-weight: var(--ard-form-field-label-font-weight, 500);
46
+
47
+ .ard-label__required {
48
+ .ard-label__required-optional-text {
49
+ font-weight: var(--ard-form-field-label-required-font-weight, 500);
50
+ font-size: var(--ard-form-field-label-required-font-size, 112.5%);
51
+ color: var(--ard-form-field-label-required-color, orangered);
52
+ line-height: 1;
53
+ }
54
+ }
55
+ .ard-label__optional {
56
+ .ard-label__required-optional-text {
57
+ font-weight: var(--ard-form-field-label-optional-font-weight, 400);
58
+ font-size: var(--ard-form-field-label-optional-font-size, 0.8125rem);
59
+ color: var(--ard-form-field-label-optional-color, #{ARD.$text2});
60
+ font-style: var(--ard-form-field-label-optional-font-style, italic);
61
+ }
62
+ }
63
+ }
64
+ .ard-form-field__hints {
65
+ padding: var(--ard-form-field-hint-padding, 0.125rem 0 0.25rem 0.125rem);
66
+ font-size: var(--ard-form-field-hint-font-size, 0.8125rem);
67
+ line-height: var(--ard-form-field-hint-line-height, 1.1);
68
+
69
+ &.ard-form-field__reserve-hint-line {
70
+ box-sizing: content-box;
71
+ min-height: calc(var(--ard-form-field-hint-line-height, 1.1) * 1em);
72
+ }
73
+ }
74
+ .ard-form-field__hints-right,
75
+ .ard-form-field__errors-right {
76
+ > * {
77
+ padding-left: var(--ard-form-field-hint-right-padding-left, 0.5rem);
78
+ }
79
+ }
80
+ .ard-hint,
81
+ .ard-error {
82
+ font-size: 1em;
83
+ line-height: var(--ard-form-field-hint-error-line-height, 1.2);
84
+ display: inline-grid;
85
+ min-height: calc(var(--ard-form-field-hint-error-line-height, 1.2) * 1em);
86
+ }
87
+ .ard-hint {
88
+ color: var(--ard-form-field-hint-color, #{ARD.$text2});
89
+ }
90
+ .ard-error:not(.ard-hint-error),
91
+ .ard-form-field__errors .ard-hint-error {
92
+ color: var(--ard-form-field-error-color, #{ARD.$danger700});
93
+ overflow: hidden;
94
+ }
95
+ .ard-error:not(.ard-hint-error) {
96
+ animation: errorAppear var(--ard-form-field-error-animation-duration, 0.25s) ARD.$timing-fn forwards;
97
+ }
98
+ .ard-form-field__default-hint,
99
+ .ard-form-field__default-error {
100
+ gap: var(--ard-form-field-hint-error-gap, 0.375em);
101
+ }
102
+
103
+ &.ard-form-field__with-error {
104
+ .ard-label,
105
+ ard-label {
106
+ color: var(--ard-form-field-error-color, #{ARD.$danger700});
107
+ }
108
+ }
109
+ &.ard-form-field__is-success {
110
+ .ard-label,
111
+ ard-label {
112
+ color: var(--ard-form-field-success-color, #{ARD.$success700});
113
+ }
114
+ }
115
+ &.ard-form-field__control-disabled {
116
+ .ard-label {
117
+ opacity: var(--ard-form-field-label-disabled-opacity, 40%);
118
+ }
119
+ .ard-form-field__hints {
120
+ opacity: var(--ard-form-field-hint-disabled-opacity, 50%);
121
+ }
122
+ }
123
+ }
124
+ .ard-horizontal-form-field {
125
+ align-items: flex-start;
126
+ justify-content: stretch;
127
+ flex-direction: row;
128
+ gap: var(--ard-horizontal-form-field-gap, 0.5rem);
129
+
130
+ .ard-form-field__label-container {
131
+ width: var(--ard-horizontal-form-field-label-width, 12rem);
132
+ min-width: var(--ard-horizontal-form-field-label-width, 12rem);
133
+ height: ARD.$form-field-height;
134
+ display: flex;
135
+ align-items: center;
136
+ justify-content: var(--ard-horizontal-form-field-label-align, flex-start);
137
+ }
138
+ .ard-form-field__non-label {
139
+ flex-grow: 1;
140
+ }
141
+
142
+ &:has(.ard-form-field__input .ard-compact) {
143
+ .ard-form-field__label-container {
144
+ height: ARD.$form-field-compact-height;
145
+ }
146
+ }
147
+ }
148
+
149
+ ard-label {
150
+ display: flex;
151
+ }
152
+
153
+ @keyframes errorAppear {
154
+ from {
155
+ grid-template-rows: 0fr;
156
+ }
157
+ to {
158
+ grid-template-rows: 1fr;
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,99 @@
1
+ @use '../../variables' as ARD;
2
+
3
+ /**
4
+ * Should be applied to the first element in the component's template.
5
+ */
6
+ @mixin genericInput(
7
+ $height,
8
+ $height-compact,
9
+ $gap,
10
+ $font-size,
11
+ $font-size-compact,
12
+ $line-height,
13
+ $line-height-compact,
14
+ $font-weight,
15
+ $padding-top,
16
+ $padding-right,
17
+ $padding-bottom,
18
+ $padding-left,
19
+ $padding-top-compact,
20
+ $padding-right-compact,
21
+ $padding-bottom-compact,
22
+ $padding-left-compact,
23
+ $color,
24
+ $placeholder-color,
25
+ $placeholder-opacity,
26
+ $readonly-cursor
27
+ ) {
28
+ height: $height;
29
+ position: relative;
30
+ font-family: var(--ard-font-family);
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: stretch;
34
+ gap: $gap;
35
+ cursor: text;
36
+ box-sizing: border-box;
37
+ font-size: $font-size;
38
+ line-height: $line-height;
39
+ font-weight: $font-weight;
40
+ padding-left: $padding-left;
41
+ padding-right: $padding-right;
42
+ padding-top: $padding-top;
43
+ padding-bottom: $padding-bottom;
44
+ color: $color;
45
+
46
+ .ard-input-container {
47
+ flex-grow: 1;
48
+ text-size-adjust: 100%;
49
+ display: flex;
50
+ align-items: center;
51
+ height: 100%;
52
+ position: relative;
53
+
54
+ > * {
55
+ position: absolute;
56
+ inset: 0;
57
+ max-width: 100%;
58
+ padding: 0;
59
+ }
60
+ .ard-placeholder {
61
+ font: inherit;
62
+ opacity: $placeholder-opacity;
63
+ color: $placeholder-color;
64
+ white-space: nowrap;
65
+ overflow: hidden;
66
+ text-overflow: ellipsis;
67
+ pointer-events: none;
68
+ display: flex;
69
+ align-items: center;
70
+ }
71
+
72
+ input {
73
+ border: none;
74
+ background: transparent;
75
+ outline: none;
76
+ font: inherit;
77
+ color: inherit;
78
+ display: block;
79
+ }
80
+ }
81
+ //! compact
82
+ &.ard-compact {
83
+ height: $height-compact;
84
+ font-size: $font-size-compact;
85
+ line-height: $line-height-compact;
86
+ padding-left: $padding-left-compact;
87
+ padding-right: $padding-right-compact;
88
+ padding-top: $padding-top-compact;
89
+ padding-bottom: $padding-bottom-compact;
90
+ }
91
+ //! readonly
92
+ .ard-readonly & {
93
+ cursor: $readonly-cursor;
94
+
95
+ * {
96
+ cursor: $readonly-cursor;
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,119 @@
1
+ @use './shared' as inputMixin;
2
+ @use '../mixins' as defaultMixins;
3
+ @use '../clear-button' as CB;
4
+ @use '../../variables' as ARD;
5
+
6
+ @layer ard-ui {
7
+ // the variables are commented out intentionally
8
+ // read more in docs/dev/css-variables.md
9
+ :root {
10
+ // --ard-autocomplete-input-height: ;
11
+ // --ard-autocomplete-input-height-compact: ;
12
+ --ard-autocomplete-input-gap: 0.625rem;
13
+ // --ard-autocomplete-input-font-size: ;
14
+ // --ard-autocomplete-input-font-size-compact: ;
15
+ --ard-autocomplete-input-line-height: 1.25;
16
+ --ard-autocomplete-input-line-height-compact: 1;
17
+ --ard-autocomplete-input-font-weight: 400;
18
+ // --ard-autocomplete-input-padding-top: ;
19
+ // --ard-autocomplete-input-padding-right: ;
20
+ // --ard-autocomplete-input-padding-bottom: ;
21
+ // --ard-autocomplete-input-padding-left: ;
22
+ // --ard-autocomplete-input-padding-top-compact: ;
23
+ // --ard-autocomplete-input-padding-right-compact: ;
24
+ // --ard-autocomplete-input-padding-bottom-compact: ;
25
+ // --ard-autocomplete-input-padding-left-compact: ;
26
+ // --ard-autocomplete-input-color: ;
27
+ // --ard-autocomplete-input-placeholder-color: ;
28
+ --ard-autocomplete-input-placeholder-opacity: 60%;
29
+
30
+ --ard-autocomplete-input-min-width: 10rem;
31
+ --ard-autocomplete-input-max-width: 100%;
32
+ --ard-autocomplete-input-autocomplete-opacity: 37.5%;
33
+ --ard-autocomplete-input-dropdown-padding: 0;
34
+ --ard-autocomplete-input-dropdown-max-height: 15rem;
35
+ --ard-autocomplete-input-dropdown-gap: 0;
36
+ --ard-autocomplete-input-option-padding: 0.375rem 0.625rem;
37
+ --ard-autocomplete-input-option-padding-compact: 0.25rem 0.5rem;
38
+ --ard-autocomplete-input-font-size: 1rem;
39
+ --ard-autocomplete-input-font-size-compact: 0.875rem;
40
+ // --ard-autocomplete-input-highlighted-background: ;
41
+ --ard-autocomplete-input-highlighted-font-weight: 400;
42
+ // --ard-autocomplete-input-selected-background: ;
43
+ --ard-autocomplete-input-selected-font-weight: 500;
44
+ --ard-autocomplete-input-disabled-opacity: 50%;
45
+ // --ard-autocomplete-input-readonly-cursor: ;
46
+ }
47
+
48
+ .ard-autocomplete-input {
49
+ @include inputMixin.genericInput(
50
+ var(--ard-autocomplete-input-height, var(--ard-form-field-height, 2.3125rem)),
51
+ var(--ard-autocomplete-input-height-compact, var(--ard-form-field-height-compact, 1.6875rem)),
52
+ var(--ard-autocomplete-input-gap, 0.625rem),
53
+ var(--ard-autocomplete-input-font-size, var(--ard-form-field-font-size, 1rem)),
54
+ var(--ard-autocomplete-input-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem)),
55
+ var(--ard-autocomplete-input-line-height, 1.25),
56
+ var(--ard-autocomplete-input-line-height-compact, 1),
57
+ var(--ard-autocomplete-input-font-weight, 400),
58
+ var(--ard-autocomplete-input-padding-top, var(--ard-form-field-padding-top, 0)),
59
+ var(--ard-autocomplete-input-padding-right, var(--ard-form-field-padding-right, 0.375rem)),
60
+ var(--ard-autocomplete-input-padding-bottom, var(--ard-form-field-padding-bottom, 0)),
61
+ var(--ard-autocomplete-input-padding-left, var(--ard-form-field-padding-left, 0.375rem)),
62
+ var(--ard-autocomplete-input-padding-top-compact, var(--ard-form-field-padding-top-compact, 0)),
63
+ var(--ard-autocomplete-input-padding-right-compact, var(--ard-form-field-padding-right-compact, 0.375rem)),
64
+ var(--ard-autocomplete-input-padding-bottom-compact, var(--ard-form-field-padding-bottom-compact, 0)),
65
+ var(--ard-autocomplete-input-padding-left-compact, var(--ard-form-field-padding-left-compact, 0.375rem)),
66
+ var(--ard-autocomplete-input-color, #{ARD.$text}),
67
+ var(--ard-autocomplete-input-placeholder-color, #{ARD.$text}),
68
+ var(--ard-autocomplete-input-placeholder-opacity, 60%),
69
+ var(--ard-autocomplete-input-readonly-cursor, var(--ard-readonly-cursor, default))
70
+ );
71
+ min-width: var(--ard-autocomplete-input-min-width, 10rem);
72
+ max-width: var(--ard-autocomplete-input-max-width, 100%);
73
+
74
+ @include CB.clearButton();
75
+
76
+ .ard-autocomplete {
77
+ display: flex;
78
+ align-items: center;
79
+ opacity: var(--ard-autocomplete-input-autocomplete-opacity, 37.5%);
80
+ }
81
+ }
82
+ //! suggestions
83
+ .ard-input-suggestions-panel {
84
+ padding: var(--ard-autocomplete-input-dropdown-padding, 0);
85
+ display: flex;
86
+ flex-direction: column;
87
+ gap: var(--ard-autocomplete-input-dropdown-gap, 0);
88
+ max-height: var(--ard-autocomplete-input-dropdown-max-height, 15rem);
89
+ overflow-y: auto;
90
+
91
+ .ard-option {
92
+ padding: var(--ard-autocomplete-input-option-padding, 0.375rem 0.625rem);
93
+ font-size: var(--ard-autocomplete-input-font-size, 1rem);
94
+ color: var(--ard-autocomplete-input-color, #{ARD.$text2});
95
+ cursor: pointer;
96
+
97
+ &.ard-option-highlighted {
98
+ background: var(--ard-autocomplete-input-highlighted-background, #{ARD.$darken-overlay-light});
99
+ font-weight: var(--ard-autocomplete-input-highlighted-font-weight, 400);
100
+ }
101
+
102
+ &.ard-option-selected {
103
+ background: var(--ard-autocomplete-input-selected-background, #{ARD.$darken-overlay-medium});
104
+ font-weight: var(--ard-autocomplete-input-selected-font-weight, 500);
105
+ }
106
+
107
+ &.ard-option-disabled {
108
+ pointer-events: none;
109
+ opacity: var(--ard-autocomplete-input-disabled-opacity, 50%);
110
+ }
111
+ }
112
+ .ard-compact {
113
+ .ard-option {
114
+ padding: var(--ard-autocomplete-input-option-padding-compact, 0.25rem 0.5rem);
115
+ font-size: var(--ard-autocomplete-input-font-size-compact, 0.875rem);
116
+ }
117
+ }
118
+ }
119
+ }