@ardium-ui/ui 5.0.0-alpha.7 → 5.0.0-alpha.71

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 (293) hide show
  1. package/fesm2022/ardium-ui-ui.mjs +4707 -2272
  2. package/fesm2022/ardium-ui-ui.mjs.map +1 -1
  3. package/lib/_internal/boolean-component.d.ts +13 -1
  4. package/lib/_internal/disablable-component.d.ts +2 -1
  5. package/lib/_internal/focusable-component.d.ts +2 -1
  6. package/lib/_internal/form-field-component.d.ts +3 -2
  7. package/lib/_internal/item-storages/dropdown-item-storage.d.ts +19 -19
  8. package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
  9. package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
  10. package/lib/_internal/ngmodel-component.d.ts +5 -8
  11. package/lib/_internal/selectable-list-component.d.ts +6 -6
  12. package/lib/_internal/utils/date.utils.d.ts +16 -0
  13. package/lib/badge/badge.directive.d.ts +3 -2
  14. package/lib/breakpoints/breakpoint.service.d.ts +12 -0
  15. package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
  16. package/lib/breakpoints/breakpoints.d.ts +13 -0
  17. package/lib/breakpoints/index.d.ts +2 -0
  18. package/lib/buttons/_button-base.d.ts +12 -8
  19. package/lib/buttons/_button-base.defaults.d.ts +3 -2
  20. package/lib/buttons/button/button.component.d.ts +5 -5
  21. package/lib/buttons/button/button.defaults.d.ts +0 -2
  22. package/lib/buttons/button/button.directive.d.ts +17 -0
  23. package/lib/buttons/button/button.module.d.ts +3 -2
  24. package/lib/buttons/button/index.d.ts +1 -0
  25. package/lib/buttons/fab/fab.component.d.ts +3 -1
  26. package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
  27. package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
  28. package/lib/calendar/abstract-calendar.d.ts +128 -0
  29. package/lib/calendar/calendar.component.d.ts +8 -96
  30. package/lib/calendar/calendar.defaults.d.ts +16 -1
  31. package/lib/calendar/calendar.internal-directives.d.ts +24 -8
  32. package/lib/calendar/calendar.internal-types.d.ts +1 -0
  33. package/lib/calendar/calendar.module.d.ts +4 -9
  34. package/lib/calendar/calendar.types.d.ts +21 -5
  35. package/lib/calendar/index.d.ts +3 -0
  36. package/lib/calendar/range-calendar.component.d.ts +16 -0
  37. package/lib/calendar/range-calendar.directives.d.ts +51 -0
  38. package/lib/calendar/range-calendar.module.d.ts +10 -0
  39. package/lib/calendar/views/calendar-views.module.d.ts +13 -0
  40. package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
  41. package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
  42. package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
  43. package/lib/calendar/views/years-view/years-view.component.d.ts +16 -3
  44. package/lib/checkbox/checkbox.component.d.ts +5 -2
  45. package/lib/checkbox/checkbox.types.d.ts +2 -0
  46. package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
  47. package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
  48. package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
  49. package/lib/chip/chip.component.d.ts +2 -1
  50. package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
  51. package/lib/chip/selectable-chip/selectable-chip.component.d.ts +5 -2
  52. package/lib/dialog/dialog.component.d.ts +13 -8
  53. package/lib/dialog/dialog.types.d.ts +1 -0
  54. package/lib/divider/divider.component.d.ts +2 -3
  55. package/lib/divider/divider.defaults.d.ts +5 -0
  56. package/lib/divider/divider.directive.d.ts +18 -0
  57. package/lib/divider/divider.module.d.ts +3 -2
  58. package/lib/divider/divider.types.d.ts +5 -0
  59. package/lib/divider/index.d.ts +2 -0
  60. package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
  61. package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -1
  62. package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
  63. package/lib/file-inputs/file-input-base.d.ts +4 -5
  64. package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
  65. package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
  66. package/lib/form-field/error/error.directive.d.ts +3 -2
  67. package/lib/form-field/form-field-base.d.ts +5 -2
  68. package/lib/form-field/form-field-child.token.d.ts +5 -5
  69. package/lib/form-field/form-field-native-inputs.d.ts +6 -11
  70. package/lib/form-field/form-field.component.d.ts +1 -1
  71. package/lib/form-field/form-field.defaults.d.ts +1 -0
  72. package/lib/form-field/form-field.module.d.ts +5 -4
  73. package/lib/form-field/hint/hint.directive.d.ts +3 -2
  74. package/lib/form-field/hint-error/hint-error.directive.d.ts +3 -2
  75. package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
  76. package/lib/form-field/index.d.ts +4 -0
  77. package/lib/form-field/label/label.component.d.ts +3 -2
  78. package/lib/form-field-frame/form-field-frame.component.d.ts +5 -3
  79. package/lib/grid/grid.component.d.ts +51 -0
  80. package/lib/grid/grid.defaults.d.ts +16 -0
  81. package/lib/grid/grid.module.d.ts +7 -0
  82. package/lib/grid/grid.types.d.ts +38 -0
  83. package/lib/grid/grid.utils.d.ts +11 -0
  84. package/lib/grid/index.d.ts +4 -0
  85. package/lib/icon/icon.component.d.ts +2 -1
  86. package/lib/inputs/_simple-input-base.d.ts +6 -3
  87. package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
  88. package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
  89. package/lib/inputs/date-input/date-input.component.d.ts +19 -81
  90. package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
  91. package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
  92. package/lib/inputs/date-input/date-input.module.d.ts +5 -4
  93. package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
  94. package/lib/inputs/date-input/date-input.types.d.ts +5 -4
  95. package/lib/inputs/date-input/date-range-input.component.d.ts +30 -0
  96. package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
  97. package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
  98. package/lib/inputs/date-input/index.d.ts +7 -1
  99. package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +45 -0
  100. package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
  101. package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
  102. package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
  103. package/lib/inputs/hex-input/hex-input.component.d.ts +4 -3
  104. package/lib/inputs/input-utils.d.ts +13 -2
  105. package/lib/inputs/number-input/number-input.component.d.ts +20 -12
  106. package/lib/inputs/number-input/number-input.defaults.d.ts +6 -0
  107. package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
  108. package/lib/inputs/number-input/number-input.module.d.ts +1 -1
  109. package/lib/inputs/number-input/number-input.types.d.ts +6 -0
  110. package/lib/inputs/password-input/password-input.component.d.ts +5 -3
  111. package/lib/kbd/kbd.component.d.ts +2 -1
  112. package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
  113. package/lib/modal/modal.component.d.ts +9 -6
  114. package/lib/modal/modal.defaults.d.ts +2 -0
  115. package/lib/option/option.component.d.ts +2 -1
  116. package/lib/progress-bar/progress-bar.component.d.ts +4 -3
  117. package/lib/progress-circle/progress-circle.component.d.ts +5 -4
  118. package/lib/search-functions.d.ts +1 -1
  119. package/lib/segment/segment.component.d.ts +6 -5
  120. package/lib/select/select.component.d.ts +40 -30
  121. package/lib/select/select.defaults.d.ts +10 -2
  122. package/lib/select/select.directive.d.ts +6 -0
  123. package/lib/select/select.module.d.ts +1 -1
  124. package/lib/select/select.types.d.ts +6 -2
  125. package/lib/select/select.utils.d.ts +2 -0
  126. package/lib/slide-toggle/slide-toggle.component.d.ts +2 -0
  127. package/lib/slider/abstract-slider.d.ts +35 -29
  128. package/lib/slider/index.d.ts +1 -0
  129. package/lib/slider/range-slider/range-slider.component.d.ts +13 -10
  130. package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
  131. package/lib/slider/slider.component.d.ts +5 -4
  132. package/lib/slider/slider.types.d.ts +3 -3
  133. package/lib/star/rating-display/rating-display.component.d.ts +2 -1
  134. package/lib/star/rating-input/rating-input.component.d.ts +5 -3
  135. package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
  136. package/lib/star/star-button/star-button.component.d.ts +4 -1
  137. package/lib/star/star-button/star-button.types.d.ts +1 -0
  138. package/lib/tabber/index.d.ts +2 -1
  139. package/lib/tabber/tab/tab.component.d.ts +16 -8
  140. package/lib/tabber/tabber.component.d.ts +25 -9
  141. package/lib/tabber/tabber.defaults.d.ts +2 -0
  142. package/lib/tabber/tabber.directives.d.ts +9 -0
  143. package/lib/tabber/tabber.module.d.ts +3 -2
  144. package/lib/tabber/tabber.types.d.ts +5 -0
  145. package/lib/table/table.component.d.ts +16 -15
  146. package/lib/table-pagination/table-pagination.component.d.ts +4 -3
  147. package/lib/text-list/text-list.component.d.ts +2 -1
  148. package/lib/types/alignment.types.d.ts +7 -1
  149. package/lib/types/item-storage.types.d.ts +17 -18
  150. package/package.json +3 -2
  151. package/prebuilt-themes/default/badge.css +37 -15
  152. package/prebuilt-themes/default/badge.css.map +1 -1
  153. package/prebuilt-themes/default/buttons/button.css +74 -58
  154. package/prebuilt-themes/default/buttons/button.css.map +1 -1
  155. package/prebuilt-themes/default/buttons/fab.css +64 -51
  156. package/prebuilt-themes/default/buttons/fab.css.map +1 -1
  157. package/prebuilt-themes/default/buttons/icon-button.css +50 -44
  158. package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
  159. package/prebuilt-themes/default/calendar.css +131 -55
  160. package/prebuilt-themes/default/calendar.css.map +1 -1
  161. package/prebuilt-themes/default/card.css +56 -24
  162. package/prebuilt-themes/default/card.css.map +1 -1
  163. package/prebuilt-themes/default/checkbox-list.css +48 -22
  164. package/prebuilt-themes/default/checkbox-list.css.map +1 -1
  165. package/prebuilt-themes/default/checkbox.css +31 -58
  166. package/prebuilt-themes/default/checkbox.css.map +1 -1
  167. package/prebuilt-themes/default/chips.css +75 -43
  168. package/prebuilt-themes/default/chips.css.map +1 -1
  169. package/prebuilt-themes/default/color-display.css +15 -8
  170. package/prebuilt-themes/default/color-display.css.map +1 -1
  171. package/prebuilt-themes/default/core.css +21 -1
  172. package/prebuilt-themes/default/core.css.map +1 -1
  173. package/prebuilt-themes/default/dialog.css +7 -2
  174. package/prebuilt-themes/default/dialog.css.map +1 -1
  175. package/prebuilt-themes/default/divider.css +82 -6
  176. package/prebuilt-themes/default/divider.css.map +1 -1
  177. package/prebuilt-themes/default/dropdown-panel.css +16 -8
  178. package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
  179. package/prebuilt-themes/default/file-drop-area.css +81 -35
  180. package/prebuilt-themes/default/file-drop-area.css.map +1 -1
  181. package/prebuilt-themes/default/form-field-frame.css +18 -14
  182. package/prebuilt-themes/default/form-field-frame.css.map +1 -1
  183. package/prebuilt-themes/default/form-field.css +62 -29
  184. package/prebuilt-themes/default/form-field.css.map +1 -1
  185. package/prebuilt-themes/default/inputs/autocomplete-input.css +79 -28
  186. package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
  187. package/prebuilt-themes/default/inputs/color-input.css +5 -44
  188. package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
  189. package/prebuilt-themes/default/inputs/date-input.css +97 -25
  190. package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
  191. package/prebuilt-themes/default/inputs/digit-input.css +31 -19
  192. package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
  193. package/prebuilt-themes/default/inputs/file-input.css +117 -62
  194. package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
  195. package/prebuilt-themes/default/inputs/hex-input.css +55 -23
  196. package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
  197. package/prebuilt-themes/default/inputs/input.css +47 -18
  198. package/prebuilt-themes/default/inputs/input.css.map +1 -1
  199. package/prebuilt-themes/default/inputs/number-input.css +83 -33
  200. package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
  201. package/prebuilt-themes/default/inputs/password-input.css +74 -25
  202. package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
  203. package/prebuilt-themes/default/kbd-shortcut.css +8 -4
  204. package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
  205. package/prebuilt-themes/default/kbd.css +19 -9
  206. package/prebuilt-themes/default/kbd.css.map +1 -1
  207. package/prebuilt-themes/default/modal.css +46 -22
  208. package/prebuilt-themes/default/modal.css.map +1 -1
  209. package/prebuilt-themes/default/progress-circle.css +13 -7
  210. package/prebuilt-themes/default/progress-circle.css.map +1 -1
  211. package/prebuilt-themes/default/radio.css +46 -28
  212. package/prebuilt-themes/default/radio.css.map +1 -1
  213. package/prebuilt-themes/default/segment.css +71 -61
  214. package/prebuilt-themes/default/segment.css.map +1 -1
  215. package/prebuilt-themes/default/select.css +78 -44
  216. package/prebuilt-themes/default/select.css.map +1 -1
  217. package/prebuilt-themes/default/slide-toggle.css +88 -37
  218. package/prebuilt-themes/default/slide-toggle.css.map +1 -1
  219. package/prebuilt-themes/default/slider.css +93 -52
  220. package/prebuilt-themes/default/slider.css.map +1 -1
  221. package/prebuilt-themes/default/snackbar.css +29 -16
  222. package/prebuilt-themes/default/snackbar.css.map +1 -1
  223. package/prebuilt-themes/default/spinner.css +9 -3
  224. package/prebuilt-themes/default/spinner.css.map +1 -1
  225. package/prebuilt-themes/default/stars.css +42 -20
  226. package/prebuilt-themes/default/stars.css.map +1 -1
  227. package/prebuilt-themes/default/tabber.css +53 -17
  228. package/prebuilt-themes/default/tabber.css.map +1 -1
  229. package/prebuilt-themes/default/table-pagination.css +21 -9
  230. package/prebuilt-themes/default/table-pagination.css.map +1 -1
  231. package/prebuilt-themes/default/table.css +93 -69
  232. package/prebuilt-themes/default/table.css.map +1 -1
  233. package/public-api.d.ts +2 -1
  234. package/themes/_variables.scss +2 -1
  235. package/themes/default/_mixins.scss +5 -5
  236. package/themes/default/badge.scss +48 -15
  237. package/themes/default/buttons/_button-mixins.scss +43 -33
  238. package/themes/default/buttons/button.scss +54 -29
  239. package/themes/default/buttons/fab.scss +47 -26
  240. package/themes/default/buttons/icon-button.scss +40 -17
  241. package/themes/default/calendar.scss +148 -58
  242. package/themes/default/card.scss +68 -24
  243. package/themes/default/checkbox-list.scss +47 -21
  244. package/themes/default/checkbox.scss +30 -59
  245. package/themes/default/chips.scss +71 -40
  246. package/themes/default/color-display.scss +18 -8
  247. package/themes/default/core.scss +24 -1
  248. package/themes/default/dialog.scss +9 -2
  249. package/themes/default/divider.scss +106 -6
  250. package/themes/default/dropdown-panel.scss +21 -8
  251. package/themes/default/file-drop-area.scss +92 -35
  252. package/themes/default/form-field-frame.scss +23 -15
  253. package/themes/default/form-field.scss +64 -28
  254. package/themes/default/inputs/_shared.scss +52 -12
  255. package/themes/default/inputs/autocomplete-input.scss +83 -14
  256. package/themes/default/inputs/color-input.scss +2 -2
  257. package/themes/default/inputs/date-input.scss +74 -6
  258. package/themes/default/inputs/digit-input.scss +42 -20
  259. package/themes/default/inputs/file-input.scss +100 -23
  260. package/themes/default/inputs/hex-input.scss +59 -9
  261. package/themes/default/inputs/input.scss +51 -4
  262. package/themes/default/inputs/number-input.scss +94 -24
  263. package/themes/default/inputs/password-input.scss +84 -15
  264. package/themes/default/kbd-shortcut.scss +10 -4
  265. package/themes/default/kbd.scss +26 -9
  266. package/themes/default/modal.scss +56 -22
  267. package/themes/default/progress-circle.scss +16 -10
  268. package/themes/default/radio.scss +47 -26
  269. package/themes/default/segment.scss +77 -67
  270. package/themes/default/select.scss +98 -42
  271. package/themes/default/slide-toggle.scss +134 -59
  272. package/themes/default/slider.scss +102 -65
  273. package/themes/default/snackbar.scss +32 -14
  274. package/themes/default/spinner.scss +11 -3
  275. package/themes/default/stars.scss +45 -16
  276. package/themes/default/tabber.scss +54 -14
  277. package/themes/default/table-pagination.scss +24 -9
  278. package/themes/default/table.scss +104 -70
  279. package/lib/statebox/index.d.ts +0 -4
  280. package/lib/statebox/statebox.component.d.ts +0 -26
  281. package/lib/statebox/statebox.defaults.d.ts +0 -10
  282. package/lib/statebox/statebox.module.d.ts +0 -8
  283. package/lib/statebox/statebox.types.d.ts +0 -26
  284. package/lib/tabber/tab/tab.defaults.d.ts +0 -6
  285. package/prebuilt-themes/default/calendar-OLD.css +0 -294
  286. package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
  287. package/prebuilt-themes/default/inputs/search-bar.css +0 -118
  288. package/prebuilt-themes/default/inputs/search-bar.css.map +0 -1
  289. package/prebuilt-themes/default/statebox.css +0 -235
  290. package/prebuilt-themes/default/statebox.css.map +0 -1
  291. package/themes/default/calendar-OLD.scss +0 -183
  292. package/themes/default/inputs/search-bar.scss +0 -19
  293. package/themes/default/statebox.scss +0 -109
