bizz-components 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -122
- package/package.json +20 -26
- package/web/index.d.mts +227 -0
- package/web/index.js +2272 -0
- package/fesm2022/bizz-components.mjs +0 -222
- package/fesm2022/bizz-components.mjs.map +0 -1
- package/index.d.ts +0 -100
- package/src/lib/themes/primitives.css +0 -78
- package/src/lib/themes/theme-dark.css +0 -117
- package/src/lib/themes/theme-light.css +0 -117
- package/src/lib/tokens/tokens.css +0 -85
- package/src/lib/tokens/typography.css +0 -105
package/web/index.js
ADDED
|
@@ -0,0 +1,2272 @@
|
|
|
1
|
+
// projects/bizz-components/src/web/tokens.ts
|
|
2
|
+
var TOKENS_CSS = `
|
|
3
|
+
:root {
|
|
4
|
+
--bizz-primary:rgb(99, 15, 254);
|
|
5
|
+
--bizz-secondary: #525252;
|
|
6
|
+
--bizz-success: #24a148;
|
|
7
|
+
--bizz-warning: #f59e0b;
|
|
8
|
+
--bizz-error: #da1e28;
|
|
9
|
+
--bizz-white: #ffffff;
|
|
10
|
+
--bizz-black: #000000;
|
|
11
|
+
--bizz-primary-10: color-mix(in oklch, var(--bizz-primary) 8%, white);
|
|
12
|
+
--bizz-primary-20: color-mix(in oklch, var(--bizz-primary) 18%, white);
|
|
13
|
+
--bizz-primary-30: color-mix(in oklch, var(--bizz-primary) 35%, white);
|
|
14
|
+
--bizz-primary-40: color-mix(in oklch, var(--bizz-primary) 55%, white);
|
|
15
|
+
--bizz-primary-50: color-mix(in oklch, var(--bizz-primary) 75%, white);
|
|
16
|
+
--bizz-primary-60: var(--bizz-primary);
|
|
17
|
+
--bizz-primary-70: color-mix(in oklch, var(--bizz-primary) 85%, black);
|
|
18
|
+
--bizz-primary-80: color-mix(in oklch, var(--bizz-primary) 65%, black);
|
|
19
|
+
--bizz-primary-90: color-mix(in oklch, var(--bizz-primary) 45%, black);
|
|
20
|
+
--bizz-primary-100: color-mix(in oklch, var(--bizz-primary) 25%, black);
|
|
21
|
+
--bizz-secondary-10: color-mix(in oklch, var(--bizz-secondary) 8%, white);
|
|
22
|
+
--bizz-secondary-20: color-mix(in oklch, var(--bizz-secondary) 18%, white);
|
|
23
|
+
--bizz-secondary-30: color-mix(in oklch, var(--bizz-secondary) 35%, white);
|
|
24
|
+
--bizz-secondary-40: color-mix(in oklch, var(--bizz-secondary) 55%, white);
|
|
25
|
+
--bizz-secondary-50: color-mix(in oklch, var(--bizz-secondary) 75%, white);
|
|
26
|
+
--bizz-secondary-60: var(--bizz-secondary);
|
|
27
|
+
--bizz-secondary-70: color-mix(in oklch, var(--bizz-secondary) 85%, black);
|
|
28
|
+
--bizz-secondary-80: color-mix(in oklch, var(--bizz-secondary) 65%, black);
|
|
29
|
+
--bizz-secondary-90: color-mix(in oklch, var(--bizz-secondary) 45%, black);
|
|
30
|
+
--bizz-secondary-100: color-mix(in oklch, var(--bizz-secondary) 25%, black);
|
|
31
|
+
--bizz-success-10: color-mix(in oklch, var(--bizz-success) 8%, white);
|
|
32
|
+
--bizz-success-20: color-mix(in oklch, var(--bizz-success) 18%, white);
|
|
33
|
+
--bizz-success-30: color-mix(in oklch, var(--bizz-success) 35%, white);
|
|
34
|
+
--bizz-success-40: color-mix(in oklch, var(--bizz-success) 55%, white);
|
|
35
|
+
--bizz-success-50: color-mix(in oklch, var(--bizz-success) 75%, white);
|
|
36
|
+
--bizz-success-60: var(--bizz-success);
|
|
37
|
+
--bizz-success-70: color-mix(in oklch, var(--bizz-success) 85%, black);
|
|
38
|
+
--bizz-success-80: color-mix(in oklch, var(--bizz-success) 65%, black);
|
|
39
|
+
--bizz-success-90: color-mix(in oklch, var(--bizz-success) 45%, black);
|
|
40
|
+
--bizz-success-100: color-mix(in oklch, var(--bizz-success) 25%, black);
|
|
41
|
+
--bizz-warning-10: color-mix(in oklch, var(--bizz-warning) 8%, white);
|
|
42
|
+
--bizz-warning-20: color-mix(in oklch, var(--bizz-warning) 18%, white);
|
|
43
|
+
--bizz-warning-30: color-mix(in oklch, var(--bizz-warning) 35%, white);
|
|
44
|
+
--bizz-warning-40: color-mix(in oklch, var(--bizz-warning) 55%, white);
|
|
45
|
+
--bizz-warning-50: color-mix(in oklch, var(--bizz-warning) 75%, white);
|
|
46
|
+
--bizz-warning-60: var(--bizz-warning);
|
|
47
|
+
--bizz-warning-70: color-mix(in oklch, var(--bizz-warning) 85%, black);
|
|
48
|
+
--bizz-warning-80: color-mix(in oklch, var(--bizz-warning) 65%, black);
|
|
49
|
+
--bizz-warning-90: color-mix(in oklch, var(--bizz-warning) 45%, black);
|
|
50
|
+
--bizz-warning-100: color-mix(in oklch, var(--bizz-warning) 25%, black);
|
|
51
|
+
--bizz-error-10: color-mix(in oklch, var(--bizz-error) 8%, white);
|
|
52
|
+
--bizz-error-20: color-mix(in oklch, var(--bizz-error) 18%, white);
|
|
53
|
+
--bizz-error-30: color-mix(in oklch, var(--bizz-error) 35%, white);
|
|
54
|
+
--bizz-error-40: color-mix(in oklch, var(--bizz-error) 55%, white);
|
|
55
|
+
--bizz-error-50: color-mix(in oklch, var(--bizz-error) 75%, white);
|
|
56
|
+
--bizz-error-60: var(--bizz-error);
|
|
57
|
+
--bizz-error-70: color-mix(in oklch, var(--bizz-error) 85%, black);
|
|
58
|
+
--bizz-error-80: color-mix(in oklch, var(--bizz-error) 65%, black);
|
|
59
|
+
--bizz-error-90: color-mix(in oklch, var(--bizz-error) 45%, black);
|
|
60
|
+
--bizz-error-100: color-mix(in oklch, var(--bizz-error) 25%, black);
|
|
61
|
+
}
|
|
62
|
+
.bizz-theme-light, :root {
|
|
63
|
+
color-scheme: light;
|
|
64
|
+
--bizz-background: var(--bizz-white);
|
|
65
|
+
--bizz-background-hover: color-mix(in oklch, var(--bizz-secondary) 12%, transparent);
|
|
66
|
+
--bizz-background-active: color-mix(in oklch, var(--bizz-secondary) 30%, transparent);
|
|
67
|
+
--bizz-layer-02: var(--bizz-white);
|
|
68
|
+
--bizz-field-hover-01: var(--bizz-secondary-20);
|
|
69
|
+
--bizz-border-subtle-00: var(--bizz-secondary-20);
|
|
70
|
+
--bizz-border-subtle-01: var(--bizz-secondary-30);
|
|
71
|
+
--bizz-border-strong-01: var(--bizz-secondary-50);
|
|
72
|
+
--bizz-border-interactive: var(--bizz-primary-60);
|
|
73
|
+
--bizz-text-primary: var(--bizz-secondary-100);
|
|
74
|
+
--bizz-text-secondary: var(--bizz-secondary-70);
|
|
75
|
+
--bizz-text-placeholder: var(--bizz-secondary-40);
|
|
76
|
+
--bizz-text-helper: var(--bizz-secondary-60);
|
|
77
|
+
--bizz-text-error: var(--bizz-error-60);
|
|
78
|
+
--bizz-text-on-color: var(--bizz-white);
|
|
79
|
+
--bizz-text-on-color-disabled: var(--bizz-secondary-50);
|
|
80
|
+
--bizz-text-inverse: var(--bizz-white);
|
|
81
|
+
--bizz-text-disabled: color-mix(in oklch, var(--bizz-secondary-100) 25%, transparent);
|
|
82
|
+
--bizz-link-primary: var(--bizz-primary-60);
|
|
83
|
+
--bizz-support-error: var(--bizz-error-60);
|
|
84
|
+
--bizz-support-success: var(--bizz-success-60);
|
|
85
|
+
--bizz-support-warning: var(--bizz-warning-60);
|
|
86
|
+
--bizz-button-primary: var(--bizz-primary-60);
|
|
87
|
+
--bizz-button-primary-hover: var(--bizz-primary-70);
|
|
88
|
+
--bizz-button-primary-active: var(--bizz-primary-80);
|
|
89
|
+
--bizz-button-secondary: var(--bizz-secondary-80);
|
|
90
|
+
--bizz-button-secondary-hover: var(--bizz-secondary-90);
|
|
91
|
+
--bizz-button-secondary-active: var(--bizz-secondary-60);
|
|
92
|
+
--bizz-button-danger: var(--bizz-error-60);
|
|
93
|
+
--bizz-button-danger-hover: var(--bizz-error-70);
|
|
94
|
+
--bizz-button-danger-active: var(--bizz-error-80);
|
|
95
|
+
--bizz-button-warning: var(--bizz-warning-60);
|
|
96
|
+
--bizz-button-warning-hover: var(--bizz-warning-70);
|
|
97
|
+
--bizz-button-warning-active: var(--bizz-warning-80);
|
|
98
|
+
--bizz-button-success: var(--bizz-success-60);
|
|
99
|
+
--bizz-button-success-hover: var(--bizz-success-70);
|
|
100
|
+
--bizz-button-success-active: var(--bizz-success-80);
|
|
101
|
+
--bizz-button-disabled: var(--bizz-secondary-30);
|
|
102
|
+
--bizz-focus: var(--bizz-primary-60);
|
|
103
|
+
--bizz-tag-primary-bg: var(--bizz-primary-20);
|
|
104
|
+
--bizz-tag-primary-text: var(--bizz-primary-80);
|
|
105
|
+
--bizz-tag-primary-hover: var(--bizz-primary-30);
|
|
106
|
+
--bizz-tag-secondary-bg: var(--bizz-secondary-20);
|
|
107
|
+
--bizz-tag-secondary-text: var(--bizz-secondary-100);
|
|
108
|
+
--bizz-tag-secondary-hover: var(--bizz-secondary-30);
|
|
109
|
+
--bizz-tag-success-bg: var(--bizz-success-20);
|
|
110
|
+
--bizz-tag-success-text: var(--bizz-success-80);
|
|
111
|
+
--bizz-tag-success-hover: var(--bizz-success-30);
|
|
112
|
+
--bizz-tag-warning-bg: var(--bizz-warning-20);
|
|
113
|
+
--bizz-tag-warning-text: var(--bizz-warning-80);
|
|
114
|
+
--bizz-tag-warning-hover: var(--bizz-warning-30);
|
|
115
|
+
--bizz-tag-error-bg: var(--bizz-error-20);
|
|
116
|
+
--bizz-tag-error-text: var(--bizz-error-80);
|
|
117
|
+
--bizz-tag-error-hover: var(--bizz-error-30);
|
|
118
|
+
--bizz-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
|
|
119
|
+
--bizz-shadow-md: 0 2px 6px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.08);
|
|
120
|
+
}
|
|
121
|
+
.bizz-theme-dark {
|
|
122
|
+
color-scheme: dark;
|
|
123
|
+
--bizz-background: var(--bizz-secondary-100);
|
|
124
|
+
--bizz-background-hover: color-mix(in oklch, var(--bizz-white) 12%, transparent);
|
|
125
|
+
--bizz-background-active: color-mix(in oklch, var(--bizz-white) 20%, transparent);
|
|
126
|
+
--bizz-layer-02: var(--bizz-secondary-80);
|
|
127
|
+
--bizz-field-hover-01: color-mix(in oklch, var(--bizz-secondary-90) 85%, white);
|
|
128
|
+
--bizz-border-subtle-00: var(--bizz-secondary-80);
|
|
129
|
+
--bizz-border-subtle-01: var(--bizz-secondary-70);
|
|
130
|
+
--bizz-border-strong-01: var(--bizz-secondary-60);
|
|
131
|
+
--bizz-border-interactive: var(--bizz-primary-50);
|
|
132
|
+
--bizz-text-primary: var(--bizz-secondary-10);
|
|
133
|
+
--bizz-text-secondary: var(--bizz-secondary-30);
|
|
134
|
+
--bizz-text-placeholder: var(--bizz-secondary-60);
|
|
135
|
+
--bizz-text-helper: var(--bizz-secondary-50);
|
|
136
|
+
--bizz-text-error: var(--bizz-error-40);
|
|
137
|
+
--bizz-text-on-color: var(--bizz-white);
|
|
138
|
+
--bizz-text-on-color-disabled: var(--bizz-secondary-70);
|
|
139
|
+
--bizz-text-inverse: var(--bizz-secondary-100);
|
|
140
|
+
--bizz-text-disabled: color-mix(in oklch, var(--bizz-secondary-10) 25%, transparent);
|
|
141
|
+
--bizz-link-primary: var(--bizz-primary-40);
|
|
142
|
+
--bizz-support-error: var(--bizz-error-40);
|
|
143
|
+
--bizz-support-success: var(--bizz-success-40);
|
|
144
|
+
--bizz-support-warning: var(--bizz-warning-40);
|
|
145
|
+
--bizz-button-primary: var(--bizz-primary-60);
|
|
146
|
+
--bizz-button-primary-hover: var(--bizz-primary-70);
|
|
147
|
+
--bizz-button-primary-active: var(--bizz-primary-80);
|
|
148
|
+
--bizz-button-secondary: var(--bizz-secondary-60);
|
|
149
|
+
--bizz-button-secondary-hover: var(--bizz-secondary-70);
|
|
150
|
+
--bizz-button-secondary-active: var(--bizz-secondary-80);
|
|
151
|
+
--bizz-button-danger: var(--bizz-error-60);
|
|
152
|
+
--bizz-button-danger-hover: var(--bizz-error-70);
|
|
153
|
+
--bizz-button-danger-active: var(--bizz-error-80);
|
|
154
|
+
--bizz-button-warning: var(--bizz-warning-60);
|
|
155
|
+
--bizz-button-warning-hover: var(--bizz-warning-70);
|
|
156
|
+
--bizz-button-warning-active: var(--bizz-warning-80);
|
|
157
|
+
--bizz-button-success: var(--bizz-success-60);
|
|
158
|
+
--bizz-button-success-hover: var(--bizz-success-70);
|
|
159
|
+
--bizz-button-success-active: var(--bizz-success-80);
|
|
160
|
+
--bizz-button-disabled: var(--bizz-secondary-70);
|
|
161
|
+
--bizz-focus: var(--bizz-white);
|
|
162
|
+
--bizz-tag-primary-bg: var(--bizz-primary-80);
|
|
163
|
+
--bizz-tag-primary-text: var(--bizz-primary-30);
|
|
164
|
+
--bizz-tag-primary-hover: var(--bizz-primary-90);
|
|
165
|
+
--bizz-tag-secondary-bg: var(--bizz-secondary-80);
|
|
166
|
+
--bizz-tag-secondary-text: var(--bizz-secondary-10);
|
|
167
|
+
--bizz-tag-secondary-hover: var(--bizz-secondary-90);
|
|
168
|
+
--bizz-tag-success-bg: var(--bizz-success-80);
|
|
169
|
+
--bizz-tag-success-text: var(--bizz-success-30);
|
|
170
|
+
--bizz-tag-success-hover: var(--bizz-success-90);
|
|
171
|
+
--bizz-tag-warning-bg: var(--bizz-warning-80);
|
|
172
|
+
--bizz-tag-warning-text: var(--bizz-warning-20);
|
|
173
|
+
--bizz-tag-warning-hover: var(--bizz-warning-90);
|
|
174
|
+
--bizz-tag-error-bg: var(--bizz-error-80);
|
|
175
|
+
--bizz-tag-error-text: var(--bizz-error-30);
|
|
176
|
+
--bizz-tag-error-hover: var(--bizz-error-90);
|
|
177
|
+
--bizz-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
|
|
178
|
+
--bizz-shadow-md: 0 2px 6px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.08);
|
|
179
|
+
}
|
|
180
|
+
:root {
|
|
181
|
+
--bizz-font-family-base: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, sans-serif;
|
|
182
|
+
--bizz-font-family-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
|
|
183
|
+
--bizz-font-size-xs: 0.75rem;
|
|
184
|
+
--bizz-font-size-sm: 0.875rem;
|
|
185
|
+
--bizz-font-size-md: 1rem;
|
|
186
|
+
--bizz-font-size-lg: 1.125rem;
|
|
187
|
+
--bizz-font-size-xl: 1.25rem;
|
|
188
|
+
--bizz-font-size-2xl: 1.5rem;
|
|
189
|
+
--bizz-font-size-3xl: 1.875rem;
|
|
190
|
+
--bizz-font-size-4xl: 2.25rem;
|
|
191
|
+
--bizz-font-size-5xl: 3rem;
|
|
192
|
+
--bizz-font-weight-regular: 400;
|
|
193
|
+
--bizz-font-weight-medium: 500;
|
|
194
|
+
--bizz-font-weight-semibold: 600;
|
|
195
|
+
--bizz-font-weight-bold: 700;
|
|
196
|
+
--bizz-font-weight-extrabold: 800;
|
|
197
|
+
--bizz-line-height-tight: 1.2;
|
|
198
|
+
--bizz-line-height-snug: 1.35;
|
|
199
|
+
--bizz-line-height-normal: 1.5;
|
|
200
|
+
--bizz-line-height-relaxed: 1.75;
|
|
201
|
+
--bizz-letter-spacing-tight: -0.03em;
|
|
202
|
+
--bizz-letter-spacing-snug: -0.02em;
|
|
203
|
+
--bizz-letter-spacing-normal: 0em;
|
|
204
|
+
--bizz-letter-spacing-wide: 0.05em;
|
|
205
|
+
--bizz-letter-spacing-wider: 0.1em;
|
|
206
|
+
--bizz-spacing-01: 0.125rem;
|
|
207
|
+
--bizz-spacing-02: 0.25rem;
|
|
208
|
+
--bizz-spacing-03: 0.5rem;
|
|
209
|
+
--bizz-spacing-04: 0.75rem;
|
|
210
|
+
--bizz-spacing-05: 1rem;
|
|
211
|
+
--bizz-spacing-06: 1.5rem;
|
|
212
|
+
--bizz-spacing-07: 2rem;
|
|
213
|
+
--bizz-spacing-08: 2.5rem;
|
|
214
|
+
--bizz-spacing-09: 3rem;
|
|
215
|
+
--bizz-spacing-10: 4rem;
|
|
216
|
+
--bizz-radius-sm: 0.125rem;
|
|
217
|
+
--bizz-radius-md: 0.25rem;
|
|
218
|
+
--bizz-radius-lg: 0.5rem;
|
|
219
|
+
--bizz-radius-xl: 1rem;
|
|
220
|
+
--bizz-radius-full: 9999px;
|
|
221
|
+
--bizz-shadow-lg: 0 8px 24px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08);
|
|
222
|
+
--bizz-shadow-xl: 0 16px 48px rgba(0,0,0,0.20), 0 4px 12px rgba(0,0,0,0.08);
|
|
223
|
+
--bizz-duration-fast: 100ms;
|
|
224
|
+
--bizz-duration-base: 200ms;
|
|
225
|
+
--bizz-duration-slow: 300ms;
|
|
226
|
+
--bizz-easing-default: cubic-bezier(0.4, 0, 0.2, 1);
|
|
227
|
+
}
|
|
228
|
+
.bizz-h1,.bizz-h2,.bizz-h3,.bizz-h4,.bizz-body-lg,.bizz-body,.bizz-body-sm,.bizz-label,.bizz-caption,.bizz-overline {
|
|
229
|
+
font-family: var(--bizz-font-family-base); margin: 0; padding: 0;
|
|
230
|
+
}
|
|
231
|
+
.bizz-h1 { font-size:var(--bizz-font-size-5xl);font-weight:var(--bizz-font-weight-extrabold);line-height:var(--bizz-line-height-tight);letter-spacing:var(--bizz-letter-spacing-tight); }
|
|
232
|
+
.bizz-h2 { font-size:var(--bizz-font-size-4xl);font-weight:var(--bizz-font-weight-bold);line-height:var(--bizz-line-height-tight);letter-spacing:var(--bizz-letter-spacing-snug); }
|
|
233
|
+
.bizz-h3 { font-size:var(--bizz-font-size-3xl);font-weight:var(--bizz-font-weight-bold);line-height:var(--bizz-line-height-snug);letter-spacing:var(--bizz-letter-spacing-snug); }
|
|
234
|
+
.bizz-h4 { font-size:var(--bizz-font-size-2xl);font-weight:var(--bizz-font-weight-semibold);line-height:var(--bizz-line-height-snug);letter-spacing:var(--bizz-letter-spacing-normal); }
|
|
235
|
+
.bizz-body-lg { font-size:var(--bizz-font-size-lg);font-weight:var(--bizz-font-weight-regular);line-height:var(--bizz-line-height-relaxed); }
|
|
236
|
+
.bizz-body { font-size:var(--bizz-font-size-md);font-weight:var(--bizz-font-weight-regular);line-height:var(--bizz-line-height-normal); }
|
|
237
|
+
.bizz-body-sm { font-size:var(--bizz-font-size-sm);font-weight:var(--bizz-font-weight-regular);line-height:var(--bizz-line-height-normal); }
|
|
238
|
+
.bizz-label { font-size:var(--bizz-font-size-sm);font-weight:var(--bizz-font-weight-semibold);line-height:var(--bizz-line-height-normal); }
|
|
239
|
+
.bizz-caption { font-size:var(--bizz-font-size-xs);font-weight:var(--bizz-font-weight-regular);line-height:var(--bizz-line-height-normal); }
|
|
240
|
+
.bizz-overline { font-size:var(--bizz-font-size-xs);font-weight:var(--bizz-font-weight-bold);line-height:var(--bizz-line-height-normal);letter-spacing:var(--bizz-letter-spacing-wider);text-transform:uppercase; }
|
|
241
|
+
.bizz-text-primary { color: var(--bizz-text-primary); }
|
|
242
|
+
.bizz-text-secondary { color: var(--bizz-text-secondary); }
|
|
243
|
+
.bizz-text-disabled { color: var(--bizz-text-disabled); }
|
|
244
|
+
.bizz-text-inverse { color: var(--bizz-text-inverse); }
|
|
245
|
+
.bizz-text-brand { color: var(--bizz-link-primary); }
|
|
246
|
+
.bizz-text-error { color: var(--bizz-text-error); }
|
|
247
|
+
.bizz-text-success { color: var(--bizz-support-success); }
|
|
248
|
+
.bizz-text-warning { color: var(--bizz-support-warning); }
|
|
249
|
+
`;
|
|
250
|
+
if (typeof document !== "undefined" && !document.getElementById("bizz-tokens")) {
|
|
251
|
+
const style = document.createElement("style");
|
|
252
|
+
style.id = "bizz-tokens";
|
|
253
|
+
style.textContent = TOKENS_CSS;
|
|
254
|
+
document.head.appendChild(style);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js
|
|
258
|
+
var ElementInternalsShim = class ElementInternals {
|
|
259
|
+
get shadowRoot() {
|
|
260
|
+
return this.__host.__shadowRoot;
|
|
261
|
+
}
|
|
262
|
+
constructor(_host) {
|
|
263
|
+
this.ariaActiveDescendantElement = null;
|
|
264
|
+
this.ariaAtomic = "";
|
|
265
|
+
this.ariaAutoComplete = "";
|
|
266
|
+
this.ariaBrailleLabel = "";
|
|
267
|
+
this.ariaBrailleRoleDescription = "";
|
|
268
|
+
this.ariaBusy = "";
|
|
269
|
+
this.ariaChecked = "";
|
|
270
|
+
this.ariaColCount = "";
|
|
271
|
+
this.ariaColIndex = "";
|
|
272
|
+
this.ariaColIndexText = "";
|
|
273
|
+
this.ariaColSpan = "";
|
|
274
|
+
this.ariaControlsElements = null;
|
|
275
|
+
this.ariaCurrent = "";
|
|
276
|
+
this.ariaDescribedByElements = null;
|
|
277
|
+
this.ariaDescription = "";
|
|
278
|
+
this.ariaDetailsElements = null;
|
|
279
|
+
this.ariaDisabled = "";
|
|
280
|
+
this.ariaErrorMessageElements = null;
|
|
281
|
+
this.ariaExpanded = "";
|
|
282
|
+
this.ariaFlowToElements = null;
|
|
283
|
+
this.ariaHasPopup = "";
|
|
284
|
+
this.ariaHidden = "";
|
|
285
|
+
this.ariaInvalid = "";
|
|
286
|
+
this.ariaKeyShortcuts = "";
|
|
287
|
+
this.ariaLabel = "";
|
|
288
|
+
this.ariaLabelledByElements = null;
|
|
289
|
+
this.ariaLevel = "";
|
|
290
|
+
this.ariaLive = "";
|
|
291
|
+
this.ariaModal = "";
|
|
292
|
+
this.ariaMultiLine = "";
|
|
293
|
+
this.ariaMultiSelectable = "";
|
|
294
|
+
this.ariaOrientation = "";
|
|
295
|
+
this.ariaOwnsElements = null;
|
|
296
|
+
this.ariaPlaceholder = "";
|
|
297
|
+
this.ariaPosInSet = "";
|
|
298
|
+
this.ariaPressed = "";
|
|
299
|
+
this.ariaReadOnly = "";
|
|
300
|
+
this.ariaRelevant = "";
|
|
301
|
+
this.ariaRequired = "";
|
|
302
|
+
this.ariaRoleDescription = "";
|
|
303
|
+
this.ariaRowCount = "";
|
|
304
|
+
this.ariaRowIndex = "";
|
|
305
|
+
this.ariaRowIndexText = "";
|
|
306
|
+
this.ariaRowSpan = "";
|
|
307
|
+
this.ariaSelected = "";
|
|
308
|
+
this.ariaSetSize = "";
|
|
309
|
+
this.ariaSort = "";
|
|
310
|
+
this.ariaValueMax = "";
|
|
311
|
+
this.ariaValueMin = "";
|
|
312
|
+
this.ariaValueNow = "";
|
|
313
|
+
this.ariaValueText = "";
|
|
314
|
+
this.role = "";
|
|
315
|
+
this.form = null;
|
|
316
|
+
this.labels = [];
|
|
317
|
+
this.states = /* @__PURE__ */ new Set();
|
|
318
|
+
this.validationMessage = "";
|
|
319
|
+
this.validity = {};
|
|
320
|
+
this.willValidate = true;
|
|
321
|
+
this.__host = _host;
|
|
322
|
+
}
|
|
323
|
+
checkValidity() {
|
|
324
|
+
console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true.");
|
|
325
|
+
return true;
|
|
326
|
+
}
|
|
327
|
+
reportValidity() {
|
|
328
|
+
return true;
|
|
329
|
+
}
|
|
330
|
+
setFormValue() {
|
|
331
|
+
}
|
|
332
|
+
setValidity() {
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
// node_modules/@lit-labs/ssr-dom-shim/lib/events.js
|
|
337
|
+
var __classPrivateFieldSet = function(receiver, state, value, kind, f3) {
|
|
338
|
+
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
339
|
+
return state.set(receiver, value), value;
|
|
340
|
+
};
|
|
341
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f3) {
|
|
342
|
+
if (typeof state === "function" ? receiver !== state || !f3 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
343
|
+
return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state.get(receiver);
|
|
344
|
+
};
|
|
345
|
+
var _Event_cancelable;
|
|
346
|
+
var _Event_bubbles;
|
|
347
|
+
var _Event_composed;
|
|
348
|
+
var _Event_defaultPrevented;
|
|
349
|
+
var _Event_timestamp;
|
|
350
|
+
var _Event_propagationStopped;
|
|
351
|
+
var _Event_type;
|
|
352
|
+
var _Event_target;
|
|
353
|
+
var _Event_isBeingDispatched;
|
|
354
|
+
var _a;
|
|
355
|
+
var _CustomEvent_detail;
|
|
356
|
+
var _b;
|
|
357
|
+
var NONE = 0;
|
|
358
|
+
var CAPTURING_PHASE = 1;
|
|
359
|
+
var AT_TARGET = 2;
|
|
360
|
+
var BUBBLING_PHASE = 3;
|
|
361
|
+
var enumerableProperty = { __proto__: null };
|
|
362
|
+
enumerableProperty.enumerable = true;
|
|
363
|
+
Object.freeze(enumerableProperty);
|
|
364
|
+
var EventShim = (_a = class Event {
|
|
365
|
+
constructor(type, options = {}) {
|
|
366
|
+
_Event_cancelable.set(this, false);
|
|
367
|
+
_Event_bubbles.set(this, false);
|
|
368
|
+
_Event_composed.set(this, false);
|
|
369
|
+
_Event_defaultPrevented.set(this, false);
|
|
370
|
+
_Event_timestamp.set(this, Date.now());
|
|
371
|
+
_Event_propagationStopped.set(this, false);
|
|
372
|
+
_Event_type.set(this, void 0);
|
|
373
|
+
_Event_target.set(this, void 0);
|
|
374
|
+
_Event_isBeingDispatched.set(this, void 0);
|
|
375
|
+
this.NONE = NONE;
|
|
376
|
+
this.CAPTURING_PHASE = CAPTURING_PHASE;
|
|
377
|
+
this.AT_TARGET = AT_TARGET;
|
|
378
|
+
this.BUBBLING_PHASE = BUBBLING_PHASE;
|
|
379
|
+
if (arguments.length === 0)
|
|
380
|
+
throw new Error(`The type argument must be specified`);
|
|
381
|
+
if (typeof options !== "object" || !options) {
|
|
382
|
+
throw new Error(`The "options" argument must be an object`);
|
|
383
|
+
}
|
|
384
|
+
const { bubbles, cancelable, composed } = options;
|
|
385
|
+
__classPrivateFieldSet(this, _Event_cancelable, !!cancelable);
|
|
386
|
+
__classPrivateFieldSet(this, _Event_bubbles, !!bubbles);
|
|
387
|
+
__classPrivateFieldSet(this, _Event_composed, !!composed);
|
|
388
|
+
__classPrivateFieldSet(this, _Event_type, `${type}`);
|
|
389
|
+
__classPrivateFieldSet(this, _Event_target, null);
|
|
390
|
+
__classPrivateFieldSet(this, _Event_isBeingDispatched, false);
|
|
391
|
+
}
|
|
392
|
+
initEvent(_type, _bubbles, _cancelable) {
|
|
393
|
+
throw new Error("Method not implemented.");
|
|
394
|
+
}
|
|
395
|
+
stopImmediatePropagation() {
|
|
396
|
+
this.stopPropagation();
|
|
397
|
+
}
|
|
398
|
+
preventDefault() {
|
|
399
|
+
__classPrivateFieldSet(this, _Event_defaultPrevented, true);
|
|
400
|
+
}
|
|
401
|
+
get target() {
|
|
402
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
403
|
+
}
|
|
404
|
+
get currentTarget() {
|
|
405
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
406
|
+
}
|
|
407
|
+
get srcElement() {
|
|
408
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
409
|
+
}
|
|
410
|
+
get type() {
|
|
411
|
+
return __classPrivateFieldGet(this, _Event_type, "f");
|
|
412
|
+
}
|
|
413
|
+
get cancelable() {
|
|
414
|
+
return __classPrivateFieldGet(this, _Event_cancelable, "f");
|
|
415
|
+
}
|
|
416
|
+
get defaultPrevented() {
|
|
417
|
+
return __classPrivateFieldGet(this, _Event_cancelable, "f") && __classPrivateFieldGet(this, _Event_defaultPrevented, "f");
|
|
418
|
+
}
|
|
419
|
+
get timeStamp() {
|
|
420
|
+
return __classPrivateFieldGet(this, _Event_timestamp, "f");
|
|
421
|
+
}
|
|
422
|
+
composedPath() {
|
|
423
|
+
return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? [__classPrivateFieldGet(this, _Event_target, "f")] : [];
|
|
424
|
+
}
|
|
425
|
+
get returnValue() {
|
|
426
|
+
return !__classPrivateFieldGet(this, _Event_cancelable, "f") || !__classPrivateFieldGet(this, _Event_defaultPrevented, "f");
|
|
427
|
+
}
|
|
428
|
+
get bubbles() {
|
|
429
|
+
return __classPrivateFieldGet(this, _Event_bubbles, "f");
|
|
430
|
+
}
|
|
431
|
+
get composed() {
|
|
432
|
+
return __classPrivateFieldGet(this, _Event_composed, "f");
|
|
433
|
+
}
|
|
434
|
+
get eventPhase() {
|
|
435
|
+
return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? _a.AT_TARGET : _a.NONE;
|
|
436
|
+
}
|
|
437
|
+
get cancelBubble() {
|
|
438
|
+
return __classPrivateFieldGet(this, _Event_propagationStopped, "f");
|
|
439
|
+
}
|
|
440
|
+
set cancelBubble(value) {
|
|
441
|
+
if (value) {
|
|
442
|
+
__classPrivateFieldSet(this, _Event_propagationStopped, true);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
stopPropagation() {
|
|
446
|
+
__classPrivateFieldSet(this, _Event_propagationStopped, true);
|
|
447
|
+
}
|
|
448
|
+
get isTrusted() {
|
|
449
|
+
return false;
|
|
450
|
+
}
|
|
451
|
+
}, _Event_cancelable = /* @__PURE__ */ new WeakMap(), _Event_bubbles = /* @__PURE__ */ new WeakMap(), _Event_composed = /* @__PURE__ */ new WeakMap(), _Event_defaultPrevented = /* @__PURE__ */ new WeakMap(), _Event_timestamp = /* @__PURE__ */ new WeakMap(), _Event_propagationStopped = /* @__PURE__ */ new WeakMap(), _Event_type = /* @__PURE__ */ new WeakMap(), _Event_target = /* @__PURE__ */ new WeakMap(), _Event_isBeingDispatched = /* @__PURE__ */ new WeakMap(), _a.NONE = NONE, _a.CAPTURING_PHASE = CAPTURING_PHASE, _a.AT_TARGET = AT_TARGET, _a.BUBBLING_PHASE = BUBBLING_PHASE, _a);
|
|
452
|
+
Object.defineProperties(EventShim.prototype, {
|
|
453
|
+
initEvent: enumerableProperty,
|
|
454
|
+
stopImmediatePropagation: enumerableProperty,
|
|
455
|
+
preventDefault: enumerableProperty,
|
|
456
|
+
target: enumerableProperty,
|
|
457
|
+
currentTarget: enumerableProperty,
|
|
458
|
+
srcElement: enumerableProperty,
|
|
459
|
+
type: enumerableProperty,
|
|
460
|
+
cancelable: enumerableProperty,
|
|
461
|
+
defaultPrevented: enumerableProperty,
|
|
462
|
+
timeStamp: enumerableProperty,
|
|
463
|
+
composedPath: enumerableProperty,
|
|
464
|
+
returnValue: enumerableProperty,
|
|
465
|
+
bubbles: enumerableProperty,
|
|
466
|
+
composed: enumerableProperty,
|
|
467
|
+
eventPhase: enumerableProperty,
|
|
468
|
+
cancelBubble: enumerableProperty,
|
|
469
|
+
stopPropagation: enumerableProperty,
|
|
470
|
+
isTrusted: enumerableProperty
|
|
471
|
+
});
|
|
472
|
+
var CustomEventShim = (_b = class CustomEvent2 extends EventShim {
|
|
473
|
+
constructor(type, options = {}) {
|
|
474
|
+
super(type, options);
|
|
475
|
+
_CustomEvent_detail.set(this, void 0);
|
|
476
|
+
__classPrivateFieldSet(this, _CustomEvent_detail, options?.detail ?? null);
|
|
477
|
+
}
|
|
478
|
+
initCustomEvent(_type, _bubbles, _cancelable, _detail) {
|
|
479
|
+
throw new Error("Method not implemented.");
|
|
480
|
+
}
|
|
481
|
+
get detail() {
|
|
482
|
+
return __classPrivateFieldGet(this, _CustomEvent_detail, "f");
|
|
483
|
+
}
|
|
484
|
+
}, _CustomEvent_detail = /* @__PURE__ */ new WeakMap(), _b);
|
|
485
|
+
Object.defineProperties(CustomEventShim.prototype, {
|
|
486
|
+
detail: enumerableProperty
|
|
487
|
+
});
|
|
488
|
+
var EventShimWithRealType = EventShim;
|
|
489
|
+
var CustomEventShimWithRealType = CustomEventShim;
|
|
490
|
+
|
|
491
|
+
// node_modules/@lit-labs/ssr-dom-shim/lib/css.js
|
|
492
|
+
var _a2;
|
|
493
|
+
(_a2 = class CSSRule {
|
|
494
|
+
constructor() {
|
|
495
|
+
this.STYLE_RULE = 1;
|
|
496
|
+
this.CHARSET_RULE = 2;
|
|
497
|
+
this.IMPORT_RULE = 3;
|
|
498
|
+
this.MEDIA_RULE = 4;
|
|
499
|
+
this.FONT_FACE_RULE = 5;
|
|
500
|
+
this.PAGE_RULE = 6;
|
|
501
|
+
this.NAMESPACE_RULE = 10;
|
|
502
|
+
this.KEYFRAMES_RULE = 7;
|
|
503
|
+
this.KEYFRAME_RULE = 8;
|
|
504
|
+
this.SUPPORTS_RULE = 12;
|
|
505
|
+
this.COUNTER_STYLE_RULE = 11;
|
|
506
|
+
this.FONT_FEATURE_VALUES_RULE = 14;
|
|
507
|
+
this.MARGIN_RULE = 9;
|
|
508
|
+
this.__parentStyleSheet = null;
|
|
509
|
+
this.cssText = "";
|
|
510
|
+
}
|
|
511
|
+
get parentRule() {
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
get parentStyleSheet() {
|
|
515
|
+
return this.__parentStyleSheet;
|
|
516
|
+
}
|
|
517
|
+
get type() {
|
|
518
|
+
return 0;
|
|
519
|
+
}
|
|
520
|
+
}, _a2.STYLE_RULE = 1, _a2.CHARSET_RULE = 2, _a2.IMPORT_RULE = 3, _a2.MEDIA_RULE = 4, _a2.FONT_FACE_RULE = 5, _a2.PAGE_RULE = 6, _a2.NAMESPACE_RULE = 10, _a2.KEYFRAMES_RULE = 7, _a2.KEYFRAME_RULE = 8, _a2.SUPPORTS_RULE = 12, _a2.COUNTER_STYLE_RULE = 11, _a2.FONT_FEATURE_VALUES_RULE = 14, _a2.MARGIN_RULE = 9, _a2);
|
|
521
|
+
|
|
522
|
+
// node_modules/@lit-labs/ssr-dom-shim/index.js
|
|
523
|
+
globalThis.Event ?? (globalThis.Event = EventShimWithRealType);
|
|
524
|
+
globalThis.CustomEvent ?? (globalThis.CustomEvent = CustomEventShimWithRealType);
|
|
525
|
+
var constructionToken = /* @__PURE__ */ Symbol();
|
|
526
|
+
var isCaptureEventListener = (options) => typeof options === "boolean" ? options : options?.capture ?? false;
|
|
527
|
+
var enumerableProperty2 = { __proto__: null };
|
|
528
|
+
enumerableProperty2.enumerable = true;
|
|
529
|
+
Object.freeze(enumerableProperty2);
|
|
530
|
+
var EventTarget = class {
|
|
531
|
+
constructor() {
|
|
532
|
+
this.__eventListeners = /* @__PURE__ */ new Map();
|
|
533
|
+
this.__captureEventListeners = /* @__PURE__ */ new Map();
|
|
534
|
+
}
|
|
535
|
+
addEventListener(type, callback, options) {
|
|
536
|
+
if (callback === void 0 || callback === null) {
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
|
|
540
|
+
let eventListeners = eventListenersMap.get(type);
|
|
541
|
+
if (eventListeners === void 0) {
|
|
542
|
+
eventListeners = /* @__PURE__ */ new Map();
|
|
543
|
+
eventListenersMap.set(type, eventListeners);
|
|
544
|
+
} else if (eventListeners.has(callback)) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
const normalizedOptions = typeof options === "object" && options ? options : {};
|
|
548
|
+
normalizedOptions.signal?.addEventListener("abort", () => this.removeEventListener(type, callback, options));
|
|
549
|
+
eventListeners.set(callback, normalizedOptions ?? {});
|
|
550
|
+
}
|
|
551
|
+
removeEventListener(type, callback, options) {
|
|
552
|
+
if (callback === void 0 || callback === null) {
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
|
|
556
|
+
const eventListeners = eventListenersMap.get(type);
|
|
557
|
+
if (eventListeners !== void 0) {
|
|
558
|
+
eventListeners.delete(callback);
|
|
559
|
+
if (!eventListeners.size) {
|
|
560
|
+
eventListenersMap.delete(type);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
dispatchEvent(event) {
|
|
565
|
+
let composedPath = this.__resolveFullEventPath();
|
|
566
|
+
if (!event.composed && this.__host) {
|
|
567
|
+
composedPath = composedPath.slice(0, composedPath.indexOf(this.__host));
|
|
568
|
+
}
|
|
569
|
+
let stopPropagation = false;
|
|
570
|
+
let stopImmediatePropagation = false;
|
|
571
|
+
let eventPhase = EventShimWithRealType.NONE;
|
|
572
|
+
let target = null;
|
|
573
|
+
let tmpTarget = null;
|
|
574
|
+
let currentTarget = null;
|
|
575
|
+
const originalStopPropagation = event.stopPropagation;
|
|
576
|
+
const originalStopImmediatePropagation = event.stopImmediatePropagation;
|
|
577
|
+
Object.defineProperties(event, {
|
|
578
|
+
target: {
|
|
579
|
+
get() {
|
|
580
|
+
return target ?? tmpTarget;
|
|
581
|
+
},
|
|
582
|
+
...enumerableProperty2
|
|
583
|
+
},
|
|
584
|
+
srcElement: {
|
|
585
|
+
get() {
|
|
586
|
+
return event.target;
|
|
587
|
+
},
|
|
588
|
+
...enumerableProperty2
|
|
589
|
+
},
|
|
590
|
+
currentTarget: {
|
|
591
|
+
get() {
|
|
592
|
+
return currentTarget;
|
|
593
|
+
},
|
|
594
|
+
...enumerableProperty2
|
|
595
|
+
},
|
|
596
|
+
eventPhase: {
|
|
597
|
+
get() {
|
|
598
|
+
return eventPhase;
|
|
599
|
+
},
|
|
600
|
+
...enumerableProperty2
|
|
601
|
+
},
|
|
602
|
+
composedPath: {
|
|
603
|
+
value: () => composedPath,
|
|
604
|
+
...enumerableProperty2
|
|
605
|
+
},
|
|
606
|
+
stopPropagation: {
|
|
607
|
+
value: () => {
|
|
608
|
+
stopPropagation = true;
|
|
609
|
+
originalStopPropagation.call(event);
|
|
610
|
+
},
|
|
611
|
+
...enumerableProperty2
|
|
612
|
+
},
|
|
613
|
+
stopImmediatePropagation: {
|
|
614
|
+
value: () => {
|
|
615
|
+
stopImmediatePropagation = true;
|
|
616
|
+
originalStopImmediatePropagation.call(event);
|
|
617
|
+
},
|
|
618
|
+
...enumerableProperty2
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
const invokeEventListener = (listener, options, eventListenerMap) => {
|
|
622
|
+
if (typeof listener === "function") {
|
|
623
|
+
listener(event);
|
|
624
|
+
} else if (typeof listener?.handleEvent === "function") {
|
|
625
|
+
listener.handleEvent(event);
|
|
626
|
+
}
|
|
627
|
+
if (options.once) {
|
|
628
|
+
eventListenerMap.delete(listener);
|
|
629
|
+
}
|
|
630
|
+
};
|
|
631
|
+
const finishDispatch = () => {
|
|
632
|
+
currentTarget = null;
|
|
633
|
+
eventPhase = EventShimWithRealType.NONE;
|
|
634
|
+
return !event.defaultPrevented;
|
|
635
|
+
};
|
|
636
|
+
const captureEventPath = composedPath.slice().reverse();
|
|
637
|
+
target = !this.__host || !event.composed ? this : null;
|
|
638
|
+
const retarget = (eventTargets) => {
|
|
639
|
+
tmpTarget = this;
|
|
640
|
+
while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) {
|
|
641
|
+
tmpTarget = tmpTarget.__host;
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
for (const eventTarget of captureEventPath) {
|
|
645
|
+
if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) {
|
|
646
|
+
retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget)));
|
|
647
|
+
}
|
|
648
|
+
currentTarget = eventTarget;
|
|
649
|
+
eventPhase = eventTarget === event.target ? EventShimWithRealType.AT_TARGET : EventShimWithRealType.CAPTURING_PHASE;
|
|
650
|
+
const captureEventListeners = eventTarget.__captureEventListeners.get(event.type);
|
|
651
|
+
if (captureEventListeners) {
|
|
652
|
+
for (const [listener, options] of captureEventListeners) {
|
|
653
|
+
invokeEventListener(listener, options, captureEventListeners);
|
|
654
|
+
if (stopImmediatePropagation) {
|
|
655
|
+
return finishDispatch();
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
if (stopPropagation) {
|
|
660
|
+
return finishDispatch();
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
const bubbleEventPath = event.bubbles ? composedPath : [this];
|
|
664
|
+
tmpTarget = null;
|
|
665
|
+
for (const eventTarget of bubbleEventPath) {
|
|
666
|
+
if (!target && (!tmpTarget || eventTarget === tmpTarget.__host)) {
|
|
667
|
+
retarget(bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1));
|
|
668
|
+
}
|
|
669
|
+
currentTarget = eventTarget;
|
|
670
|
+
eventPhase = eventTarget === event.target ? EventShimWithRealType.AT_TARGET : EventShimWithRealType.BUBBLING_PHASE;
|
|
671
|
+
const eventListeners = eventTarget.__eventListeners.get(event.type);
|
|
672
|
+
if (eventListeners) {
|
|
673
|
+
for (const [listener, options] of eventListeners) {
|
|
674
|
+
invokeEventListener(listener, options, eventListeners);
|
|
675
|
+
if (stopImmediatePropagation) {
|
|
676
|
+
return finishDispatch();
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
if (stopPropagation) {
|
|
681
|
+
return finishDispatch();
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
return finishDispatch();
|
|
685
|
+
}
|
|
686
|
+
__resolveFullEventPath() {
|
|
687
|
+
if (this.__eventPathCache) {
|
|
688
|
+
return this.__eventPathCache;
|
|
689
|
+
} else if (!this.__eventTargetParent) {
|
|
690
|
+
return this.__eventPathCache = [this, documentShim, windowShim];
|
|
691
|
+
} else {
|
|
692
|
+
return this.__eventPathCache = [
|
|
693
|
+
this,
|
|
694
|
+
...this.__eventTargetParent.__resolveFullEventPath()
|
|
695
|
+
];
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
var attributes = /* @__PURE__ */ new WeakMap();
|
|
700
|
+
var attributesForElement = (element) => {
|
|
701
|
+
let attrs = attributes.get(element);
|
|
702
|
+
if (attrs === void 0) {
|
|
703
|
+
attributes.set(element, attrs = /* @__PURE__ */ new Map());
|
|
704
|
+
}
|
|
705
|
+
return attrs;
|
|
706
|
+
};
|
|
707
|
+
var NodeShim = class Node extends EventTarget {
|
|
708
|
+
getRootNode(options) {
|
|
709
|
+
if (options?.composed) {
|
|
710
|
+
return document2;
|
|
711
|
+
}
|
|
712
|
+
const host = this.__host;
|
|
713
|
+
return host?.__shadowRoot ?? document2;
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
var DocumentShim = class Document2 extends NodeShim {
|
|
717
|
+
get adoptedStyleSheets() {
|
|
718
|
+
return [];
|
|
719
|
+
}
|
|
720
|
+
createTreeWalker() {
|
|
721
|
+
return {};
|
|
722
|
+
}
|
|
723
|
+
createTextNode() {
|
|
724
|
+
return {};
|
|
725
|
+
}
|
|
726
|
+
createElement() {
|
|
727
|
+
return {};
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
var documentShim = new DocumentShim();
|
|
731
|
+
var document2 = documentShim;
|
|
732
|
+
var WindowShim = class Window extends NodeShim {
|
|
733
|
+
constructor(token) {
|
|
734
|
+
super();
|
|
735
|
+
if (token !== constructionToken) {
|
|
736
|
+
throw new TypeError("Illegal constructor");
|
|
737
|
+
}
|
|
738
|
+
Object.assign(this, globalThis, {
|
|
739
|
+
CustomElementRegistry,
|
|
740
|
+
customElements: customElements2,
|
|
741
|
+
document: document2,
|
|
742
|
+
Document: DocumentShim,
|
|
743
|
+
Element: ElementShim,
|
|
744
|
+
EventTarget,
|
|
745
|
+
HTMLElement: HTMLElementShim,
|
|
746
|
+
Node: NodeShim,
|
|
747
|
+
ShadowRoot: ShadowRootShim,
|
|
748
|
+
window: this,
|
|
749
|
+
Window: WindowShim
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
var ElementShim = class Element extends NodeShim {
|
|
754
|
+
constructor() {
|
|
755
|
+
super(...arguments);
|
|
756
|
+
this.__shadowRootMode = null;
|
|
757
|
+
this.__shadowRoot = null;
|
|
758
|
+
this.__internals = null;
|
|
759
|
+
}
|
|
760
|
+
get attributes() {
|
|
761
|
+
return Array.from(attributesForElement(this)).map(([name, value]) => ({
|
|
762
|
+
name,
|
|
763
|
+
value
|
|
764
|
+
}));
|
|
765
|
+
}
|
|
766
|
+
get shadowRoot() {
|
|
767
|
+
if (this.__shadowRootMode === "closed") {
|
|
768
|
+
return null;
|
|
769
|
+
}
|
|
770
|
+
return this.__shadowRoot;
|
|
771
|
+
}
|
|
772
|
+
get localName() {
|
|
773
|
+
return this.constructor.__localName;
|
|
774
|
+
}
|
|
775
|
+
get tagName() {
|
|
776
|
+
return this.localName?.toUpperCase();
|
|
777
|
+
}
|
|
778
|
+
setAttribute(name, value) {
|
|
779
|
+
attributesForElement(this).set(name, String(value));
|
|
780
|
+
}
|
|
781
|
+
removeAttribute(name) {
|
|
782
|
+
attributesForElement(this).delete(name);
|
|
783
|
+
}
|
|
784
|
+
toggleAttribute(name, force) {
|
|
785
|
+
if (this.hasAttribute(name)) {
|
|
786
|
+
if (force === void 0 || !force) {
|
|
787
|
+
this.removeAttribute(name);
|
|
788
|
+
return false;
|
|
789
|
+
}
|
|
790
|
+
} else {
|
|
791
|
+
if (force === void 0 || force) {
|
|
792
|
+
this.setAttribute(name, "");
|
|
793
|
+
return true;
|
|
794
|
+
} else {
|
|
795
|
+
return false;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
return true;
|
|
799
|
+
}
|
|
800
|
+
hasAttribute(name) {
|
|
801
|
+
return attributesForElement(this).has(name);
|
|
802
|
+
}
|
|
803
|
+
attachShadow(init) {
|
|
804
|
+
this.__shadowRootMode = init.mode;
|
|
805
|
+
const shadowRoot = new ShadowRootShim(constructionToken, init);
|
|
806
|
+
shadowRoot.__eventTargetParent = this;
|
|
807
|
+
shadowRoot.__host = this;
|
|
808
|
+
return this.__shadowRoot = shadowRoot;
|
|
809
|
+
}
|
|
810
|
+
attachInternals() {
|
|
811
|
+
if (this.__internals !== null) {
|
|
812
|
+
throw new Error(`Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.`);
|
|
813
|
+
}
|
|
814
|
+
const internals = new ElementInternalsShim(this);
|
|
815
|
+
this.__internals = internals;
|
|
816
|
+
return internals;
|
|
817
|
+
}
|
|
818
|
+
getAttribute(name) {
|
|
819
|
+
const value = attributesForElement(this).get(name);
|
|
820
|
+
return value ?? null;
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
var HTMLElementShim = class HTMLElement extends ElementShim {
|
|
824
|
+
};
|
|
825
|
+
var HTMLElementShimWithRealType = HTMLElementShim;
|
|
826
|
+
var ShadowRootShim = class ShadowRoot extends NodeShim {
|
|
827
|
+
get host() {
|
|
828
|
+
return this.__host;
|
|
829
|
+
}
|
|
830
|
+
constructor(constructionToken2, init) {
|
|
831
|
+
super();
|
|
832
|
+
if (constructionToken2 !== constructionToken2) {
|
|
833
|
+
throw new TypeError("Illegal constructor");
|
|
834
|
+
}
|
|
835
|
+
this.mode = init.mode;
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
globalThis.litServerRoot ?? (globalThis.litServerRoot = Object.defineProperty(new HTMLElementShimWithRealType(), "localName", {
|
|
839
|
+
// Patch localName (and tagName) to return a unique name.
|
|
840
|
+
get() {
|
|
841
|
+
return "lit-server-root";
|
|
842
|
+
}
|
|
843
|
+
}));
|
|
844
|
+
function promiseWithResolvers() {
|
|
845
|
+
let resolve;
|
|
846
|
+
let reject;
|
|
847
|
+
const promise = new Promise((res, rej) => {
|
|
848
|
+
resolve = res;
|
|
849
|
+
reject = rej;
|
|
850
|
+
});
|
|
851
|
+
return { promise, resolve, reject };
|
|
852
|
+
}
|
|
853
|
+
var CustomElementRegistry = class {
|
|
854
|
+
constructor() {
|
|
855
|
+
this.__definitions = /* @__PURE__ */ new Map();
|
|
856
|
+
this.__reverseDefinitions = /* @__PURE__ */ new Map();
|
|
857
|
+
this.__pendingWhenDefineds = /* @__PURE__ */ new Map();
|
|
858
|
+
}
|
|
859
|
+
define(name, ctor) {
|
|
860
|
+
if (this.__definitions.has(name)) {
|
|
861
|
+
if (process.env.NODE_ENV === "development") {
|
|
862
|
+
console.warn(`'CustomElementRegistry' already has "${name}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
|
|
863
|
+
Make sure to test your application with a production build as repeat registrations will throw in production.`);
|
|
864
|
+
} else {
|
|
865
|
+
throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${name}" has already been used with this registry`);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (this.__reverseDefinitions.has(ctor)) {
|
|
869
|
+
throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(ctor)}`);
|
|
870
|
+
}
|
|
871
|
+
ctor.__localName = name;
|
|
872
|
+
this.__definitions.set(name, {
|
|
873
|
+
ctor,
|
|
874
|
+
// Note it's important we read `observedAttributes` in case it is a getter
|
|
875
|
+
// with side-effects, as is the case in Lit, where it triggers class
|
|
876
|
+
// finalization.
|
|
877
|
+
//
|
|
878
|
+
// TODO(aomarks) To be spec compliant, we should also capture the
|
|
879
|
+
// registration-time lifecycle methods like `connectedCallback`. For them
|
|
880
|
+
// to be actually accessible to e.g. the Lit SSR element renderer, though,
|
|
881
|
+
// we'd need to introduce a new API for accessing them (since `get` only
|
|
882
|
+
// returns the constructor).
|
|
883
|
+
observedAttributes: ctor.observedAttributes ?? []
|
|
884
|
+
});
|
|
885
|
+
this.__reverseDefinitions.set(ctor, name);
|
|
886
|
+
this.__pendingWhenDefineds.get(name)?.resolve(ctor);
|
|
887
|
+
this.__pendingWhenDefineds.delete(name);
|
|
888
|
+
}
|
|
889
|
+
get(name) {
|
|
890
|
+
const definition = this.__definitions.get(name);
|
|
891
|
+
return definition?.ctor;
|
|
892
|
+
}
|
|
893
|
+
getName(ctor) {
|
|
894
|
+
return this.__reverseDefinitions.get(ctor) ?? null;
|
|
895
|
+
}
|
|
896
|
+
initialize(_root) {
|
|
897
|
+
throw new Error(`customElements.initialize is not currently supported in SSR. Please file a bug if you need it.`);
|
|
898
|
+
}
|
|
899
|
+
upgrade(_element) {
|
|
900
|
+
throw new Error(`customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.`);
|
|
901
|
+
}
|
|
902
|
+
async whenDefined(name) {
|
|
903
|
+
const definition = this.__definitions.get(name);
|
|
904
|
+
if (definition) {
|
|
905
|
+
return definition.ctor;
|
|
906
|
+
}
|
|
907
|
+
let withResolvers = this.__pendingWhenDefineds.get(name);
|
|
908
|
+
if (!withResolvers) {
|
|
909
|
+
withResolvers = promiseWithResolvers();
|
|
910
|
+
this.__pendingWhenDefineds.set(name, withResolvers);
|
|
911
|
+
}
|
|
912
|
+
return withResolvers.promise;
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
var CustomElementRegistryShimWithRealType = CustomElementRegistry;
|
|
916
|
+
var customElements2 = new CustomElementRegistryShimWithRealType();
|
|
917
|
+
var windowShim = new WindowShim(constructionToken);
|
|
918
|
+
|
|
919
|
+
// node_modules/@lit/reactive-element/node/css-tag.js
|
|
920
|
+
var t = globalThis;
|
|
921
|
+
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
922
|
+
var s = /* @__PURE__ */ Symbol();
|
|
923
|
+
var o = /* @__PURE__ */ new WeakMap();
|
|
924
|
+
var n = class {
|
|
925
|
+
constructor(t3, e3, o5) {
|
|
926
|
+
if (this._$cssResult$ = true, o5 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
927
|
+
this.cssText = t3, this.t = e3;
|
|
928
|
+
}
|
|
929
|
+
get styleSheet() {
|
|
930
|
+
let t3 = this.o;
|
|
931
|
+
const s4 = this.t;
|
|
932
|
+
if (e && void 0 === t3) {
|
|
933
|
+
const e3 = void 0 !== s4 && 1 === s4.length;
|
|
934
|
+
e3 && (t3 = o.get(s4)), void 0 === t3 && ((this.o = t3 = new CSSStyleSheet()).replaceSync(this.cssText), e3 && o.set(s4, t3));
|
|
935
|
+
}
|
|
936
|
+
return t3;
|
|
937
|
+
}
|
|
938
|
+
toString() {
|
|
939
|
+
return this.cssText;
|
|
940
|
+
}
|
|
941
|
+
};
|
|
942
|
+
var r = (t3) => new n("string" == typeof t3 ? t3 : t3 + "", void 0, s);
|
|
943
|
+
var i = (t3, ...e3) => {
|
|
944
|
+
const o5 = 1 === t3.length ? t3[0] : e3.reduce((e4, s4, o6) => e4 + ((t4) => {
|
|
945
|
+
if (true === t4._$cssResult$) return t4.cssText;
|
|
946
|
+
if ("number" == typeof t4) return t4;
|
|
947
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
948
|
+
})(s4) + t3[o6 + 1], t3[0]);
|
|
949
|
+
return new n(o5, t3, s);
|
|
950
|
+
};
|
|
951
|
+
var S = (s4, o5) => {
|
|
952
|
+
if (e) s4.adoptedStyleSheets = o5.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet);
|
|
953
|
+
else for (const e3 of o5) {
|
|
954
|
+
const o6 = document.createElement("style"), n4 = t.litNonce;
|
|
955
|
+
void 0 !== n4 && o6.setAttribute("nonce", n4), o6.textContent = e3.cssText, s4.appendChild(o6);
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
var c = e || void 0 === t.CSSStyleSheet ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
|
|
959
|
+
let e3 = "";
|
|
960
|
+
for (const s4 of t4.cssRules) e3 += s4.cssText;
|
|
961
|
+
return r(e3);
|
|
962
|
+
})(t3) : t3;
|
|
963
|
+
|
|
964
|
+
// node_modules/@lit/reactive-element/node/reactive-element.js
|
|
965
|
+
var { is: h, defineProperty: r2, getOwnPropertyDescriptor: o2, getOwnPropertyNames: n2, getOwnPropertySymbols: a, getPrototypeOf: c2 } = Object;
|
|
966
|
+
var l = globalThis;
|
|
967
|
+
l.customElements ?? (l.customElements = customElements2);
|
|
968
|
+
var p = l.trustedTypes;
|
|
969
|
+
var d = p ? p.emptyScript : "";
|
|
970
|
+
var u = l.reactiveElementPolyfillSupport;
|
|
971
|
+
var f = (t3, s4) => t3;
|
|
972
|
+
var b = { toAttribute(t3, s4) {
|
|
973
|
+
switch (s4) {
|
|
974
|
+
case Boolean:
|
|
975
|
+
t3 = t3 ? d : null;
|
|
976
|
+
break;
|
|
977
|
+
case Object:
|
|
978
|
+
case Array:
|
|
979
|
+
t3 = null == t3 ? t3 : JSON.stringify(t3);
|
|
980
|
+
}
|
|
981
|
+
return t3;
|
|
982
|
+
}, fromAttribute(t3, s4) {
|
|
983
|
+
let i4 = t3;
|
|
984
|
+
switch (s4) {
|
|
985
|
+
case Boolean:
|
|
986
|
+
i4 = null !== t3;
|
|
987
|
+
break;
|
|
988
|
+
case Number:
|
|
989
|
+
i4 = null === t3 ? null : Number(t3);
|
|
990
|
+
break;
|
|
991
|
+
case Object:
|
|
992
|
+
case Array:
|
|
993
|
+
try {
|
|
994
|
+
i4 = JSON.parse(t3);
|
|
995
|
+
} catch (t4) {
|
|
996
|
+
i4 = null;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
return i4;
|
|
1000
|
+
} };
|
|
1001
|
+
var m = (t3, s4) => !h(t3, s4);
|
|
1002
|
+
var y = { attribute: true, type: String, converter: b, reflect: false, useDefault: false, hasChanged: m };
|
|
1003
|
+
Symbol.metadata ?? (Symbol.metadata = /* @__PURE__ */ Symbol("metadata")), l.litPropertyMetadata ?? (l.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1004
|
+
var g = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType) {
|
|
1005
|
+
static addInitializer(t3) {
|
|
1006
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t3);
|
|
1007
|
+
}
|
|
1008
|
+
static get observedAttributes() {
|
|
1009
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1010
|
+
}
|
|
1011
|
+
static createProperty(t3, s4 = y) {
|
|
1012
|
+
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t3) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t3, s4), !s4.noAccessor) {
|
|
1013
|
+
const i4 = /* @__PURE__ */ Symbol(), e3 = this.getPropertyDescriptor(t3, i4, s4);
|
|
1014
|
+
void 0 !== e3 && r2(this.prototype, t3, e3);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
static getPropertyDescriptor(t3, s4, i4) {
|
|
1018
|
+
const { get: e3, set: h3 } = o2(this.prototype, t3) ?? { get() {
|
|
1019
|
+
return this[s4];
|
|
1020
|
+
}, set(t4) {
|
|
1021
|
+
this[s4] = t4;
|
|
1022
|
+
} };
|
|
1023
|
+
return { get: e3, set(s5) {
|
|
1024
|
+
const r4 = e3?.call(this);
|
|
1025
|
+
h3?.call(this, s5), this.requestUpdate(t3, r4, i4);
|
|
1026
|
+
}, configurable: true, enumerable: true };
|
|
1027
|
+
}
|
|
1028
|
+
static getPropertyOptions(t3) {
|
|
1029
|
+
return this.elementProperties.get(t3) ?? y;
|
|
1030
|
+
}
|
|
1031
|
+
static _$Ei() {
|
|
1032
|
+
if (this.hasOwnProperty(f("elementProperties"))) return;
|
|
1033
|
+
const t3 = c2(this);
|
|
1034
|
+
t3.finalize(), void 0 !== t3.l && (this.l = [...t3.l]), this.elementProperties = new Map(t3.elementProperties);
|
|
1035
|
+
}
|
|
1036
|
+
static finalize() {
|
|
1037
|
+
if (this.hasOwnProperty(f("finalized"))) return;
|
|
1038
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(f("properties"))) {
|
|
1039
|
+
const t4 = this.properties, s4 = [...n2(t4), ...a(t4)];
|
|
1040
|
+
for (const i4 of s4) this.createProperty(i4, t4[i4]);
|
|
1041
|
+
}
|
|
1042
|
+
const t3 = this[Symbol.metadata];
|
|
1043
|
+
if (null !== t3) {
|
|
1044
|
+
const s4 = litPropertyMetadata.get(t3);
|
|
1045
|
+
if (void 0 !== s4) for (const [t4, i4] of s4) this.elementProperties.set(t4, i4);
|
|
1046
|
+
}
|
|
1047
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
1048
|
+
for (const [t4, s4] of this.elementProperties) {
|
|
1049
|
+
const i4 = this._$Eu(t4, s4);
|
|
1050
|
+
void 0 !== i4 && this._$Eh.set(i4, t4);
|
|
1051
|
+
}
|
|
1052
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1053
|
+
}
|
|
1054
|
+
static finalizeStyles(t3) {
|
|
1055
|
+
const s4 = [];
|
|
1056
|
+
if (Array.isArray(t3)) {
|
|
1057
|
+
const e3 = new Set(t3.flat(1 / 0).reverse());
|
|
1058
|
+
for (const t4 of e3) s4.unshift(c(t4));
|
|
1059
|
+
} else void 0 !== t3 && s4.push(c(t3));
|
|
1060
|
+
return s4;
|
|
1061
|
+
}
|
|
1062
|
+
static _$Eu(t3, s4) {
|
|
1063
|
+
const i4 = s4.attribute;
|
|
1064
|
+
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
|
|
1065
|
+
}
|
|
1066
|
+
constructor() {
|
|
1067
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
1068
|
+
}
|
|
1069
|
+
_$Ev() {
|
|
1070
|
+
this._$ES = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t3) => t3(this));
|
|
1071
|
+
}
|
|
1072
|
+
addController(t3) {
|
|
1073
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
|
|
1074
|
+
}
|
|
1075
|
+
removeController(t3) {
|
|
1076
|
+
this._$EO?.delete(t3);
|
|
1077
|
+
}
|
|
1078
|
+
_$E_() {
|
|
1079
|
+
const t3 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
|
|
1080
|
+
for (const i4 of s4.keys()) this.hasOwnProperty(i4) && (t3.set(i4, this[i4]), delete this[i4]);
|
|
1081
|
+
t3.size > 0 && (this._$Ep = t3);
|
|
1082
|
+
}
|
|
1083
|
+
createRenderRoot() {
|
|
1084
|
+
const t3 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1085
|
+
return S(t3, this.constructor.elementStyles), t3;
|
|
1086
|
+
}
|
|
1087
|
+
connectedCallback() {
|
|
1088
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((t3) => t3.hostConnected?.());
|
|
1089
|
+
}
|
|
1090
|
+
enableUpdating(t3) {
|
|
1091
|
+
}
|
|
1092
|
+
disconnectedCallback() {
|
|
1093
|
+
this._$EO?.forEach((t3) => t3.hostDisconnected?.());
|
|
1094
|
+
}
|
|
1095
|
+
attributeChangedCallback(t3, s4, i4) {
|
|
1096
|
+
this._$AK(t3, i4);
|
|
1097
|
+
}
|
|
1098
|
+
_$ET(t3, s4) {
|
|
1099
|
+
const i4 = this.constructor.elementProperties.get(t3), e3 = this.constructor._$Eu(t3, i4);
|
|
1100
|
+
if (void 0 !== e3 && true === i4.reflect) {
|
|
1101
|
+
const h3 = (void 0 !== i4.converter?.toAttribute ? i4.converter : b).toAttribute(s4, i4.type);
|
|
1102
|
+
this._$Em = t3, null == h3 ? this.removeAttribute(e3) : this.setAttribute(e3, h3), this._$Em = null;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
_$AK(t3, s4) {
|
|
1106
|
+
const i4 = this.constructor, e3 = i4._$Eh.get(t3);
|
|
1107
|
+
if (void 0 !== e3 && this._$Em !== e3) {
|
|
1108
|
+
const t4 = i4.getPropertyOptions(e3), h3 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : b;
|
|
1109
|
+
this._$Em = e3;
|
|
1110
|
+
const r4 = h3.fromAttribute(s4, t4.type);
|
|
1111
|
+
this[e3] = r4 ?? this._$Ej?.get(e3) ?? r4, this._$Em = null;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
requestUpdate(t3, s4, i4, e3 = false, h3) {
|
|
1115
|
+
if (void 0 !== t3) {
|
|
1116
|
+
const r4 = this.constructor;
|
|
1117
|
+
if (false === e3 && (h3 = this[t3]), i4 ?? (i4 = r4.getPropertyOptions(t3)), !((i4.hasChanged ?? m)(h3, s4) || i4.useDefault && i4.reflect && h3 === this._$Ej?.get(t3) && !this.hasAttribute(r4._$Eu(t3, i4)))) return;
|
|
1118
|
+
this.C(t3, s4, i4);
|
|
1119
|
+
}
|
|
1120
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
1121
|
+
}
|
|
1122
|
+
C(t3, s4, { useDefault: i4, reflect: e3, wrapped: h3 }, r4) {
|
|
1123
|
+
i4 && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t3) && (this._$Ej.set(t3, r4 ?? s4 ?? this[t3]), true !== h3 || void 0 !== r4) || (this._$AL.has(t3) || (this.hasUpdated || i4 || (s4 = void 0), this._$AL.set(t3, s4)), true === e3 && this._$Em !== t3 && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t3));
|
|
1124
|
+
}
|
|
1125
|
+
async _$EP() {
|
|
1126
|
+
this.isUpdatePending = true;
|
|
1127
|
+
try {
|
|
1128
|
+
await this._$ES;
|
|
1129
|
+
} catch (t4) {
|
|
1130
|
+
Promise.reject(t4);
|
|
1131
|
+
}
|
|
1132
|
+
const t3 = this.scheduleUpdate();
|
|
1133
|
+
return null != t3 && await t3, !this.isUpdatePending;
|
|
1134
|
+
}
|
|
1135
|
+
scheduleUpdate() {
|
|
1136
|
+
return this.performUpdate();
|
|
1137
|
+
}
|
|
1138
|
+
performUpdate() {
|
|
1139
|
+
if (!this.isUpdatePending) return;
|
|
1140
|
+
if (!this.hasUpdated) {
|
|
1141
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
1142
|
+
for (const [t5, s5] of this._$Ep) this[t5] = s5;
|
|
1143
|
+
this._$Ep = void 0;
|
|
1144
|
+
}
|
|
1145
|
+
const t4 = this.constructor.elementProperties;
|
|
1146
|
+
if (t4.size > 0) for (const [s5, i4] of t4) {
|
|
1147
|
+
const { wrapped: t5 } = i4, e3 = this[s5];
|
|
1148
|
+
true !== t5 || this._$AL.has(s5) || void 0 === e3 || this.C(s5, void 0, i4, e3);
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
let t3 = false;
|
|
1152
|
+
const s4 = this._$AL;
|
|
1153
|
+
try {
|
|
1154
|
+
t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach((t4) => t4.hostUpdate?.()), this.update(s4)) : this._$EM();
|
|
1155
|
+
} catch (s5) {
|
|
1156
|
+
throw t3 = false, this._$EM(), s5;
|
|
1157
|
+
}
|
|
1158
|
+
t3 && this._$AE(s4);
|
|
1159
|
+
}
|
|
1160
|
+
willUpdate(t3) {
|
|
1161
|
+
}
|
|
1162
|
+
_$AE(t3) {
|
|
1163
|
+
this._$EO?.forEach((t4) => t4.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
|
|
1164
|
+
}
|
|
1165
|
+
_$EM() {
|
|
1166
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
1167
|
+
}
|
|
1168
|
+
get updateComplete() {
|
|
1169
|
+
return this.getUpdateComplete();
|
|
1170
|
+
}
|
|
1171
|
+
getUpdateComplete() {
|
|
1172
|
+
return this._$ES;
|
|
1173
|
+
}
|
|
1174
|
+
shouldUpdate(t3) {
|
|
1175
|
+
return true;
|
|
1176
|
+
}
|
|
1177
|
+
update(t3) {
|
|
1178
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((t4) => this._$ET(t4, this[t4]))), this._$EM();
|
|
1179
|
+
}
|
|
1180
|
+
updated(t3) {
|
|
1181
|
+
}
|
|
1182
|
+
firstUpdated(t3) {
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
g.elementStyles = [], g.shadowRootOptions = { mode: "open" }, g[f("elementProperties")] = /* @__PURE__ */ new Map(), g[f("finalized")] = /* @__PURE__ */ new Map(), u?.({ ReactiveElement: g }), (l.reactiveElementVersions ?? (l.reactiveElementVersions = [])).push("2.1.2");
|
|
1186
|
+
|
|
1187
|
+
// node_modules/lit-html/node/lit-html.js
|
|
1188
|
+
var t2 = globalThis;
|
|
1189
|
+
var i2 = (t3) => t3;
|
|
1190
|
+
var s2 = t2.trustedTypes;
|
|
1191
|
+
var e2 = s2 ? s2.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
|
|
1192
|
+
var h2 = "$lit$";
|
|
1193
|
+
var o3 = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
1194
|
+
var n3 = "?" + o3;
|
|
1195
|
+
var r3 = `<${n3}>`;
|
|
1196
|
+
var l2 = void 0 === t2.document ? { createTreeWalker: () => ({}) } : document;
|
|
1197
|
+
var c3 = () => l2.createComment("");
|
|
1198
|
+
var a2 = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
|
|
1199
|
+
var u2 = Array.isArray;
|
|
1200
|
+
var d2 = (t3) => u2(t3) || "function" == typeof t3?.[Symbol.iterator];
|
|
1201
|
+
var f2 = "[ \n\f\r]";
|
|
1202
|
+
var v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
1203
|
+
var _ = /-->/g;
|
|
1204
|
+
var m2 = />/g;
|
|
1205
|
+
var p2 = RegExp(`>|${f2}(?:([^\\s"'>=/]+)(${f2}*=${f2}*(?:[^
|
|
1206
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
1207
|
+
var g2 = /'/g;
|
|
1208
|
+
var $ = /"/g;
|
|
1209
|
+
var y2 = /^(?:script|style|textarea|title)$/i;
|
|
1210
|
+
var x = (t3) => (i4, ...s4) => ({ _$litType$: t3, strings: i4, values: s4 });
|
|
1211
|
+
var T = x(1);
|
|
1212
|
+
var E = /* @__PURE__ */ Symbol.for("lit-noChange");
|
|
1213
|
+
var A = /* @__PURE__ */ Symbol.for("lit-nothing");
|
|
1214
|
+
var C = /* @__PURE__ */ new WeakMap();
|
|
1215
|
+
var P = l2.createTreeWalker(l2, 129);
|
|
1216
|
+
function V(t3, i4) {
|
|
1217
|
+
if (!u2(t3) || !t3.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1218
|
+
return void 0 !== e2 ? e2.createHTML(i4) : i4;
|
|
1219
|
+
}
|
|
1220
|
+
var N = (t3, i4) => {
|
|
1221
|
+
const s4 = t3.length - 1, e3 = [];
|
|
1222
|
+
let n4, l3 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", c4 = v;
|
|
1223
|
+
for (let i5 = 0; i5 < s4; i5++) {
|
|
1224
|
+
const s5 = t3[i5];
|
|
1225
|
+
let a3, u3, d3 = -1, f3 = 0;
|
|
1226
|
+
for (; f3 < s5.length && (c4.lastIndex = f3, u3 = c4.exec(s5), null !== u3); ) f3 = c4.lastIndex, c4 === v ? "!--" === u3[1] ? c4 = _ : void 0 !== u3[1] ? c4 = m2 : void 0 !== u3[2] ? (y2.test(u3[2]) && (n4 = RegExp("</" + u3[2], "g")), c4 = p2) : void 0 !== u3[3] && (c4 = p2) : c4 === p2 ? ">" === u3[0] ? (c4 = n4 ?? v, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p2 : '"' === u3[3] ? $ : g2) : c4 === $ || c4 === g2 ? c4 = p2 : c4 === _ || c4 === m2 ? c4 = v : (c4 = p2, n4 = void 0);
|
|
1227
|
+
const x2 = c4 === p2 && t3[i5 + 1].startsWith("/>") ? " " : "";
|
|
1228
|
+
l3 += c4 === v ? s5 + r3 : d3 >= 0 ? (e3.push(a3), s5.slice(0, d3) + h2 + s5.slice(d3) + o3 + x2) : s5 + o3 + (-2 === d3 ? i5 : x2);
|
|
1229
|
+
}
|
|
1230
|
+
return [V(t3, l3 + (t3[s4] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e3];
|
|
1231
|
+
};
|
|
1232
|
+
var S2 = class _S {
|
|
1233
|
+
constructor({ strings: t3, _$litType$: i4 }, e3) {
|
|
1234
|
+
let r4;
|
|
1235
|
+
this.parts = [];
|
|
1236
|
+
let l3 = 0, a3 = 0;
|
|
1237
|
+
const u3 = t3.length - 1, d3 = this.parts, [f3, v2] = N(t3, i4);
|
|
1238
|
+
if (this.el = _S.createElement(f3, e3), P.currentNode = this.el.content, 2 === i4 || 3 === i4) {
|
|
1239
|
+
const t4 = this.el.content.firstChild;
|
|
1240
|
+
t4.replaceWith(...t4.childNodes);
|
|
1241
|
+
}
|
|
1242
|
+
for (; null !== (r4 = P.nextNode()) && d3.length < u3; ) {
|
|
1243
|
+
if (1 === r4.nodeType) {
|
|
1244
|
+
if (r4.hasAttributes()) for (const t4 of r4.getAttributeNames()) if (t4.endsWith(h2)) {
|
|
1245
|
+
const i5 = v2[a3++], s4 = r4.getAttribute(t4).split(o3), e4 = /([.?@])?(.*)/.exec(i5);
|
|
1246
|
+
d3.push({ type: 1, index: l3, name: e4[2], strings: s4, ctor: "." === e4[1] ? I : "?" === e4[1] ? L : "@" === e4[1] ? z : H }), r4.removeAttribute(t4);
|
|
1247
|
+
} else t4.startsWith(o3) && (d3.push({ type: 6, index: l3 }), r4.removeAttribute(t4));
|
|
1248
|
+
if (y2.test(r4.tagName)) {
|
|
1249
|
+
const t4 = r4.textContent.split(o3), i5 = t4.length - 1;
|
|
1250
|
+
if (i5 > 0) {
|
|
1251
|
+
r4.textContent = s2 ? s2.emptyScript : "";
|
|
1252
|
+
for (let s4 = 0; s4 < i5; s4++) r4.append(t4[s4], c3()), P.nextNode(), d3.push({ type: 2, index: ++l3 });
|
|
1253
|
+
r4.append(t4[i5], c3());
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
} else if (8 === r4.nodeType) if (r4.data === n3) d3.push({ type: 2, index: l3 });
|
|
1257
|
+
else {
|
|
1258
|
+
let t4 = -1;
|
|
1259
|
+
for (; -1 !== (t4 = r4.data.indexOf(o3, t4 + 1)); ) d3.push({ type: 7, index: l3 }), t4 += o3.length - 1;
|
|
1260
|
+
}
|
|
1261
|
+
l3++;
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
static createElement(t3, i4) {
|
|
1265
|
+
const s4 = l2.createElement("template");
|
|
1266
|
+
return s4.innerHTML = t3, s4;
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
function M(t3, i4, s4 = t3, e3) {
|
|
1270
|
+
if (i4 === E) return i4;
|
|
1271
|
+
let h3 = void 0 !== e3 ? s4._$Co?.[e3] : s4._$Cl;
|
|
1272
|
+
const o5 = a2(i4) ? void 0 : i4._$litDirective$;
|
|
1273
|
+
return h3?.constructor !== o5 && (h3?._$AO?.(false), void 0 === o5 ? h3 = void 0 : (h3 = new o5(t3), h3._$AT(t3, s4, e3)), void 0 !== e3 ? (s4._$Co ?? (s4._$Co = []))[e3] = h3 : s4._$Cl = h3), void 0 !== h3 && (i4 = M(t3, h3._$AS(t3, i4.values), h3, e3)), i4;
|
|
1274
|
+
}
|
|
1275
|
+
var k = class {
|
|
1276
|
+
constructor(t3, i4) {
|
|
1277
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i4;
|
|
1278
|
+
}
|
|
1279
|
+
get parentNode() {
|
|
1280
|
+
return this._$AM.parentNode;
|
|
1281
|
+
}
|
|
1282
|
+
get _$AU() {
|
|
1283
|
+
return this._$AM._$AU;
|
|
1284
|
+
}
|
|
1285
|
+
u(t3) {
|
|
1286
|
+
const { el: { content: i4 }, parts: s4 } = this._$AD, e3 = (t3?.creationScope ?? l2).importNode(i4, true);
|
|
1287
|
+
P.currentNode = e3;
|
|
1288
|
+
let h3 = P.nextNode(), o5 = 0, n4 = 0, r4 = s4[0];
|
|
1289
|
+
for (; void 0 !== r4; ) {
|
|
1290
|
+
if (o5 === r4.index) {
|
|
1291
|
+
let i5;
|
|
1292
|
+
2 === r4.type ? i5 = new R(h3, h3.nextSibling, this, t3) : 1 === r4.type ? i5 = new r4.ctor(h3, r4.name, r4.strings, this, t3) : 6 === r4.type && (i5 = new W(h3, this, t3)), this._$AV.push(i5), r4 = s4[++n4];
|
|
1293
|
+
}
|
|
1294
|
+
o5 !== r4?.index && (h3 = P.nextNode(), o5++);
|
|
1295
|
+
}
|
|
1296
|
+
return P.currentNode = l2, e3;
|
|
1297
|
+
}
|
|
1298
|
+
p(t3) {
|
|
1299
|
+
let i4 = 0;
|
|
1300
|
+
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t3, s4, i4), i4 += s4.strings.length - 2) : s4._$AI(t3[i4])), i4++;
|
|
1301
|
+
}
|
|
1302
|
+
};
|
|
1303
|
+
var R = class _R {
|
|
1304
|
+
get _$AU() {
|
|
1305
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
1306
|
+
}
|
|
1307
|
+
constructor(t3, i4, s4, e3) {
|
|
1308
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t3, this._$AB = i4, this._$AM = s4, this.options = e3, this._$Cv = e3?.isConnected ?? true;
|
|
1309
|
+
}
|
|
1310
|
+
get parentNode() {
|
|
1311
|
+
let t3 = this._$AA.parentNode;
|
|
1312
|
+
const i4 = this._$AM;
|
|
1313
|
+
return void 0 !== i4 && 11 === t3?.nodeType && (t3 = i4.parentNode), t3;
|
|
1314
|
+
}
|
|
1315
|
+
get startNode() {
|
|
1316
|
+
return this._$AA;
|
|
1317
|
+
}
|
|
1318
|
+
get endNode() {
|
|
1319
|
+
return this._$AB;
|
|
1320
|
+
}
|
|
1321
|
+
_$AI(t3, i4 = this) {
|
|
1322
|
+
t3 = M(this, t3, i4), a2(t3) ? t3 === A || null == t3 || "" === t3 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t3 !== this._$AH && t3 !== E && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : d2(t3) ? this.k(t3) : this._(t3);
|
|
1323
|
+
}
|
|
1324
|
+
O(t3) {
|
|
1325
|
+
return this._$AA.parentNode.insertBefore(t3, this._$AB);
|
|
1326
|
+
}
|
|
1327
|
+
T(t3) {
|
|
1328
|
+
this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
|
|
1329
|
+
}
|
|
1330
|
+
_(t3) {
|
|
1331
|
+
this._$AH !== A && a2(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(l2.createTextNode(t3)), this._$AH = t3;
|
|
1332
|
+
}
|
|
1333
|
+
$(t3) {
|
|
1334
|
+
const { values: i4, _$litType$: s4 } = t3, e3 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el = S2.createElement(V(s4.h, s4.h[0]), this.options)), s4);
|
|
1335
|
+
if (this._$AH?._$AD === e3) this._$AH.p(i4);
|
|
1336
|
+
else {
|
|
1337
|
+
const t4 = new k(e3, this), s5 = t4.u(this.options);
|
|
1338
|
+
t4.p(i4), this.T(s5), this._$AH = t4;
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
_$AC(t3) {
|
|
1342
|
+
let i4 = C.get(t3.strings);
|
|
1343
|
+
return void 0 === i4 && C.set(t3.strings, i4 = new S2(t3)), i4;
|
|
1344
|
+
}
|
|
1345
|
+
k(t3) {
|
|
1346
|
+
u2(this._$AH) || (this._$AH = [], this._$AR());
|
|
1347
|
+
const i4 = this._$AH;
|
|
1348
|
+
let s4, e3 = 0;
|
|
1349
|
+
for (const h3 of t3) e3 === i4.length ? i4.push(s4 = new _R(this.O(c3()), this.O(c3()), this, this.options)) : s4 = i4[e3], s4._$AI(h3), e3++;
|
|
1350
|
+
e3 < i4.length && (this._$AR(s4 && s4._$AB.nextSibling, e3), i4.length = e3);
|
|
1351
|
+
}
|
|
1352
|
+
_$AR(t3 = this._$AA.nextSibling, s4) {
|
|
1353
|
+
for (this._$AP?.(false, true, s4); t3 !== this._$AB; ) {
|
|
1354
|
+
const s5 = i2(t3).nextSibling;
|
|
1355
|
+
i2(t3).remove(), t3 = s5;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
setConnected(t3) {
|
|
1359
|
+
void 0 === this._$AM && (this._$Cv = t3, this._$AP?.(t3));
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
var H = class {
|
|
1363
|
+
get tagName() {
|
|
1364
|
+
return this.element.tagName;
|
|
1365
|
+
}
|
|
1366
|
+
get _$AU() {
|
|
1367
|
+
return this._$AM._$AU;
|
|
1368
|
+
}
|
|
1369
|
+
constructor(t3, i4, s4, e3, h3) {
|
|
1370
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t3, this.name = i4, this._$AM = e3, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
|
|
1371
|
+
}
|
|
1372
|
+
_$AI(t3, i4 = this, s4, e3) {
|
|
1373
|
+
const h3 = this.strings;
|
|
1374
|
+
let o5 = false;
|
|
1375
|
+
if (void 0 === h3) t3 = M(this, t3, i4, 0), o5 = !a2(t3) || t3 !== this._$AH && t3 !== E, o5 && (this._$AH = t3);
|
|
1376
|
+
else {
|
|
1377
|
+
const e4 = t3;
|
|
1378
|
+
let n4, r4;
|
|
1379
|
+
for (t3 = h3[0], n4 = 0; n4 < h3.length - 1; n4++) r4 = M(this, e4[s4 + n4], i4, n4), r4 === E && (r4 = this._$AH[n4]), o5 || (o5 = !a2(r4) || r4 !== this._$AH[n4]), r4 === A ? t3 = A : t3 !== A && (t3 += (r4 ?? "") + h3[n4 + 1]), this._$AH[n4] = r4;
|
|
1380
|
+
}
|
|
1381
|
+
o5 && !e3 && this.j(t3);
|
|
1382
|
+
}
|
|
1383
|
+
j(t3) {
|
|
1384
|
+
t3 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
var I = class extends H {
|
|
1388
|
+
constructor() {
|
|
1389
|
+
super(...arguments), this.type = 3;
|
|
1390
|
+
}
|
|
1391
|
+
j(t3) {
|
|
1392
|
+
this.element[this.name] = t3 === A ? void 0 : t3;
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
var L = class extends H {
|
|
1396
|
+
constructor() {
|
|
1397
|
+
super(...arguments), this.type = 4;
|
|
1398
|
+
}
|
|
1399
|
+
j(t3) {
|
|
1400
|
+
this.element.toggleAttribute(this.name, !!t3 && t3 !== A);
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
var z = class extends H {
|
|
1404
|
+
constructor(t3, i4, s4, e3, h3) {
|
|
1405
|
+
super(t3, i4, s4, e3, h3), this.type = 5;
|
|
1406
|
+
}
|
|
1407
|
+
_$AI(t3, i4 = this) {
|
|
1408
|
+
if ((t3 = M(this, t3, i4, 0) ?? A) === E) return;
|
|
1409
|
+
const s4 = this._$AH, e3 = t3 === A && s4 !== A || t3.capture !== s4.capture || t3.once !== s4.once || t3.passive !== s4.passive, h3 = t3 !== A && (s4 === A || e3);
|
|
1410
|
+
e3 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
|
|
1411
|
+
}
|
|
1412
|
+
handleEvent(t3) {
|
|
1413
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
var W = class {
|
|
1417
|
+
constructor(t3, i4, s4) {
|
|
1418
|
+
this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s4;
|
|
1419
|
+
}
|
|
1420
|
+
get _$AU() {
|
|
1421
|
+
return this._$AM._$AU;
|
|
1422
|
+
}
|
|
1423
|
+
_$AI(t3) {
|
|
1424
|
+
M(this, t3);
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
var j = t2.litHtmlPolyfillSupport;
|
|
1428
|
+
j?.(S2, R), (t2.litHtmlVersions ?? (t2.litHtmlVersions = [])).push("3.3.3");
|
|
1429
|
+
var B = (t3, i4, s4) => {
|
|
1430
|
+
const e3 = s4?.renderBefore ?? i4;
|
|
1431
|
+
let h3 = e3._$litPart$;
|
|
1432
|
+
if (void 0 === h3) {
|
|
1433
|
+
const t4 = s4?.renderBefore ?? null;
|
|
1434
|
+
e3._$litPart$ = h3 = new R(i4.insertBefore(c3(), t4), t4, void 0, s4 ?? {});
|
|
1435
|
+
}
|
|
1436
|
+
return h3._$AI(t3), h3;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
// node_modules/lit-element/lit-element.js
|
|
1440
|
+
var s3 = globalThis;
|
|
1441
|
+
var i3 = class extends g {
|
|
1442
|
+
constructor() {
|
|
1443
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1444
|
+
}
|
|
1445
|
+
createRenderRoot() {
|
|
1446
|
+
var _a3;
|
|
1447
|
+
const t3 = super.createRenderRoot();
|
|
1448
|
+
return (_a3 = this.renderOptions).renderBefore ?? (_a3.renderBefore = t3.firstChild), t3;
|
|
1449
|
+
}
|
|
1450
|
+
update(t3) {
|
|
1451
|
+
const r4 = this.render();
|
|
1452
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do = B(r4, this.renderRoot, this.renderOptions);
|
|
1453
|
+
}
|
|
1454
|
+
connectedCallback() {
|
|
1455
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
1456
|
+
}
|
|
1457
|
+
disconnectedCallback() {
|
|
1458
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
1459
|
+
}
|
|
1460
|
+
render() {
|
|
1461
|
+
return E;
|
|
1462
|
+
}
|
|
1463
|
+
};
|
|
1464
|
+
i3._$litElement$ = true, i3["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i3 });
|
|
1465
|
+
var o4 = s3.litElementPolyfillSupport;
|
|
1466
|
+
o4?.({ LitElement: i3 });
|
|
1467
|
+
(s3.litElementVersions ?? (s3.litElementVersions = [])).push("4.2.2");
|
|
1468
|
+
|
|
1469
|
+
// projects/bizz-components/src/web/button/bizz-button.styles.ts
|
|
1470
|
+
var styles = i`
|
|
1471
|
+
:host {
|
|
1472
|
+
display: inline-flex;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
:host([full-width]) {
|
|
1476
|
+
display: flex;
|
|
1477
|
+
width: 100%;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
button {
|
|
1481
|
+
display: inline-flex;
|
|
1482
|
+
align-items: center;
|
|
1483
|
+
justify-content: center;
|
|
1484
|
+
gap: var(--bizz-spacing-03);
|
|
1485
|
+
position: relative;
|
|
1486
|
+
flex: 1;
|
|
1487
|
+
border: 2px solid transparent;
|
|
1488
|
+
border-radius: var(--bizz-radius-md);
|
|
1489
|
+
font-family: var(--bizz-font-family-base);
|
|
1490
|
+
font-weight: var(--bizz-font-weight-semibold);
|
|
1491
|
+
cursor: pointer;
|
|
1492
|
+
text-decoration: none;
|
|
1493
|
+
white-space: nowrap;
|
|
1494
|
+
transition:
|
|
1495
|
+
background-color var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1496
|
+
border-color var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1497
|
+
color var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1498
|
+
box-shadow var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1499
|
+
transform var(--bizz-duration-fast) var(--bizz-easing-default);
|
|
1500
|
+
user-select: none;
|
|
1501
|
+
outline: none;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
button:focus-visible {
|
|
1505
|
+
box-shadow: 0 0 0 3px var(--bizz-focus);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
button:active:not(:disabled) {
|
|
1509
|
+
transform: translateY(1px);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
:host([size='sm']) button {
|
|
1513
|
+
height: 2rem;
|
|
1514
|
+
padding: 0 var(--bizz-spacing-04);
|
|
1515
|
+
font-size: var(--bizz-font-size-sm);
|
|
1516
|
+
border-radius: var(--bizz-radius-sm);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
:host([size='md']) button {
|
|
1520
|
+
height: 2.5rem;
|
|
1521
|
+
padding: 0 var(--bizz-spacing-05);
|
|
1522
|
+
font-size: var(--bizz-font-size-md);
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
:host([size='lg']) button {
|
|
1526
|
+
height: 3rem;
|
|
1527
|
+
padding: 0 var(--bizz-spacing-06);
|
|
1528
|
+
font-size: var(--bizz-font-size-lg);
|
|
1529
|
+
border-radius: var(--bizz-radius-lg);
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
:host([variant='primary']) button {
|
|
1533
|
+
background-color: var(--bizz-button-primary);
|
|
1534
|
+
border-color: var(--bizz-button-primary);
|
|
1535
|
+
color: var(--bizz-text-on-color);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
:host([variant='primary']) button:hover:not(:disabled) {
|
|
1539
|
+
background-color: var(--bizz-button-primary-hover);
|
|
1540
|
+
border-color: var(--bizz-button-primary-hover);
|
|
1541
|
+
box-shadow: var(--bizz-shadow-md);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
:host([variant='primary']) button:active:not(:disabled) {
|
|
1545
|
+
background-color: var(--bizz-button-primary-active);
|
|
1546
|
+
border-color: var(--bizz-button-primary-active);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
:host([variant='secondary']) button {
|
|
1550
|
+
background-color: transparent;
|
|
1551
|
+
border-color: var(--bizz-button-secondary);
|
|
1552
|
+
color: var(--bizz-button-secondary);
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
:host([variant='secondary']) button:hover:not(:disabled) {
|
|
1556
|
+
background-color: var(--bizz-background-hover);
|
|
1557
|
+
border-color: var(--bizz-button-secondary-hover);
|
|
1558
|
+
color: var(--bizz-button-secondary-hover);
|
|
1559
|
+
box-shadow: var(--bizz-shadow-sm);
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
:host([variant='secondary']) button:active:not(:disabled) {
|
|
1563
|
+
background-color: var(--bizz-background-active);
|
|
1564
|
+
border-color: var(--bizz-button-secondary-active);
|
|
1565
|
+
color: var(--bizz-button-secondary-active);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
:host([variant='danger']) button {
|
|
1569
|
+
background-color: var(--bizz-button-danger);
|
|
1570
|
+
border-color: var(--bizz-button-danger);
|
|
1571
|
+
color: var(--bizz-text-on-color);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
:host([variant='danger']) button:hover:not(:disabled) {
|
|
1575
|
+
background-color: var(--bizz-button-danger-hover);
|
|
1576
|
+
border-color: var(--bizz-button-danger-hover);
|
|
1577
|
+
box-shadow: var(--bizz-shadow-md);
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
:host([variant='danger']) button:active:not(:disabled) {
|
|
1581
|
+
background-color: var(--bizz-button-danger-active);
|
|
1582
|
+
border-color: var(--bizz-button-danger-active);
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
:host([variant='warning']) button {
|
|
1586
|
+
background-color: var(--bizz-button-warning);
|
|
1587
|
+
border-color: var(--bizz-button-warning);
|
|
1588
|
+
color: var(--bizz-text-on-color);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
:host([variant='warning']) button:hover:not(:disabled) {
|
|
1592
|
+
background-color: var(--bizz-button-warning-hover);
|
|
1593
|
+
border-color: var(--bizz-button-warning-hover);
|
|
1594
|
+
box-shadow: var(--bizz-shadow-md);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
:host([variant='warning']) button:active:not(:disabled) {
|
|
1598
|
+
background-color: var(--bizz-button-warning-active);
|
|
1599
|
+
border-color: var(--bizz-button-warning-active);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
:host([variant='success']) button {
|
|
1603
|
+
background-color: var(--bizz-button-success);
|
|
1604
|
+
border-color: var(--bizz-button-success);
|
|
1605
|
+
color: var(--bizz-text-on-color);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
:host([variant='success']) button:hover:not(:disabled) {
|
|
1609
|
+
background-color: var(--bizz-button-success-hover);
|
|
1610
|
+
border-color: var(--bizz-button-success-hover);
|
|
1611
|
+
box-shadow: var(--bizz-shadow-md);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
:host([variant='success']) button:active:not(:disabled) {
|
|
1615
|
+
background-color: var(--bizz-button-success-active);
|
|
1616
|
+
border-color: var(--bizz-button-success-active);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
button:disabled {
|
|
1620
|
+
background-color: transparent;
|
|
1621
|
+
border-color: transparent;
|
|
1622
|
+
color: var(--bizz-text-secondary);
|
|
1623
|
+
opacity: 0.6;
|
|
1624
|
+
cursor: not-allowed;
|
|
1625
|
+
transform: none;
|
|
1626
|
+
box-shadow: none;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
:host([loading]) button {
|
|
1630
|
+
cursor: wait;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
.hidden {
|
|
1634
|
+
opacity: 0;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.spinner {
|
|
1638
|
+
position: absolute;
|
|
1639
|
+
width: 1em;
|
|
1640
|
+
height: 1em;
|
|
1641
|
+
border: 2px solid currentColor;
|
|
1642
|
+
border-top-color: transparent;
|
|
1643
|
+
border-radius: 50%;
|
|
1644
|
+
animation: spin 0.6s linear infinite;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
@keyframes spin {
|
|
1648
|
+
to {
|
|
1649
|
+
transform: rotate(360deg);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
`;
|
|
1653
|
+
|
|
1654
|
+
// projects/bizz-components/src/web/button/bizz-button.ts
|
|
1655
|
+
var BizzButtonElement = class extends i3 {
|
|
1656
|
+
constructor() {
|
|
1657
|
+
super();
|
|
1658
|
+
this.variant = "primary";
|
|
1659
|
+
this.size = "md";
|
|
1660
|
+
this.type = "button";
|
|
1661
|
+
this.disabled = false;
|
|
1662
|
+
this.loading = false;
|
|
1663
|
+
this.fullWidth = false;
|
|
1664
|
+
}
|
|
1665
|
+
get isDisabled() {
|
|
1666
|
+
return this.disabled || this.loading;
|
|
1667
|
+
}
|
|
1668
|
+
handleClick(e3) {
|
|
1669
|
+
if (!this.isDisabled) {
|
|
1670
|
+
this.dispatchEvent(new CustomEvent("bizz-click", { detail: e3, bubbles: true, composed: true }));
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
render() {
|
|
1674
|
+
return T`
|
|
1675
|
+
<button
|
|
1676
|
+
type="${this.type}"
|
|
1677
|
+
?disabled="${this.isDisabled}"
|
|
1678
|
+
@click="${this.handleClick}"
|
|
1679
|
+
>
|
|
1680
|
+
${this.loading ? T`<span class="spinner" aria-hidden="true"></span>` : ""}
|
|
1681
|
+
<span class="${this.loading ? "hidden" : ""}"><slot></slot></span>
|
|
1682
|
+
</button>
|
|
1683
|
+
`;
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
BizzButtonElement.styles = styles;
|
|
1687
|
+
BizzButtonElement.properties = {
|
|
1688
|
+
variant: { type: String, reflect: true },
|
|
1689
|
+
size: { type: String, reflect: true },
|
|
1690
|
+
type: { type: String },
|
|
1691
|
+
disabled: { type: Boolean },
|
|
1692
|
+
loading: { type: Boolean, reflect: true },
|
|
1693
|
+
fullWidth: { type: Boolean, attribute: "full-width", reflect: true }
|
|
1694
|
+
};
|
|
1695
|
+
customElements.define("bizz-button", BizzButtonElement);
|
|
1696
|
+
|
|
1697
|
+
// projects/bizz-components/src/web/card/bizz-card.styles.ts
|
|
1698
|
+
var styles2 = i`
|
|
1699
|
+
:host {
|
|
1700
|
+
display: block;
|
|
1701
|
+
font-family: var(--bizz-font-family-base);
|
|
1702
|
+
background-color: var(--bizz-layer-02);
|
|
1703
|
+
border: 1px solid var(--bizz-border-subtle-01);
|
|
1704
|
+
border-radius: var(--bizz-radius-lg);
|
|
1705
|
+
overflow: hidden;
|
|
1706
|
+
transition:
|
|
1707
|
+
box-shadow var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1708
|
+
transform var(--bizz-duration-fast) var(--bizz-easing-default),
|
|
1709
|
+
border-color var(--bizz-duration-base) var(--bizz-easing-default);
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
:host([elevation='flat']) {
|
|
1713
|
+
box-shadow: none;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
:host([elevation='raised']) {
|
|
1717
|
+
box-shadow: var(--bizz-shadow-sm);
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
:host([clickable]) {
|
|
1721
|
+
cursor: pointer;
|
|
1722
|
+
outline: none;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
:host([clickable]:hover) {
|
|
1726
|
+
border-color: var(--bizz-border-interactive);
|
|
1727
|
+
box-shadow: var(--bizz-shadow-md);
|
|
1728
|
+
transform: translateY(-2px);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
:host([clickable]:active) {
|
|
1732
|
+
transform: translateY(0);
|
|
1733
|
+
box-shadow: var(--bizz-shadow-sm);
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
:host([clickable]:focus-visible) {
|
|
1737
|
+
box-shadow: 0 0 0 3px var(--bizz-focus);
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
.body {
|
|
1741
|
+
display: flex;
|
|
1742
|
+
flex-direction: column;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
:host([padding='none']) .body {
|
|
1746
|
+
padding: 0;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
:host([padding='sm']) .body {
|
|
1750
|
+
padding: var(--bizz-spacing-04);
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
:host([padding='md']) .body {
|
|
1754
|
+
padding: var(--bizz-spacing-06);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
:host([padding='lg']) .body {
|
|
1758
|
+
padding: var(--bizz-spacing-08);
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
::slotted([slot='card-media']) {
|
|
1762
|
+
display: block;
|
|
1763
|
+
width: 100%;
|
|
1764
|
+
aspect-ratio: 16/9;
|
|
1765
|
+
object-fit: cover;
|
|
1766
|
+
overflow: hidden;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
::slotted([slot='card-header']) {
|
|
1770
|
+
display: block;
|
|
1771
|
+
margin-bottom: var(--bizz-spacing-04);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
::slotted([slot='card-footer']) {
|
|
1775
|
+
display: block;
|
|
1776
|
+
margin-top: var(--bizz-spacing-05);
|
|
1777
|
+
padding-top: var(--bizz-spacing-04);
|
|
1778
|
+
border-top: 1px solid var(--bizz-border-subtle-00);
|
|
1779
|
+
}
|
|
1780
|
+
`;
|
|
1781
|
+
|
|
1782
|
+
// projects/bizz-components/src/web/card/bizz-card.ts
|
|
1783
|
+
var BizzCardElement = class extends i3 {
|
|
1784
|
+
constructor() {
|
|
1785
|
+
super();
|
|
1786
|
+
this.elevation = "raised";
|
|
1787
|
+
this.padding = "md";
|
|
1788
|
+
this.clickable = false;
|
|
1789
|
+
}
|
|
1790
|
+
updated(changed) {
|
|
1791
|
+
if (changed.has("clickable")) {
|
|
1792
|
+
if (this.clickable) {
|
|
1793
|
+
this.setAttribute("role", "button");
|
|
1794
|
+
this.setAttribute("tabindex", "0");
|
|
1795
|
+
} else {
|
|
1796
|
+
this.removeAttribute("role");
|
|
1797
|
+
this.removeAttribute("tabindex");
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
render() {
|
|
1802
|
+
return T`
|
|
1803
|
+
<slot name="card-media"></slot>
|
|
1804
|
+
<div class="body">
|
|
1805
|
+
<slot name="card-header"></slot>
|
|
1806
|
+
<slot></slot>
|
|
1807
|
+
<slot name="card-footer"></slot>
|
|
1808
|
+
</div>
|
|
1809
|
+
`;
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
BizzCardElement.styles = styles2;
|
|
1813
|
+
BizzCardElement.properties = {
|
|
1814
|
+
elevation: { type: String, reflect: true },
|
|
1815
|
+
padding: { type: String, reflect: true },
|
|
1816
|
+
clickable: { type: Boolean, reflect: true }
|
|
1817
|
+
};
|
|
1818
|
+
customElements.define("bizz-card", BizzCardElement);
|
|
1819
|
+
|
|
1820
|
+
// projects/bizz-components/src/web/tag/bizz-tag.styles.ts
|
|
1821
|
+
var styles3 = i`
|
|
1822
|
+
:host {
|
|
1823
|
+
display: inline-flex;
|
|
1824
|
+
align-items: center;
|
|
1825
|
+
gap: var(--bizz-spacing-02);
|
|
1826
|
+
border-radius: var(--bizz-radius-full);
|
|
1827
|
+
font-family: var(--bizz-font-family-base);
|
|
1828
|
+
font-weight: var(--bizz-font-weight-medium);
|
|
1829
|
+
white-space: nowrap;
|
|
1830
|
+
width: fit-content;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
:host([size='sm']) {
|
|
1834
|
+
height: 1.25rem;
|
|
1835
|
+
padding: 0 var(--bizz-spacing-03);
|
|
1836
|
+
font-size: var(--bizz-font-size-xs);
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
:host([size='md']) {
|
|
1840
|
+
height: 1.5rem;
|
|
1841
|
+
padding: 0 var(--bizz-spacing-03);
|
|
1842
|
+
font-size: var(--bizz-font-size-sm);
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
:host([color='primary']) {
|
|
1846
|
+
background-color: var(--bizz-tag-primary-bg);
|
|
1847
|
+
color: var(--bizz-tag-primary-text);
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
:host([color='secondary']) {
|
|
1851
|
+
background-color: var(--bizz-tag-secondary-bg);
|
|
1852
|
+
color: var(--bizz-tag-secondary-text);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
:host([color='success']) {
|
|
1856
|
+
background-color: var(--bizz-tag-success-bg);
|
|
1857
|
+
color: var(--bizz-tag-success-text);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
:host([color='warning']) {
|
|
1861
|
+
background-color: var(--bizz-tag-warning-bg);
|
|
1862
|
+
color: var(--bizz-tag-warning-text);
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
:host([color='error']) {
|
|
1866
|
+
background-color: var(--bizz-tag-error-bg);
|
|
1867
|
+
color: var(--bizz-tag-error-text);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
:host([color='primary']:hover) {
|
|
1871
|
+
background-color: var(--bizz-tag-primary-hover);
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
:host([color='secondary']:hover) {
|
|
1875
|
+
background-color: var(--bizz-tag-secondary-hover);
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
:host([color='success']:hover) {
|
|
1879
|
+
background-color: var(--bizz-tag-success-hover);
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
:host([color='warning']:hover) {
|
|
1883
|
+
background-color: var(--bizz-tag-warning-hover);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
:host([color='error']:hover) {
|
|
1887
|
+
background-color: var(--bizz-tag-error-hover);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
button {
|
|
1891
|
+
display: inline-flex;
|
|
1892
|
+
align-items: center;
|
|
1893
|
+
justify-content: center;
|
|
1894
|
+
background: none;
|
|
1895
|
+
border: none;
|
|
1896
|
+
padding: 0;
|
|
1897
|
+
cursor: pointer;
|
|
1898
|
+
color: inherit;
|
|
1899
|
+
opacity: 0.7;
|
|
1900
|
+
transition: opacity var(--bizz-duration-fast) var(--bizz-easing-default);
|
|
1901
|
+
line-height: 1;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
button:hover {
|
|
1905
|
+
opacity: 1;
|
|
1906
|
+
}
|
|
1907
|
+
`;
|
|
1908
|
+
|
|
1909
|
+
// projects/bizz-components/src/web/tag/bizz-tag.ts
|
|
1910
|
+
var BizzTagElement = class extends i3 {
|
|
1911
|
+
constructor() {
|
|
1912
|
+
super();
|
|
1913
|
+
this.color = "primary";
|
|
1914
|
+
this.size = "md";
|
|
1915
|
+
this.dismissible = false;
|
|
1916
|
+
}
|
|
1917
|
+
handleDismiss(e3) {
|
|
1918
|
+
e3.stopPropagation();
|
|
1919
|
+
this.dispatchEvent(new CustomEvent("bizz-dismissed", { bubbles: true, composed: true }));
|
|
1920
|
+
}
|
|
1921
|
+
render() {
|
|
1922
|
+
return T`
|
|
1923
|
+
<slot></slot>
|
|
1924
|
+
${this.dismissible ? T`
|
|
1925
|
+
<button type="button" aria-label="Dismiss" @click="${this.handleDismiss}">
|
|
1926
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
|
|
1927
|
+
<path d="M9 3L3 9M3 3l6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
1928
|
+
</svg>
|
|
1929
|
+
</button>
|
|
1930
|
+
` : ""}
|
|
1931
|
+
`;
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
BizzTagElement.styles = styles3;
|
|
1935
|
+
BizzTagElement.properties = {
|
|
1936
|
+
color: { type: String, reflect: true },
|
|
1937
|
+
size: { type: String, reflect: true },
|
|
1938
|
+
dismissible: { type: Boolean }
|
|
1939
|
+
};
|
|
1940
|
+
customElements.define("bizz-tag", BizzTagElement);
|
|
1941
|
+
|
|
1942
|
+
// projects/bizz-components/src/web/input/bizz-input.styles.ts
|
|
1943
|
+
var styles4 = i`
|
|
1944
|
+
:host {
|
|
1945
|
+
display: flex;
|
|
1946
|
+
flex-direction: column;
|
|
1947
|
+
gap: var(--bizz-spacing-02);
|
|
1948
|
+
font-family: var(--bizz-font-family-base);
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
label {
|
|
1952
|
+
font-size: var(--bizz-font-size-sm);
|
|
1953
|
+
font-weight: var(--bizz-font-weight-semibold);
|
|
1954
|
+
color: var(--bizz-text-primary);
|
|
1955
|
+
line-height: var(--bizz-line-height-normal);
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
.field-wrapper {
|
|
1959
|
+
display: flex;
|
|
1960
|
+
align-items: center;
|
|
1961
|
+
gap: var(--bizz-spacing-03);
|
|
1962
|
+
border: 1px solid var(--bizz-border-strong-01);
|
|
1963
|
+
border-radius: var(--bizz-radius-md);
|
|
1964
|
+
padding: 0 var(--bizz-spacing-04);
|
|
1965
|
+
height: 2.5rem;
|
|
1966
|
+
transition:
|
|
1967
|
+
border-color var(--bizz-duration-base) var(--bizz-easing-default),
|
|
1968
|
+
box-shadow var(--bizz-duration-base) var(--bizz-easing-default);
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.field-wrapper:focus-within {
|
|
1972
|
+
border-color: var(--bizz-focus);
|
|
1973
|
+
box-shadow: 0 0 0 2px var(--bizz-focus);
|
|
1974
|
+
outline: none;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
.field-wrapper.error {
|
|
1978
|
+
border-color: var(--bizz-support-error);
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
.field-wrapper.error:focus-within {
|
|
1982
|
+
box-shadow: 0 0 0 2px var(--bizz-support-error);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.field-wrapper.disabled {
|
|
1986
|
+
opacity: 0.5;
|
|
1987
|
+
cursor: not-allowed;
|
|
1988
|
+
background-color: var(--bizz-field-hover-01);
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
input {
|
|
1992
|
+
flex: 1;
|
|
1993
|
+
border: none;
|
|
1994
|
+
outline: none;
|
|
1995
|
+
background: transparent;
|
|
1996
|
+
font-family: var(--bizz-font-family-base);
|
|
1997
|
+
font-size: var(--bizz-font-size-md);
|
|
1998
|
+
color: var(--bizz-text-primary);
|
|
1999
|
+
line-height: var(--bizz-line-height-normal);
|
|
2000
|
+
min-width: 0;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
input::placeholder {
|
|
2004
|
+
color: var(--bizz-text-placeholder);
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
input:disabled {
|
|
2008
|
+
cursor: not-allowed;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
.helper {
|
|
2012
|
+
font-size: var(--bizz-font-size-xs);
|
|
2013
|
+
color: var(--bizz-text-helper);
|
|
2014
|
+
line-height: var(--bizz-line-height-normal);
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
.error-msg {
|
|
2018
|
+
font-size: var(--bizz-font-size-xs);
|
|
2019
|
+
color: var(--bizz-support-error);
|
|
2020
|
+
line-height: var(--bizz-line-height-normal);
|
|
2021
|
+
}
|
|
2022
|
+
`;
|
|
2023
|
+
|
|
2024
|
+
// projects/bizz-components/src/web/input/bizz-input.ts
|
|
2025
|
+
var BizzInputElement = class extends i3 {
|
|
2026
|
+
constructor() {
|
|
2027
|
+
super();
|
|
2028
|
+
this.label = "";
|
|
2029
|
+
this.placeholder = "";
|
|
2030
|
+
this.type = "text";
|
|
2031
|
+
this.helperText = "";
|
|
2032
|
+
this.errorText = "";
|
|
2033
|
+
this.disabled = false;
|
|
2034
|
+
this.required = false;
|
|
2035
|
+
this.value = "";
|
|
2036
|
+
this._touched = false;
|
|
2037
|
+
}
|
|
2038
|
+
get hasError() {
|
|
2039
|
+
return this._touched && (!!this.errorText || this.required && !this.value.trim());
|
|
2040
|
+
}
|
|
2041
|
+
handleInput(e3) {
|
|
2042
|
+
this.value = e3.target.value;
|
|
2043
|
+
this.dispatchEvent(new CustomEvent("bizz-input", { detail: this.value, bubbles: true, composed: true }));
|
|
2044
|
+
}
|
|
2045
|
+
handleBlur() {
|
|
2046
|
+
this._touched = true;
|
|
2047
|
+
this.dispatchEvent(new CustomEvent("bizz-blur", { bubbles: true, composed: true }));
|
|
2048
|
+
}
|
|
2049
|
+
render() {
|
|
2050
|
+
const wrapperClass = ["field-wrapper", this.hasError ? "error" : "", this.disabled ? "disabled" : ""].filter(Boolean).join(" ");
|
|
2051
|
+
return T`
|
|
2052
|
+
${this.label ? T`<label>${this.label}</label>` : ""}
|
|
2053
|
+
<div class="${wrapperClass}">
|
|
2054
|
+
<slot name="prefix"></slot>
|
|
2055
|
+
<input
|
|
2056
|
+
type="${this.type}"
|
|
2057
|
+
placeholder="${this.placeholder}"
|
|
2058
|
+
?disabled="${this.disabled}"
|
|
2059
|
+
?required="${this.required}"
|
|
2060
|
+
.value="${this.value}"
|
|
2061
|
+
aria-invalid="${this.hasError ? "true" : null}"
|
|
2062
|
+
@input="${this.handleInput}"
|
|
2063
|
+
@blur="${this.handleBlur}"
|
|
2064
|
+
/>
|
|
2065
|
+
<slot name="suffix"></slot>
|
|
2066
|
+
</div>
|
|
2067
|
+
${this.hasError ? T`<span class="error-msg" role="alert">${this.errorText}</span>` : this.helperText ? T`<span class="helper">${this.helperText}</span>` : ""}
|
|
2068
|
+
`;
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
BizzInputElement.styles = styles4;
|
|
2072
|
+
BizzInputElement.properties = {
|
|
2073
|
+
label: { type: String },
|
|
2074
|
+
placeholder: { type: String },
|
|
2075
|
+
type: { type: String },
|
|
2076
|
+
helperText: { type: String, attribute: "helper-text" },
|
|
2077
|
+
errorText: { type: String, attribute: "error-text" },
|
|
2078
|
+
disabled: { type: Boolean },
|
|
2079
|
+
required: { type: Boolean },
|
|
2080
|
+
value: { type: String },
|
|
2081
|
+
_touched: { state: true }
|
|
2082
|
+
};
|
|
2083
|
+
customElements.define("bizz-input", BizzInputElement);
|
|
2084
|
+
|
|
2085
|
+
// projects/bizz-components/src/web/textarea/bizz-textarea.styles.ts
|
|
2086
|
+
var styles5 = i`
|
|
2087
|
+
:host {
|
|
2088
|
+
display: flex;
|
|
2089
|
+
flex-direction: column;
|
|
2090
|
+
gap: var(--bizz-spacing-02);
|
|
2091
|
+
font-family: var(--bizz-font-family-base);
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
label {
|
|
2095
|
+
font-size: var(--bizz-font-size-sm);
|
|
2096
|
+
font-weight: var(--bizz-font-weight-semibold);
|
|
2097
|
+
color: var(--bizz-text-primary);
|
|
2098
|
+
line-height: var(--bizz-line-height-normal);
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
.field-wrapper {
|
|
2102
|
+
border: 1px solid var(--bizz-border-strong-01);
|
|
2103
|
+
border-radius: var(--bizz-radius-md);
|
|
2104
|
+
padding: var(--bizz-spacing-03) var(--bizz-spacing-04);
|
|
2105
|
+
transition:
|
|
2106
|
+
border-color var(--bizz-duration-base) var(--bizz-easing-default),
|
|
2107
|
+
box-shadow var(--bizz-duration-base) var(--bizz-easing-default);
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
.field-wrapper:focus-within {
|
|
2111
|
+
border-color: var(--bizz-focus);
|
|
2112
|
+
box-shadow: 0 0 0 2px var(--bizz-focus);
|
|
2113
|
+
outline: none;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
.field-wrapper.error {
|
|
2117
|
+
border-color: var(--bizz-support-error);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.field-wrapper.error:focus-within {
|
|
2121
|
+
box-shadow: 0 0 0 2px var(--bizz-support-error);
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
.field-wrapper.disabled {
|
|
2125
|
+
opacity: 0.5;
|
|
2126
|
+
cursor: not-allowed;
|
|
2127
|
+
background-color: var(--bizz-field-hover-01);
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
textarea {
|
|
2131
|
+
width: 100%;
|
|
2132
|
+
border: none;
|
|
2133
|
+
outline: none;
|
|
2134
|
+
background: transparent;
|
|
2135
|
+
font-family: var(--bizz-font-family-base);
|
|
2136
|
+
font-size: var(--bizz-font-size-md);
|
|
2137
|
+
color: var(--bizz-text-primary);
|
|
2138
|
+
line-height: var(--bizz-line-height-relaxed);
|
|
2139
|
+
resize: vertical;
|
|
2140
|
+
box-sizing: border-box;
|
|
2141
|
+
display: block;
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
textarea::placeholder {
|
|
2145
|
+
color: var(--bizz-text-placeholder);
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
textarea:disabled {
|
|
2149
|
+
cursor: not-allowed;
|
|
2150
|
+
resize: none;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
.helper {
|
|
2154
|
+
font-size: var(--bizz-font-size-xs);
|
|
2155
|
+
color: var(--bizz-text-helper);
|
|
2156
|
+
line-height: var(--bizz-line-height-normal);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
.error-msg {
|
|
2160
|
+
font-size: var(--bizz-font-size-xs);
|
|
2161
|
+
color: var(--bizz-support-error);
|
|
2162
|
+
line-height: var(--bizz-line-height-normal);
|
|
2163
|
+
}
|
|
2164
|
+
`;
|
|
2165
|
+
|
|
2166
|
+
// projects/bizz-components/src/web/textarea/bizz-textarea.ts
|
|
2167
|
+
var BizzTextareaElement = class extends i3 {
|
|
2168
|
+
constructor() {
|
|
2169
|
+
super();
|
|
2170
|
+
this.label = "";
|
|
2171
|
+
this.placeholder = "";
|
|
2172
|
+
this.helperText = "";
|
|
2173
|
+
this.errorText = "";
|
|
2174
|
+
this.disabled = false;
|
|
2175
|
+
this.required = false;
|
|
2176
|
+
this.rows = 4;
|
|
2177
|
+
this.autoResize = false;
|
|
2178
|
+
this.value = "";
|
|
2179
|
+
this._touched = false;
|
|
2180
|
+
}
|
|
2181
|
+
get hasError() {
|
|
2182
|
+
return this._touched && (!!this.errorText || this.required && !this.value.trim());
|
|
2183
|
+
}
|
|
2184
|
+
handleInput(e3) {
|
|
2185
|
+
const el = e3.target;
|
|
2186
|
+
this.value = el.value;
|
|
2187
|
+
if (this.autoResize) {
|
|
2188
|
+
el.style.height = "auto";
|
|
2189
|
+
el.style.height = el.scrollHeight + "px";
|
|
2190
|
+
}
|
|
2191
|
+
this.dispatchEvent(new CustomEvent("bizz-input", { detail: this.value, bubbles: true, composed: true }));
|
|
2192
|
+
}
|
|
2193
|
+
handleBlur() {
|
|
2194
|
+
this._touched = true;
|
|
2195
|
+
this.dispatchEvent(new CustomEvent("bizz-blur", { bubbles: true, composed: true }));
|
|
2196
|
+
}
|
|
2197
|
+
render() {
|
|
2198
|
+
const wrapperClass = ["field-wrapper", this.hasError ? "error" : "", this.disabled ? "disabled" : ""].filter(Boolean).join(" ");
|
|
2199
|
+
return T`
|
|
2200
|
+
${this.label ? T`<label>${this.label}</label>` : ""}
|
|
2201
|
+
<div class="${wrapperClass}">
|
|
2202
|
+
<textarea
|
|
2203
|
+
placeholder="${this.placeholder}"
|
|
2204
|
+
?disabled="${this.disabled}"
|
|
2205
|
+
?required="${this.required}"
|
|
2206
|
+
rows="${this.rows}"
|
|
2207
|
+
aria-invalid="${this.hasError ? "true" : null}"
|
|
2208
|
+
@input="${this.handleInput}"
|
|
2209
|
+
@blur="${this.handleBlur}"
|
|
2210
|
+
>${this.value}</textarea>
|
|
2211
|
+
</div>
|
|
2212
|
+
${this.hasError ? T`<span class="error-msg" role="alert">${this.errorText}</span>` : this.helperText ? T`<span class="helper">${this.helperText}</span>` : ""}
|
|
2213
|
+
`;
|
|
2214
|
+
}
|
|
2215
|
+
};
|
|
2216
|
+
BizzTextareaElement.styles = styles5;
|
|
2217
|
+
BizzTextareaElement.properties = {
|
|
2218
|
+
label: { type: String },
|
|
2219
|
+
placeholder: { type: String },
|
|
2220
|
+
helperText: { type: String, attribute: "helper-text" },
|
|
2221
|
+
errorText: { type: String, attribute: "error-text" },
|
|
2222
|
+
disabled: { type: Boolean },
|
|
2223
|
+
required: { type: Boolean },
|
|
2224
|
+
rows: { type: Number },
|
|
2225
|
+
autoResize: { type: Boolean, attribute: "auto-resize" },
|
|
2226
|
+
value: { type: String },
|
|
2227
|
+
_touched: { state: true }
|
|
2228
|
+
};
|
|
2229
|
+
customElements.define("bizz-textarea", BizzTextareaElement);
|
|
2230
|
+
/*! Bundled license information:
|
|
2231
|
+
|
|
2232
|
+
@lit-labs/ssr-dom-shim/lib/element-internals.js:
|
|
2233
|
+
@lit-labs/ssr-dom-shim/lib/events.js:
|
|
2234
|
+
(**
|
|
2235
|
+
* @license
|
|
2236
|
+
* Copyright 2023 Google LLC
|
|
2237
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2238
|
+
*)
|
|
2239
|
+
|
|
2240
|
+
@lit-labs/ssr-dom-shim/lib/css.js:
|
|
2241
|
+
@lit-labs/ssr-dom-shim/lib/observers.js:
|
|
2242
|
+
(**
|
|
2243
|
+
* @license
|
|
2244
|
+
* Copyright 2024 Google LLC
|
|
2245
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2246
|
+
*)
|
|
2247
|
+
|
|
2248
|
+
@lit-labs/ssr-dom-shim/index.js:
|
|
2249
|
+
@lit/reactive-element/node/css-tag.js:
|
|
2250
|
+
(**
|
|
2251
|
+
* @license
|
|
2252
|
+
* Copyright 2019 Google LLC
|
|
2253
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2254
|
+
*)
|
|
2255
|
+
|
|
2256
|
+
lit-html/node/lit-html.js:
|
|
2257
|
+
lit-element/lit-element.js:
|
|
2258
|
+
(**
|
|
2259
|
+
* @license
|
|
2260
|
+
* Copyright 2017 Google LLC
|
|
2261
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2262
|
+
*)
|
|
2263
|
+
|
|
2264
|
+
lit-html/node/is-server.js:
|
|
2265
|
+
(**
|
|
2266
|
+
* @license
|
|
2267
|
+
* Copyright 2022 Google LLC
|
|
2268
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2269
|
+
*)
|
|
2270
|
+
*/
|
|
2271
|
+
|
|
2272
|
+
export { BizzButtonElement, BizzCardElement, BizzInputElement, BizzTagElement, BizzTextareaElement };
|