@vandeurenglenn/lite-elements 0.3.18
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/exports/banner/banner.d.ts +7 -0
- package/exports/banner.js +68 -0
- package/exports/bundle/banner.js +37 -0
- package/exports/bundle/button.js +144 -0
- package/exports/bundle/card.js +140 -0
- package/exports/bundle/code.js +35 -0
- package/exports/bundle/custom-element-c2e883ba.js +1 -0
- package/exports/bundle/demo-elements.js +1 -0
- package/exports/bundle/demo-icons.js +16 -0
- package/exports/bundle/demo-shell.js +540 -0
- package/exports/bundle/demo.js +457 -0
- package/exports/bundle/dial.js +1 -0
- package/exports/bundle/dialog.js +149 -0
- package/exports/bundle/divider.js +21 -0
- package/exports/bundle/drawer-button.js +18 -0
- package/exports/bundle/drawer-item.js +39 -0
- package/exports/bundle/drawer-layout.js +96 -0
- package/exports/bundle/drawer.js +56 -0
- package/exports/bundle/dropdown-menu.js +59 -0
- package/exports/bundle/dropdown.js +26 -0
- package/exports/bundle/elements.js +1 -0
- package/exports/bundle/elevation.js +56 -0
- package/exports/bundle/hour-field.js +1 -0
- package/exports/bundle/icon-button.js +13 -0
- package/exports/bundle/icon-set.js +5 -0
- package/exports/bundle/icon.js +16 -0
- package/exports/bundle/index-3c006227.js +1 -0
- package/exports/bundle/index.html +590 -0
- package/exports/bundle/input.js +6 -0
- package/exports/bundle/it-d4d177bf.js +1 -0
- package/exports/bundle/list-item.js +43 -0
- package/exports/bundle/list.js +1 -0
- package/exports/bundle/menu.js +13 -0
- package/exports/bundle/menu2.js +1 -0
- package/exports/bundle/minute-field.js +5 -0
- package/exports/bundle/pages.js +43 -0
- package/exports/bundle/pane.js +96 -0
- package/exports/bundle/property-58e28172.js +11 -0
- package/exports/bundle/query-73dacde5.js +1 -0
- package/exports/bundle/rail.js +58 -0
- package/exports/bundle/root.js +8 -0
- package/exports/bundle/scroll-mixin.js +1 -0
- package/exports/bundle/section.js +11 -0
- package/exports/bundle/section2.js +25 -0
- package/exports/bundle/select-mixin.js +1 -0
- package/exports/bundle/selector-mixin.js +1 -0
- package/exports/bundle/selector.js +31 -0
- package/exports/bundle/supporting-pane.js +47 -0
- package/exports/bundle/tab.js +22 -0
- package/exports/bundle/tabs.js +51 -0
- package/exports/bundle/text-field.js +10 -0
- package/exports/bundle/theme.js +1 -0
- package/exports/bundle/themes/default/colors.module.css +180 -0
- package/exports/bundle/themes/default/missing/motion.css +4 -0
- package/exports/bundle/themes/default/missing/shape.css +13 -0
- package/exports/bundle/themes/default/missing/theme.dark.css +5 -0
- package/exports/bundle/themes/default/missing/theme.light.css +5 -0
- package/exports/bundle/themes/default/missing/tokens.css +9 -0
- package/exports/bundle/themes/default/theme.css +10 -0
- package/exports/bundle/themes/default/theme.dark.css +33 -0
- package/exports/bundle/themes/default/theme.light.css +33 -0
- package/exports/bundle/themes/default/tokens.css +256 -0
- package/exports/bundle/themes/default/typography.module.css +150 -0
- package/exports/bundle/time-picker.js +21 -0
- package/exports/bundle/title.js +1 -0
- package/exports/bundle/toggle-button.js +4 -0
- package/exports/bundle/toggle.js +5 -0
- package/exports/bundle/top-app-bar-e6e33a9e.js +114 -0
- package/exports/bundle/top-app-bar.js +1 -0
- package/exports/bundle/types.js +1 -0
- package/exports/bundle/typography.js +156 -0
- package/exports/button.js +227 -0
- package/exports/card/card.d.ts +13 -0
- package/exports/card.js +187 -0
- package/exports/code.js +77 -0
- package/exports/demo-elements.d.ts +9 -0
- package/exports/demo-elements.js +10 -0
- package/exports/demo-icons.js +48 -0
- package/exports/demo-shell.js +648 -0
- package/exports/demo.js +524 -0
- package/exports/dial.js +1 -0
- package/exports/dialog.js +256 -0
- package/exports/divider/divider.d.ts +17 -0
- package/exports/divider.js +54 -0
- package/exports/drawer/drawer-button.d.ts +9 -0
- package/exports/drawer/drawer-layout.d.ts +19 -0
- package/exports/drawer/drawer.d.ts +13 -0
- package/exports/drawer-button.js +83 -0
- package/exports/drawer-item.js +69 -0
- package/exports/drawer-layout.js +209 -0
- package/exports/drawer.js +140 -0
- package/exports/dropdown-menu.js +172 -0
- package/exports/dropdown.js +68 -0
- package/exports/elements.d.ts +63 -0
- package/exports/elements.js +41 -0
- package/exports/elevation/elevation.d.ts +11 -0
- package/exports/elevation.js +97 -0
- package/exports/hour-field.js +1 -0
- package/exports/icon-button.js +59 -0
- package/exports/icon-set.js +52 -0
- package/exports/icon.js +103 -0
- package/exports/input.js +36 -0
- package/exports/list/list.d.ts +1 -0
- package/exports/list-item.js +127 -0
- package/exports/list.js +1 -0
- package/exports/menu.js +68 -0
- package/exports/menu2.js +1 -0
- package/exports/minute-field.js +36 -0
- package/exports/mixins/scroll-mixin.d.ts +13 -0
- package/exports/mixins/select-mixin.d.ts +32 -0
- package/exports/mixins/selector-mixin.d.ts +8 -0
- package/exports/pages.js +88 -0
- package/exports/pane/pane.d.ts +14 -0
- package/exports/pane.js +182 -0
- package/exports/rail/rail.d.ts +9 -0
- package/exports/rail.js +124 -0
- package/exports/root.js +39 -0
- package/exports/scroll-mixin.js +36 -0
- package/exports/section.js +54 -0
- package/exports/section2.js +58 -0
- package/exports/select-mixin.js +139 -0
- package/exports/selector-mixin.js +43 -0
- package/exports/selector.js +63 -0
- package/exports/supporting-pane/supporting-pane.d.ts +12 -0
- package/exports/supporting-pane.js +133 -0
- package/exports/tab.js +47 -0
- package/exports/tabs/menu.d.ts +1 -0
- package/exports/tabs/tab.d.ts +4 -0
- package/exports/tabs/tabs.d.ts +5 -0
- package/exports/tabs.js +80 -0
- package/exports/text-field.js +88 -0
- package/exports/theme/theme.d.ts +15 -0
- package/exports/theme.js +123 -0
- package/exports/themes/default/colors.module.css +180 -0
- package/exports/themes/default/missing/motion.css +4 -0
- package/exports/themes/default/missing/shape.css +13 -0
- package/exports/themes/default/missing/theme.dark.css +5 -0
- package/exports/themes/default/missing/theme.light.css +5 -0
- package/exports/themes/default/missing/tokens.css +9 -0
- package/exports/themes/default/theme.css +10 -0
- package/exports/themes/default/theme.dark.css +33 -0
- package/exports/themes/default/theme.light.css +33 -0
- package/exports/themes/default/tokens.css +256 -0
- package/exports/themes/default/typography.module.css +150 -0
- package/exports/time-picker/dial.d.ts +1 -0
- package/exports/time-picker/hour-field.d.ts +1 -0
- package/exports/time-picker.js +52 -0
- package/exports/title.js +1 -0
- package/exports/toggle/toggle-button.d.ts +13 -0
- package/exports/toggle-button.js +63 -0
- package/exports/toggle.js +78 -0
- package/exports/top-app-bar.js +143 -0
- package/exports/tslib.es6-d3ba6528.js +57 -0
- package/exports/types.d.ts +18 -0
- package/exports/types.js +1 -0
- package/exports/typography/title.d.ts +1 -0
- package/exports/typography.js +206 -0
- package/package.json +256 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
.display-large{
|
|
2
|
+
font-family: var(--md-sys-typescale-display-large-font-family-name);
|
|
3
|
+
font-style: var(--md-sys-typescale-display-large-font-family-style);
|
|
4
|
+
font-weight: var(--md-sys-typescale-display-large-font-weight);
|
|
5
|
+
font-size: var(--md-sys-typescale-display-large-font-size);
|
|
6
|
+
letter-spacing: var(--md-sys-typescale-display-large-tracking);
|
|
7
|
+
line-height: var(--md-sys-typescale-display-large-height);
|
|
8
|
+
text-transform: var(--md-sys-typescale-display-large-text-transform);
|
|
9
|
+
text-decoration: var(--md-sys-typescale-display-large-text-decoration);
|
|
10
|
+
}
|
|
11
|
+
.display-medium{
|
|
12
|
+
font-family: var(--md-sys-typescale-display-medium-font-family-name);
|
|
13
|
+
font-style: var(--md-sys-typescale-display-medium-font-family-style);
|
|
14
|
+
font-weight: var(--md-sys-typescale-display-medium-font-weight);
|
|
15
|
+
font-size: var(--md-sys-typescale-display-medium-font-size);
|
|
16
|
+
letter-spacing: var(--md-sys-typescale-display-medium-tracking);
|
|
17
|
+
line-height: var(--md-sys-typescale-display-medium-height);
|
|
18
|
+
text-transform: var(--md-sys-typescale-display-medium-text-transform);
|
|
19
|
+
text-decoration: var(--md-sys-typescale-display-medium-text-decoration);
|
|
20
|
+
}
|
|
21
|
+
.display-small{
|
|
22
|
+
font-family: var(--md-sys-typescale-display-small-font-family-name);
|
|
23
|
+
font-style: var(--md-sys-typescale-display-small-font-family-style);
|
|
24
|
+
font-weight: var(--md-sys-typescale-display-small-font-weight);
|
|
25
|
+
font-size: var(--md-sys-typescale-display-small-font-size);
|
|
26
|
+
letter-spacing: var(--md-sys-typescale-display-small-tracking);
|
|
27
|
+
line-height: var(--md-sys-typescale-display-small-height);
|
|
28
|
+
text-transform: var(--md-sys-typescale-display-small-text-transform);
|
|
29
|
+
text-decoration: var(--md-sys-typescale-display-small-text-decoration);
|
|
30
|
+
}
|
|
31
|
+
.headline-large{
|
|
32
|
+
font-family: var(--md-sys-typescale-headline-large-font-family-name);
|
|
33
|
+
font-style: var(--md-sys-typescale-headline-large-font-family-style);
|
|
34
|
+
font-weight: var(--md-sys-typescale-headline-large-font-weight);
|
|
35
|
+
font-size: var(--md-sys-typescale-headline-large-font-size);
|
|
36
|
+
letter-spacing: var(--md-sys-typescale-headline-large-tracking);
|
|
37
|
+
line-height: var(--md-sys-typescale-headline-large-height);
|
|
38
|
+
text-transform: var(--md-sys-typescale-headline-large-text-transform);
|
|
39
|
+
text-decoration: var(--md-sys-typescale-headline-large-text-decoration);
|
|
40
|
+
}
|
|
41
|
+
.headline-medium{
|
|
42
|
+
font-family: var(--md-sys-typescale-headline-medium-font-family-name);
|
|
43
|
+
font-style: var(--md-sys-typescale-headline-medium-font-family-style);
|
|
44
|
+
font-weight: var(--md-sys-typescale-headline-medium-font-weight);
|
|
45
|
+
font-size: var(--md-sys-typescale-headline-medium-font-size);
|
|
46
|
+
letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
|
|
47
|
+
line-height: var(--md-sys-typescale-headline-medium-height);
|
|
48
|
+
text-transform: var(--md-sys-typescale-headline-medium-text-transform);
|
|
49
|
+
text-decoration: var(--md-sys-typescale-headline-medium-text-decoration);
|
|
50
|
+
}
|
|
51
|
+
.headline-small{
|
|
52
|
+
font-family: var(--md-sys-typescale-headline-small-font-family-name);
|
|
53
|
+
font-style: var(--md-sys-typescale-headline-small-font-family-style);
|
|
54
|
+
font-weight: var(--md-sys-typescale-headline-small-font-weight);
|
|
55
|
+
font-size: var(--md-sys-typescale-headline-small-font-size);
|
|
56
|
+
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
|
|
57
|
+
line-height: var(--md-sys-typescale-headline-small-height);
|
|
58
|
+
text-transform: var(--md-sys-typescale-headline-small-text-transform);
|
|
59
|
+
text-decoration: var(--md-sys-typescale-headline-small-text-decoration);
|
|
60
|
+
}
|
|
61
|
+
.body-large{
|
|
62
|
+
font-family: var(--md-sys-typescale-body-large-font-family-name);
|
|
63
|
+
font-style: var(--md-sys-typescale-body-large-font-family-style);
|
|
64
|
+
font-weight: var(--md-sys-typescale-body-large-font-weight);
|
|
65
|
+
font-size: var(--md-sys-typescale-body-large-font-size);
|
|
66
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking);
|
|
67
|
+
line-height: var(--md-sys-typescale-body-large-height);
|
|
68
|
+
text-transform: var(--md-sys-typescale-body-large-text-transform);
|
|
69
|
+
text-decoration: var(--md-sys-typescale-body-large-text-decoration);
|
|
70
|
+
}
|
|
71
|
+
.body-medium{
|
|
72
|
+
font-family: var(--md-sys-typescale-body-medium-font-family-name);
|
|
73
|
+
font-style: var(--md-sys-typescale-body-medium-font-family-style);
|
|
74
|
+
font-weight: var(--md-sys-typescale-body-medium-font-weight);
|
|
75
|
+
font-size: var(--md-sys-typescale-body-medium-font-size);
|
|
76
|
+
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
|
|
77
|
+
line-height: var(--md-sys-typescale-body-medium-height);
|
|
78
|
+
text-transform: var(--md-sys-typescale-body-medium-text-transform);
|
|
79
|
+
text-decoration: var(--md-sys-typescale-body-medium-text-decoration);
|
|
80
|
+
}
|
|
81
|
+
.body-small{
|
|
82
|
+
font-family: var(--md-sys-typescale-body-small-font-family-name);
|
|
83
|
+
font-style: var(--md-sys-typescale-body-small-font-family-style);
|
|
84
|
+
font-weight: var(--md-sys-typescale-body-small-font-weight);
|
|
85
|
+
font-size: var(--md-sys-typescale-body-small-font-size);
|
|
86
|
+
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
87
|
+
line-height: var(--md-sys-typescale-body-small-height);
|
|
88
|
+
text-transform: var(--md-sys-typescale-body-small-text-transform);
|
|
89
|
+
text-decoration: var(--md-sys-typescale-body-small-text-decoration);
|
|
90
|
+
}
|
|
91
|
+
.label-large{
|
|
92
|
+
font-family: var(--md-sys-typescale-label-large-font-family-name);
|
|
93
|
+
font-style: var(--md-sys-typescale-label-large-font-family-style);
|
|
94
|
+
font-weight: var(--md-sys-typescale-label-large-font-weight);
|
|
95
|
+
font-size: var(--md-sys-typescale-label-large-font-size);
|
|
96
|
+
letter-spacing: var(--md-sys-typescale-label-large-tracking);
|
|
97
|
+
line-height: var(--md-sys-typescale-label-large-height);
|
|
98
|
+
text-transform: var(--md-sys-typescale-label-large-text-transform);
|
|
99
|
+
text-decoration: var(--md-sys-typescale-label-large-text-decoration);
|
|
100
|
+
}
|
|
101
|
+
.label-medium{
|
|
102
|
+
font-family: var(--md-sys-typescale-label-medium-font-family-name);
|
|
103
|
+
font-style: var(--md-sys-typescale-label-medium-font-family-style);
|
|
104
|
+
font-weight: var(--md-sys-typescale-label-medium-font-weight);
|
|
105
|
+
font-size: var(--md-sys-typescale-label-medium-font-size);
|
|
106
|
+
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
107
|
+
line-height: var(--md-sys-typescale-label-medium-height);
|
|
108
|
+
text-transform: var(--md-sys-typescale-label-medium-text-transform);
|
|
109
|
+
text-decoration: var(--md-sys-typescale-label-medium-text-decoration);
|
|
110
|
+
}
|
|
111
|
+
.label-small{
|
|
112
|
+
font-family: var(--md-sys-typescale-label-small-font-family-name);
|
|
113
|
+
font-style: var(--md-sys-typescale-label-small-font-family-style);
|
|
114
|
+
font-weight: var(--md-sys-typescale-label-small-font-weight);
|
|
115
|
+
font-size: var(--md-sys-typescale-label-small-font-size);
|
|
116
|
+
letter-spacing: var(--md-sys-typescale-label-small-tracking);
|
|
117
|
+
line-height: var(--md-sys-typescale-label-small-height);
|
|
118
|
+
text-transform: var(--md-sys-typescale-label-small-text-transform);
|
|
119
|
+
text-decoration: var(--md-sys-typescale-label-small-text-decoration);
|
|
120
|
+
}
|
|
121
|
+
.title-large{
|
|
122
|
+
font-family: var(--md-sys-typescale-title-large-font-family-name);
|
|
123
|
+
font-style: var(--md-sys-typescale-title-large-font-family-style);
|
|
124
|
+
font-weight: var(--md-sys-typescale-title-large-font-weight);
|
|
125
|
+
font-size: var(--md-sys-typescale-title-large-font-size);
|
|
126
|
+
letter-spacing: var(--md-sys-typescale-title-large-tracking);
|
|
127
|
+
line-height: var(--md-sys-typescale-title-large-height);
|
|
128
|
+
text-transform: var(--md-sys-typescale-title-large-text-transform);
|
|
129
|
+
text-decoration: var(--md-sys-typescale-title-large-text-decoration);
|
|
130
|
+
}
|
|
131
|
+
.title-medium{
|
|
132
|
+
font-family: var(--md-sys-typescale-title-medium-font-family-name);
|
|
133
|
+
font-style: var(--md-sys-typescale-title-medium-font-family-style);
|
|
134
|
+
font-weight: var(--md-sys-typescale-title-medium-font-weight);
|
|
135
|
+
font-size: var(--md-sys-typescale-title-medium-font-size);
|
|
136
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
|
|
137
|
+
line-height: var(--md-sys-typescale-title-medium-height);
|
|
138
|
+
text-transform: var(--md-sys-typescale-title-medium-text-transform);
|
|
139
|
+
text-decoration: var(--md-sys-typescale-title-medium-text-decoration);
|
|
140
|
+
}
|
|
141
|
+
.title-small{
|
|
142
|
+
font-family: var(--md-sys-typescale-title-small-font-family-name);
|
|
143
|
+
font-style: var(--md-sys-typescale-title-small-font-family-style);
|
|
144
|
+
font-weight: var(--md-sys-typescale-title-small-font-weight);
|
|
145
|
+
font-size: var(--md-sys-typescale-title-small-font-size);
|
|
146
|
+
letter-spacing: var(--md-sys-typescale-title-small-tracking);
|
|
147
|
+
line-height: var(--md-sys-typescale-title-small-height);
|
|
148
|
+
text-transform: var(--md-sys-typescale-title-small-text-transform);
|
|
149
|
+
text-decoration: var(--md-sys-typescale-title-small-text-decoration);
|
|
150
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{_ as t,a as e,e as a}from"./custom-element-c2e883ba.js";import{j as s,v as l,D as i}from"./property-58e28172.js";import"./input.js";let c=(()=>{let c,n,m=[a("custom-time-picker")],p=[],o=i;return class extends o{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;t(null,c={value:n},m,{kind:"class",name:n.name,metadata:e},null,p),n=c.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static styles=[s`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
`];render(){return l`
|
|
6
|
+
<time-picker-input></time-picker-input>
|
|
7
|
+
<div class="am-pm">
|
|
8
|
+
<span class="flex"></span>
|
|
9
|
+
<div class="am">am</div>
|
|
10
|
+
<span class="flex-2"></span>
|
|
11
|
+
<div class="pm">pm</div>
|
|
12
|
+
<span class="flex"></span>
|
|
13
|
+
</div>
|
|
14
|
+
<time-picker-hour-plate></time-picker-hour-plate>
|
|
15
|
+
<time-picker-minutes-plate></time-picker-minutes-plate>
|
|
16
|
+
<div class="actions">
|
|
17
|
+
<button class="cancel">cancel</button>
|
|
18
|
+
<span class="flex"></span>
|
|
19
|
+
<button class="ok">ok</button>
|
|
20
|
+
</div>
|
|
21
|
+
`}static{e(n,p)}},n})();export{c as CustomTimePicker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{_ as t,a as e,e as s}from"./custom-element-c2e883ba.js";import{e as a,v as o,D as c}from"./property-58e28172.js";import"./button.js";import"./toggle.js";import"./elevation.js";let i=(()=>{let i,r,l,g,n=[s("custom-toggle-button")],m=[],u=c,v=[],h=[],d=[],_=[];return class extends u{static{r=this}static{const s="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;l=[a({type:Number})],g=[a({type:Array})],t(this,null,l,{kind:"accessor",name:"active",static:!1,private:!1,access:{has:t=>"active"in t,get:t=>t.active,set:(t,e)=>{t.active=e}},metadata:s},v,h),t(this,null,g,{kind:"accessor",name:"togglers",static:!1,private:!1,access:{has:t=>"togglers"in t,get:t=>t.togglers,set:(t,e)=>{t.togglers=e}},metadata:s},d,_),t(null,i={value:r},n,{kind:"class",name:r.name,metadata:s},null,m),r=i.value,s&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s}),e(r,m)}#t=e(this,v,0);get active(){return this.#t}set active(t){this.#t=t}#e=(e(this,h),e(this,d,void 0));get togglers(){return this.#e}set togglers(t){this.#e=t}get _toggle(){return this.shadowRoot.querySelector("custom-toggle")}_click=(e(this,_),()=>{this._toggle.next()});connectedCallback(){this.addEventListener("click",this._click)}disconnectedCallback(){this.removeEventListener("click",this._click)}_onactive=t=>{this.dispatchEvent(new CustomEvent("active",{detail:t.detail}))};render(){return o` <custom-button>
|
|
2
|
+
<custom-toggle slot="icon" .active=${this.active} @active=${this._onactive} .togglers=${this.togglers}>
|
|
3
|
+
</custom-toggle>
|
|
4
|
+
</custom-button>`}},r})();export{i as CustomToggleButton};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{_ as t,a as e,e as s}from"./custom-element-c2e883ba.js";import{e as a,j as i,v as c,D as o}from"./property-58e28172.js";let r=(()=>{let r,n,g,l,h,v=[s("custom-toggle")],m=[],u=o,d=[],_=[],p=[],y=[],b=[],f=[];return class extends u{static{n=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(u[Symbol.metadata]??null):void 0;g=[a({type:Number})],l=[a({type:Array})],h=[a()],t(this,null,g,{kind:"accessor",name:"active",static:!1,private:!1,access:{has:t=>"active"in t,get:t=>t.active,set:(t,e)=>{t.active=e}},metadata:e},d,_),t(this,null,l,{kind:"accessor",name:"togglers",static:!1,private:!1,access:{has:t=>"togglers"in t,get:t=>t.togglers,set:(t,e)=>{t.togglers=e}},metadata:e},p,y),t(this,null,h,{kind:"accessor",name:"icon",static:!1,private:!1,access:{has:t=>"icon"in t,get:t=>t.icon,set:(t,e)=>{t.icon=e}},metadata:e},b,f),t(null,r={value:n},v,{kind:"class",name:n.name,metadata:e},null,m),n=r.value,e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#t=e(this,d,0);get active(){return this.#t}set active(t){this.#t=t}#e=(e(this,_),e(this,p,void 0));get togglers(){return this.#e}set togglers(t){this.#e=t}#s=(e(this,y),e(this,b,void 0));get icon(){return this.#s}set icon(t){this.#s=t}restartOnEnd=(e(this,f),!0);onChange(t,e){"active"===t&&this.dispatchEvent(new CustomEvent("active",{detail:this.active})),("active"===t&&this.togglers||"togglers"===t&&void 0!==this.active)&&(this.icon=this.togglers[this.active])}async next(){this.active<this.togglers.length-1?this.active+=1:this.restartOnEnd&&(this.active=0)}previous(){0!==this.active&&(this.active-=1)}static styles=[i`
|
|
2
|
+
:host {
|
|
3
|
+
display: contents;
|
|
4
|
+
}
|
|
5
|
+
`];render(){return c`<custom-icon .icon=${this.icon}></custom-icon>`}static{e(n,m)}},n})();export{r as CustomToggle};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import{_ as t,a as e,e as s}from"./custom-element-c2e883ba.js";import{e as i,j as r,v as n,D as a}from"./property-58e28172.js";import"./it-d4d177bf.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const o=globalThis,c=o.trustedTypes,l=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",d=`lit$${(Math.random()+"").slice(9)}$`,u="?"+d,p=`<${u}>`,g=document,m=()=>g.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,y="[ \t\n\f\r]",$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,f=/-->/g,v=/>/g,A=RegExp(`>|${y}(?:([^\\s"'>=/]+)(${y}*=${y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),x=/'/g,S=/"/g,T=/^(?:script|style|textarea|title)$/i,H=(t,...e)=>({_$litType$:1,strings:t,values:e}),j=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),k=new WeakMap,z=g.createTreeWalker(g,129);function O(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==l?l.createHTML(e):e}const B=(t,e)=>{const s=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=$;for(let e=0;e<s;e++){const s=t[e];let o,c,l=-1,u=0;for(;u<s.length&&(a.lastIndex=u,c=a.exec(s),null!==c);)u=a.lastIndex,a===$?"!--"===c[1]?a=f:void 0!==c[1]?a=v:void 0!==c[2]?(T.test(c[2])&&(r=RegExp("</"+c[2],"g")),a=A):void 0!==c[3]&&(a=A):a===A?">"===c[0]?(a=r??$,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,o=c[1],a=void 0===c[3]?A:'"'===c[3]?S:x):a===S||a===x?a=A:a===f||a===v?a=$:(a=A,r=void 0);const g=a===A&&t[e+1].startsWith("/>")?" ":"";n+=a===$?s+p:l>=0?(i.push(o),s.slice(0,l)+h+s.slice(l)+d+g):s+d+(-2===l?e:g)}return[O(t,n+(t[s]||"<?>")+(2===e?"</svg>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const a=t.length-1,o=this.parts,[l,p]=B(t,e);if(this.el=N.createElement(l,s),z.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=z.nextNode())&&o.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=p[n++],s=i.getAttribute(t).split(d),a=/([.?@])?(.*)/.exec(e);o.push({type:1,index:r,name:a[2],strings:s,ctor:"."===a[1]?M:"?"===a[1]?E:"@"===a[1]?I:R}),i.removeAttribute(t)}else t.startsWith(d)&&(o.push({type:6,index:r}),i.removeAttribute(t));if(T.test(i.tagName)){const t=i.textContent.split(d),e=t.length-1;if(e>0){i.textContent=c?c.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],m()),z.nextNode(),o.push({type:2,index:++r});i.append(t[e],m())}}}else if(8===i.nodeType)if(i.data===u)o.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(d,t+1));)o.push({type:7,index:r}),t+=d.length-1}r++}}static createElement(t,e){const s=g.createElement("template");return s.innerHTML=t,s}}function P(t,e,s=t,i){if(e===j)return e;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const n=_(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(e=P(t,r._$AS(t,e.values),r,i)),e}class C{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??g).importNode(e,!0);z.currentNode=i;let r=z.nextNode(),n=0,a=0,o=s[0];for(;void 0!==o;){if(n===o.index){let e;2===o.type?e=new w(r,r.nextSibling,this,t):1===o.type?e=new o.ctor(r,o.name,o.strings,this,t):6===o.type&&(e=new U(r,this,t)),this._$AV.push(e),o=s[++a]}n!==o?.index&&(r=z.nextNode(),n++)}return z.currentNode=g,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class w{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),_(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>b(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==W&&_(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(O(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new C(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=k.get(t.strings);return void 0===e&&k.set(t.strings,e=new N(t)),e}k(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new w(this.S(m()),this.S(m()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=W}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(void 0===r)t=P(this,t,e,0),n=!_(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const i=t;let a,o;for(t=r[0],a=0;a<r.length-1;a++)o=P(this,i[s+a],e,a),o===j&&(o=this._$AH[a]),n||=!_(o)||o!==this._$AH[a],o===W?t=W:t!==W&&(t+=(o??"")+r[a+1]),this._$AH[a]=o}n&&!i&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}class E extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}}class I extends R{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??W)===j)return;const s=this._$AH,i=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==W&&(s===W||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class U{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const L=o.litHtmlPolyfillSupport;L?.(N,w),(o.litHtmlVersions??=[]).push("3.1.2");const V=globalThis;V.ShadowRoot&&(void 0===V.ShadyCSS||V.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&CSSStyleSheet.prototype,Symbol.metadata??=Symbol("metadata");class D extends HTMLElement{static get observedAttributes(){return this[Symbol.metadata]?.observedAttributes?.values()??[]}attributeChangedCallback(t,e,s){this[t]=s}constructor(){super(),this.renderedOnce=!1,this.rendered=new Promise((t=>{this.renderResolve=t})),this.attachShadow({mode:"open"});const t=customElements.get(this.localName);this.shadowRoot.adoptedStyleSheets=t.styles?t.styles.map((t=>t.styleSheet??t)):[],this.requestRender()}render(){return H`<slot></slot>`}requestRender(){((t,e,s)=>{const i=e;let r=i._$litPart$;if(void 0===r){const t=null;i._$litPart$=r=new w(e.insertBefore(m(),t),t,void 0,{})}r._$AI(t)})(this.render(),this.shadowRoot),this.renderedOnce||(this.renderResolve(!0),this.renderedOnce=!0,this.firstRender&&this.firstRender())}}globalThis.pubsub=globalThis.pubsub||new class{subscribers={};verbose;constructor(t){this.verbose=t}_handleContext(t,e){return void 0===e&&(e=t),e}hasSubscribers(t){return!!this.subscribers[t]}subscribe(t,e,s){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[],value:void 0}),s=this._handleContext(e,s),this.subscribers[t].handlers.push(e.bind(s))}unsubscribe(t,e,s){if(!this.hasSubscribers(t))return;s=this._handleContext(e,s);const i=this.subscribers[t].handlers.indexOf(e.bind(s));this.subscribers[t].handlers.splice(i),0===this.subscribers[t].handlers.length&&delete this.subscribers[t]}publish(t,e,s){this.hasSubscribers(t)||(this.subscribers[t]={handlers:[]});const i=this.subscribers[t]?.value;if(this.verbose||s||i!==e){this.subscribers[t].value=e;for(const s of this.subscribers[t].handlers)s(e,i)}}publishVerbose(t,e){this.publish(t,e,!0)}once(t){return new Promise((e=>{const s=i=>{e(i),this.unsubscribe(t,s)};this.subscribe(t,s)}))}};const q={type:String,reflect:!1,renders:!0,batchDelay:50,temporaryRender:10},F=(t,e)=>{let s=t;return e===Boolean?s=Boolean("true"===t):e===Number?s=Number(t):e===Uint8Array?s=new Uint8Array(t.split(",")):e!==Array&&e!==Object&&e!==WeakMap&&e!==Map&&e!==Uint8Array||(s=JSON.parse(t),e===Map&&(s=new Map(t)),e===WeakMap&&(s=new WeakMap(t))),s},J=t=>{t={...q,...t};let e=0;return function(s,{kind:i,name:r,addInitializer:n,access:a,metadata:o}){const{type:c,reflect:l,attribute:h,renders:d,batches:u,batchDelay:p,consumer:g,provider:m,temporaryRender:_}=t,b=String(r),y=h&&"string"==typeof h?h:b,$=c===Boolean;if(n((async function(){"accessor"!==i&&console.warn(`${this.localName}: @property(${t}) ${b} ${i} is not supported`),h&&(o||(o={}),o.observedAttributes||(o.observedAttributes=new Map),o.observedAttributes.set(b,y)),g&&globalThis.pubsub.subscribe(r,(async t=>{this[r]=t}))})),"accessor"===i)return{get(){return f.call(this)},set(t){return v.call(this,t)},init(t){return this.hasAttribute(y)&&(t=$?this.hasAttribute(y):F(this.getAttribute(y),c)),void 0!==t&&v.call(this,t),g&&globalThis.pubsub.subscribers?.[r]?.value&&v.call(this,globalThis.pubsub.subscribers[r].value),this[r]}};function f(){const t=l?$?this.hasAttribute(y):F(this.getAttribute(y),c):this[`__${b}`]?this[`__${b}`]:this[`_${b}`];return g&&!this[`__${b}`]&&globalThis.pubsub.subscribers?.[b]?.value?(t!==globalThis.pubsub.subscribers[r].value&&v.call(this,globalThis.pubsub.subscribers[r].value),globalThis.pubsub.subscribers[r].value):t}async function v(t){if(m&&globalThis.pubsub.publish(r,t),this[`_${b}`]!==t){this.willChange&&(this[`__${b}`]=await this.willChange(r,t)),l?$?t||this[`__${b}`]?this.setAttribute(y,""):this.removeAttribute(y):t||this[`__${b}`]?this.setAttribute(y,((t,e)=>{let s=e;if(t===Boolean||t===Number||t===Uint8Array)return e.toString();if(t===Array||t===Object||t===WeakMap||t===Map||t===Uint8Array){let i;t!==Map&&t!==WeakMap||(i=Object(e).entries()),s=JSON.stringify(i)}return s})(c,this[`__${b}`]??t)):this.removeAttribute(y):this[`_${b}`]=t;const s=()=>{e=0,this.requestRender&&d&&this.requestRender(),this.onChange&&this.onChange(r,this[`__${b}`]??t)};u?(e===_&&s(),this[`_${b}_timeout`]&&clearTimeout(this[`_${b}_timeout`]),this[`_${b}_timeout`]=setTimeout(s,p)):s()}}}};var Z=function(t,e,s,i,r,n){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var o,c=i.kind,l="getter"===c?"get":"setter"===c?"set":"value",h=!e&&t?i.static?t:t.prototype:null,d=e||(h?Object.getOwnPropertyDescriptor(h,i.name):{}),u=!1,p=s.length-1;p>=0;p--){var g={};for(var m in i)g[m]="access"===m?{}:i[m];for(var m in i.access)g.access[m]=i.access[m];g.addInitializer=function(t){if(u)throw new TypeError("Cannot add initializers after decoration has completed");n.push(a(t||null))};var _=(0,s[p])("accessor"===c?{get:d.get,set:d.set}:d[l],g);if("accessor"===c){if(void 0===_)continue;if(null===_||"object"!=typeof _)throw new TypeError("Object expected");(o=a(_.get))&&(d.get=o),(o=a(_.set))&&(d.set=o),(o=a(_.init))&&r.unshift(o)}else(o=a(_))&&("field"===c?r.unshift(o):d[l]=o)}h&&Object.defineProperty(h,i.name,d),u=!0},G=function(t,e,s){for(var i=arguments.length>2,r=0;r<e.length;r++)s=i?e[r].call(t,s):e[r].call(t);return i?s:void 0};let K=(()=>{let t,e,s,i,r,n,a,o,c,l,h=D,d=[],u=[],p=[],g=[],m=[],_=[],b=[],y=[],$=[],f=[],v=[];return class FlexDisplay extends h{static{const A="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;t=[J({type:String})],e=[J({type:String})],s=[J({type:String})],i=[J({type:String})],r=[J({type:String,reflect:!0})],n=[J({type:Boolean,reflect:!0})],a=[J({type:Boolean,reflect:!0,attribute:"center-center"})],o=[J({type:String})],c=[J({type:String})],l=[J({type:String})],Z(this,null,t,{kind:"accessor",name:"padding",static:!1,private:!1,access:{has:t=>"padding"in t,get:t=>t.padding,set:(t,e)=>{t.padding=e}},metadata:A},u,d),Z(this,null,e,{kind:"accessor",name:"minWidth",static:!1,private:!1,access:{has:t=>"minWidth"in t,get:t=>t.minWidth,set:(t,e)=>{t.minWidth=e}},metadata:A},p,d),Z(this,null,s,{kind:"accessor",name:"maxWidth",static:!1,private:!1,access:{has:t=>"maxWidth"in t,get:t=>t.maxWidth,set:(t,e)=>{t.maxWidth=e}},metadata:A},g,d),Z(this,null,i,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:t=>"width"in t,get:t=>t.width,set:(t,e)=>{t.width=e}},metadata:A},m,d),Z(this,null,r,{kind:"accessor",name:"direction",static:!1,private:!1,access:{has:t=>"direction"in t,get:t=>t.direction,set:(t,e)=>{t.direction=e}},metadata:A},_,d),Z(this,null,n,{kind:"accessor",name:"center",static:!1,private:!1,access:{has:t=>"center"in t,get:t=>t.center,set:(t,e)=>{t.center=e}},metadata:A},b,d),Z(this,null,a,{kind:"accessor",name:"centerCenter",static:!1,private:!1,access:{has:t=>"centerCenter"in t,get:t=>t.centerCenter,set:(t,e)=>{t.centerCenter=e}},metadata:A},y,d),Z(this,null,o,{kind:"accessor",name:"justifyContent",static:!1,private:!1,access:{has:t=>"justifyContent"in t,get:t=>t.justifyContent,set:(t,e)=>{t.justifyContent=e}},metadata:A},$,d),Z(this,null,c,{kind:"accessor",name:"alignItems",static:!1,private:!1,access:{has:t=>"alignItems"in t,get:t=>t.alignItems,set:(t,e)=>{t.alignItems=e}},metadata:A},f,d),Z(this,null,l,{kind:"accessor",name:"boxSizing",static:!1,private:!1,access:{has:t=>"boxSizing"in t,get:t=>t.boxSizing,set:(t,e)=>{t.boxSizing=e}},metadata:A},v,d),A&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:A})}#t=(G(this,d),G(this,u,"0"));get padding(){return this.#t}set padding(t){this.#t=t}#e=G(this,p,"auto");get minWidth(){return this.#e}set minWidth(t){this.#e=t}#s=G(this,g,"auto");get maxWidth(){return this.#s}set maxWidth(t){this.#s=t}#i=G(this,m,"100%");get width(){return this.#i}set width(t){this.#i=t}#r=G(this,_,"row");get direction(){return this.#r}set direction(t){this.#r=t}#n=G(this,b,void 0);get center(){return this.#n}set center(t){this.#n=t}#a=G(this,y,void 0);get centerCenter(){return this.#a}set centerCenter(t){this.#a=t}#o=G(this,$,"flex-start");get justifyContent(){return this.#o}set justifyContent(t){this.#o=t}#c=G(this,f,"flex-start");get alignItems(){return this.#c}set alignItems(t){this.#c=t}#l=G(this,v,"border-box");get boxSizing(){return this.#l}set boxSizing(t){this.#l=t}render(){return H`
|
|
7
|
+
<style>
|
|
8
|
+
:host {
|
|
9
|
+
display: flex;
|
|
10
|
+
box-sizing: var(--flex-display-box-sizing, ${this.boxSizing});
|
|
11
|
+
max-width: var(--flex-display-max-width, ${this.maxWidth});
|
|
12
|
+
min-width: var(--flex-display-min-width, ${this.minWidth});
|
|
13
|
+
width: var(--flex-display-width, ${this.width});
|
|
14
|
+
flex-direction: var(--flex-display-direction, ${this.direction});
|
|
15
|
+
justify-content: var(
|
|
16
|
+
--flex-display-justify-content,
|
|
17
|
+
${this.justifyContent}
|
|
18
|
+
);
|
|
19
|
+
align-items: var(--flex-display-align-items, ${this.alignItems});
|
|
20
|
+
padding: var(--flex-display-padding, ${this.padding});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([center]) {
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([center-center]) {
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
<slot></slot>
|
|
33
|
+
`}}})();customElements.define("flex-row",class FlexRow extends K{constructor(){super(),this.direction="row",this.width="auto"}});let Q=(()=>{let o,c,l,h,d=[s("custom-top-app-bar")],u=[],p=a,g=[],m=[],_=[],b=[];return class extends p{static{c=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;l=[i({type:String,reflect:!0})],h=[i({type:Boolean,reflect:!0})],t(this,null,l,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:t=>"type"in t,get:t=>t.type,set:(t,e)=>{t.type=e}},metadata:e},g,m),t(this,null,h,{kind:"accessor",name:"scrolling",static:!1,private:!1,access:{has:t=>"scrolling"in t,get:t=>t.scrolling,set:(t,e)=>{t.scrolling=e}},metadata:e},_,b),t(null,o={value:c},d,{kind:"class",name:c.name,metadata:e},null,u),c=o.value,e&&Object.defineProperty(c,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#h=e(this,g,"center-aligned");get type(){return this.#h}set type(t){this.#h=t}#d=(e(this,m),e(this,_,void 0));get scrolling(){return this.#d}set scrolling(t){this.#d=t}static styles=[r`
|
|
34
|
+
:host {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
width: calc(100% - 2px);
|
|
38
|
+
background-color: var(--md-sys-color-surface);
|
|
39
|
+
color: var(--md-sys-color-on-surface);
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.container {
|
|
44
|
+
padding: 20px 12px 24px 12px;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
position: relative;
|
|
47
|
+
height: 64px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([type='center-aligned']) .container,
|
|
51
|
+
:host([type='small']) .container {
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host(:not([type='center-aligned'])) ::slotted([name='title']) {
|
|
56
|
+
padding-left: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host(:not([type='large'])) ::slotted([name='title']) {
|
|
60
|
+
padding-bottom: 28px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([type='medium']) .container {
|
|
64
|
+
height: 112px;
|
|
65
|
+
}
|
|
66
|
+
:host([type='large']) .container {
|
|
67
|
+
height: 152px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([type='center-aligned']) slot[name='title']::slotted(*) {
|
|
71
|
+
position: absolute;
|
|
72
|
+
left: 50%;
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translate(-50%, -50%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(:not([type='center-aligned'])) slot[name='title']::slotted(*) {
|
|
78
|
+
padding-left: 6px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([scrolling]) {
|
|
82
|
+
--md-elevation-level: 2;
|
|
83
|
+
padding: 0 16px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
flex-row {
|
|
87
|
+
width: 100%;
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
custom-elevation {
|
|
92
|
+
border-radius: var(--md-sys-shape-corner-large);
|
|
93
|
+
}
|
|
94
|
+
`];connectedCallback(){document.addEventListener("custom-scroll",(({detail:t})=>{this.scrolling=t.scrolling}))}render(){return n`
|
|
95
|
+
<flex-column class="container">
|
|
96
|
+
<custom-elevation></custom-elevation>
|
|
97
|
+
<flex-row>
|
|
98
|
+
<slot name="start"></slot>
|
|
99
|
+
${"center-aligned"===this.type||"small"===this.type?n`
|
|
100
|
+
<custom-typography>
|
|
101
|
+
<slot name="title"></slot>
|
|
102
|
+
</custom-typography>
|
|
103
|
+
`:""}
|
|
104
|
+
<flex-it></flex-it>
|
|
105
|
+
<slot name="end"></slot>
|
|
106
|
+
</flex-row>
|
|
107
|
+
${"medium"===this.type||"large"===this.type?n`
|
|
108
|
+
<flex-it></flex-it>
|
|
109
|
+
<custom-typography type="headline" size="small">
|
|
110
|
+
<slot name="title"></slot>
|
|
111
|
+
</custom-typography>
|
|
112
|
+
`:""}
|
|
113
|
+
</flex-column>
|
|
114
|
+
`}constructor(){super(...arguments),e(this,b)}static{e(c,u)}},c})();export{Q as C,K as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./custom-element-c2e883ba.js";import"./property-58e28172.js";import"./it-d4d177bf.js";export{C as CustomTopAppBar}from"./top-app-bar-e6e33a9e.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import{_ as e,a as t,e as s}from"./custom-element-c2e883ba.js";import{e as a,j as l,v as y,D as i}from"./property-58e28172.js";let m=(()=>{let m,r,o,n,d=[s("custom-typography")],c=[],f=i,p=[],g=[],h=[],v=[];return class extends f{static{r=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(f[Symbol.metadata]??null):void 0;o=[a({type:String,reflect:!0})],n=[a({type:String,reflect:!0})],e(this,null,o,{kind:"accessor",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:t},p,g),e(this,null,n,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:t},h,v),e(null,m={value:r},d,{kind:"class",name:r.name,metadata:t},null,c),r=m.value,t&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}#e=t(this,p,"title");get type(){return this.#e}set type(e){this.#e=e}#t=(t(this,g),t(this,h,"large"));get size(){return this.#t}set size(e){this.#t=e}static styles=[l`
|
|
2
|
+
:host {
|
|
3
|
+
display: contents;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host([type='display'][size='large']) slot {
|
|
7
|
+
font-family: var(--md-sys-typescale-display-large-font-family-name);
|
|
8
|
+
font-style: var(--md-sys-typescale-display-large-font-family-style);
|
|
9
|
+
font-weight: var(--md-sys-typescale-display-large-font-weight);
|
|
10
|
+
font-size: var(--md-sys-typescale-display-large-font-size);
|
|
11
|
+
letter-spacing: var(--md-sys-typescale-display-large-tracking);
|
|
12
|
+
line-height: var(--md-sys-typescale-display-large-height);
|
|
13
|
+
text-transform: var(--md-sys-typescale-display-large-text-transform);
|
|
14
|
+
text-decoration: var(--md-sys-typescale-display-large-text-decoration);
|
|
15
|
+
}
|
|
16
|
+
:host([type='display'][size='medium']) slot {
|
|
17
|
+
font-family: var(--md-sys-typescale-display-medium-font-family-name);
|
|
18
|
+
font-style: var(--md-sys-typescale-display-medium-font-family-style);
|
|
19
|
+
font-weight: var(--md-sys-typescale-display-medium-font-weight);
|
|
20
|
+
font-size: var(--md-sys-typescale-display-medium-font-size);
|
|
21
|
+
letter-spacing: var(--md-sys-typescale-display-medium-tracking);
|
|
22
|
+
line-height: var(--md-sys-typescale-display-medium-height);
|
|
23
|
+
text-transform: var(--md-sys-typescale-display-medium-text-transform);
|
|
24
|
+
text-decoration: var(--md-sys-typescale-display-medium-text-decoration);
|
|
25
|
+
}
|
|
26
|
+
:host([type='display'][size='small']) slot {
|
|
27
|
+
font-family: var(--md-sys-typescale-display-small-font-family-name);
|
|
28
|
+
font-style: var(--md-sys-typescale-display-small-font-family-style);
|
|
29
|
+
font-weight: var(--md-sys-typescale-display-small-font-weight);
|
|
30
|
+
font-size: var(--md-sys-typescale-display-small-font-size);
|
|
31
|
+
letter-spacing: var(--md-sys-typescale-display-small-tracking);
|
|
32
|
+
line-height: var(--md-sys-typescale-display-small-height);
|
|
33
|
+
text-transform: var(--md-sys-typescale-display-small-text-transform);
|
|
34
|
+
text-decoration: var(--md-sys-typescale-display-small-text-decoration);
|
|
35
|
+
}
|
|
36
|
+
:host([type='headline'][size='large']) slot {
|
|
37
|
+
font-family: var(--md-sys-typescale-headline-large-font-family-name);
|
|
38
|
+
font-style: var(--md-sys-typescale-headline-large-font-family-style);
|
|
39
|
+
font-weight: var(--md-sys-typescale-headline-large-font-weight);
|
|
40
|
+
font-size: var(--md-sys-typescale-headline-large-font-size);
|
|
41
|
+
letter-spacing: var(--md-sys-typescale-headline-large-tracking);
|
|
42
|
+
line-height: var(--md-sys-typescale-headline-large-height);
|
|
43
|
+
text-transform: var(--md-sys-typescale-headline-large-text-transform);
|
|
44
|
+
text-decoration: var(--md-sys-typescale-headline-large-text-decoration);
|
|
45
|
+
}
|
|
46
|
+
:host([type='headline'][size='medium']) slot {
|
|
47
|
+
font-family: var(--md-sys-typescale-headline-medium-font-family-name);
|
|
48
|
+
font-style: var(--md-sys-typescale-headline-medium-font-family-style);
|
|
49
|
+
font-weight: var(--md-sys-typescale-headline-medium-font-weight);
|
|
50
|
+
font-size: var(--md-sys-typescale-headline-medium-font-size);
|
|
51
|
+
letter-spacing: var(--md-sys-typescale-headline-medium-tracking);
|
|
52
|
+
line-height: var(--md-sys-typescale-headline-medium-height);
|
|
53
|
+
text-transform: var(--md-sys-typescale-headline-medium-text-transform);
|
|
54
|
+
text-decoration: var(--md-sys-typescale-headline-medium-text-decoration);
|
|
55
|
+
}
|
|
56
|
+
:host([type='headline'][size='small']) slot {
|
|
57
|
+
font-family: var(--md-sys-typescale-headline-small-font-family-name);
|
|
58
|
+
font-style: var(--md-sys-typescale-headline-small-font-family-style);
|
|
59
|
+
font-weight: var(--md-sys-typescale-headline-small-font-weight);
|
|
60
|
+
font-size: var(--md-sys-typescale-headline-small-font-size);
|
|
61
|
+
letter-spacing: var(--md-sys-typescale-headline-small-tracking);
|
|
62
|
+
line-height: var(--md-sys-typescale-headline-small-height);
|
|
63
|
+
text-transform: var(--md-sys-typescale-headline-small-text-transform);
|
|
64
|
+
text-decoration: var(--md-sys-typescale-headline-small-text-decoration);
|
|
65
|
+
}
|
|
66
|
+
:host([type='body'][size='large']) slot {
|
|
67
|
+
font-family: var(--md-sys-typescale-body-large-font-family-name);
|
|
68
|
+
font-style: var(--md-sys-typescale-body-large-font-family-style);
|
|
69
|
+
font-weight: var(--md-sys-typescale-body-large-font-weight);
|
|
70
|
+
font-size: var(--md-sys-typescale-body-large-font-size);
|
|
71
|
+
letter-spacing: var(--md-sys-typescale-body-large-tracking);
|
|
72
|
+
line-height: var(--md-sys-typescale-body-large-height);
|
|
73
|
+
text-transform: var(--md-sys-typescale-body-large-text-transform);
|
|
74
|
+
text-decoration: var(--md-sys-typescale-body-large-text-decoration);
|
|
75
|
+
}
|
|
76
|
+
:host([type='body'][size='medium']) slot {
|
|
77
|
+
font-family: var(--md-sys-typescale-body-medium-font-family-name);
|
|
78
|
+
font-style: var(--md-sys-typescale-body-medium-font-family-style);
|
|
79
|
+
font-weight: var(--md-sys-typescale-body-medium-font-weight);
|
|
80
|
+
font-size: var(--md-sys-typescale-body-medium-font-size);
|
|
81
|
+
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
|
|
82
|
+
line-height: var(--md-sys-typescale-body-medium-height);
|
|
83
|
+
text-transform: var(--md-sys-typescale-body-medium-text-transform);
|
|
84
|
+
text-decoration: var(--md-sys-typescale-body-medium-text-decoration);
|
|
85
|
+
}
|
|
86
|
+
:host([type='body'][size='small']) slot {
|
|
87
|
+
font-family: var(--md-sys-typescale-body-small-font-family-name);
|
|
88
|
+
font-style: var(--md-sys-typescale-body-small-font-family-style);
|
|
89
|
+
font-weight: var(--md-sys-typescale-body-small-font-weight);
|
|
90
|
+
font-size: var(--md-sys-typescale-body-small-font-size);
|
|
91
|
+
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
92
|
+
line-height: var(--md-sys-typescale-body-small-height);
|
|
93
|
+
text-transform: var(--md-sys-typescale-body-small-text-transform);
|
|
94
|
+
text-decoration: var(--md-sys-typescale-body-small-text-decoration);
|
|
95
|
+
}
|
|
96
|
+
:host([type='label'][size='large']) slot {
|
|
97
|
+
font-family: var(--md-sys-typescale-label-large-font-family-name);
|
|
98
|
+
font-style: var(--md-sys-typescale-label-large-font-family-style);
|
|
99
|
+
font-weight: var(--md-sys-typescale-label-large-font-weight);
|
|
100
|
+
font-size: var(--md-sys-typescale-label-large-font-size);
|
|
101
|
+
letter-spacing: var(--md-sys-typescale-label-large-tracking);
|
|
102
|
+
line-height: var(--md-sys-typescale-label-large-height);
|
|
103
|
+
text-transform: var(--md-sys-typescale-label-large-text-transform);
|
|
104
|
+
text-decoration: var(--md-sys-typescale-label-large-text-decoration);
|
|
105
|
+
}
|
|
106
|
+
:host([type='label'][size='medium']) slot {
|
|
107
|
+
font-family: var(--md-sys-typescale-label-medium-font-family-name);
|
|
108
|
+
font-style: var(--md-sys-typescale-label-medium-font-family-style);
|
|
109
|
+
font-weight: var(--md-sys-typescale-label-medium-font-weight);
|
|
110
|
+
font-size: var(--md-sys-typescale-label-medium-font-size);
|
|
111
|
+
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
112
|
+
line-height: var(--md-sys-typescale-label-medium-height);
|
|
113
|
+
text-transform: var(--md-sys-typescale-label-medium-text-transform);
|
|
114
|
+
text-decoration: var(--md-sys-typescale-label-medium-text-decoration);
|
|
115
|
+
}
|
|
116
|
+
:host([type='label'][size='small']) slot {
|
|
117
|
+
font-family: var(--md-sys-typescale-label-small-font-family-name);
|
|
118
|
+
font-style: var(--md-sys-typescale-label-small-font-family-style);
|
|
119
|
+
font-weight: var(--md-sys-typescale-label-small-font-weight);
|
|
120
|
+
font-size: var(--md-sys-typescale-label-small-font-size);
|
|
121
|
+
letter-spacing: var(--md-sys-typescale-label-small-tracking);
|
|
122
|
+
line-height: var(--md-sys-typescale-label-small-height);
|
|
123
|
+
text-transform: var(--md-sys-typescale-label-small-text-transform);
|
|
124
|
+
text-decoration: var(--md-sys-typescale-label-small-text-decoration);
|
|
125
|
+
}
|
|
126
|
+
:host([type='title'][size='large']) slot {
|
|
127
|
+
font-family: var(--md-sys-typescale-title-large-font-family-name);
|
|
128
|
+
font-style: var(--md-sys-typescale-title-large-font-family-style);
|
|
129
|
+
font-weight: var(--md-sys-typescale-title-large-font-weight);
|
|
130
|
+
font-size: var(--md-sys-typescale-title-large-font-size);
|
|
131
|
+
letter-spacing: var(--md-sys-typescale-title-large-tracking);
|
|
132
|
+
line-height: var(--md-sys-typescale-title-large-height);
|
|
133
|
+
text-transform: var(--md-sys-typescale-title-large-text-transform);
|
|
134
|
+
text-decoration: var(--md-sys-typescale-title-large-text-decoration);
|
|
135
|
+
}
|
|
136
|
+
:host([type='title'][size='medium']) slot {
|
|
137
|
+
font-family: var(--md-sys-typescale-title-medium-font-family-name);
|
|
138
|
+
font-style: var(--md-sys-typescale-title-medium-font-family-style);
|
|
139
|
+
font-weight: var(--md-sys-typescale-title-medium-font-weight);
|
|
140
|
+
font-size: var(--md-sys-typescale-title-medium-font-size);
|
|
141
|
+
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
|
|
142
|
+
line-height: var(--md-sys-typescale-title-medium-height);
|
|
143
|
+
text-transform: var(--md-sys-typescale-title-medium-text-transform);
|
|
144
|
+
text-decoration: var(--md-sys-typescale-title-medium-text-decoration);
|
|
145
|
+
}
|
|
146
|
+
:host([type='title'][size='small']) slot {
|
|
147
|
+
font-family: var(--md-sys-typescale-title-small-font-family-name);
|
|
148
|
+
font-style: var(--md-sys-typescale-title-small-font-family-style);
|
|
149
|
+
font-weight: var(--md-sys-typescale-title-small-font-weight);
|
|
150
|
+
font-size: var(--md-sys-typescale-title-small-font-size);
|
|
151
|
+
letter-spacing: var(--md-sys-typescale-title-small-tracking);
|
|
152
|
+
line-height: var(--md-sys-typescale-title-small-height);
|
|
153
|
+
text-transform: var(--md-sys-typescale-title-small-text-transform);
|
|
154
|
+
text-decoration: var(--md-sys-typescale-title-small-text-decoration);
|
|
155
|
+
}
|
|
156
|
+
`];render(){return y` <slot></slot> `}constructor(){super(...arguments),t(this,v)}static{t(r,c)}},r})();export{m as CustomTypography};
|