@@ -1,27 +1,42 @@
1
+
2
+ // the variables are commented out intentionally
3
+ // read more in docs/dev/css-variables.md
4
+ :root {
5
+ --ard-table-pagination-height: 2.9375rem;
6
+ --ard-table-pagination-gap: 2rem;
7
+ --ard-table-pagination-padding: 0 0.5rem 0 1rem;
8
+ --ard-table-pagination-items-per-page-gap: 0.5rem;
9
+ --ard-table-pagination-current-page-gap: 1.25rem;
10
+ --ard-table-pagination-height-compact: 2.1875rem;
11
+ --ard-table-pagination-font-size-compact: 0.875rem;
12
+ --ard-table-pagination-select-padding-left: 0.875em;
13
+ --ard-table-pagination-disabled-text-opacity: 50%;
14
+ }
15
+
1
16
  .ard-pagination {
2
- height: 2.9375rem;
17
+ height: var(--ard-table-pagination-height, 2.9375rem);
3
18
  width: 100%;
4
19
  display: flex;
5
20
  align-items: center;
6
- gap: 2rem;
7
- padding: 0 0.5rem 0 1rem;
21
+ gap: var(--ard-table-pagination-gap, 2rem);
22
+ padding: var(--ard-table-pagination-padding, 0 0.5rem 0 1rem);
8
23
  box-sizing: border-box;
9
24
 
10
25
  .ard-pagination__items-per-page {
11
26
  display: flex;
12
27
  align-items: center;
13
- gap: 0.5rem;
28
+ gap: var(--ard-table-pagination-items-per-page-gap, 0.5rem);
14
29
  }
15
30
  .ard-pagination__current-page {
16
31
  display: flex;
17
32
  align-items: center;
18
- gap: 1.25rem;
33
+ gap: var(--ard-table-pagination-current-page-gap, 1.25rem);
19
34
  }
20
35
 
21
36
  //! compact
22
37
  &.ard-compact {
23
- height: 2.1875rem;
24
- font-size: 0.875rem;
38
+ height: var(--ard-table-pagination-height-compact, 2.1875rem);
39
+ font-size: var(--ard-table-pagination-font-size-compact, 0.875rem);
25
40
  }
26
41
 
27
42
  //! aligns
@@ -40,7 +55,7 @@
40
55
 
41
56
  //! style overrides
42
57
  .ard-select {
43
- padding-left: 0.875em;
58
+ padding-left: var(--ard-table-pagination-select-padding-left, 0.875em);
44
59
  }
45
60
  }
