@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.60
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/README.md +15 -0
- package/generated/buses/alert-dialog.d.ts +2 -0
- package/generated/buses/alert-dialog.js +1 -0
- package/generated/buses/confirmation-dialog.d.ts +2 -0
- package/generated/buses/confirmation-dialog.js +1 -0
- package/generated/buses/index.d.ts +6 -0
- package/generated/buses/index.js +6 -0
- package/generated/buses/lifecycle-observer.d.ts +2 -0
- package/generated/buses/lifecycle-observer.js +1 -0
- package/generated/client/index.d.ts +22 -4
- package/generated/client/index.js +219 -181
- package/generated/components/alert-dialog.d.ts +8 -0
- package/generated/components/alert-dialog.js +99 -0
- package/generated/components/body-view.js +5 -2
- package/generated/components/bordered-button.d.ts +17 -0
- package/generated/components/bordered-button.js +56 -0
- package/generated/components/bordered-prominent-button.d.ts +17 -0
- package/generated/components/bordered-prominent-button.js +56 -0
- package/generated/components/borderless-button.d.ts +12 -4
- package/generated/components/borderless-button.js +47 -16
- package/generated/components/color-scheme.d.ts +7 -0
- package/generated/components/color-scheme.js +54 -0
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +113 -0
- package/generated/components/content-unavailable-view.d.ts +24 -0
- package/generated/components/content-unavailable-view.js +81 -0
- package/generated/components/date-picker.d.ts +36 -0
- package/generated/components/date-picker.js +461 -0
- package/generated/components/disclosure-group.d.ts +9 -7
- package/generated/components/disclosure-group.js +51 -65
- package/generated/components/fine-tooltip.d.ts +7 -0
- package/generated/components/fine-tooltip.js +107 -0
- package/generated/components/form-view.d.ts +9 -0
- package/generated/components/form-view.js +63 -0
- package/generated/components/glass-button.d.ts +16 -0
- package/generated/components/glass-button.js +53 -0
- package/generated/components/glass-prominent-button.d.ts +16 -0
- package/generated/components/glass-prominent-button.js +53 -0
- package/generated/components/h-stack.d.ts +10 -0
- package/generated/components/h-stack.js +19 -0
- package/generated/components/image-view.d.ts +9 -0
- package/generated/components/image-view.js +46 -0
- package/generated/components/index.d.ts +41 -10
- package/generated/components/index.js +41 -15
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +51 -0
- package/generated/components/labeled-content.d.ts +9 -0
- package/generated/components/labeled-content.js +115 -0
- package/generated/components/list-view.d.ts +8 -0
- package/generated/components/list-view.js +32 -0
- package/generated/components/menu-view.d.ts +12 -0
- package/generated/components/menu-view.js +142 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +181 -0
- package/generated/components/navigation-split-view.d.ts +7 -2
- package/generated/components/navigation-split-view.js +19 -3
- package/generated/components/navigation-stack.d.ts +6 -2
- package/generated/components/navigation-stack.js +23 -59
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +50 -0
- package/generated/components/picker-view.d.ts +44 -0
- package/generated/components/picker-view.js +1009 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +22 -0
- package/generated/components/progress-view.d.ts +13 -0
- package/generated/components/progress-view.js +120 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +4 -2
- package/generated/components/scroll-view-proxy.d.ts +8 -0
- package/generated/components/scroll-view-proxy.js +17 -0
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +179 -64
- package/generated/components/search-view.d.ts +7 -0
- package/generated/components/search-view.js +30 -0
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +85 -0
- package/generated/components/sheet-view.d.ts +3 -4
- package/generated/components/sheet-view.js +53 -17
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +76 -72
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +25 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +26 -0
- package/generated/components/tab-bar.d.ts +5 -4
- package/generated/components/tab-bar.js +34 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +125 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +252 -17
- package/generated/components/table-view.d.ts +12 -0
- package/generated/components/table-view.js +153 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +496 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +28 -0
- package/generated/components/tool-bar-item.d.ts +8 -0
- package/generated/components/tool-bar-item.js +66 -0
- package/generated/components/tool-bar.d.ts +19 -0
- package/generated/components/tool-bar.js +93 -0
- package/generated/components/v-keyboard.d.ts +4 -0
- package/generated/components/v-keyboard.js +72 -70
- package/generated/components/v-stack.d.ts +13 -0
- package/generated/components/v-stack.js +22 -0
- package/generated/css/index.css +8841 -0
- package/generated/events/alert-dialog.d.ts +8 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/confirmation-dialog.js +1 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +8 -0
- package/generated/events/index.js +8 -0
- package/generated/events/lifecycle-observer.d.ts +10 -0
- package/generated/events/lifecycle-observer.js +1 -0
- package/generated/events/picker-view.d.ts +15 -0
- package/generated/events/picker-view.js +1 -0
- package/generated/events/scroll-view.d.ts +10 -0
- package/generated/events/scroll-view.js +1 -0
- package/generated/events/tab-view.d.ts +28 -0
- package/generated/events/tab-view.js +1 -0
- package/generated/events/text-field.d.ts +8 -0
- package/generated/events/text-field.js +1 -0
- package/generated/i18n/index.d.ts +34 -0
- package/generated/i18n/index.js +167 -0
- package/generated/i18n/locales/el.d.ts +16 -0
- package/generated/i18n/locales/el.js +16 -0
- package/generated/i18n/locales/en.d.ts +16 -0
- package/generated/i18n/locales/en.js +16 -0
- package/generated/i18n/locales/index.d.ts +4 -0
- package/generated/i18n/locales/index.js +4 -0
- package/generated/internal/class/cleanup-registry.d.ts +5 -0
- package/generated/internal/class/cleanup-registry.js +38 -0
- package/generated/internal/class/css-style-observer.d.ts +8 -0
- package/generated/internal/class/css-style-observer.js +26 -0
- package/generated/internal/class/form-associated-base.d.ts +16 -0
- package/generated/internal/class/form-associated-base.js +78 -0
- package/generated/internal/class/mutation-observer-set.d.ts +9 -0
- package/generated/internal/class/mutation-observer-set.js +42 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +64 -0
- package/generated/internal/class/navigation-path.d.ts +15 -0
- package/generated/internal/class/navigation-path.js +84 -0
- package/generated/internal/class/navigation-view.d.ts +8 -0
- package/generated/internal/class/navigation-view.js +72 -0
- package/generated/internal/class/resize-observer-singleton.d.ts +7 -0
- package/generated/internal/class/resize-observer-singleton.js +22 -0
- package/generated/internal/decorators/adaptive-slot.d.ts +1 -0
- package/generated/internal/decorators/adaptive-slot.js +50 -0
- package/generated/internal/decorators/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +5 -0
- package/generated/internal/decorators/index.d.ts +6 -0
- package/generated/internal/decorators/index.js +6 -0
- package/generated/internal/decorators/microtask-on-connected.d.ts +39 -0
- package/generated/internal/decorators/microtask-on-connected.js +67 -0
- package/generated/internal/privateNamespace.d.ts +14 -0
- package/generated/internal/privateNamespace.js +168 -0
- package/generated/internal/utils/add.d.ts +1 -0
- package/generated/internal/utils/add.js +7 -0
- package/generated/internal/utils/cash/ancestors.d.ts +1 -0
- package/generated/internal/utils/cash/ancestors.js +27 -0
- package/generated/internal/utils/cash/index.d.ts +23 -0
- package/generated/internal/utils/cash/index.js +25 -0
- package/generated/internal/utils/cash/next-all.d.ts +1 -0
- package/generated/internal/utils/cash/next-all.js +10 -0
- package/generated/internal/utils/cash/next.d.ts +1 -0
- package/generated/internal/utils/cash/next.js +9 -0
- package/generated/internal/utils/cash/prev-all.d.ts +1 -0
- package/generated/internal/utils/cash/prev-all.js +10 -0
- package/generated/internal/utils/cash/prev.d.ts +1 -0
- package/generated/internal/utils/cash/prev.js +9 -0
- package/generated/internal/utils/cash/prop.d.ts +18 -0
- package/generated/internal/utils/cash/prop.js +30 -0
- package/generated/internal/utils/cash/siblings.d.ts +1 -0
- package/generated/internal/utils/cash/siblings.js +10 -0
- package/generated/internal/utils/clamp.d.ts +1 -0
- package/generated/internal/utils/clamp.js +4 -0
- package/generated/internal/utils/compare-big-decimals.d.ts +1 -0
- package/generated/internal/utils/compare-big-decimals.js +90 -0
- package/generated/internal/utils/debounce.d.ts +1 -0
- package/generated/internal/utils/debounce.js +13 -0
- package/generated/internal/utils/dev-flags.d.ts +3 -0
- package/generated/internal/utils/dev-flags.js +5 -0
- package/generated/internal/utils/ensure-placeholder.d.ts +1 -0
- package/generated/internal/utils/ensure-placeholder.js +55 -0
- package/generated/internal/utils/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +21 -1
- package/generated/internal/utils/index.js +24 -1
- package/generated/internal/utils/is-inside.d.ts +1 -0
- package/generated/internal/utils/is-inside.js +4 -0
- package/generated/internal/utils/kebab-case.d.ts +1 -1
- package/generated/internal/utils/list-active.d.ts +7 -0
- package/generated/internal/utils/list-active.js +83 -0
- package/generated/internal/utils/microtask.d.ts +1 -0
- package/generated/internal/utils/microtask.js +3 -0
- package/generated/internal/utils/onoff.d.ts +45 -0
- package/generated/internal/utils/onoff.js +31 -0
- package/generated/internal/utils/render-label-icon.d.ts +2 -0
- package/generated/internal/utils/render-label-icon.js +19 -0
- package/generated/internal/utils/render-label-title.d.ts +2 -0
- package/generated/internal/utils/render-label-title.js +16 -0
- package/generated/internal/utils/render-label.d.ts +1 -0
- package/generated/internal/utils/render-label.js +19 -0
- package/generated/internal/utils/set.d.ts +1 -0
- package/generated/internal/utils/set.js +7 -0
- package/generated/internal/utils/sleep.d.ts +1 -0
- package/generated/internal/utils/sleep.js +3 -0
- package/generated/internal/utils/slow-hide-show.d.ts +1 -0
- package/generated/internal/utils/slow-hide-show.js +16 -0
- package/generated/internal/utils/timeout.d.ts +5 -0
- package/generated/internal/utils/timeout.js +16 -0
- package/generated/internal/utils/touch-glass.d.ts +7 -0
- package/generated/internal/utils/touch-glass.js +19 -0
- package/generated/namespace-browser/base.d.ts +45 -0
- package/generated/namespace-browser/base.js +115 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +4 -11
- package/generated/snapshot/index.js +55 -145
- package/package.json +33 -9
- package/scss/_components.scss +60 -13
- package/scss/_final.scss +1 -0
- package/scss/_functions.scss +10 -0
- package/scss/_mixins.scss +4 -169
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +22 -1
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +144 -23
- package/scss/base/_layout.scss +40 -16
- package/scss/base/_reboot.scss +151 -15
- package/scss/base/_root.scss +358 -25
- package/scss/colors/_index.scss +788 -70
- package/scss/components/_alert-dialog.scss +111 -0
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +57 -0
- package/scss/components/_bordered-prominent-button.scss +64 -0
- package/scss/components/_borderless-button.scss +36 -6
- package/scss/components/_confirmation-dialog.scss +102 -0
- package/scss/components/_content-unavailable-view.scss +54 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +153 -0
- package/scss/components/_disclosure-group.scss +147 -48
- package/scss/components/_fine-tooltip.scss +84 -0
- package/scss/components/_form-view.scss +233 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +59 -0
- package/scss/components/_glass-prominent-button.scss +70 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-flex-stack.scss +23 -0
- package/scss/components/_h-stack.scss +29 -0
- package/scss/components/_image-view.scss +9 -0
- package/scss/components/_index.scss +239 -7
- package/scss/components/_label-view copy.scss.txt +420 -0
- package/scss/components/_label-view.scss +372 -0
- package/scss/components/_label-view.scss.txt +536 -0
- package/scss/components/_labeled-content.scss +67 -0
- package/scss/components/_list-view.scss +269 -0
- package/scss/components/_menu-view.scss +219 -0
- package/scss/components/_navigation-large-title.scss +27 -0
- package/scss/components/_navigation-split-view.scss +329 -269
- package/scss/components/_navigation-stack.scss +6 -6
- package/scss/components/_navigation-title.scss +10 -0
- package/scss/components/_picker-view.scss +307 -0
- package/scss/components/_plain-button.scss +18 -0
- package/scss/components/_progress-view.scss +98 -0
- package/scss/components/_scroll-view-proxy.scss +79 -0
- package/scss/components/_scroll-view-toolbars.scss +126 -0
- package/scss/components/_scroll-view.scss +114 -66
- package/scss/components/_search-view.scss +22 -0
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +78 -35
- package/scss/components/_sidebar-toggle.scss +87 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +207 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +270 -126
- package/scss/components/_table-column.scss +54 -0
- package/scss/components/_table-row.scss +240 -0
- package/scss/components/_table-view.scss +231 -0
- package/scss/components/_text-field.scss +53 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +81 -71
- package/scss/components/_tool-bar.scss +126 -63
- package/scss/components/_v-divider.scss +13 -0
- package/scss/components/_v-flex-stack.scss +29 -0
- package/scss/components/_v-keyboard.scss +6 -4
- package/scss/components/_v-stack.scss +15 -9
- package/scss/final/_touch-glass.scss +91 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_button.scss +44 -0
- package/scss/mixins/_color.scss +16 -0
- package/scss/mixins/_dialog.scss +89 -0
- package/scss/mixins/_index.scss +453 -0
- package/scss/placeholders/_buttons.scss +117 -0
- package/scss/placeholders/_lists.scss +594 -0
- package/scss/transitions/_alert-dialog.scss +18 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +27 -0
- package/scss/transitions/_disclosure-group.scss +35 -0
- package/scss/transitions/_fine-tooltip.scss +21 -0
- package/scss/transitions/_fwd.navbar.scss +4 -9
- package/scss/transitions/_fwd.scss +4 -34
- package/scss/transitions/_glass-button.scss +12 -0
- package/scss/transitions/_glass-prominent-button.scss +12 -0
- package/scss/transitions/_index.scss +35 -143
- package/scss/transitions/_menu-view.scss +26 -0
- package/scss/transitions/_navigation-split-view.scss +23 -0
- package/scss/transitions/_progress-view.scss +23 -0
- package/scss/transitions/_sheet-view.scss +30 -0
- package/scss/transitions/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +20 -0
- package/scss/utils/_frame.scss +91 -0
- package/scss/utils/_index.scss +78 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +222 -0
- package/web-components.html-data/en.json +721 -0
- package/generated/components/bottom-bar.d.ts +0 -10
- package/generated/components/bottom-bar.js +0 -73
- package/generated/components/navigation-bar.d.ts +0 -10
- package/generated/components/navigation-bar.js +0 -80
- package/generated/internal/class.d.ts +0 -18
- package/generated/internal/class.js +0 -18
- package/generated/namespace/index.d.ts +0 -6
- package/generated/styles.css +0 -1305
- package/scss/_dev.scss +0 -68
- package/scss/components/_tab-bar-stack.scss +0 -101
- package/scss/components/_toolbars.scss +0 -100
- package/scss/transitions/_dialog.scss +0 -32
- /package/generated/{namespace/index.js → events/alert-dialog.js} +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
@layer #{vars.$components-layer} {
|
|
8
|
+
[is='table-row'] {
|
|
9
|
+
:where(&) {
|
|
10
|
+
row-gap: var(--table-row-gap);
|
|
11
|
+
|
|
12
|
+
column-gap: var(--table-col-gap);
|
|
13
|
+
|
|
14
|
+
--label-line-limit: 1;
|
|
15
|
+
--label-truncation-mode: tail;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@for $i from 1 through 10 {
|
|
19
|
+
@container table (width > #{vars.$table-expanded-bp}) and (style(--table--expanded-columns: #{$i})) {
|
|
20
|
+
> :nth-child(n + #{$i + 1}) {
|
|
21
|
+
:where(&) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// dissmantle list and turn it into a h-column row
|
|
29
|
+
@container table (width > #{vars.$table-expanded-bp}) {
|
|
30
|
+
:where(&) {
|
|
31
|
+
--itempadiend: var(--itempadistart);
|
|
32
|
+
&:after {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
--list--accessories-size: 0rem;
|
|
36
|
+
--list--accessories-display: none;
|
|
37
|
+
// background: red;
|
|
38
|
+
grid-auto-flow: column;
|
|
39
|
+
|
|
40
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
41
|
+
|
|
42
|
+
// grid-template-columns: repeat(var(--table--expanded-columns), minmax(0, 1fr));
|
|
43
|
+
grid-template-rows: minmax(0, 1fr);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> :nth-child(n + 2) {
|
|
47
|
+
:where(&) {
|
|
48
|
+
color: var(--secondary);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@container table (width <= #{vars.$table-expanded-bp}) {
|
|
54
|
+
> :nth-child(n + 2) {
|
|
55
|
+
:where(&) {
|
|
56
|
+
display: none;
|
|
57
|
+
|
|
58
|
+
color: var(--secondary);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// table-view[preferred-compact-template] > & {
|
|
63
|
+
// > :nth-child(n + 2) {
|
|
64
|
+
// :where(&) {
|
|
65
|
+
// display: grid;
|
|
66
|
+
// }
|
|
67
|
+
// }
|
|
68
|
+
// }
|
|
69
|
+
table-view[preferred-compact-template='title:trailing:subtitle'] > & {
|
|
70
|
+
:where(&) {
|
|
71
|
+
grid-template-columns: 1fr 1fr;
|
|
72
|
+
grid-template-rows: repeat(2, auto);
|
|
73
|
+
grid-template-areas:
|
|
74
|
+
'title trailing'
|
|
75
|
+
'subtitle _';
|
|
76
|
+
// grid-template-rows: repeat(3, auto); /* 3 rows for first 6 items */
|
|
77
|
+
// grid-template-areas:
|
|
78
|
+
// 'a b'
|
|
79
|
+
// 'c d'
|
|
80
|
+
// 'e f';
|
|
81
|
+
}
|
|
82
|
+
> :nth-child(-n + 3) {
|
|
83
|
+
:where(&) {
|
|
84
|
+
display: grid;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
> :nth-child(1) {
|
|
88
|
+
:where(&) {
|
|
89
|
+
grid-area: title;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
> :nth-child(2) {
|
|
93
|
+
:where(&) {
|
|
94
|
+
grid-area: trailing;
|
|
95
|
+
place-self: end;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
> :nth-child(3) {
|
|
99
|
+
:where(&) {
|
|
100
|
+
grid-area: subtitle;
|
|
101
|
+
grid-column: 1 / -1;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
table-view[preferred-compact-template='trailing:title:subtitle'] > & {
|
|
106
|
+
:where(&) {
|
|
107
|
+
grid-template-columns: 1fr 1fr;
|
|
108
|
+
grid-template-rows: repeat(2, auto);
|
|
109
|
+
grid-template-areas:
|
|
110
|
+
'title trailing'
|
|
111
|
+
'subtitle _';
|
|
112
|
+
// grid-template-rows: repeat(3, auto); /* 3 rows for first 6 items */
|
|
113
|
+
// grid-template-areas:
|
|
114
|
+
// 'a b'
|
|
115
|
+
// 'c d'
|
|
116
|
+
// 'e f';
|
|
117
|
+
}
|
|
118
|
+
> :nth-child(-n + 3) {
|
|
119
|
+
:where(&) {
|
|
120
|
+
display: grid;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
> :nth-child(1) {
|
|
124
|
+
:where(&) {
|
|
125
|
+
grid-area: trailing;
|
|
126
|
+
place-self: end;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
> :nth-child(2) {
|
|
130
|
+
:where(&) {
|
|
131
|
+
grid-area: title;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
> :nth-child(3) {
|
|
135
|
+
:where(&) {
|
|
136
|
+
grid-area: subtitle;
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
table-view[preferred-compact-template='title:subtitle:trailing'] > & {
|
|
142
|
+
:where(&) {
|
|
143
|
+
grid-template-columns: 1fr 1fr;
|
|
144
|
+
grid-template-rows: repeat(2, auto);
|
|
145
|
+
grid-template-areas:
|
|
146
|
+
'title trailing'
|
|
147
|
+
'subtitle _';
|
|
148
|
+
// grid-template-rows: repeat(3, auto); /* 3 rows for first 6 items */
|
|
149
|
+
// grid-template-areas:
|
|
150
|
+
// 'a b'
|
|
151
|
+
// 'c d'
|
|
152
|
+
// 'e f';
|
|
153
|
+
}
|
|
154
|
+
> :nth-child(-n + 3) {
|
|
155
|
+
:where(&) {
|
|
156
|
+
display: grid;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
> :nth-child(1) {
|
|
160
|
+
:where(&) {
|
|
161
|
+
grid-area: title;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
> :nth-child(2) {
|
|
165
|
+
:where(&) {
|
|
166
|
+
grid-area: subtitle;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
> :nth-child(3) {
|
|
170
|
+
:where(&) {
|
|
171
|
+
grid-area: trailing;
|
|
172
|
+
place-self: end;
|
|
173
|
+
grid-column: 1 / -1;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
table-view[preferred-compact-template='title:trailing'] > & {
|
|
178
|
+
:where(&) {
|
|
179
|
+
grid-template-columns: 1fr 1fr;
|
|
180
|
+
grid-template-rows: repeat(2, auto);
|
|
181
|
+
grid-template-areas:
|
|
182
|
+
'title trailing'
|
|
183
|
+
'subtitle _';
|
|
184
|
+
// grid-template-rows: repeat(3, auto); /* 3 rows for first 6 items */
|
|
185
|
+
// grid-template-areas:
|
|
186
|
+
// 'a b'
|
|
187
|
+
// 'c d'
|
|
188
|
+
// 'e f';
|
|
189
|
+
}
|
|
190
|
+
> :nth-child(-n + 2) {
|
|
191
|
+
:where(&) {
|
|
192
|
+
display: grid;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
> :nth-child(1) {
|
|
196
|
+
:where(&) {
|
|
197
|
+
grid-area: title;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
> :nth-child(2) {
|
|
201
|
+
:where(&) {
|
|
202
|
+
grid-area: trailing;
|
|
203
|
+
place-self: end;
|
|
204
|
+
grid-column: 1 / -1;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
table-view[preferred-compact-template='*'] > & {
|
|
209
|
+
> :nth-child(n + 2) {
|
|
210
|
+
:where(&) {
|
|
211
|
+
display: grid;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// :where(& > :nth-child(n + 7)) {
|
|
217
|
+
// grid-column: 1 / -1; /* span all columns */
|
|
218
|
+
// }
|
|
219
|
+
|
|
220
|
+
// :where(& > :nth-child(1)) {
|
|
221
|
+
// grid-area: a;
|
|
222
|
+
// }
|
|
223
|
+
// :where(& > :nth-child(2)) {
|
|
224
|
+
// grid-area: b;
|
|
225
|
+
// }
|
|
226
|
+
// :where(& > :nth-child(3)) {
|
|
227
|
+
// grid-area: c;
|
|
228
|
+
// }
|
|
229
|
+
// :where(& > :nth-child(4)) {
|
|
230
|
+
// grid-area: d;
|
|
231
|
+
// }
|
|
232
|
+
// :where(& > :nth-child(5)) {
|
|
233
|
+
// grid-area: e;
|
|
234
|
+
// }
|
|
235
|
+
// :where(& > :nth-child(6)) {
|
|
236
|
+
// grid-area: f;
|
|
237
|
+
// }
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
@use '../placeholders';
|
|
4
|
+
@use 'sass:string';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
@property --adaptable-table-style-index {
|
|
8
|
+
syntax: '<number>';
|
|
9
|
+
inherits: false;
|
|
10
|
+
initial-value: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
$table-ifs: (
|
|
14
|
+
inset: (
|
|
15
|
+
--list--item-color: var(--insetgroupedlist-item-color,),
|
|
16
|
+
--list--item-background-color: var(--insetgroupedlist-item-background-color,),
|
|
17
|
+
--list--highlighteditem-color: var(--insetgroupedlist-highlighteditem-color,),
|
|
18
|
+
--list--highlighteditem-background-color: var(--insetgroupedlist-highlighteditem-background-color,),
|
|
19
|
+
--list--item-border-radius: 0,
|
|
20
|
+
--list--host-background-color: var(--insetgroupedlist-background-color,),
|
|
21
|
+
--list--host-padding-inline: var(--insetgroupedlist-padding-inline),
|
|
22
|
+
--list--host-padding-block: var(--insetgroupedlist-padding-block),
|
|
23
|
+
//
|
|
24
|
+
--list--adjacentdetailsitem-border-radius: 0,
|
|
25
|
+
//
|
|
26
|
+
--list--details-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
27
|
+
--list--details-color: var(--insetgroupedlist-openitem-color,),
|
|
28
|
+
--list--opendetails-background-color: var(--insetgroupedlist-openitem-background-color,),
|
|
29
|
+
--list--opendetails-color: var(--insetgroupedlist-openitem-color,),
|
|
30
|
+
--list--opensummary-background-color: var(--insetgroupedlist-opensummary-background-color,),
|
|
31
|
+
--list--opensummary-color: var(--insetgroupedlist-opensummary-color,),
|
|
32
|
+
),
|
|
33
|
+
);
|
|
34
|
+
$table-elses: (
|
|
35
|
+
--list--host-background-color: var(--list-background-color,),
|
|
36
|
+
--list--highlighteditem-background-color: var(--list-highlighteditem-background-color,),
|
|
37
|
+
--list--item-background-color: var(--list-item-background-color,),
|
|
38
|
+
--list--item-padding-inline-start: var(--list-item-padding-inline-start),
|
|
39
|
+
--list--item-padding-inline-end: var(--list-item-padding-inline-end),
|
|
40
|
+
--list--item-padding-block-start: var(--list-item-padding-block-start),
|
|
41
|
+
--list--item-padding-block-end: var(--list-item-padding-block-end),
|
|
42
|
+
--list--item-color: var(--list-item-color,),
|
|
43
|
+
--list--highlighteditem-color: var(--list-highlighteditem-color,),
|
|
44
|
+
//
|
|
45
|
+
--list--details-background-color: var(--list-openitem-background-color,),
|
|
46
|
+
--list--details-color: var(--list-openitem-color,),
|
|
47
|
+
--list--opensummary-background-color: var(--list-opensummary-background-color,),
|
|
48
|
+
--list--opensummary-color: var(--list-opensummary-color,),
|
|
49
|
+
//
|
|
50
|
+
--list--accessories-size: 1.1rem,
|
|
51
|
+
--list--accessories-display: grid,
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
@layer #{vars.$list-components-layer} {
|
|
55
|
+
table-view {
|
|
56
|
+
&:not(& &, list-view &, [is='form-view'] &) {
|
|
57
|
+
@extend %list;
|
|
58
|
+
|
|
59
|
+
:where(&) {
|
|
60
|
+
container: table / inline-size;
|
|
61
|
+
|
|
62
|
+
&::part(table-container) {
|
|
63
|
+
grid-template-columns: subgrid;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&::part(table-header-stack),
|
|
67
|
+
&::part(table-footer-stack) {
|
|
68
|
+
position: relative; // SAFARI BUG
|
|
69
|
+
|
|
70
|
+
padding-inline: var(--list--host-padding-inline, 0px);
|
|
71
|
+
|
|
72
|
+
background-color: var(--secondaryBackground);
|
|
73
|
+
|
|
74
|
+
column-gap: var(--toolbar-col-gap);
|
|
75
|
+
|
|
76
|
+
grid-auto-flow: column;
|
|
77
|
+
grid-template-columns: auto 1fr auto;
|
|
78
|
+
grid-template-rows: var(--toolbar-cell-min-size);
|
|
79
|
+
|
|
80
|
+
place-content: center; // middle of y axis
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&::part(table-header-stack) {
|
|
84
|
+
border-radius: var(--insetlist-item-border-radius) var(--insetlist-item-border-radius) 0 0;
|
|
85
|
+
|
|
86
|
+
border-bottom: 1px solid var(--separator);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&::part(table-footer-stack) {
|
|
90
|
+
border-radius: 0 0 var(--insetlist-item-border-radius) var(--insetlist-item-border-radius);
|
|
91
|
+
|
|
92
|
+
border-top: 1px solid var(--separator);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(&)::part(table-header-leading-stack),
|
|
96
|
+
:where(&)::part(table-header-principal-stack),
|
|
97
|
+
:where(&)::part(table-header-trailing-stack),
|
|
98
|
+
:where(&)::part(table-footer-leading-stack),
|
|
99
|
+
:where(&)::part(table-footer-principal-stack),
|
|
100
|
+
:where(&)::part(table-footer-trailing-stack) {
|
|
101
|
+
grid-auto-flow: column;
|
|
102
|
+
grid-template-columns: minmax(0, 1fr);
|
|
103
|
+
|
|
104
|
+
column-gap: var(--toolbar-col-gap);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&::part(table-column-stack) {
|
|
109
|
+
grid-auto-flow: column;
|
|
110
|
+
|
|
111
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
112
|
+
|
|
113
|
+
column-gap: var(--table-col-gap);
|
|
114
|
+
|
|
115
|
+
padding-inline: var(--list--host-padding-inline, 0px);
|
|
116
|
+
|
|
117
|
+
padding-block: var(--table-row-gap);
|
|
118
|
+
|
|
119
|
+
// color: var(--blue);
|
|
120
|
+
font-size: 0.875rem;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
|
|
123
|
+
background-color: var(--separator);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// SECTION: toolbars
|
|
127
|
+
> [slot^='header'],
|
|
128
|
+
> [slot^='footer'] {
|
|
129
|
+
:where(&) {
|
|
130
|
+
place-content: center;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(& > button[slot^='header'], & > button[slot^='footer']),
|
|
135
|
+
:where(& > picker-view > menu-view[slot^='header'], & > picker-view > menu-view[slot^='footer'])::part(menu-summary),
|
|
136
|
+
:where(& > menu-view[slot^='header'], & > menu-view[slot^='footer'])::part(menu-summary) {
|
|
137
|
+
border-radius: 0.7rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// SECTION: Cols hider
|
|
141
|
+
@container table (width <= #{vars.$table-expanded-bp}) {
|
|
142
|
+
:where(& > [slot='column']) {
|
|
143
|
+
display: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:where(&)::part(table-column-stack) {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// SECTION: styleobserver
|
|
152
|
+
:where(&) {
|
|
153
|
+
&::part(table-container) {
|
|
154
|
+
transition: --adaptable-table-style-index 1ms step-start;
|
|
155
|
+
|
|
156
|
+
--adaptable-table-style-index: 0;
|
|
157
|
+
--adaptable-table-style: compact;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@container table (width > #{vars.$table-expanded-bp}) {
|
|
161
|
+
&::part(table-container) {
|
|
162
|
+
--adaptable-table-style-index: 1;
|
|
163
|
+
--adaptable-table-style: expanded;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// SECTION: Columns counter
|
|
169
|
+
:where(&) {
|
|
170
|
+
--table--expanded-columns: 1;
|
|
171
|
+
|
|
172
|
+
@for $i from 2 through 6 {
|
|
173
|
+
&:has(> [slot='column']:nth-child(#{$i} of [slot='column'])) {
|
|
174
|
+
--table--expanded-columns: #{$i};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// :where(&:has(> [slot='column']:nth-of-type(2)):not(:has(> [slot='column']:nth-of-type(3)))) {
|
|
179
|
+
// --table--expanded-columns: 2;
|
|
180
|
+
// }
|
|
181
|
+
// :where(&:has(> [slot='column']:nth-of-type(3)):not(:has(> [slot='column']:nth-of-type(4)))) {
|
|
182
|
+
// --table--expanded-columns: 3;
|
|
183
|
+
// }
|
|
184
|
+
|
|
185
|
+
// // @include mixins.center-toolbar-elements('&');
|
|
186
|
+
// :where(& > button[slot^='header'], & > button[slot^='footer']),
|
|
187
|
+
// :where(& > picker-view > menu-view)::part(menu-summary),
|
|
188
|
+
// :where(& > menu-view[slot^='header'], & > menu-view[slot^='footer'])::part(menu-summary) {
|
|
189
|
+
// place-items: center;
|
|
190
|
+
|
|
191
|
+
// place-content: center;
|
|
192
|
+
// }
|
|
193
|
+
// }
|
|
194
|
+
|
|
195
|
+
// wire
|
|
196
|
+
:where(&) {
|
|
197
|
+
@include mixins.write-props($table-elses);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// SECTION: ifs
|
|
201
|
+
@supports (x: #{string.unquote('if(else:red)')}) {
|
|
202
|
+
:where(&) {
|
|
203
|
+
@include mixins.write-ifs(--table-style, $table-ifs, $table-elses);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// SECTION: ifs polyfill
|
|
208
|
+
@supports not (x: #{string.unquote('if(else:red)')}) {
|
|
209
|
+
:where(&:not([table-style])) {
|
|
210
|
+
@each $v in vars.$table-styles {
|
|
211
|
+
@container style(--table-style: #{$v}) {
|
|
212
|
+
@include mixins.write-props(map.get($table-ifs, $v));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
@each $v in vars.$table-styles {
|
|
217
|
+
:where(&[table-style='#{$v}']) {
|
|
218
|
+
@include mixins.write-props(map.get($table-ifs, $v));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// SECTION: attrs finally
|
|
224
|
+
@supports (x: #{string.unquote('attr(x type(*))')}) {
|
|
225
|
+
:where(&) {
|
|
226
|
+
--table-style: attr(table-style type(<custom-ident>), inherit);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
|
|
3
|
+
@layer #{vars.$components-layer} {
|
|
4
|
+
text-field {
|
|
5
|
+
:where(&) {
|
|
6
|
+
grid-template-columns: minmax(0, 1fr);
|
|
7
|
+
|
|
8
|
+
grid-template-rows: minmax(0, 1fr);
|
|
9
|
+
|
|
10
|
+
// padding-inline: var(--toolbaritempadistart,) var(--toolbaritempadiend,);
|
|
11
|
+
// padding-block: var(--toolbaritempadbstart,) var(--toolbaritempadbend,);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(&)::part(text-field-stack) {
|
|
15
|
+
// display: grid;
|
|
16
|
+
|
|
17
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
18
|
+
|
|
19
|
+
grid-template-rows: minmax(0, 1fr);
|
|
20
|
+
|
|
21
|
+
column-gap: var(--labeled-content-column-gap);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(&)::part(text-field-label-stack) {
|
|
25
|
+
// display: grid;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(&)::part(text-field-input-stack) {
|
|
29
|
+
// display: grid;
|
|
30
|
+
|
|
31
|
+
place-items: stretch;
|
|
32
|
+
place-content: stretch;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(&)::part(text-field-form-input) {
|
|
36
|
+
// display: grid;
|
|
37
|
+
|
|
38
|
+
text-align: end;
|
|
39
|
+
|
|
40
|
+
appearance: none;
|
|
41
|
+
|
|
42
|
+
border: 0;
|
|
43
|
+
|
|
44
|
+
outline: 0;
|
|
45
|
+
|
|
46
|
+
padding-block: 0.1rem;
|
|
47
|
+
|
|
48
|
+
padding-inline-start: 0.3rem;
|
|
49
|
+
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -3,35 +3,46 @@
|
|
|
3
3
|
|
|
4
4
|
@layer #{vars.$components-layer} {
|
|
5
5
|
tool-bar-item-group {
|
|
6
|
-
|
|
6
|
+
:where(&) {
|
|
7
|
+
// pointer-events: all;
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
grid-auto-flow: column;
|
|
10
|
+
grid-template-columns: minmax(0, 1fr);
|
|
11
|
+
column-gap: var(--toolbar-col-gap);
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
background: var(--toolbaritemface);
|
|
14
|
+
padding-inline: var(--toolbar-cell-inline-padding-start) var(--toolbar-cell-inline-padding-end);
|
|
15
|
+
padding-block: var(--toolbar-cell-block-padding-start) var(--toolbar-cell-block-padding-end);
|
|
16
|
+
border-radius: var(--toolbar-cell-border-radius);
|
|
17
|
+
border-width: 0;
|
|
18
|
+
|
|
19
|
+
// tab-item {
|
|
20
|
+
// --toolbaritempadistart: var(--toolbar-cell-inline-padding);
|
|
21
|
+
// --toolbaritempadbstart: var(--toolbar-cell-block-padding);
|
|
22
|
+
// }
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(& > *) {
|
|
26
|
+
min-inline-size: calc(var(--toolbar-cell-min-size) - var(--toolbar-cell-block-padding-start) - var(--toolbar-cell-block-padding-end));
|
|
27
|
+
}
|
|
17
28
|
|
|
18
29
|
//
|
|
19
|
-
// --
|
|
20
|
-
// --
|
|
21
|
-
// --
|
|
22
|
-
// --
|
|
23
|
-
// --
|
|
30
|
+
// --toolbaritemface: white;
|
|
31
|
+
// --toolbaritempadistart: 5px;
|
|
32
|
+
// --toolbaritempadbstart: 5px;
|
|
33
|
+
// --toolbaritemradius: 99999px;
|
|
34
|
+
// --toolbaritemborder: 0;
|
|
24
35
|
|
|
25
36
|
// button {
|
|
26
37
|
// // appearance: none;
|
|
27
38
|
// // -webkit-appearance: none;
|
|
28
39
|
// // box-shadow: none;
|
|
29
40
|
// // outline: 0;
|
|
30
|
-
// border: var(--
|
|
31
|
-
// background-color: var(--
|
|
32
|
-
// padding-inline: var(--
|
|
33
|
-
// padding-block: var(--
|
|
34
|
-
// border-radius: var(--
|
|
41
|
+
// border: var(--toolbaritemborder);
|
|
42
|
+
// background-color: var(--toolbaritemface);
|
|
43
|
+
// padding-inline: var(--toolbaritempadistart);
|
|
44
|
+
// padding-block: var(--toolbaritempadbstart);
|
|
45
|
+
// border-radius: var(--toolbaritemradius);
|
|
35
46
|
// }
|
|
36
47
|
}
|
|
37
48
|
}
|