@ardium-ui/ui 5.0.0-alpha.69 → 5.0.0-alpha.70
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.
- package/fesm2022/ardium-ui-ui.mjs +117 -174
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/boolean-component.d.ts +13 -1
- package/lib/checkbox/checkbox.component.d.ts +5 -2
- package/lib/checkbox/checkbox.types.d.ts +2 -0
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +2 -0
- package/lib/divider/divider.component.d.ts +2 -4
- package/lib/divider/divider.defaults.d.ts +5 -0
- package/lib/divider/divider.directive.d.ts +18 -0
- package/lib/divider/divider.module.d.ts +3 -2
- package/lib/divider/divider.types.d.ts +5 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -1
- package/lib/slide-toggle/slide-toggle.component.d.ts +2 -0
- package/lib/star/star-button/star-button.component.d.ts +4 -1
- package/lib/star/star-button/star-button.types.d.ts +1 -0
- package/lib/types/alignment.types.d.ts +7 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/badge.css +37 -15
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/card.css +56 -24
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +31 -58
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +1 -1
- package/prebuilt-themes/default/color-display.css +14 -7
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/divider.css +82 -6
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +16 -8
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +81 -35
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +31 -19
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +13 -7
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +29 -16
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +9 -3
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +38 -16
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +1 -1
- package/prebuilt-themes/default/table-pagination.css +21 -9
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +101 -69
- package/prebuilt-themes/default/table.css.map +1 -1
- package/public-api.d.ts +0 -1
- package/themes/default/badge.scss +48 -15
- package/themes/default/card.scss +68 -24
- package/themes/default/checkbox.scss +30 -59
- package/themes/default/chips.scss +1 -1
- package/themes/default/color-display.scss +17 -7
- package/themes/default/divider.scss +106 -6
- package/themes/default/dropdown-panel.scss +21 -8
- package/themes/default/file-drop-area.scss +92 -35
- package/themes/default/inputs/digit-input.scss +42 -20
- package/themes/default/progress-circle.scss +16 -10
- package/themes/default/snackbar.scss +32 -14
- package/themes/default/spinner.scss +11 -3
- package/themes/default/stars.scss +45 -16
- package/themes/default/tabber.scss +1 -1
- package/themes/default/table-pagination.scss +24 -9
- package/themes/default/table.scss +112 -78
- package/lib/statebox/index.d.ts +0 -4
- package/lib/statebox/statebox.component.d.ts +0 -26
- package/lib/statebox/statebox.defaults.d.ts +0 -10
- package/lib/statebox/statebox.module.d.ts +0 -8
- package/lib/statebox/statebox.types.d.ts +0 -26
- package/prebuilt-themes/default/statebox.css +0 -235
- package/prebuilt-themes/default/statebox.css.map +0 -1
- 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
|
|
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,25 +191,25 @@
|
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
--ard-_table-border: ARD.$border;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
199
|
+
--ard-_table-header-border: var(--ard-cmpcl--border);
|
|
200
|
+
--ard-_table-header-border-light: var(--ard-cmpcl--border-light);
|
|
201
|
+
--ard-_table-border: var(--ard-table-border-color-strong, #{ARD.$border});
|
|
202
|
+
--ard-_table-header-background: var(--ard-cmpcl--bg);
|
|
203
|
+
--ard-_table-header-background-light: var(--ard-cmpcl--bg-header);
|
|
204
|
+
--ard-_table-header-color: var(--ard-cmpcl--content);
|
|
205
|
+
--ard-_table-header-color-on-bg: var(--ard-cmpcl--on-bg);
|
|
206
|
+
--ard-_table-overlay: var(--ard-cmpcl--overlay-rgb);
|
|
207
|
+
--ard-_table-overlay-colorless: var(--ard-overlay-rgb);
|
|
173
208
|
|
|
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:
|
|
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:
|
|
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:
|
|
447
|
+
vertical-align: center;
|
|
414
448
|
}
|
|
415
449
|
}
|
|
416
450
|
&.ard-align-bottom-left,
|
package/lib/statebox/index.d.ts
DELETED
|
@@ -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
|
-
}
|