@swiftwc/ui 0.0.0-dev.6 → 0.0.0-dev.8
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/client/index.d.ts +13 -3
- package/generated/client/index.js +228 -158
- package/generated/components/bordered-button.d.ts +7 -0
- package/generated/components/bordered-button.js +20 -0
- package/generated/components/bordered-prominent-button.d.ts +7 -0
- package/generated/components/bordered-prominent-button.js +20 -0
- package/generated/components/borderless-button.d.ts +4 -4
- package/generated/components/borderless-button.js +26 -16
- package/generated/components/confirmation-dialog.d.ts +9 -0
- package/generated/components/confirmation-dialog.js +102 -0
- package/generated/components/date-picker.d.ts +46 -0
- package/generated/components/date-picker.js +430 -0
- package/generated/components/disclosure-group.d.ts +4 -7
- package/generated/components/disclosure-group.js +41 -66
- package/generated/components/form-view.d.ts +6 -0
- package/generated/components/form-view.js +58 -0
- package/generated/components/glass-button.d.ts +6 -0
- package/generated/components/glass-button.js +17 -0
- package/generated/components/glass-prominent-button.d.ts +6 -0
- package/generated/components/glass-prominent-button.js +17 -0
- package/generated/components/index.d.ts +34 -10
- package/generated/components/index.js +33 -14
- package/generated/components/label-view.d.ts +9 -0
- package/generated/components/label-view.js +83 -0
- package/generated/components/list-view.d.ts +5 -0
- package/generated/components/list-view.js +29 -0
- package/generated/components/menu-view.d.ts +9 -0
- package/generated/components/menu-view.js +133 -0
- package/generated/components/navigation-large-title.d.ts +6 -0
- package/generated/components/navigation-large-title.js +177 -0
- package/generated/components/navigation-split-view.d.ts +4 -2
- package/generated/components/navigation-split-view.js +11 -2
- package/generated/components/navigation-stack.d.ts +3 -2
- package/generated/components/navigation-stack.js +15 -58
- package/generated/components/navigation-title.d.ts +8 -0
- package/generated/components/navigation-title.js +66 -0
- package/generated/components/picker-view.d.ts +27 -0
- package/generated/components/picker-view.js +442 -0
- package/generated/components/plain-button.d.ts +7 -0
- package/generated/components/plain-button.js +20 -0
- package/generated/components/screen-view.d.ts +1 -1
- package/generated/components/screen-view.js +1 -1
- package/generated/components/scroll-view.d.ts +4 -2
- package/generated/components/scroll-view.js +169 -62
- package/generated/components/section-view.d.ts +9 -0
- package/generated/components/section-view.js +81 -0
- package/generated/components/sheet-view.d.ts +4 -4
- package/generated/components/sheet-view.js +59 -16
- package/generated/components/sidebar-toggle.d.ts +1 -1
- package/generated/components/sidebar-toggle.js +89 -63
- package/generated/components/sidebar-view.d.ts +2 -4
- package/generated/components/sidebar-view.js +20 -17
- package/generated/components/sticky-container.d.ts +6 -0
- package/generated/components/sticky-container.js +22 -0
- package/generated/components/tab-bar.d.ts +2 -4
- package/generated/components/tab-bar.js +24 -17
- package/generated/components/tab-item.d.ts +4 -3
- package/generated/components/tab-item.js +114 -29
- package/generated/components/tab-view.d.ts +17 -2
- package/generated/components/tab-view.js +244 -17
- package/generated/components/table-view.d.ts +7 -0
- package/generated/components/table-view.js +175 -0
- package/generated/components/text-field.d.ts +29 -0
- package/generated/components/text-field.js +489 -0
- package/generated/components/tool-bar-item-group.d.ts +5 -0
- package/generated/components/tool-bar-item-group.js +11 -0
- package/generated/components/tool-bar-item.d.ts +5 -0
- package/generated/components/tool-bar-item.js +19 -0
- package/generated/components/tool-bar.d.ts +7 -0
- package/generated/components/tool-bar.js +77 -0
- package/generated/components/v-keyboard.d.ts +2 -0
- package/generated/components/v-keyboard.js +64 -68
- package/generated/components/v-stack.d.ts +5 -0
- package/generated/components/v-stack.js +11 -0
- package/generated/confirmation-dialog/index.d.ts +1 -0
- package/generated/confirmation-dialog/index.js +1 -0
- package/generated/css/index.css +7463 -0
- package/generated/events/confirmation-dialog.d.ts +9 -0
- package/generated/events/date-picker.d.ts +8 -0
- package/generated/events/date-picker.js +1 -0
- package/generated/events/index.d.ts +7 -0
- package/generated/events/index.js +7 -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 +8 -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 +24 -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 +24 -0
- package/generated/i18n/index.js +139 -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 +25 -0
- package/generated/internal/class/form-associated-base.d.ts +20 -0
- package/generated/internal/class/form-associated-base.js +93 -0
- package/generated/internal/class/mutation-observer-singleton.d.ts +10 -0
- package/generated/internal/class/mutation-observer-singleton.js +46 -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 +77 -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/custom-element.d.ts +5 -0
- package/generated/internal/decorators/custom-element.js +4 -0
- package/generated/internal/privateNamespace.d.ts +4 -0
- package/generated/internal/privateNamespace.js +1 -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 +22 -0
- package/generated/internal/utils/cash/index.js +23 -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/frame.d.ts +1 -0
- package/generated/internal/utils/frame.js +6 -0
- package/generated/internal/utils/index.d.ts +16 -1
- package/generated/internal/utils/index.js +17 -1
- 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 +28 -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/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/lifecycle-observer/index.d.ts +1 -0
- package/generated/lifecycle-observer/index.js +1 -0
- package/generated/namespace-browser/base.d.ts +36 -0
- package/generated/namespace-browser/base.js +92 -0
- package/generated/namespace-browser/index.d.ts +7 -0
- package/generated/namespace-browser/index.js +1 -0
- package/generated/snapshot/index.d.ts +2 -11
- package/generated/snapshot/index.js +31 -144
- package/package.json +19 -8
- package/scss/_components.scss +52 -16
- package/scss/_final.scss +1 -0
- package/scss/_mixins.scss +2 -171
- package/scss/_placeholders.scss +3 -0
- package/scss/_transitions.scss +16 -0
- package/scss/_utils.scss +9 -0
- package/scss/_vars.scss +137 -23
- package/scss/base/_layout.scss +31 -15
- package/scss/base/_reboot.scss +118 -15
- package/scss/base/_root.scss +355 -25
- package/scss/colors/_index.scss +624 -70
- package/scss/components/_body-view.scss +12 -3
- package/scss/components/_bordered-button.scss +22 -0
- package/scss/components/_bordered-prominent-button.scss +19 -0
- package/scss/components/_borderless-button.scss +11 -6
- package/scss/components/_confirmation-dialog.scss +110 -0
- package/scss/components/_date-picker.scss +30 -0
- package/scss/components/_detail-placeholder.scss +155 -0
- package/scss/components/_disclosure-group.scss +100 -52
- package/scss/components/_form-view.scss +195 -0
- package/scss/components/_full-screen.scss +7 -5
- package/scss/components/_glass-button.scss +24 -0
- package/scss/components/_glass-prominent-button.scss +24 -0
- package/scss/components/_h-divider.scss +13 -0
- package/scss/components/_h-stack.scss +39 -0
- package/scss/components/_index.scss +224 -7
- package/scss/components/_label-view.scss +386 -0
- package/scss/components/_labeled-content.scss +9 -0
- package/scss/components/_list-view.scss +229 -0
- package/scss/components/_menu-view.scss +188 -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 +122 -0
- package/scss/components/_plain-button.scss +11 -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 +110 -66
- package/scss/components/_section-view.scss +119 -0
- package/scss/components/_sheet-view.scss +68 -35
- package/scss/components/_sidebar-toggle.scss +90 -27
- package/scss/components/_sidebar-view.scss +30 -40
- package/scss/components/_sticky-container.scss +42 -0
- package/scss/components/_tab-bar.scss +201 -84
- package/scss/components/_tab-item.scss +25 -0
- package/scss/components/_tab-view.scss +268 -126
- package/scss/components/_table-column.scss +52 -0
- package/scss/components/_table-row.scss +172 -0
- package/scss/components/_table-view.scss +223 -0
- package/scss/components/_text-field.scss +37 -0
- package/scss/components/_tool-bar-item-group.scss +30 -19
- package/scss/components/_tool-bar-item.scss +128 -70
- package/scss/components/_tool-bar.scss +107 -64
- 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 +8 -9
- package/scss/final/_touch-glass.scss +67 -0
- package/scss/index.scss +6 -2
- package/scss/mixins/_dialog.scss +88 -0
- package/scss/mixins/_index.scss +405 -0
- package/scss/placeholders/_buttons.scss +83 -0
- package/scss/placeholders/_lists.scss +589 -0
- package/scss/transitions/_bwd.navbar.scss +3 -13
- package/scss/transitions/_bwd.scss +4 -20
- package/scss/transitions/_confirmation-dialog.scss +19 -0
- package/scss/transitions/_dialog.scss +7 -11
- package/scss/transitions/_disclosure-group.scss +35 -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/_sidebar-view.scss +36 -0
- package/scss/transitions/_tab-bar.scss +19 -0
- package/scss/utils/_frame.scss +84 -0
- package/scss/utils/_index.scss +68 -0
- package/scss/utils/_scroll-view.scss +14 -0
- package/scss/utils/_spacing.scss +25 -0
- package/scss/utils/_stacks.scss +242 -0
- package/web-components.html-data/en.json +330 -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/generated/{namespace/index.js → events/confirmation-dialog.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
|
|
6
|
+
@layer #{vars.$utils-layer} {
|
|
7
|
+
// general utils
|
|
8
|
+
@for $i from 0 through 50 {
|
|
9
|
+
:where([padding-horizontal='#{$i}']) {
|
|
10
|
+
padding-inline: #{math.div(math.round(math.div($i, 10) * 10), 10)}rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:where([padding-vertical='#{$i}']) {
|
|
14
|
+
padding-block: #{math.div(math.round(math.div($i, 10) * 10), 10)}rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where([margin-horizontal='#{$i}']) {
|
|
18
|
+
margin-inline: #{math.div(math.round(math.div($i, 10) * 10), 10)}rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where([margin-vertical='#{$i}']) {
|
|
22
|
+
margin-block: #{math.div(math.round(math.div($i, 10) * 10), 10)}rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
@use '../vars';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
|
|
6
|
+
$h-map: (
|
|
7
|
+
leading: start,
|
|
8
|
+
center: center,
|
|
9
|
+
trailing: end,
|
|
10
|
+
fill: stretch, // cross-axis stretch
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
$v-map: (
|
|
14
|
+
top: start,
|
|
15
|
+
center: center,
|
|
16
|
+
bottom: end,
|
|
17
|
+
fill: stretch, // cross-axis stretch
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
$placement-map: (
|
|
21
|
+
top-leading: start start,
|
|
22
|
+
top: start center,
|
|
23
|
+
top-trailing: start end,
|
|
24
|
+
center-leading: center start,
|
|
25
|
+
center: center center,
|
|
26
|
+
center-trailing: center end,
|
|
27
|
+
bottom-leading: end start,
|
|
28
|
+
bottom: end center,
|
|
29
|
+
bottom-trailing: end end,
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
$alignment-map: (
|
|
33
|
+
leading: start,
|
|
34
|
+
center: center,
|
|
35
|
+
trailing: end,
|
|
36
|
+
fill: stretch, // cross-axis stretch
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
$distribution-map: (
|
|
40
|
+
top: start,
|
|
41
|
+
center: center,
|
|
42
|
+
bottom: end,
|
|
43
|
+
fill: stretch,
|
|
44
|
+
between: space-between,
|
|
45
|
+
evenly: space-evenly,
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
$inline-map: (
|
|
49
|
+
leading: (
|
|
50
|
+
(justify-items start),
|
|
51
|
+
(justify-content start),
|
|
52
|
+
),
|
|
53
|
+
'leading fill': (
|
|
54
|
+
(justify-items start),
|
|
55
|
+
(justify-content stretch),
|
|
56
|
+
),
|
|
57
|
+
center: (
|
|
58
|
+
(justify-items center),
|
|
59
|
+
(justify-content center),
|
|
60
|
+
),
|
|
61
|
+
trailing: (
|
|
62
|
+
(justify-items end),
|
|
63
|
+
(justify-content end),
|
|
64
|
+
),
|
|
65
|
+
fill: (
|
|
66
|
+
(justify-items stretch),
|
|
67
|
+
(justify-content stretch),
|
|
68
|
+
),
|
|
69
|
+
space-between: (
|
|
70
|
+
(justify-content space-between),
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
$block-map: (
|
|
75
|
+
leading: (
|
|
76
|
+
(align-items start),
|
|
77
|
+
(align-content start),
|
|
78
|
+
),
|
|
79
|
+
'leading fill': (
|
|
80
|
+
(align-items start),
|
|
81
|
+
(align-content stretch),
|
|
82
|
+
),
|
|
83
|
+
center: (
|
|
84
|
+
(align-items center),
|
|
85
|
+
(align-content center),
|
|
86
|
+
),
|
|
87
|
+
trailing: (
|
|
88
|
+
(align-items end),
|
|
89
|
+
(align-content end),
|
|
90
|
+
),
|
|
91
|
+
fill: (
|
|
92
|
+
(align-items stretch),
|
|
93
|
+
(align-content stretch),
|
|
94
|
+
),
|
|
95
|
+
space-between: (
|
|
96
|
+
(align-content space-between),
|
|
97
|
+
),
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
$h-placement-map: (
|
|
101
|
+
'fill leading': (
|
|
102
|
+
(place-items (start stretch)),
|
|
103
|
+
(place-content (start stretch)),
|
|
104
|
+
),
|
|
105
|
+
'fill space-between': (
|
|
106
|
+
(align-content (space-between)),
|
|
107
|
+
(justify-items (stretch)),
|
|
108
|
+
(justify-content (stretch)),
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
$v-placement-map: (
|
|
113
|
+
'leading fill': (
|
|
114
|
+
(place-items (start stretch)),
|
|
115
|
+
(place-content (start stretch)),
|
|
116
|
+
),
|
|
117
|
+
'space-between fill': (
|
|
118
|
+
(align-content (space-between)),
|
|
119
|
+
(justify-items (stretch)),
|
|
120
|
+
(justify-content (stretch)),
|
|
121
|
+
),
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
@layer #{vars.$utils-layer} {
|
|
125
|
+
// Vertical alignment becomes the common tweak
|
|
126
|
+
h-stack,
|
|
127
|
+
v-flex-stack {
|
|
128
|
+
// main axis (horizontal/inline)
|
|
129
|
+
@each $k, $declarations in $inline-map {
|
|
130
|
+
&[distribution='#{$k}'] {
|
|
131
|
+
@each $decl in $declarations {
|
|
132
|
+
#{list.nth($decl, 1)}: #{list.nth($decl, 2)};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// cross axis (vertical/block)
|
|
138
|
+
@each $k, $declarations in $block-map {
|
|
139
|
+
&[alignment='#{$k}'] {
|
|
140
|
+
@each $decl in $declarations {
|
|
141
|
+
#{list.nth($decl, 1)}: #{list.nth($decl, 2)};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// placement="fill leading" -> short cut for distribution="fill" alignment="leading"
|
|
147
|
+
@each $k, $declarations in $h-placement-map {
|
|
148
|
+
&[placement='#{$k}'] {
|
|
149
|
+
@each $decl in $declarations {
|
|
150
|
+
#{list.nth($decl, 1)}: #{list.join(list.nth($decl, 2), ' ')};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// @each $k, $v in $alignment-map {
|
|
156
|
+
// &[align='#{$k}'] {
|
|
157
|
+
// justify-items: $v;
|
|
158
|
+
// }
|
|
159
|
+
// }
|
|
160
|
+
|
|
161
|
+
// @each $k, $v in $distribution-map {
|
|
162
|
+
// &[distribute='#{$k}'] {
|
|
163
|
+
// justify-content: $v;
|
|
164
|
+
// }
|
|
165
|
+
// }
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Horizontal alignment becomes the common tweak
|
|
169
|
+
v-stack,
|
|
170
|
+
h-flex-stack {
|
|
171
|
+
// block dir for items+content
|
|
172
|
+
@each $k, $declarations in $block-map {
|
|
173
|
+
&[distribution='#{$k}'] {
|
|
174
|
+
@each $decl in $declarations {
|
|
175
|
+
#{list.nth($decl, 1)}: #{list.nth($decl, 2)};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// inline dir for items+content
|
|
181
|
+
@each $k, $declarations in $inline-map {
|
|
182
|
+
&[alignment='#{$k}'] {
|
|
183
|
+
@each $decl in $declarations {
|
|
184
|
+
#{list.nth($decl, 1)}: #{list.nth($decl, 2)};
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// placement="leading fill" -> shortcut for distribution="leading" alignment="fill"
|
|
190
|
+
@each $k, $declarations in $v-placement-map {
|
|
191
|
+
&[placement='#{$k}'] {
|
|
192
|
+
@each $decl in $declarations {
|
|
193
|
+
#{list.nth($decl, 1)}: #{list.join(list.nth($decl, 2), ' ')};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// @each $k, $v in $alignment-map {
|
|
199
|
+
// &[align='#{$k}'] {
|
|
200
|
+
// align-items: $v;
|
|
201
|
+
// }
|
|
202
|
+
// }
|
|
203
|
+
|
|
204
|
+
// @each $k, $v in $distribution-map {
|
|
205
|
+
// &[distribute='#{$k}'] {
|
|
206
|
+
// align-content: $v;
|
|
207
|
+
// }
|
|
208
|
+
// }
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
v-stack {
|
|
212
|
+
// $spaces: 0, 1, 2, 3, 4;
|
|
213
|
+
// @each $s in $spaces {
|
|
214
|
+
@for $i from 0 through 50 {
|
|
215
|
+
:where(&[spacing='#{$i}']) {
|
|
216
|
+
gap: #{math.div(math.round(math.div($i, 10) * 10), 10)}rem;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:where(&[frame\:alignment='center']) {
|
|
221
|
+
justify-self: center;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// padding reserved word for stacks
|
|
226
|
+
v-stack,
|
|
227
|
+
h-stack,
|
|
228
|
+
v-flex-stack {
|
|
229
|
+
:where(&[padding]) {
|
|
230
|
+
padding-inline: 1rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:where(scroll-view > &[padding]) {
|
|
234
|
+
padding-block-end: 1rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// all direct children (excluding stacks) of stacks get margins, also some special cases like a details>summary[padding] etc.
|
|
238
|
+
:where(& > [padding]:not(&), & > [is='disclosure-group'] > summary[padding]) {
|
|
239
|
+
margin-inline: 1rem;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "body-view"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "bordered-button"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "bordered-prominent-button"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "borderless-button",
|
|
15
|
+
"attributes": [
|
|
16
|
+
{
|
|
17
|
+
"name": "role"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "confirmation-dialog",
|
|
23
|
+
"attributes": [
|
|
24
|
+
{
|
|
25
|
+
"name": "anchor"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "date-picker",
|
|
31
|
+
"attributes": [
|
|
32
|
+
{
|
|
33
|
+
"name": "date-picker-style",
|
|
34
|
+
"description": "Value Type: “graphical” | “field” | “automatic”\nDescription: The style of this element",
|
|
35
|
+
"values": [
|
|
36
|
+
{
|
|
37
|
+
"name": "graphical"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "field"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "automatic"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "required"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "prompt"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "label"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "name"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "selection"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "disabled"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "minimum"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "maximum"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "disclosure-group",
|
|
75
|
+
"attributes": [
|
|
76
|
+
{
|
|
77
|
+
"name": "open",
|
|
78
|
+
"description": "Description: The status of this element"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "form-view"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "glass-button"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "glass-prominent-button"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "label-view",
|
|
93
|
+
"attributes": [
|
|
94
|
+
{
|
|
95
|
+
"name": "system-image"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "title"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "line-limit"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "truncation-mode"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "list-view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "menu-view",
|
|
113
|
+
"attributes": [
|
|
114
|
+
{
|
|
115
|
+
"name": "open"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "closing"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "label"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "navigation-large-title"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "navigation-split-view"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "navigation-stack"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "navigation-title",
|
|
136
|
+
"attributes": [
|
|
137
|
+
{
|
|
138
|
+
"name": "value"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "subtitle"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "picker-view"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "plain-button"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "screen-view"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "scroll-view",
|
|
156
|
+
"attributes": [
|
|
157
|
+
{
|
|
158
|
+
"name": "navigation-title"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "navigation-inline-title"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "navigation-inline-subtitle"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "navigation-bar-title-display-mode"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "section-view",
|
|
173
|
+
"attributes": [
|
|
174
|
+
{
|
|
175
|
+
"name": "header"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "footer"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "sheet-view",
|
|
184
|
+
"attributes": [
|
|
185
|
+
{
|
|
186
|
+
"name": "fine-presentation-large-adaptation"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "sidebar-toggle"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "sidebar-view"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "sticky-container"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "tab-bar"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "tab-item"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "tab-view",
|
|
207
|
+
"description": ""
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "table-view"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "text-field",
|
|
214
|
+
"description": "",
|
|
215
|
+
"attributes": [
|
|
216
|
+
{
|
|
217
|
+
"name": "prompt"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "minimum"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "maximum"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "min-length"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "max-length"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "label"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "name"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "text"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "text-input-autocapitalization"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "disable-autocorrection"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "keyboard-type"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "required"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "disabled"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "tool-bar-item-group"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "tool-bar-item"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "tool-bar"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "v-keyboard",
|
|
268
|
+
"description": "Required component, must be BODY tag"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "v-stack"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"globalAttributes": [
|
|
275
|
+
{
|
|
276
|
+
"name": "frame:width",
|
|
277
|
+
"description": "Sets inline-size",
|
|
278
|
+
"valueSet": "frameWidth"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "frame:max-width",
|
|
282
|
+
"description": "Sets max-inline-size",
|
|
283
|
+
"valueSet": "frameMaxWidth"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"valueSets": [
|
|
287
|
+
{
|
|
288
|
+
"name": "frameWidth",
|
|
289
|
+
"values": [
|
|
290
|
+
{
|
|
291
|
+
"name": "infinity",
|
|
292
|
+
"description": "100%"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "0",
|
|
296
|
+
"description": "0rem"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "1",
|
|
300
|
+
"description": "1rem"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "2",
|
|
304
|
+
"description": "2rem"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "frameMaxWidth",
|
|
310
|
+
"values": [
|
|
311
|
+
{
|
|
312
|
+
"name": "infinity",
|
|
313
|
+
"description": "100%"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "0",
|
|
317
|
+
"description": "0rem"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "1",
|
|
321
|
+
"description": "1rem"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "2",
|
|
325
|
+
"description": "2rem"
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class BottomBar extends HTMLElement {
|
|
2
|
-
#private;
|
|
3
|
-
static get leadingPartName(): string;
|
|
4
|
-
static get principalPartName(): string;
|
|
5
|
-
static get trailingPartName(): string;
|
|
6
|
-
static get template(): HTMLTemplateElement;
|
|
7
|
-
constructor();
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
-
};
|
|
12
|
-
var _BottomBar_instances, _a, _BottomBar_template, _BottomBar_shadowRoot, _BottomBar_ro, _BottomBar_sibling_get, _BottomBar_sp_set, _BottomBar_ep_set, _BottomBar_measureStacks;
|
|
13
|
-
export class BottomBar extends HTMLElement {
|
|
14
|
-
static get leadingPartName() {
|
|
15
|
-
return 'toolbar-leading-stack';
|
|
16
|
-
}
|
|
17
|
-
static get principalPartName() {
|
|
18
|
-
return 'toolbar-principal-stack';
|
|
19
|
-
}
|
|
20
|
-
static get trailingPartName() {
|
|
21
|
-
return 'toolbar-trailing-stack';
|
|
22
|
-
}
|
|
23
|
-
static get template() {
|
|
24
|
-
if (!__classPrivateFieldGet(this, _a, "f", _BottomBar_template))
|
|
25
|
-
__classPrivateFieldSet(this, _a, Object.assign(document.createElement('template'), {
|
|
26
|
-
innerHTML: `<div part="${this.leadingPartName}">
|
|
27
|
-
<slot name="leading"></slot>
|
|
28
|
-
</div>
|
|
29
|
-
<div part="${this.principalPartName}">
|
|
30
|
-
<slot></slot>
|
|
31
|
-
</div>
|
|
32
|
-
<div part="${this.trailingPartName}">
|
|
33
|
-
<slot name="trailing"></slot>
|
|
34
|
-
</div>`,
|
|
35
|
-
}), "f", _BottomBar_template);
|
|
36
|
-
return __classPrivateFieldGet(this, _a, "f", _BottomBar_template);
|
|
37
|
-
}
|
|
38
|
-
constructor() {
|
|
39
|
-
super();
|
|
40
|
-
_BottomBar_instances.add(this);
|
|
41
|
-
_BottomBar_shadowRoot.set(this, void 0);
|
|
42
|
-
_BottomBar_ro.set(this, void 0);
|
|
43
|
-
__classPrivateFieldSet(this, _BottomBar_shadowRoot, this.attachShadow({ mode: 'open' }), "f");
|
|
44
|
-
__classPrivateFieldGet(this, _BottomBar_shadowRoot, "f").appendChild(document.importNode(this.constructor.template.content, true));
|
|
45
|
-
__classPrivateFieldSet(this, _BottomBar_ro, new ResizeObserver(__classPrivateFieldGet(this, _BottomBar_instances, "m", _BottomBar_measureStacks).bind(this)), "f");
|
|
46
|
-
}
|
|
47
|
-
connectedCallback() {
|
|
48
|
-
console.debug(`${_a.name} ⚡️ connect`);
|
|
49
|
-
__classPrivateFieldGet(this, _BottomBar_ro, "f")?.observe(__classPrivateFieldGet(this, _BottomBar_shadowRoot, "f").querySelector(`[part="${this.constructor.leadingPartName}"]`));
|
|
50
|
-
__classPrivateFieldGet(this, _BottomBar_ro, "f")?.observe(__classPrivateFieldGet(this, _BottomBar_shadowRoot, "f").querySelector(`[part="${this.constructor.trailingPartName}"]`));
|
|
51
|
-
}
|
|
52
|
-
disconnectedCallback() {
|
|
53
|
-
console.debug(`${_a.name} ⚡️ disconnect`);
|
|
54
|
-
__classPrivateFieldGet(this, _BottomBar_ro, "f").disconnect();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
_a = BottomBar, _BottomBar_shadowRoot = new WeakMap(), _BottomBar_ro = new WeakMap(), _BottomBar_instances = new WeakSet(), _BottomBar_sibling_get = function _BottomBar_sibling_get() {
|
|
58
|
-
return (this.parentElement?.querySelector(':scope > scroll-view') ?? undefined); //this.previousElementSibling ?? undefined
|
|
59
|
-
}, _BottomBar_sp_set = function _BottomBar_sp_set(nv) {
|
|
60
|
-
;
|
|
61
|
-
__classPrivateFieldGet(this, _BottomBar_instances, "a", _BottomBar_sibling_get)?.style?.setProperty?.('--bottombar-padding-inline-start', `${nv}px`);
|
|
62
|
-
}, _BottomBar_ep_set = function _BottomBar_ep_set(nv) {
|
|
63
|
-
;
|
|
64
|
-
__classPrivateFieldGet(this, _BottomBar_instances, "a", _BottomBar_sibling_get)?.style?.setProperty?.('--bottombar-padding-inline-end', `${nv}px`);
|
|
65
|
-
}, _BottomBar_measureStacks = function _BottomBar_measureStacks(entries = []) {
|
|
66
|
-
console.debug(`${_a.name} ⚡️ resize observer callback: ${__classPrivateFieldGet(this, _BottomBar_instances, "m", _BottomBar_measureStacks).name}`);
|
|
67
|
-
for (const { contentRect, target } of entries)
|
|
68
|
-
if (target.part.contains(this.constructor.leadingPartName))
|
|
69
|
-
__classPrivateFieldSet(this, _BottomBar_instances, Math.round(contentRect.width), "a", _BottomBar_sp_set);
|
|
70
|
-
else if (target.part.contains(this.constructor.trailingPartName))
|
|
71
|
-
__classPrivateFieldSet(this, _BottomBar_instances, Math.round(contentRect.width), "a", _BottomBar_ep_set);
|
|
72
|
-
};
|
|
73
|
-
_BottomBar_template = { value: void 0 };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class NavigationBar extends HTMLElement {
|
|
2
|
-
#private;
|
|
3
|
-
static get leadingPartName(): string;
|
|
4
|
-
static get principalPartName(): string;
|
|
5
|
-
static get trailingPartName(): string;
|
|
6
|
-
static get template(): HTMLTemplateElement;
|
|
7
|
-
constructor();
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
}
|