46
61
 
@@ -50,7 +65,7 @@
50
65
  user-select: none;
51
66
 
52
67
  .ard-pagination__text {
53
- opacity: 50%;
68
+ opacity: var(--ard-table-pagination-disabled-text-opacity, 50%);
54
69
  }
55
70
  }
56
71
  }
@@ -1,13 +1,48 @@
1
1
  @use './coloring' as CM;
2
2
  @use '../variables' as ARD;
3
3
 
4
+ // the variables are commented out intentionally
5
+ // read more in docs/dev/css-variables.md
6
+ :root {
7
+ // --ard-table-background: ;
8
+ // --ard-table-border-width: ;
9
+ // --ard-table-border-style: ;
10
+ // --ard-table-border-color: ;
11
+ --ard-table-cell-padding: 0 0.75rem;
12
+ --ard-table-header-gap: 0.75rem;
13
+ --ard-table-header-cell-height: 3.375rem;
14
+ --ard-table-header-cell-font-weight: 500;
15
+ --ard-table-header-cell-letter-spacing: 0.25px;
16
+ --ard-table-body-cell-height: 3rem;
17
+ // --ard-table-zebra-background: ;
18
+ --ard-table-disabled-row-opacity: 50%;
19
+ --ard-table-bold-row-font-weight: 600;
20
+ --ard-table-sticky-header-top: 0;
21
+ --ard-table-sticky-header-z-index: 2;
22
+ --ard-table-caption-height: 3.125rem;
23
+ // --ard-table-caption-color: ;
24
+ // --ard-table-caption-background: ;
25
+ // --ard-table-caption-border-color: ;
26
+ --ard-table-progress-bar-height: 0.1875rem;
27
+ --ard-table-progress-bar-z-index: 1;
28
+ --ard-table-sort-gap: 0.375rem;
29
+ --ard-table-sort-border-radius: 0.25rem;
30
+ --ard-table-sort-outline-offset: 0.25rem;
31
+ --ard-table-sort-outline-width: 2px;
32
+ --ard-table-sort-outline-color: black;
33
+ --ard-table-sort-icon-size: 1rem;
34
+ --ard-table-sort-icon-weight: 900;
35
+ --ard-table-border-radius: 0.5rem;
36
+ }
37
+
4
38
  .ard-table {
5
39
  @include CM.typeColors();
6
40
  border-collapse: collapse;
7
- background: ARD.$bg;
41
+ background: var(--ard-table-background, #{ARD.$bg});
8
42
 
9
43
  .ard-table__body {
10
- border: 1px solid ARD.$detail-ultralight;
44
+ border: var(--ard-table-border-width, 1px) var(--ard-table-border-style, solid)
45
+ var(--ard-table-border-color, #{ARD.$detail-ultralight});
11
46
  }
12
47
  .ard-table__header-cell,
13
48
  .ard-table__body-cell {
@@ -16,14 +51,14 @@
16
51
  > .ard-table__cell-container {
17
52
  height: max-content;
18
53
  max-height: 100%;
19
- padding: 0 0.75rem;
54
+ padding: var(--ard-table-cell-padding, 0 0.75rem);
20
55
  box-sizing: border-box;
21
- font-size: 0.875rem;
56
+ font-size: var(--ard-form-field-font-size, 0.875rem);
22
57
 
23
58
  .ard-table__header-template-container {
24
59
  display: flex;
25
60
  align-items: center;
26
- gap: 0.75rem;
61
+ gap: var(--ard-table-header-gap, 0.75rem);
27
62
 
28
63
  .ard-table__header-content-container {
29
64
  overflow-x: hidden;
@@ -34,12 +69,12 @@
34
69
  }
35
70
  }
36
71
  .ard-table__header-cell {
37
- height: 3.375rem;
38
- font-weight: 500;
39
- letter-spacing: 0.25px;
72
+ height: var(--ard-table-header-cell-height, 3.375rem);
73
+ font-weight: var(--ard-table-header-cell-font-weight, 500);
74
+ letter-spacing: var(--ard-table-header-cell-letter-spacing, 0.25px);
40
75
  }
41
76
  .ard-table__body-cell {
42
- height: 3rem;
77
+ height: var(--ard-table-body-cell-height, 3rem);
43
78
  transition: background-color 0.15s ease;
44
79
 
45
80
  .ard-table__cell-container {
@@ -50,21 +85,21 @@
50
85
  }
51
86
  .ard-table__checkbox-cell {
52
87
  > .ard-table__cell-container {
53
- width: 3rem;
54
- height: 3rem;
88
+ width: var(--ard-table-body-cell-height, 3rem);
89
+ height: var(--ard-table-body-cell-height, 3rem);
55
90
  display: flex;
56
91
  justify-content: center;
57
92
  align-items: center;
58
93
  }
59
94
  }
60
95
  .ard-table__body-row .ard-table__body-cell {
61
- border-bottom: 1px solid ARD.$detail-ultralight;
96
+ border-bottom: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
62
97
  }
63
98
 
64
99
  //! empty rows
65
100
  .ard-table__empty-row {
66
101
  .ard-table__empty-cell {
67
- height: 3rem;
102
+ height: var(--ard-table-body-cell-height, 3rem);
68
103
  }
69
104
  &:not(:last-of-type) .ard-table__empty-cell {
70
105
  border-bottom: 1px solid transparent;
@@ -78,24 +113,24 @@
78
113
  pointer-events: none;
79
114
  }
80
115
  .ard-table__body {
81
- opacity: 40%;
116
+ opacity: var(--ard-table-loading-opacity, 40%);
82
117
  }
83
118
  .ard-table__header .ard-table__checkbox-cell {
84
- opacity: 40%;
119
+ opacity: var(--ard-table-loading-opacity, 40%);
85
120
  }
86
121
  }
87
122
  .ard-table__progress-bar-row {
88
- background-color: ARD.$bg;
89
- border-left: 1px solid ARD.$detail-ultralight;
90
- border-right: 1px solid ARD.$detail-ultralight;
91
- border-bottom: 1px solid ARD.$bg;
123
+ background-color: var(--ard-table-background, #{ARD.$bg});
124
+ border-left: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
125
+ border-right: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
126
+ border-bottom: 1px solid var(--ard-table-background, #{ARD.$bg});
92
127
 
93
128
  .ard-table__progress-bar-cell {
94
- height: 0.1875rem;
129
+ height: var(--ard-table-progress-bar-height, 0.1875rem);
95
130
 
96
131
  ard-progress-bar {
97
132
  position: relative;
98
- z-index: 1;
133
+ z-index: var(--ard-table-progress-bar-z-index, 1);
99
134
  margin: -1px;
100
135
 
101
136
  & > .ard-progress-bar {
@@ -115,21 +150,21 @@
115
150
  font: inherit;
116
151
  width: 100%;
117
152
  display: flex;
118
- gap: 0.375rem;
153
+ gap: var(--ard-table-sort-gap, 0.375rem);
119
154
  cursor: pointer;
120
- border-radius: 0.25rem;
121
- outline-offset: 0.25rem;
155
+ border-radius: var(--ard-table-sort-border-radius, 0.25rem);
156
+ outline-offset: var(--ard-table-sort-outline-offset, 0.25rem);
122
157
 
123
158
  &:focus-visible {
124
- outline: 2px solid black;
159
+ outline: var(--ard-table-sort-outline-width, 2px) solid var(--ard-table-sort-outline-color, black);
125
160
  }
126
161
  .ard-table__header-sort-icon {
127
- height: 1rem;
162
+ height: var(--ard-table-sort-icon-size, 1rem);
128
163
  overflow: hidden;
129
164
  }
130
165
  ard-icon {
131
- font-size: 1rem;
132
- font-weight: 900;
166
+ font-size: var(--ard-table-sort-icon-size, 1rem);
167
+ font-weight: var(--ard-table-sort-icon-weight, 900);
133
168
  }
134
169
  }
135
170
  }
@@ -138,13 +173,13 @@
138
173
  //! caption
139
174
  .ard-table__caption {
140
175
  caption-side: bottom;
141
- height: 3.125rem;
176
+ height: var(--ard-table-caption-height, 3.125rem);
142
177
  box-sizing: border-box;
143
- color: ARD.$detail;
144
- background: ARD.$bg;
145
- border: 1px solid ARD.$detail-ultralight;
178
+ color: var(--ard-table-caption-color, #{ARD.$detail});
179
+ background: var(--ard-table-caption-background, #{ARD.$bg});
180
+ border: 1px solid var(--ard-table-caption-border-color, #{ARD.$detail-ultralight});
146
181
  border-top: none;
147
- padding: 0 0.75rem;
182
+ padding: var(--ard-table-caption-padding, 0 0.75rem);
148
183
 
149
184
  .ard-table__caption-container {
150
185
  display: flex;
@@ -156,14 +191,14 @@
156
191
  //! footer
157
192
  .ard-table__foot {
158
193
  .ard-table__pagination-cell {
159
- border: 1px solid ARD.$detail-ultralight;
194
+ border: 1px solid var(--ard-table-footer-border-color, #{ARD.$detail-ultralight});
160
195
  }
161
196
  }
162
197
 
163
198
  //! color
164
199
  --ard-_table-header-border: var(--ard-cmpcl--border);
165
200
  --ard-_table-header-border-light: var(--ard-cmpcl--border-light);
166
- --ard-_table-border: ARD.$border;
201
+ --ard-_table-border: var(--ard-table-border-color-strong, #{ARD.$border});
167
202
  --ard-_table-header-background: var(--ard-cmpcl--bg);
168
203
  --ard-_table-header-background-light: var(--ard-cmpcl--bg-header);
169
204
  --ard-_table-header-color: var(--ard-cmpcl--content);
@@ -174,7 +209,7 @@
174
209
  //! appearances
175
210
  &.ard-appearance-strong {
176
211
  .ard-table__header {
177
- border-bottom: 1px solid ARD.$detail-ultralight;
212
+ border-bottom: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
178
213
  background-color: var(--ard-_table-header-background);
179
214
  }
180
215
  .ard-table__header-cell {
@@ -196,14 +231,14 @@
196
231
  }
197
232
  &.ard-appearance-colorless {
198
233
  .ard-table__header-cell {
199
- color: ARD.$text;
234
+ color: var(--ard-table-header-color, #{ARD.$text});
200
235
  }
201
236
  .ard-table__header {
202
- border: 1px solid ARD.$detail-ultralight;
203
- background-color: ARD.$bg;
237
+ border: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
238
+ background-color: var(--ard-table-background, #{ARD.$bg});
204
239
  }
205
240
  .ard-table__header-row .ard-table__header-cell {
206
- border-bottom: 1px solid ARD.$detail-ultralight;
241
+ border-bottom: 1px solid var(--ard-table-border-color, #{ARD.$detail-ultralight});
207
242
  }
208
243
  }
209
244
  //! variants
@@ -211,41 +246,40 @@
211
246
  .ard-table,
212
247
  .ard-table__header,
213
248
  .ard-table__body {
214
- border-radius: 8px;
249
+ border-radius: var(--ard-table-border-radius, 8px);
215
250
  }
216
251
  .ard-table__header-row:first-child {
217
- border-top-left-radius: 8px;
218
- border-top-right-radius: 8px;
219
-
252
+ border-top-left-radius: var(--ard-table-border-radius, 8px);
253
+ border-top-right-radius: var(--ard-table-border-radius, 8px);
220
254
  .ard-table__header-cell:first-child {
221
- border-top-left-radius: 8px;
255
+ border-top-left-radius: var(--ard-table-border-radius, 8px);
222
256
  }
223
257
  }
224
258
  .ard-table__header-row:first-child .ard-table__header-cell:last-child {
225
- border-top-right-radius: 8px;
259
+ border-top-right-radius: var(--ard-table-border-radius, 8px);
226
260
  }
227
261
  .ard-table__body-row:last-child .ard-table__body-cell:first-child {
228
- border-bottom-left-radius: 8px;
262
+ border-bottom-left-radius: var(--ard-table-border-radius, 8px);
229
263
  }
230
264
  .ard-table__body-row:last-child .ard-table__body-cell:last-child {
231
- border-bottom-right-radius: 8px;
265
+ border-bottom-right-radius: var(--ard-table-border-radius, 8px);
232
266
  }
233
267
  .ard-table__foot {
234
- border-bottom-left-radius: 8px;
235
- border-bottom-right-radius: 8px;
268
+ border-bottom-left-radius: var(--ard-table-border-radius, 8px);
269
+ border-bottom-right-radius: var(--ard-table-border-radius, 8px);
236
270
  .ard-table__foot-row {
237
- border-bottom-left-radius: 8px;
238
- border-bottom-right-radius: 8px;
271
+ border-bottom-left-radius: var(--ard-table-border-radius, 8px);
272
+ border-bottom-right-radius: var(--ard-table-border-radius, 8px);
239
273
 
240
274
  .ard-table__pagination-cell {
241
- border-bottom-left-radius: 8px;
242
- border-bottom-right-radius: 8px;
275
+ border-bottom-left-radius: var(--ard-table-border-radius, 8px);
276
+ border-bottom-right-radius: var(--ard-table-border-radius, 8px);
243
277
  }
244
278
  }
245
279
  }
246
280
  .ard-table__caption {
247
- border-bottom-left-radius: 8px;
248
- border-bottom-right-radius: 8px;
281
+ border-bottom-left-radius: var(--ard-table-border-radius, 8px);
282
+ border-bottom-right-radius: var(--ard-table-border-radius, 8px);
249
283
 
250
284
  + .ard-table__body {
251
285
  * {
@@ -265,35 +299,35 @@
265
299
  .ard-table__header-cell,
266
300
  .ard-table__body-cell {
267
301
  > .ard-table__cell-container {
268
- padding: 0 0.625rem;
269
- font-size: 0.875rem;
302
+ padding: var(--ard-table-cell-padding-compact, 0 0.625rem);
303
+ font-size: var(--ard-table-font-size-compact, 0.875rem);
270
304
  }
271
305
  }
272
306
  .ard-table__header-cell {
273
- height: 2.625rem;
307
+ height: var(--ard-table-header-cell-height-compact, 2.625rem);
274
308
 
275
309
  > .ard-table__cell-container {
276
310
  letter-spacing: 0.18px;
277
311
  }
278
312
  }
279
313
  .ard-table__body-cell {
280
- height: 2.25rem;
314
+ height: var(--ard-table-body-cell-height-compact, 2.25rem);
281
315
  }
282
316
  .ard-table__checkbox-cell {
283
317
  > .ard-table__cell-container {
284
- width: 2.25rem;
285
- height: 2.25rem;
318
+ width: var(--ard-table-checkbox-cell-width-compact, 2.25rem);
319
+ height: var(--ard-table-checkbox-cell-height-compact, 2.25rem);
286
320
  }
287
321
  }
288
322
  .ard-table__caption {
289
- height: 2.25rem;
323
+ height: var(--ard-table-caption-height-compact, 2.25rem);
290
324
  }
291
325
  }
292
326
 
293
327
  //! zebra
294
328
  &.ard-zebra-table {
295
329
  .ard-table__body-row:nth-of-type(2n-1) {
296
- background: ARD.$darken-overlay-ultralight;
330
+ background: var(--ard-table-zebra-background, #{ARD.$darken-overlay-ultralight});
297
331
  }
298
332
  }
299
333
 
@@ -313,21 +347,21 @@
313
347
  //! disabled
314
348
  .ard-table__disabled-row {
315
349
  pointer-events: none;
316
- opacity: 50%;
350
+ opacity: var(--ard-table-disabled-row-opacity, 50%);
317
351
  user-select: none;
318
352
  }
319
353
 
320
354
  //! bold
321
355
  .ard-table__bold-row {
322
- font-weight: 600;
356
+ font-weight: var(--ard-table-bold-row-font-weight, 700);
323
357
  }
324
358
 
325
359
  //! sticky header
326
360
  &.ard-sticky-header {
327
361
  .ard-table__header {
328
362
  position: sticky;
329
- top: 0;
330
- z-index: 2;
363
+ top: var(--ard-table-sticky-header-top, 0);
364
+ z-index: var(--ard-table-sticky-header-z-index, 2);
331
365
  }
332
366
  }
333
367
 
@@ -364,7 +398,7 @@
364
398
  &.ard-header-align-center-center,
365
399
  &.ard-header-align-center-right {
366
400
  .ard-table__header-cell {
367
- vertical-align: middle;
401
+ vertical-align: center;
368
402
  }
369
403
  }
370
404
  &.ard-header-align-bottom-left,
@@ -410,7 +444,7 @@
410
444
  &.ard-align-center-center,
411
445
  &.ard-align-center-right {
412
446
  .ard-table__body-cell {
413
- vertical-align: middle;
447
+ vertical-align: center;
414
448
  }
415
449
  }
416
450
  &.ard-align-bottom-left,
@@ -1,4 +0,0 @@
1
- export * from './statebox.component';
2
- export * from './statebox.defaults';
3
- export * from './statebox.module';
4
- export { StateboxState, StateboxValue } from './statebox.types';
@@ -1,26 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { _NgModelComponentBase } from './../_internal/ngmodel-component';
3
- import { ClickStrategy } from './../types/utility.types';
4
- import { ArdStateboxDefaults } from './statebox.defaults';
5
- import { StateboxState, StateboxValue, _StateboxInternalState } from './statebox.types';
6
- import * as i0 from "@angular/core";
7
- export declare class ArdiumStateboxComponent extends _NgModelComponentBase implements ControlValueAccessor {
8
- protected readonly _DEFAULTS: ArdStateboxDefaults;
9
- constructor(defaults: ArdStateboxDefaults);
10
- readonly states: import("@angular/core").InputSignal<StateboxState[]>;
11
- readonly _states: import("@angular/core").Signal<_StateboxInternalState[]>;
12
- readonly _defaultState: import("@angular/core").Signal<_StateboxInternalState>;
13
- readonly clickStrategy: import("@angular/core").InputSignal<ClickStrategy>;
14
- readonly wrapperClasses: import("@angular/core").InputSignal<string>;
15
- readonly ngClasses: import("@angular/core").Signal<string>;
16
- readonly state: import("@angular/core").ModelSignal<StateboxValue>;
17
- private readonly _stateIndex;
18
- readonly internalState: import("@angular/core").Signal<_StateboxInternalState>;
19
- writeValue(v: StateboxValue): void;
20
- private _stateMapFn;
21
- onClick(): void;
22
- protected _emitChange(): void;
23
- readonly ngStyle: import("@angular/core").Signal<Record<string, any>>;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumStateboxComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ArdiumStateboxComponent, "ard-statebox", never, { "states": { "alias": "states"; "required": false; "isSignal": true; }; "clickStrategy": { "alias": "clickStrategy"; "required": false; "isSignal": true; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, false, never>;
26
- }
@@ -1,10 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { _NgModelComponentDefaults } from '../_internal/ngmodel-component';
3
- import { ClickStrategy } from './../types/utility.types';
4
- import { StateboxState } from './statebox.types';
5
- export interface ArdStateboxDefaults extends _NgModelComponentDefaults {
6
- clickStrategy: ClickStrategy;
7
- states: StateboxState[];
8
- }
9
- export declare const ARD_STATEBOX_DEFAULTS: InjectionToken<ArdStateboxDefaults>;
10
- export declare function provideStateboxDefaults(config: Partial<ArdStateboxDefaults>): Provider;
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./statebox.component";
3
- import * as i2 from "@angular/common";
4
- export declare class ArdiumStateboxModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ArdiumStateboxModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<ArdiumStateboxModule, [typeof i1.ArdiumStateboxComponent], [typeof i2.CommonModule], [typeof i1.ArdiumStateboxComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<ArdiumStateboxModule>;
8
- }
@@ -1,26 +0,0 @@
1
- import { ComponentColor } from '../types/colors.types';
2
- export type StateboxValue = string | boolean | number | null | undefined;
3
- export interface StateboxState {
4
- value: StateboxValue;
5
- icon?: string;
6
- character?: string;
7
- color?: ComponentColor;
8
- customColor?: string;
9
- colorOnCustom?: string;
10
- filled?: boolean;
11
- keepFrame?: boolean;
12
- }
13
- export interface _StateboxInternalState {
14
- value: StateboxValue;
15
- display: string;
16
- displayAsIcon: boolean;
17
- color: string;
18
- useCustomColor: boolean;
19
- colorOnCustom?: string;
20
- filled: boolean;
21
- keepFrame: boolean;
22
- }
23
- export interface _StateboxInternalStateData {
24
- state: _StateboxInternalState;
25
- index: number;
26
- }
@@ -1,6 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- export interface ArdTabDefaults {
3
- disabled: boolean;
4
- }
5
- export declare const ARD_TAB_DEFAULTS: InjectionToken<ArdTabDefaults>;
6
- export declare function provideTabDefaults(config: Partial<ArdTabDefaults>): Provider;