@iamproperty/components 4.1.0-beta-2 → 4.1.0
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/assets/css/components/accordion.css.map +1 -1
- package/assets/css/components/actionbar-global.css +1 -1
- package/assets/css/components/actionbar-global.css.map +1 -1
- package/assets/css/components/address-lookup.css +1 -0
- package/assets/css/components/address-lookup.css.map +1 -0
- package/assets/css/components/admin-panel.css +1 -1
- package/assets/css/components/admin-panel.css.map +1 -1
- package/assets/css/components/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/forms.css +1 -1
- package/assets/css/components/forms.css.map +1 -1
- package/assets/css/components/header.css +1 -1
- package/assets/css/components/header.css.map +1 -1
- package/assets/css/components/lists.css +1 -1
- package/assets/css/components/lists.css.map +1 -1
- package/assets/css/components/nav-global.css +1 -1
- package/assets/css/components/nav-global.css.map +1 -1
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/nav.old.css +1 -1
- package/assets/css/components/nav.old.css.map +1 -1
- package/assets/css/components/notification.css +1 -1
- package/assets/css/components/notification.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/components/table.extras.css +1 -0
- package/assets/css/components/table.extras.css.map +1 -0
- package/assets/css/components/table.global.css +1 -0
- package/assets/css/components/table.global.css.map +1 -0
- package/assets/css/components/tabs.css +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +3 -3
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +172 -0
- package/assets/js/components/address-lookup/address-lookup.component.min.js +36 -0
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -0
- package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +2 -2
- package/assets/js/components/nav/nav.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js +4 -4
- package/assets/js/components/notification/notification.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +152 -7
- package/assets/js/components/pagination/pagination.component.min.js +38 -12
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.js +95 -69
- package/assets/js/components/table/table.component.min.js +9 -13
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +3 -1
- package/assets/js/components/tabs/tabs.component.min.js +7 -5
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.min.js +5 -5
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/applied-filters.js +3 -4
- package/assets/js/modules/dialogs.js +15 -3
- package/assets/js/modules/dynamicEvents.js +116 -0
- package/assets/js/modules/helpers.js +9 -0
- package/assets/js/modules/pagination.js +7 -10
- package/assets/js/modules/table.js +51 -52
- package/assets/js/modules/tabs.js +10 -1
- package/assets/js/scripts.bundle.js +53 -25
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/js/tests/table.spec.js +0 -57
- package/assets/sass/_components.scss +2 -0
- package/assets/sass/_corefiles.scss +6 -2
- package/assets/sass/_functions/variables.scss +5 -1
- package/assets/sass/components/actionbar-global.scss +11 -2
- package/assets/sass/components/address-lookup.scss +22 -0
- package/assets/sass/components/admin-panel.scss +4 -0
- package/assets/sass/components/dialog.scss +22 -13
- package/assets/sass/components/fileupload.scss +2 -0
- package/assets/sass/components/forms.scss +231 -71
- package/assets/sass/components/lists.scss +119 -1
- package/assets/sass/components/nav-global.scss +1 -0
- package/assets/sass/components/notification.scss +6 -1
- package/assets/sass/components/pagination.scss +192 -100
- package/assets/sass/components/table.extras.scss +650 -0
- package/assets/sass/components/table.global.scss +103 -0
- package/assets/sass/components/table.scss +41 -565
- package/assets/sass/components/tabs.scss +95 -32
- package/assets/sass/foundations/brand.scss +4 -0
- package/assets/sass/foundations/buttons.scss +14 -12
- package/assets/sass/foundations/links.scss +2 -1
- package/assets/sass/helpers/dynamic.scss +3 -0
- package/assets/sass/templates/form.scss +84 -0
- package/assets/svg/logo.svg +7 -0
- package/assets/ts/components/address-lookup/address-lookup.component.ts +215 -0
- package/assets/ts/components/pagination/README.md +11 -0
- package/assets/ts/components/pagination/pagination.component.ts +182 -8
- package/assets/ts/components/table/README.md +4 -2
- package/assets/ts/components/table/table.component.ts +134 -83
- package/assets/ts/components/tabs/README.md +6 -5
- package/assets/ts/components/tabs/tabs.component.ts +3 -1
- package/assets/ts/modules/applied-filters.ts +5 -8
- package/assets/ts/modules/dialogs.ts +19 -4
- package/assets/ts/modules/dynamicEvents.ts +145 -0
- package/assets/ts/modules/helpers.ts +16 -1
- package/assets/ts/modules/pagination.ts +7 -10
- package/assets/ts/modules/table.ts +70 -57
- package/assets/ts/modules/tabs.ts +21 -10
- package/assets/ts/tests/table.spec.ts +1 -61
- package/dist/components.es.js +1123 -1008
- package/dist/components.umd.js +165 -80
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/components/AddressLookup/AddressLookup.vue +27 -0
- package/src/components/Pagination/README.md +11 -0
- package/src/components/Table/README.md +4 -3
- package/src/components/Table/Table.vue +4 -0
- package/src/components/Tabs/README.md +10 -7
- package/src/components/Tabs/Tab.vue +7 -8
- package/src/components/Tabs/Tabs.vue +0 -1
- package/src/index.js +1 -0
- package/assets/js/tests/pagination.spec.js +0 -15
- package/assets/ts/tests/pagination.spec.ts +0 -21
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
@use "../_func.scss" as *;
|
|
2
|
+
|
|
3
|
+
// #region Container type
|
|
4
|
+
*:has(> iam-table){
|
|
5
|
+
container-type: inline-size;
|
|
6
|
+
}
|
|
7
|
+
// #endregion
|
|
8
|
+
|
|
9
|
+
// #region Basic table stuff
|
|
10
|
+
iam-table {
|
|
11
|
+
|
|
12
|
+
--hover-background: var(--colour-light);
|
|
13
|
+
--row-bg: var(--colour-canvas-2);
|
|
14
|
+
thead tr {
|
|
15
|
+
background: var(--row-bg);
|
|
16
|
+
}
|
|
17
|
+
tbody tr {
|
|
18
|
+
background: var(--row-bg);
|
|
19
|
+
|
|
20
|
+
&:is(:hover,:focus-within,.hover) {
|
|
21
|
+
|
|
22
|
+
--bg-colour-rgb: 238,238,238;
|
|
23
|
+
--row-bg: var(--hover-background);
|
|
24
|
+
background: var(--row-bg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include dark-mode(){
|
|
28
|
+
|
|
29
|
+
--hover-background: var(--colour-canvas);
|
|
30
|
+
|
|
31
|
+
&:is(:hover,:focus-within,.hover) {
|
|
32
|
+
background: var(--row-bg);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// #endregion
|
|
38
|
+
|
|
39
|
+
// #region Tables are only stacked on mobile
|
|
40
|
+
@container (width < 23.4375em) {
|
|
41
|
+
iam-table:not(.table--fullwidth) {
|
|
42
|
+
|
|
43
|
+
thead {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
tbody {
|
|
48
|
+
display: block;
|
|
49
|
+
overflow: visible;
|
|
50
|
+
|
|
51
|
+
tr td:first-child {
|
|
52
|
+
padding-top:0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
tr {
|
|
57
|
+
display: block;
|
|
58
|
+
position: relative;
|
|
59
|
+
border: none;
|
|
60
|
+
background: var(--row-bg);
|
|
61
|
+
padding: var(--wrapper-padding);
|
|
62
|
+
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.11);
|
|
63
|
+
border-radius: rem(8);
|
|
64
|
+
|
|
65
|
+
& + tr {
|
|
66
|
+
margin-top: rem(32);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:is(:hover,:focus,.hover) {
|
|
70
|
+
|
|
71
|
+
--row-bg: var(--colour-canvas-2);
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:is(td, th) {
|
|
77
|
+
display: block;
|
|
78
|
+
@include var(border-color,--colour-border);
|
|
79
|
+
|
|
80
|
+
padding-right: 0;
|
|
81
|
+
|
|
82
|
+
&:nth-child(1){
|
|
83
|
+
|
|
84
|
+
border-top: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&[data-label]:not([data-label=""]):before {
|
|
88
|
+
content: attr(data-label);
|
|
89
|
+
color: var(--colour-heading);
|
|
90
|
+
padding: 0 0 rem(6) 0;
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
display: block;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
td:first-child::after {
|
|
98
|
+
top: 1.75rem!important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
td::after {
|
|
102
|
+
top: 2.5rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.td--fixed {
|
|
106
|
+
padding-right: 50%;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
tbody tr td:not(:first-child) {
|
|
110
|
+
border-top: var(--border-width) solid currentColor;
|
|
111
|
+
border-color: var(--colour-border)!important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
tr:not([data-view="full"]) td p {
|
|
115
|
+
|
|
116
|
+
display: -webkit-box;
|
|
117
|
+
-webkit-box-orient: vertical;
|
|
118
|
+
-webkit-line-clamp: 2;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
td:has([data-expand-button]) {
|
|
123
|
+
height: 0;
|
|
124
|
+
padding: 0;
|
|
125
|
+
position: relative;
|
|
126
|
+
}
|
|
127
|
+
td:has([data-expand-button]) + td {
|
|
128
|
+
border-top: none!important;
|
|
129
|
+
padding-top: 0!important;
|
|
130
|
+
}
|
|
131
|
+
[data-expand-button] {
|
|
132
|
+
top: 0;
|
|
133
|
+
right: 0;
|
|
134
|
+
background: transparent!important;
|
|
135
|
+
border: none;
|
|
136
|
+
position: absolute;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
--compact-size: #{rem(32)};
|
|
139
|
+
|
|
140
|
+
&:before {
|
|
141
|
+
font-family: "Font Awesome 6 Pro";
|
|
142
|
+
content: "\f055";
|
|
143
|
+
font-weight: 300!important;
|
|
144
|
+
font-size: rem(28);
|
|
145
|
+
line-height: var(--compact-size)!important;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
tr[data-view="full"] {
|
|
150
|
+
[data-expand-button] {
|
|
151
|
+
|
|
152
|
+
&:before {
|
|
153
|
+
|
|
154
|
+
content: "\f056";
|
|
155
|
+
font-weight: 900!important;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dialog__wrapper {
|
|
161
|
+
margin-top: -0.5rem;
|
|
162
|
+
margin-left: -1rem;
|
|
163
|
+
z-index: 10;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
iam-table:not(.table--fullwidth) tbody tr:not([data-view="full"]) {
|
|
168
|
+
|
|
169
|
+
td:not(.td--fixed) + td:not(.td--fixed) + td + td{
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child {
|
|
175
|
+
display: block!important;
|
|
176
|
+
position: static;
|
|
177
|
+
width: 100%;
|
|
178
|
+
min-width: 100%;
|
|
179
|
+
margin-left: 0;
|
|
180
|
+
padding-left: 0;
|
|
181
|
+
text-align: left;
|
|
182
|
+
min-height: 0;
|
|
183
|
+
|
|
184
|
+
&:after {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
// #endregion
|
|
190
|
+
|
|
191
|
+
// #region CTA column
|
|
192
|
+
@container (width > 23.4375em) {
|
|
193
|
+
|
|
194
|
+
iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child) {
|
|
195
|
+
padding-right: calc(var(--wrapper-padding) + 1.5rem);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) {
|
|
199
|
+
|
|
200
|
+
tr > th:nth-last-child(2),
|
|
201
|
+
tr > td:nth-last-child(2) {
|
|
202
|
+
padding-right: var(--cta-width);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
tr > *:not(:first-child):last-child {
|
|
206
|
+
|
|
207
|
+
position: absolute;
|
|
208
|
+
left: calc(100% - var(--cta-width));
|
|
209
|
+
top: auto;
|
|
210
|
+
background: transparent;
|
|
211
|
+
width: var(--cta-width);
|
|
212
|
+
min-height: calc(var(--row-height) - 2px);
|
|
213
|
+
text-align: right;
|
|
214
|
+
background: linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);
|
|
215
|
+
cursor: default;
|
|
216
|
+
|
|
217
|
+
@media screen and (prefers-color-scheme: dark) {
|
|
218
|
+
|
|
219
|
+
background: linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);
|
|
220
|
+
}
|
|
221
|
+
a {
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
padding-right: 0.2rem;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
tbody tr:hover > *:not(:first-child):last-child {
|
|
228
|
+
background: linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
// #endregion
|
|
233
|
+
|
|
234
|
+
// #region Max height tables
|
|
235
|
+
iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) {
|
|
236
|
+
|
|
237
|
+
position: relative;
|
|
238
|
+
|
|
239
|
+
thead {
|
|
240
|
+
position: sticky;
|
|
241
|
+
top: 0;
|
|
242
|
+
left: 0;
|
|
243
|
+
z-index: 1;
|
|
244
|
+
background-color: var(--row-bg);
|
|
245
|
+
|
|
246
|
+
&:before {
|
|
247
|
+
content: "";
|
|
248
|
+
position: absolute;
|
|
249
|
+
bottom: 0;
|
|
250
|
+
left: 0;
|
|
251
|
+
width: 100%;
|
|
252
|
+
height: 2px;
|
|
253
|
+
background: var(--colour-primary);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
tbody {
|
|
257
|
+
position: relative;
|
|
258
|
+
|
|
259
|
+
tr:first-child td {
|
|
260
|
+
border-top: 0;
|
|
261
|
+
}
|
|
262
|
+
tr:last-child td {
|
|
263
|
+
border-bottom: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
|
|
270
|
+
// #region Statuses
|
|
271
|
+
table {
|
|
272
|
+
|
|
273
|
+
:is([data-content="low"],
|
|
274
|
+
[data-content="medium"],
|
|
275
|
+
[data-content="high"],
|
|
276
|
+
[data-content="unknown"],
|
|
277
|
+
[data-content="due"],
|
|
278
|
+
[data-content="overdue"],
|
|
279
|
+
[data-content="incomplete"],
|
|
280
|
+
[data-content="requires approval"],
|
|
281
|
+
[data-content="upcoming"],
|
|
282
|
+
[data-content="approval required"],
|
|
283
|
+
[data-content="warning"],
|
|
284
|
+
[data-content="verified"],
|
|
285
|
+
[data-content="not started"],
|
|
286
|
+
[data-content="to do"],
|
|
287
|
+
[data-content="on track"],
|
|
288
|
+
[data-content="completed"],
|
|
289
|
+
[data-content="complete"],
|
|
290
|
+
.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)
|
|
291
|
+
) {
|
|
292
|
+
|
|
293
|
+
position: relative;
|
|
294
|
+
padding-left: 1.5rem;
|
|
295
|
+
|
|
296
|
+
&::before {
|
|
297
|
+
margin-left: -1.5rem!important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&:after {
|
|
301
|
+
|
|
302
|
+
font-family: "Font Awesome 6 Pro";
|
|
303
|
+
position: absolute;
|
|
304
|
+
top: 1rem;
|
|
305
|
+
left: 0;
|
|
306
|
+
font-size: rem(16);
|
|
307
|
+
line-height: 1;
|
|
308
|
+
height: rem(16);
|
|
309
|
+
width: rem(16);
|
|
310
|
+
display: inline-block;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
[data-content="high"]:after {
|
|
315
|
+
content: "\f325";
|
|
316
|
+
font-weight: normal;
|
|
317
|
+
color: var(--colour-danger);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-content="medium"]:after {
|
|
321
|
+
|
|
322
|
+
content: "\f7a4";
|
|
323
|
+
font-weight: normal;
|
|
324
|
+
color: var(--colour-warning);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
[data-content="low"]:after {
|
|
328
|
+
|
|
329
|
+
content: "\e404";
|
|
330
|
+
font-weight: normal;
|
|
331
|
+
color: var(--colour-complete);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
[data-content="unknown"]:after {
|
|
335
|
+
|
|
336
|
+
content: "\e404";
|
|
337
|
+
font-weight: normal;
|
|
338
|
+
color: var(--colour-muted);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:is([data-content="overdue"],[data-content="due"],[data-content="incomplete"]):after {
|
|
342
|
+
|
|
343
|
+
content: "\f024";
|
|
344
|
+
color: var(--colour-danger);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
:is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after {
|
|
348
|
+
|
|
349
|
+
content: "\f024";
|
|
350
|
+
color: var(--colour-muted);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
:is([data-content="requires approval"],[data-content="approval required"],[data-content="upcoming"]):after {
|
|
354
|
+
|
|
355
|
+
content: "\f024";
|
|
356
|
+
color: var(--colour-warning);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
:is([data-content="warning"]):after {
|
|
360
|
+
|
|
361
|
+
content: "\f071";
|
|
362
|
+
color: var(--colour-warning);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
:is([data-content="verified"],[data-content="completed"],[data-content="complete"]):after {
|
|
366
|
+
|
|
367
|
+
content: "\f00c";
|
|
368
|
+
font-weight: normal;
|
|
369
|
+
color: var(--colour-complete);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after {
|
|
373
|
+
|
|
374
|
+
content: "\f0f3";
|
|
375
|
+
color: var(--colour-primary);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
// #endregion
|
|
379
|
+
|
|
380
|
+
// #region filters
|
|
381
|
+
iam-table .table--filtered tbody tr:not(.filtered--show) {
|
|
382
|
+
display: none!important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15) ~ tr {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
// #endregion
|
|
389
|
+
|
|
390
|
+
// #region Table with actionbar
|
|
391
|
+
|
|
392
|
+
iam-table {
|
|
393
|
+
|
|
394
|
+
input:is([type="radio"],[type="checkbox"]) + label {
|
|
395
|
+
padding-left: 0!important;
|
|
396
|
+
margin: 0!important;
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
&:before,
|
|
400
|
+
&:after {
|
|
401
|
+
top: 0.75rem !important;
|
|
402
|
+
left: 0.25rem!important;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
&:has([type="checkbox"]:checked) tr:has([type="checkbox"]){
|
|
407
|
+
|
|
408
|
+
[type="checkbox"] {
|
|
409
|
+
width: 100vw;
|
|
410
|
+
height: 100%;
|
|
411
|
+
max-height: var(--row-height);
|
|
412
|
+
max-width: 100vw;
|
|
413
|
+
cursor: pointer;
|
|
414
|
+
pointer-events: all;
|
|
415
|
+
top: auto;
|
|
416
|
+
margin: 0;
|
|
417
|
+
margin-top: 0rem;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
tr:has([type="checkbox"]:checked){
|
|
422
|
+
--row-bg: #E0E0E0;
|
|
423
|
+
|
|
424
|
+
@include dark-mode(){
|
|
425
|
+
--row-bg: #000000;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@container (width < 23.4375em) {
|
|
431
|
+
|
|
432
|
+
iam-table:has([slot="before"]) {
|
|
433
|
+
|
|
434
|
+
iam-actionbar {
|
|
435
|
+
@include light-mode(){
|
|
436
|
+
background-color: #e6eaec;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
.actionbar__sticky + * {
|
|
440
|
+
margin-top: 0!important;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
iam-table {
|
|
445
|
+
|
|
446
|
+
input:is([type="radio"],[type="checkbox"]) + label {
|
|
447
|
+
padding-left: 0!important;
|
|
448
|
+
margin: 0!important;
|
|
449
|
+
min-height: 2rem;
|
|
450
|
+
|
|
451
|
+
&:before,
|
|
452
|
+
&:after {
|
|
453
|
+
top: 0.25rem !important;
|
|
454
|
+
left: 0!important;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&:has([type="checkbox"]:checked) tr:has([type="checkbox"]){
|
|
459
|
+
|
|
460
|
+
[type="checkbox"] {
|
|
461
|
+
width: 100%;
|
|
462
|
+
height: 100%;
|
|
463
|
+
max-height: 100%;
|
|
464
|
+
max-width: 100%;
|
|
465
|
+
margin-top: -2rem;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
// #endregion
|
|
471
|
+
|
|
472
|
+
// #region Expandable tables
|
|
473
|
+
iam-table.table--fullwidth:not([data-expandable]) {
|
|
474
|
+
|
|
475
|
+
th.expand-button-heading {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
478
|
+
td:has([data-expand-button]) {
|
|
479
|
+
display: none;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
@container (width > 23.4375em) {
|
|
484
|
+
|
|
485
|
+
iam-table:not([data-expandable]) {
|
|
486
|
+
|
|
487
|
+
th.expand-button-heading {
|
|
488
|
+
display: none;
|
|
489
|
+
}
|
|
490
|
+
td.td--expand {
|
|
491
|
+
display: none;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
iam-table[data-expandable]{
|
|
496
|
+
|
|
497
|
+
[data-expand-button]{
|
|
498
|
+
margin: 0;
|
|
499
|
+
&:before {
|
|
500
|
+
|
|
501
|
+
font-family: "Font Awesome 6 Pro";
|
|
502
|
+
content: "\f078";
|
|
503
|
+
font-weight: 500;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
tr[data-view="full"] [data-expand-button]:before {
|
|
508
|
+
|
|
509
|
+
content: "\f077";
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
tr:not([data-view="full"]) td p {
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
display: -webkit-box;
|
|
516
|
+
-webkit-box-orient: vertical;
|
|
517
|
+
-webkit-line-clamp: 2;
|
|
518
|
+
overflow: hidden;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
// #endregion
|
|
523
|
+
|
|
524
|
+
// #region fixed columns
|
|
525
|
+
@container (width < 23.4375em) {
|
|
526
|
+
|
|
527
|
+
iam-table:not(.table--fullwidth) {
|
|
528
|
+
.td--fixed + td:not(.td--fixed){
|
|
529
|
+
|
|
530
|
+
border-top: none;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
@container (width > 23.4375em) {
|
|
535
|
+
|
|
536
|
+
iam-table {
|
|
537
|
+
|
|
538
|
+
--width-adjust: 0px;
|
|
539
|
+
|
|
540
|
+
&:has([type="checkbox"]){
|
|
541
|
+
|
|
542
|
+
--width-adjust: -1rem;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.th--fixed {
|
|
546
|
+
min-width: calc(rem(48 + 24) + var(--width-adjust));
|
|
547
|
+
position: absolute;
|
|
548
|
+
padding: 0;
|
|
549
|
+
|
|
550
|
+
&:after {
|
|
551
|
+
top: auto;
|
|
552
|
+
left: 0;
|
|
553
|
+
content: "";
|
|
554
|
+
position: absolute;
|
|
555
|
+
width: 100%;
|
|
556
|
+
height: calc(var(--row-height) - 2px);
|
|
557
|
+
background: linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.td--fixed {
|
|
562
|
+
position: absolute;
|
|
563
|
+
position: absolute;
|
|
564
|
+
left: auto;
|
|
565
|
+
top: auto;
|
|
566
|
+
z-index: 3;
|
|
567
|
+
padding: 0;
|
|
568
|
+
min-width: rem(48 + 24);
|
|
569
|
+
height: calc(var(--row-height) - 2px);
|
|
570
|
+
text-align: left;
|
|
571
|
+
background: linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%);
|
|
572
|
+
|
|
573
|
+
&:has([open]){
|
|
574
|
+
z-index: 4;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
tr {
|
|
579
|
+
|
|
580
|
+
&:is(:hover,:focus) .td--fixed{
|
|
581
|
+
background: linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
&:has([data-expand-button]) {
|
|
585
|
+
height: calc(rem(74) - 2px);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.th--fixed + th:not(.th--fixed),
|
|
590
|
+
.td--fixed + td:not(.td--fixed){
|
|
591
|
+
|
|
592
|
+
padding-left: calc(rem(48 + 24) + var(--width-adjust));
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.th--fixed:not(.expand-button-heading) + .th--fixed + th:not(.th--fixed),
|
|
596
|
+
.td--fixed:not(.td--expand) + .td--fixed + td:not(.td--fixed){
|
|
597
|
+
|
|
598
|
+
padding-left: calc(rem(48 + 4 + 48 + 24) + var(--width-adjust));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
&[data-expandable] .th--fixed + .th--fixed + th:not(.th--fixed),
|
|
602
|
+
&[data-expandable] .td--fixed + .td--fixed + td:not(.td--fixed){
|
|
603
|
+
|
|
604
|
+
padding-left: calc(rem(48 + 4 + 48 + 24) + var(--width-adjust));
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.th--fixed + .th--fixed,
|
|
608
|
+
.td--fixed + .td--fixed {
|
|
609
|
+
|
|
610
|
+
padding-left: calc(rem(48 + 4) + var(--width-adjust));
|
|
611
|
+
min-width: calc(rem(48 + 4 + 48 + 24) + var(--width-adjust));
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.th--fixed:has(+ .th--fixed),
|
|
615
|
+
.td--fixed:has(+ .td--fixed) {
|
|
616
|
+
min-width: calc(rem(48 + 4) + var(--width-adjust));
|
|
617
|
+
z-index: 5;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.dialog__wrapper{
|
|
621
|
+
z-index: 10;
|
|
622
|
+
}
|
|
623
|
+
.dialog__wrapper:has([open]){
|
|
624
|
+
z-index: 20;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
&[data-expandable] input:is([type=radio],[type=checkbox])+label:before,
|
|
628
|
+
&[data-expandable] input:is([type=radio],[type=checkbox])+label:after {
|
|
629
|
+
left: 1.25rem !important;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
iam-table:not([data-expandable]) {
|
|
634
|
+
|
|
635
|
+
th.expand-button-heading + th {
|
|
636
|
+
padding-left: 0!important
|
|
637
|
+
}
|
|
638
|
+
td.td--expand + td {
|
|
639
|
+
padding-left: 0!important
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
th.expand-button-heading + .th--fixed {
|
|
643
|
+
min-width: calc(rem(48 + 24) + var(--width-adjust))!important
|
|
644
|
+
}
|
|
645
|
+
td.td--expand + .td--fixed {
|
|
646
|
+
min-width: calc(rem(48 + 24) + var(--width-adjust))!important
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
// #endregion
|