@warp-ds/elements 1.2.0-next.5 → 1.2.0-next.6
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/dist/index.js +534 -504
- package/dist/packages/affix/index.js +1 -1
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/alert/index.js +2 -2
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/attention/index.d.ts +9 -0
- package/dist/packages/attention/index.js +24 -17
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/box/index.js +2 -2
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/breadcrumbs/index.js +3 -3
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/button/index.js +2 -2
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/card/index.js +3 -3
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/expandable/index.js +3 -3
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/select/index.js +8 -8
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/textfield/index.js +2 -2
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/toast/index.js +7 -7
- package/dist/packages/toast/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,39 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var qr = (t, e, r) => e in t ?
|
|
3
|
-
var T = (t, e, r) => (qr(t, typeof e != "symbol" ? e + "" : e, r), r),
|
|
1
|
+
var Br = Object.defineProperty;
|
|
2
|
+
var qr = (t, e, r) => e in t ? Br(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var T = (t, e, r) => (qr(t, typeof e != "symbol" ? e + "" : e, r), r), Ar = (t, e, r) => {
|
|
4
4
|
if (!e.has(t))
|
|
5
5
|
throw TypeError("Cannot " + r);
|
|
6
6
|
};
|
|
7
|
-
var X = (t, e, r) => (
|
|
7
|
+
var X = (t, e, r) => (Ar(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ge = (t, e, r) => {
|
|
8
8
|
if (e.has(t))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
11
11
|
};
|
|
12
|
-
import { html as m, css as se, nothing as
|
|
13
|
-
import
|
|
12
|
+
import { html as m, css as se, nothing as dt } from "lit";
|
|
13
|
+
import B from "@warp-ds/elements-core";
|
|
14
14
|
import { ifDefined as I } from "lit/directives/if-defined.js";
|
|
15
|
-
import { classMap as
|
|
16
|
-
import { repeat as
|
|
15
|
+
import { classMap as Zt } from "lit/directives/class-map.js";
|
|
16
|
+
import { repeat as er } from "lit/directives/repeat.js";
|
|
17
17
|
import { when as He } from "lit/directives/when.js";
|
|
18
|
-
import { unsafeHTML as
|
|
19
|
-
const
|
|
20
|
-
base: "border-2 relative",
|
|
21
|
-
tooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",
|
|
22
|
-
callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
|
|
23
|
-
highlight: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",
|
|
24
|
-
popover: "i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",
|
|
25
|
-
arrowBase: "absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",
|
|
26
|
-
arrowDirectionLeft: "-left-[8px]",
|
|
27
|
-
arrowDirectionRight: "-right-[8px]",
|
|
28
|
-
arrowDirectionBottom: "-bottom-[8px]",
|
|
29
|
-
arrowDirectionTop: "-top-[8px]",
|
|
30
|
-
arrowTooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background",
|
|
31
|
-
arrowCallout: "i-bg-$color-callout-background i-border-$color-callout-border",
|
|
32
|
-
arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background",
|
|
33
|
-
arrowHighlight: "i-bg-$color-callout-background i-border-$color-callout-border",
|
|
34
|
-
content: "last-child:mb-0",
|
|
35
|
-
notCallout: "absolute z-50"
|
|
36
|
-
}, be = {
|
|
18
|
+
import { unsafeHTML as tr } from "lit/directives/unsafe-html.js";
|
|
19
|
+
const be = {
|
|
37
20
|
base: "py-4 px-8 border-0 rounded-4 text-xs inline-flex",
|
|
38
21
|
neutral: "i-bg-$color-badge-neutral-background i-text-$color-badge-neutral-text",
|
|
39
22
|
info: "i-bg-$color-badge-info-background i-text-$color-badge-info-text",
|
|
@@ -87,7 +70,7 @@ const Te = {
|
|
|
87
70
|
iconLoading: "animate-bounce",
|
|
88
71
|
content: "self-center mr-8 py-4 last-child:mb-0",
|
|
89
72
|
close: "bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"
|
|
90
|
-
},
|
|
73
|
+
}, Pr = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", W = {
|
|
91
74
|
expandable: "will-change-height",
|
|
92
75
|
expandableTitle: "font-bold i-text-$color-expandable-title-text",
|
|
93
76
|
expandableBox: "i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 " + oe.box,
|
|
@@ -100,12 +83,12 @@ const Te = {
|
|
|
100
83
|
chevronCollapse: "rotate-180",
|
|
101
84
|
expansion: "overflow-hidden",
|
|
102
85
|
expansionNotExpanded: "h-0 invisible",
|
|
103
|
-
button:
|
|
86
|
+
button: Pr + " hover:underline focus:underline",
|
|
104
87
|
buttonBox: "w-full text-left relative inline-flex items-center " + oe.box,
|
|
105
88
|
paddingTop: "pt-0",
|
|
106
89
|
title: "flex justify-between items-center",
|
|
107
90
|
titleType: "h4"
|
|
108
|
-
}, ce = "font-bold focusable justify-center transition-colors ease-in-out",
|
|
91
|
+
}, ce = "font-bold focusable justify-center transition-colors ease-in-out", R = {
|
|
109
92
|
primary: "i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",
|
|
110
93
|
secondary: "i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
|
|
111
94
|
utility: "i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",
|
|
@@ -117,14 +100,14 @@ const Te = {
|
|
|
117
100
|
negativeQuiet: "i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",
|
|
118
101
|
loading: "i-text-$color-button-loading-text i-bg-$color-button-loading-background",
|
|
119
102
|
link: "i-text-$color-button-link-text"
|
|
120
|
-
},
|
|
103
|
+
}, D = {
|
|
121
104
|
primary: `border-0 rounded-8 ${ce}`,
|
|
122
105
|
secondary: `border-2 rounded-8 ${ce}`,
|
|
123
106
|
utility: `border rounded-4 ${ce}`,
|
|
124
107
|
negative: `border-0 rounded-8 ${ce}`,
|
|
125
108
|
pill: `p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${ce}`,
|
|
126
|
-
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${
|
|
127
|
-
},
|
|
109
|
+
link: `bg-transparent focusable ease-in-out inline active:underline hover:underline ${R.link}`
|
|
110
|
+
}, b = {
|
|
128
111
|
xsmall: "py-6 px-16",
|
|
129
112
|
small: "py-8 px-16",
|
|
130
113
|
medium: "py-10 px-14",
|
|
@@ -134,81 +117,81 @@ const Te = {
|
|
|
134
117
|
pill: "min-h-[44px] min-w-[44px]",
|
|
135
118
|
pillSmall: "min-h-32 min-w-32",
|
|
136
119
|
link: "p-0"
|
|
137
|
-
},
|
|
120
|
+
}, f = {
|
|
138
121
|
medium: "text-m leading-[24]",
|
|
139
122
|
xsmall: "text-xs"
|
|
140
123
|
}, p = {
|
|
141
|
-
inProgress: `border-transparent animate-inprogress pointer-events-none ${
|
|
124
|
+
inProgress: `border-transparent animate-inprogress pointer-events-none ${R.loading}`,
|
|
142
125
|
// .button--in-progress, a.button--in-progress:visited
|
|
143
126
|
quiet: `border-0 rounded-8 ${ce}`,
|
|
144
127
|
utilityQuiet: `border-0 rounded-4 ${ce}`,
|
|
145
128
|
negativeQuiet: `border-0 rounded-8 ${ce}`,
|
|
146
|
-
isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${
|
|
129
|
+
isDisabled: `font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${R.disabled}`
|
|
147
130
|
// .button:disabled, .button--is-disabled
|
|
148
131
|
}, S = {
|
|
149
132
|
// Buttontypes
|
|
150
|
-
secondary: `${
|
|
133
|
+
secondary: `${b.medium} ${f.medium} ${D.secondary} ${R.secondary}`,
|
|
151
134
|
// .button--secondary, .button--default, .button
|
|
152
|
-
secondaryHref: `${
|
|
153
|
-
secondaryDisabled: `${
|
|
154
|
-
secondarySmall: `${
|
|
155
|
-
secondarySmallDisabled: `${
|
|
156
|
-
secondaryQuiet: `${
|
|
157
|
-
secondaryQuietDisabled: `${
|
|
158
|
-
secondarySmallQuiet: `${
|
|
159
|
-
secondarySmallQuietDisabled: `${
|
|
160
|
-
secondaryLoading: `${
|
|
161
|
-
secondarySmallLoading: `${
|
|
162
|
-
secondarySmallQuietLoading: `${
|
|
163
|
-
secondaryQuietLoading: `${
|
|
164
|
-
primary: `${
|
|
135
|
+
secondaryHref: `${b.medium} ${f.medium} ${D.secondary} ${R.secondary}`,
|
|
136
|
+
secondaryDisabled: `${b.medium} ${f.medium} ${D.secondary} ${p.isDisabled}`,
|
|
137
|
+
secondarySmall: `${f.xsmall} ${b.xsmall} ${D.secondary} ${R.secondary}`,
|
|
138
|
+
secondarySmallDisabled: `${f.xsmall} ${b.xsmall} ${D.secondary} ${p.isDisabled}`,
|
|
139
|
+
secondaryQuiet: `${b.medium} ${f.medium} ${p.quiet} ${R.quiet}`,
|
|
140
|
+
secondaryQuietDisabled: `${b.medium} ${f.medium} ${p.quiet} ${p.isDisabled}`,
|
|
141
|
+
secondarySmallQuiet: `${f.xsmall} ${b.xsmall} ${p.quiet} ${R.quiet}`,
|
|
142
|
+
secondarySmallQuietDisabled: `${f.xsmall} ${b.xsmall} ${p.quiet} ${p.isDisabled}`,
|
|
143
|
+
secondaryLoading: `${b.medium} ${f.medium} ${D.secondary} ${p.inProgress}`,
|
|
144
|
+
secondarySmallLoading: `${f.xsmall} ${b.xsmall} ${D.secondary} ${p.inProgress}`,
|
|
145
|
+
secondarySmallQuietLoading: `${f.xsmall} ${b.xsmall} ${p.quiet} ${p.inProgress}`,
|
|
146
|
+
secondaryQuietLoading: `${b.medium} ${f.medium} ${p.quiet} ${p.inProgress}`,
|
|
147
|
+
primary: `${b.large} ${f.medium} ${D.primary} ${R.primary}`,
|
|
165
148
|
// .button--primary, .button--cta
|
|
166
|
-
primaryDisabled: `${
|
|
167
|
-
primarySmall: `${
|
|
168
|
-
primarySmallDisabled: `${
|
|
169
|
-
primaryQuiet: `${
|
|
170
|
-
primaryQuietDisabled: `${
|
|
171
|
-
primarySmallQuiet: `${
|
|
172
|
-
primarySmallQuietDisabled: `${
|
|
173
|
-
primaryLoading: `${
|
|
174
|
-
primarySmallLoading: `${
|
|
175
|
-
primarySmallQuietLoading: `${
|
|
176
|
-
primaryQuietLoading: `${
|
|
177
|
-
utility: `${
|
|
149
|
+
primaryDisabled: `${b.large} ${f.medium} ${p.isDisabled} ${D.primary}`,
|
|
150
|
+
primarySmall: `${b.small} ${f.xsmall} ${D.primary} ${R.primary}`,
|
|
151
|
+
primarySmallDisabled: `${b.small} ${f.xsmall} ${p.isDisabled} ${D.primary} `,
|
|
152
|
+
primaryQuiet: `${b.large} ${f.medium} ${p.quiet} ${R.quiet}`,
|
|
153
|
+
primaryQuietDisabled: `${b.large} ${f.medium} ${p.quiet} ${p.isDisabled}`,
|
|
154
|
+
primarySmallQuiet: `${b.small} ${f.xsmall} ${p.quiet} ${R.quiet}`,
|
|
155
|
+
primarySmallQuietDisabled: `${b.small} ${f.xsmall} ${p.quiet} ${p.isDisabled}`,
|
|
156
|
+
primaryLoading: `${b.large} ${f.medium} ${p.inProgress} ${D.primary}`,
|
|
157
|
+
primarySmallLoading: `${b.small} ${f.xsmall} ${p.inProgress} ${D.primary}`,
|
|
158
|
+
primarySmallQuietLoading: `${b.small} ${f.xsmall} ${p.quiet} ${p.inProgress} ${D.primary}`,
|
|
159
|
+
primaryQuietLoading: `${b.large} ${f.medium} ${p.quiet} ${p.inProgress}`,
|
|
160
|
+
utility: `${b.utility} ${f.medium} ${D.utility} ${R.utility}`,
|
|
178
161
|
// .button--utility
|
|
179
|
-
utilityDisabled: `${
|
|
180
|
-
utilityQuiet: `${
|
|
162
|
+
utilityDisabled: `${b.utility} ${f.medium} ${D.utility} ${p.isDisabled}`,
|
|
163
|
+
utilityQuiet: `${b.large} ${f.medium} ${p.utilityQuiet} ${R.utilityQuiet}`,
|
|
181
164
|
// .button--utility-flat
|
|
182
|
-
utilityQuietDisabled: `${
|
|
183
|
-
utilitySmall: `${
|
|
184
|
-
utilitySmallDisabled: `${
|
|
185
|
-
utilitySmallQuiet: `${
|
|
186
|
-
utilitySmallQuietDisabled: `${
|
|
187
|
-
utilityLoading: `${
|
|
188
|
-
utilitySmallLoading: `${
|
|
189
|
-
utilityQuietLoading: `${
|
|
190
|
-
utilitySmallQuietLoading: `${
|
|
191
|
-
negative: `${
|
|
165
|
+
utilityQuietDisabled: `${b.large} ${f.medium} ${p.utilityQuiet} ${p.isDisabled}`,
|
|
166
|
+
utilitySmall: `${b.smallUtility} ${f.xsmall} ${D.utility} ${R.utility}`,
|
|
167
|
+
utilitySmallDisabled: `${b.smallUtility} ${f.xsmall} ${D.utility} ${p.isDisabled}`,
|
|
168
|
+
utilitySmallQuiet: `${b.smallUtility} ${f.xsmall} ${p.utilityQuiet} ${R.utilityQuiet}`,
|
|
169
|
+
utilitySmallQuietDisabled: `${b.smallUtility} ${f.xsmall} ${p.utilityQuiet} ${p.isDisabled}`,
|
|
170
|
+
utilityLoading: `${b.large} ${f.medium} ${D.utility} ${p.inProgress}`,
|
|
171
|
+
utilitySmallLoading: `${b.smallUtility} ${f.xsmall} ${D.utility} ${p.inProgress}`,
|
|
172
|
+
utilityQuietLoading: `${b.large} ${f.medium} ${p.inProgress} ${p.utilityQuiet}`,
|
|
173
|
+
utilitySmallQuietLoading: `${b.smallUtility} ${f.xsmall} ${p.inProgress} ${p.utilityQuiet}`,
|
|
174
|
+
negative: `${b.large} ${f.medium} ${D.negative} ${R.destructive}`,
|
|
192
175
|
// .button--destructive
|
|
193
|
-
negativeDisabled: `${
|
|
194
|
-
negativeQuiet: `${
|
|
176
|
+
negativeDisabled: `${b.large} ${f.medium} ${D.negative} ${p.isDisabled}`,
|
|
177
|
+
negativeQuiet: `${b.large} ${f.medium} ${p.negativeQuiet} ${R.negativeQuiet}`,
|
|
195
178
|
// .button--destructive-flat
|
|
196
|
-
negativeQuietDisabled: `${
|
|
197
|
-
negativeSmall: `${
|
|
198
|
-
negativeSmallDisabled: `${
|
|
199
|
-
negativeSmallQuiet: `${
|
|
200
|
-
negativeSmallQuietDisabled: `${
|
|
201
|
-
negativeLoading: `${
|
|
202
|
-
negativeSmallLoading: `${
|
|
203
|
-
negativeQuietLoading: `${
|
|
204
|
-
negativeSmallQuietLoading: `${
|
|
205
|
-
pill: `${
|
|
179
|
+
negativeQuietDisabled: `${b.large} ${f.medium} ${p.negativeQuiet}${p.isDisabled}`,
|
|
180
|
+
negativeSmall: `${b.small} ${f.xsmall} ${D.negative} ${R.destructive}`,
|
|
181
|
+
negativeSmallDisabled: `${b.small} ${f.xsmall} ${D.negative} ${p.isDisabled}`,
|
|
182
|
+
negativeSmallQuiet: `${b.small} ${f.xsmall} ${p.negativeQuiet} ${R.negativeQuiet}`,
|
|
183
|
+
negativeSmallQuietDisabled: `${b.small} ${f.xsmall} ${p.negativeQuiet} ${p.isDisabled}`,
|
|
184
|
+
negativeLoading: `${b.large} ${f.medium} ${D.negative} ${p.inProgress}`,
|
|
185
|
+
negativeSmallLoading: `${b.small} ${f.xsmall} ${p.inProgress} ${D.negative}`,
|
|
186
|
+
negativeQuietLoading: `${b.large} ${f.medium} ${p.negativeQuiet} ${D.negative} ${p.inProgress}`,
|
|
187
|
+
negativeSmallQuietLoading: `${b.small} ${f.xsmall} ${p.negativeQuiet} ${p.inProgress}`,
|
|
188
|
+
pill: `${b.pill} ${f.medium} ${D.pill} ${R.pill}`,
|
|
206
189
|
// .button--pill
|
|
207
|
-
pillSmall: `${
|
|
208
|
-
pillLoading: `${
|
|
209
|
-
pillSmallLoading: `${
|
|
210
|
-
link: `${
|
|
211
|
-
linkSmall: `${
|
|
190
|
+
pillSmall: `${b.pillSmall} ${f.xsmall} ${D.pill} ${R.pill}`,
|
|
191
|
+
pillLoading: `${b.pill} ${f.medium} ${D.pill} ${p.inProgress}`,
|
|
192
|
+
pillSmallLoading: `${b.pillSmall} ${f.xsmall} ${D.pill} ${p.inProgress}`,
|
|
193
|
+
link: `${b.link} ${f.medium} ${D.link}`,
|
|
194
|
+
linkSmall: `${b.link} ${f.xsmall} ${D.link}`,
|
|
212
195
|
linkAsButton: "inline-block hover:no-underline text-center",
|
|
213
196
|
a11y: "sr-only",
|
|
214
197
|
fullWidth: "w-full max-w-full",
|
|
@@ -246,7 +229,7 @@ const Te = {
|
|
|
246
229
|
selectWrapper: "relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",
|
|
247
230
|
chevron: "absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",
|
|
248
231
|
chevronDisabled: "opacity-25"
|
|
249
|
-
},
|
|
232
|
+
}, Be = {
|
|
250
233
|
label: "antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",
|
|
251
234
|
labelInvalid: "i-text-$color-label-text-negative",
|
|
252
235
|
optional: "pl-8 font-normal text-s i-text-$color-label-optional-text"
|
|
@@ -254,22 +237,40 @@ const Te = {
|
|
|
254
237
|
helpText: "text-xs mt-4 block i-text-$color-helptext-text",
|
|
255
238
|
helpTextValid: "i-text-$color-helptext-text-positive",
|
|
256
239
|
helpTextInvalid: "i-text-$color-helptext-text-negative"
|
|
257
|
-
},
|
|
258
|
-
wrapper:
|
|
240
|
+
}, rr = "absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ", Rr = {
|
|
241
|
+
wrapper: rr + "right-0",
|
|
259
242
|
wrapperWithLabel: "w-max pr-12",
|
|
260
243
|
wrapperWithIcon: "w-40",
|
|
261
244
|
label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
|
|
262
245
|
}, Mr = {
|
|
263
|
-
wrapper:
|
|
246
|
+
wrapper: rr + "left-0",
|
|
264
247
|
wrapperWithLabel: "w-max pl-12",
|
|
265
248
|
wrapperWithIcon: "w-40",
|
|
266
249
|
label: "antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"
|
|
267
|
-
},
|
|
250
|
+
}, ke = {
|
|
268
251
|
wrapper: "flex space-x-8",
|
|
269
252
|
text: "i-text-$color-breadcrumbs-text",
|
|
270
253
|
link: "i-text-$color-breadcrumbs-link-text",
|
|
271
254
|
separator: "select-none i-text-$color-breadcrumbs-icon",
|
|
272
255
|
a11y: "sr-only"
|
|
256
|
+
}, we = {
|
|
257
|
+
base: "border-2 relative flex items-start",
|
|
258
|
+
tooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",
|
|
259
|
+
callout: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",
|
|
260
|
+
highlight: "i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",
|
|
261
|
+
popover: "i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",
|
|
262
|
+
arrowBase: "absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",
|
|
263
|
+
arrowDirectionLeft: "-left-[8px]",
|
|
264
|
+
arrowDirectionRight: "-right-[8px]",
|
|
265
|
+
arrowDirectionBottom: "-bottom-[8px]",
|
|
266
|
+
arrowDirectionTop: "-top-[8px]",
|
|
267
|
+
arrowTooltip: "i-bg-$color-tooltip-background i-border-$color-tooltip-background",
|
|
268
|
+
arrowCallout: "i-bg-$color-callout-background i-border-$color-callout-border",
|
|
269
|
+
arrowPopover: "i-bg-$color-popover-background i-border-$color-popover-background",
|
|
270
|
+
arrowHighlight: "i-bg-$color-callout-background i-border-$color-callout-border",
|
|
271
|
+
content: "last-child:mb-0",
|
|
272
|
+
notCallout: "absolute z-50",
|
|
273
|
+
closeBtn: `${f.medium} ${D.pill} ${R.pill} justify-self-end -mr-8 ml-8`
|
|
273
274
|
}, Nr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
274
275
|
function Re(t) {
|
|
275
276
|
return class extends t {
|
|
@@ -281,7 +282,7 @@ function Re(t) {
|
|
|
281
282
|
}
|
|
282
283
|
};
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function ht(t) {
|
|
285
286
|
const e = [];
|
|
286
287
|
for (const [r, i] of Object.entries(t))
|
|
287
288
|
i && e.push(r);
|
|
@@ -292,12 +293,12 @@ function G(t) {
|
|
|
292
293
|
for (const [r, i] of Object.entries(t))
|
|
293
294
|
for (const o of r.split(" "))
|
|
294
295
|
e[o] = i;
|
|
295
|
-
return
|
|
296
|
+
return Zt(e);
|
|
296
297
|
}
|
|
297
298
|
function Ir() {
|
|
298
299
|
return `m${Math.random().toString(36).slice(2)}`;
|
|
299
300
|
}
|
|
300
|
-
class
|
|
301
|
+
class pt extends B {
|
|
301
302
|
get _classBase() {
|
|
302
303
|
return this.slot === "suffix" ? Rr : Mr;
|
|
303
304
|
}
|
|
@@ -341,13 +342,13 @@ class ht extends q {
|
|
|
341
342
|
return m`${this._markup}`;
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
|
-
T(
|
|
345
|
+
T(pt, "styles", [B.styles]), T(pt, "properties", {
|
|
345
346
|
ariaLabel: { type: String, attribute: "aria-label" },
|
|
346
347
|
clear: { type: Boolean },
|
|
347
348
|
search: { type: Boolean },
|
|
348
349
|
label: { type: String }
|
|
349
350
|
});
|
|
350
|
-
customElements.get("w-affix") || customElements.define("w-affix",
|
|
351
|
+
customElements.get("w-affix") || customElements.define("w-affix", pt);
|
|
351
352
|
var ue = function() {
|
|
352
353
|
for (var t = [], e = arguments.length; e--; )
|
|
353
354
|
t[e] = arguments[e];
|
|
@@ -363,7 +364,7 @@ const Oe = {
|
|
|
363
364
|
warning: "warning",
|
|
364
365
|
info: "info"
|
|
365
366
|
};
|
|
366
|
-
class
|
|
367
|
+
class ft extends B {
|
|
367
368
|
constructor() {
|
|
368
369
|
super(), this.show = !1, this.role = "alert";
|
|
369
370
|
}
|
|
@@ -403,7 +404,7 @@ negative, positive, warning, info.`
|
|
|
403
404
|
`;
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
|
-
T(
|
|
407
|
+
T(ft, "properties", {
|
|
407
408
|
variant: { type: String, reflect: !0 },
|
|
408
409
|
show: { type: Boolean, reflect: !0 },
|
|
409
410
|
role: { type: String, reflect: !0 }
|
|
@@ -411,8 +412,8 @@ T(pt, "properties", {
|
|
|
411
412
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
412
413
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
413
414
|
// https://stackoverflow.com/a/61631668
|
|
414
|
-
T(
|
|
415
|
-
|
|
415
|
+
T(ft, "styles", [
|
|
416
|
+
B.styles,
|
|
416
417
|
se`
|
|
417
418
|
:host {
|
|
418
419
|
display: block;
|
|
@@ -425,7 +426,7 @@ T(pt, "styles", [
|
|
|
425
426
|
}
|
|
426
427
|
`
|
|
427
428
|
]);
|
|
428
|
-
customElements.get("w-alert") || customElements.define("w-alert",
|
|
429
|
+
customElements.get("w-alert") || customElements.define("w-alert", ft);
|
|
429
430
|
function Me(t) {
|
|
430
431
|
return t.split("-")[0];
|
|
431
432
|
}
|
|
@@ -435,48 +436,48 @@ function nt(t) {
|
|
|
435
436
|
function Ne(t) {
|
|
436
437
|
return ["top", "bottom"].includes(Me(t)) ? "x" : "y";
|
|
437
438
|
}
|
|
438
|
-
function
|
|
439
|
+
function At(t) {
|
|
439
440
|
return t === "y" ? "height" : "width";
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
+
function Nt(t, e, r) {
|
|
442
443
|
let { reference: i, floating: o } = t;
|
|
443
|
-
const n = i.x + i.width / 2 - o.width / 2, a = i.y + i.height / 2 - o.height / 2, l = Ne(e), d =
|
|
444
|
-
let
|
|
444
|
+
const n = i.x + i.width / 2 - o.width / 2, a = i.y + i.height / 2 - o.height / 2, l = Ne(e), d = At(l), x = i[d] / 2 - o[d] / 2, w = l === "x";
|
|
445
|
+
let g;
|
|
445
446
|
switch (Me(e)) {
|
|
446
447
|
case "top":
|
|
447
|
-
|
|
448
|
+
g = { x: n, y: i.y - o.height };
|
|
448
449
|
break;
|
|
449
450
|
case "bottom":
|
|
450
|
-
|
|
451
|
+
g = { x: n, y: i.y + i.height };
|
|
451
452
|
break;
|
|
452
453
|
case "right":
|
|
453
|
-
|
|
454
|
+
g = { x: i.x + i.width, y: a };
|
|
454
455
|
break;
|
|
455
456
|
case "left":
|
|
456
|
-
|
|
457
|
+
g = { x: i.x - o.width, y: a };
|
|
457
458
|
break;
|
|
458
459
|
default:
|
|
459
|
-
|
|
460
|
+
g = { x: i.x, y: i.y };
|
|
460
461
|
}
|
|
461
462
|
switch (nt(e)) {
|
|
462
463
|
case "start":
|
|
463
|
-
|
|
464
|
+
g[l] -= x * (r && w ? -1 : 1);
|
|
464
465
|
break;
|
|
465
466
|
case "end":
|
|
466
|
-
|
|
467
|
+
g[l] += x * (r && w ? -1 : 1);
|
|
467
468
|
}
|
|
468
|
-
return
|
|
469
|
+
return g;
|
|
469
470
|
}
|
|
470
471
|
const Qr = async (t, e, r) => {
|
|
471
472
|
const { placement: i = "bottom", strategy: o = "absolute", middleware: n = [], platform: a } = r, l = await (a.isRTL == null ? void 0 : a.isRTL(e));
|
|
472
|
-
let d = await a.getElementRects({ reference: t, floating: e, strategy: o }), { x, y: w } =
|
|
473
|
+
let d = await a.getElementRects({ reference: t, floating: e, strategy: o }), { x, y: w } = Nt(d, i, l), g = i, O = {}, h = 0;
|
|
473
474
|
for (let y = 0; y < n.length; y++) {
|
|
474
|
-
const { name: _, fn: C } = n[y], { x: N, y: Q, data: U, reset:
|
|
475
|
-
x = N ?? x, w = Q ?? w,
|
|
475
|
+
const { name: _, fn: C } = n[y], { x: N, y: Q, data: U, reset: M } = await C({ x, y: w, initialPlacement: i, placement: g, strategy: o, middlewareData: O, rects: d, platform: a, elements: { reference: t, floating: e } });
|
|
476
|
+
x = N ?? x, w = Q ?? w, O = { ...O, [_]: { ...O[_], ...U } }, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (g = M.placement), M.rects && (d = M.rects === !0 ? await a.getElementRects({ reference: t, floating: e, strategy: o }) : M.rects), { x, y: w } = Nt(d, g, l)), y = -1);
|
|
476
477
|
}
|
|
477
|
-
return { x, y: w, placement:
|
|
478
|
+
return { x, y: w, placement: g, strategy: o, middlewareData: O };
|
|
478
479
|
};
|
|
479
|
-
function
|
|
480
|
+
function ir(t) {
|
|
480
481
|
return typeof t != "number" ? function(e) {
|
|
481
482
|
return { top: 0, right: 0, bottom: 0, left: 0, ...e };
|
|
482
483
|
}(t) : { top: t, right: t, bottom: t, left: t };
|
|
@@ -484,37 +485,37 @@ function rr(t) {
|
|
|
484
485
|
function Je(t) {
|
|
485
486
|
return { ...t, top: t.y, left: t.x, right: t.x + t.width, bottom: t.y + t.height };
|
|
486
487
|
}
|
|
487
|
-
async function
|
|
488
|
+
async function or(t, e) {
|
|
488
489
|
var r;
|
|
489
490
|
e === void 0 && (e = {});
|
|
490
|
-
const { x: i, y: o, platform: n, rects: a, elements: l, strategy: d } = t, { boundary: x = "clippingAncestors", rootBoundary: w = "viewport", elementContext:
|
|
491
|
+
const { x: i, y: o, platform: n, rects: a, elements: l, strategy: d } = t, { boundary: x = "clippingAncestors", rootBoundary: w = "viewport", elementContext: g = "floating", altBoundary: O = !1, padding: h = 0 } = e, y = ir(h), _ = l[O ? g === "floating" ? "reference" : "floating" : g], C = Je(await n.getClippingRect({ element: (r = await (n.isElement == null ? void 0 : n.isElement(_))) == null || r ? _ : _.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(l.floating)), boundary: x, rootBoundary: w, strategy: d })), N = Je(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g === "floating" ? { ...a.floating, x: i, y: o } : a.reference, offsetParent: await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l.floating)), strategy: d }) : a[g]);
|
|
491
492
|
return { top: C.top - N.top + y.top, bottom: N.bottom - C.bottom + y.bottom, left: C.left - N.left + y.left, right: N.right - C.right + y.right };
|
|
492
493
|
}
|
|
493
494
|
const Ur = Math.min, Fr = Math.max;
|
|
494
|
-
function
|
|
495
|
+
function gt(t, e, r) {
|
|
495
496
|
return Fr(t, Ur(e, r));
|
|
496
497
|
}
|
|
497
498
|
const Hr = (t) => ({ name: "arrow", options: t, async fn(e) {
|
|
498
499
|
const { element: r, padding: i = 0 } = t ?? {}, { x: o, y: n, placement: a, rects: l, platform: d } = e;
|
|
499
500
|
if (r == null)
|
|
500
501
|
return {};
|
|
501
|
-
const x =
|
|
502
|
-
let
|
|
503
|
-
|
|
504
|
-
const ie = N / 2 - Q / 2, J = x[_],
|
|
505
|
-
return { [
|
|
502
|
+
const x = ir(i), w = { x: o, y: n }, g = Ne(a), O = nt(a), h = At(g), y = await d.getDimensions(r), _ = g === "y" ? "top" : "left", C = g === "y" ? "bottom" : "right", N = l.reference[h] + l.reference[g] - w[g] - l.floating[h], Q = w[g] - l.reference[g], U = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(r));
|
|
503
|
+
let M = U ? g === "y" ? U.clientHeight || 0 : U.clientWidth || 0 : 0;
|
|
504
|
+
M === 0 && (M = l.floating[h]);
|
|
505
|
+
const ie = N / 2 - Q / 2, J = x[_], A = M - y[h] - x[C], F = M / 2 - y[h] / 2 + ie, z = gt(J, F, A), Z = (O === "start" ? x[_] : x[C]) > 0 && F !== z && l.reference[h] <= l.floating[h];
|
|
506
|
+
return { [g]: w[g] - (Z ? F < J ? J - F : A - F : 0), data: { [g]: z, centerOffset: F - z } };
|
|
506
507
|
} }), jr = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
507
508
|
function Ge(t) {
|
|
508
509
|
return t.replace(/left|right|bottom|top/g, (e) => jr[e]);
|
|
509
510
|
}
|
|
510
511
|
function Wr(t, e, r) {
|
|
511
512
|
r === void 0 && (r = !1);
|
|
512
|
-
const i = nt(t), o = Ne(t), n =
|
|
513
|
+
const i = nt(t), o = Ne(t), n = At(o);
|
|
513
514
|
let a = o === "x" ? i === (r ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
514
515
|
return e.reference[n] > e.floating[n] && (a = Ge(a)), { main: a, cross: Ge(a) };
|
|
515
516
|
}
|
|
516
517
|
const Vr = { start: "end", end: "start" };
|
|
517
|
-
function
|
|
518
|
+
function It(t) {
|
|
518
519
|
return t.replace(/start|end/g, (e) => Vr[e]);
|
|
519
520
|
}
|
|
520
521
|
const zr = ["top", "right", "bottom", "left"];
|
|
@@ -522,25 +523,25 @@ zr.reduce((t, e) => t.concat(e, e + "-start", e + "-end"), []);
|
|
|
522
523
|
const Jr = function(t) {
|
|
523
524
|
return t === void 0 && (t = {}), { name: "flip", options: t, async fn(e) {
|
|
524
525
|
var r;
|
|
525
|
-
const { placement: i, middlewareData: o, rects: n, initialPlacement: a, platform: l, elements: d } = e, { mainAxis: x = !0, crossAxis: w = !0, fallbackPlacements:
|
|
526
|
-
const
|
|
527
|
-
return [
|
|
528
|
-
}(a)), N = [a, ...C], Q = await
|
|
529
|
-
let
|
|
526
|
+
const { placement: i, middlewareData: o, rects: n, initialPlacement: a, platform: l, elements: d } = e, { mainAxis: x = !0, crossAxis: w = !0, fallbackPlacements: g, fallbackStrategy: O = "bestFit", flipAlignment: h = !0, ...y } = t, _ = Me(i), C = g || (_ === a || !h ? [Ge(a)] : function(F) {
|
|
527
|
+
const z = Ge(F);
|
|
528
|
+
return [It(F), z, It(z)];
|
|
529
|
+
}(a)), N = [a, ...C], Q = await or(e, y), U = [];
|
|
530
|
+
let M = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
530
531
|
if (x && U.push(Q[_]), w) {
|
|
531
|
-
const { main: F, cross:
|
|
532
|
-
U.push(Q[F], Q[
|
|
532
|
+
const { main: F, cross: z } = Wr(i, n, await (l.isRTL == null ? void 0 : l.isRTL(d.floating)));
|
|
533
|
+
U.push(Q[F], Q[z]);
|
|
533
534
|
}
|
|
534
|
-
if (
|
|
535
|
+
if (M = [...M, { placement: i, overflows: U }], !U.every((F) => F <= 0)) {
|
|
535
536
|
var ie, J;
|
|
536
|
-
const F = ((ie = (J = o.flip) == null ? void 0 : J.index) != null ? ie : 0) + 1,
|
|
537
|
-
if (
|
|
538
|
-
return { data: { index: F, overflows:
|
|
537
|
+
const F = ((ie = (J = o.flip) == null ? void 0 : J.index) != null ? ie : 0) + 1, z = N[F];
|
|
538
|
+
if (z)
|
|
539
|
+
return { data: { index: F, overflows: M }, reset: { placement: z } };
|
|
539
540
|
let Z = "bottom";
|
|
540
|
-
switch (
|
|
541
|
+
switch (O) {
|
|
541
542
|
case "bestFit": {
|
|
542
|
-
var
|
|
543
|
-
const s = (
|
|
543
|
+
var A;
|
|
544
|
+
const s = (A = M.map((c) => [c, c.overflows.filter((u) => u > 0).reduce((u, v) => u + v, 0)]).sort((c, u) => c[1] - u[1])[0]) == null ? void 0 : A[0].placement;
|
|
544
545
|
s && (Z = s);
|
|
545
546
|
break;
|
|
546
547
|
}
|
|
@@ -555,9 +556,9 @@ const Jr = function(t) {
|
|
|
555
556
|
}, Gr = function(t) {
|
|
556
557
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(e) {
|
|
557
558
|
const { x: r, y: i } = e, o = await async function(n, a) {
|
|
558
|
-
const { placement: l, platform: d, elements: x } = n, w = await (d.isRTL == null ? void 0 : d.isRTL(x.floating)),
|
|
559
|
+
const { placement: l, platform: d, elements: x } = n, w = await (d.isRTL == null ? void 0 : d.isRTL(x.floating)), g = Me(l), O = nt(l), h = Ne(l) === "x", y = ["left", "top"].includes(g) ? -1 : 1, _ = w && h ? -1 : 1, C = typeof a == "function" ? a(n) : a;
|
|
559
560
|
let { mainAxis: N, crossAxis: Q, alignmentAxis: U } = typeof C == "number" ? { mainAxis: C, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...C };
|
|
560
|
-
return
|
|
561
|
+
return O && typeof U == "number" && (Q = O === "end" ? -1 * U : U), h ? { x: Q * _, y: N * y } : { x: N * y, y: Q * _ };
|
|
561
562
|
}(e, t);
|
|
562
563
|
return { x: r + o.x, y: i + o.y, data: o };
|
|
563
564
|
} };
|
|
@@ -570,27 +571,27 @@ const Xr = function(t) {
|
|
|
570
571
|
const { x: r, y: i, placement: o } = e, { mainAxis: n = !0, crossAxis: a = !1, limiter: l = { fn: (C) => {
|
|
571
572
|
let { x: N, y: Q } = C;
|
|
572
573
|
return { x: N, y: Q };
|
|
573
|
-
} }, ...d } = t, x = { x: r, y: i }, w = await
|
|
574
|
-
let h = x[
|
|
574
|
+
} }, ...d } = t, x = { x: r, y: i }, w = await or(e, d), g = Ne(Me(o)), O = Kr(g);
|
|
575
|
+
let h = x[g], y = x[O];
|
|
575
576
|
if (n) {
|
|
576
|
-
const C =
|
|
577
|
-
h =
|
|
577
|
+
const C = g === "y" ? "bottom" : "right";
|
|
578
|
+
h = gt(h + w[g === "y" ? "top" : "left"], h, h - w[C]);
|
|
578
579
|
}
|
|
579
580
|
if (a) {
|
|
580
|
-
const C =
|
|
581
|
-
y =
|
|
581
|
+
const C = O === "y" ? "bottom" : "right";
|
|
582
|
+
y = gt(y + w[O === "y" ? "top" : "left"], y, y - w[C]);
|
|
582
583
|
}
|
|
583
|
-
const _ = l.fn({ ...e, [
|
|
584
|
+
const _ = l.fn({ ...e, [g]: h, [O]: y });
|
|
584
585
|
return { ..._, data: { x: _.x - r, y: _.y - i } };
|
|
585
586
|
} };
|
|
586
587
|
};
|
|
587
|
-
function
|
|
588
|
+
function nr(t) {
|
|
588
589
|
return t && t.document && t.location && t.alert && t.setInterval;
|
|
589
590
|
}
|
|
590
591
|
function ae(t) {
|
|
591
592
|
if (t == null)
|
|
592
593
|
return window;
|
|
593
|
-
if (!
|
|
594
|
+
if (!nr(t)) {
|
|
594
595
|
const e = t.ownerDocument;
|
|
595
596
|
return e && e.defaultView || window;
|
|
596
597
|
}
|
|
@@ -600,16 +601,16 @@ function Ie(t) {
|
|
|
600
601
|
return ae(t).getComputedStyle(t);
|
|
601
602
|
}
|
|
602
603
|
function ne(t) {
|
|
603
|
-
return
|
|
604
|
+
return nr(t) ? "" : t ? (t.nodeName || "").toLowerCase() : "";
|
|
604
605
|
}
|
|
605
|
-
function
|
|
606
|
+
function sr() {
|
|
606
607
|
const t = navigator.userAgentData;
|
|
607
608
|
return t != null && t.brands ? t.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
|
|
608
609
|
}
|
|
609
610
|
function re(t) {
|
|
610
611
|
return t instanceof ae(t).HTMLElement;
|
|
611
612
|
}
|
|
612
|
-
function
|
|
613
|
+
function Ce(t) {
|
|
613
614
|
return t instanceof ae(t).Element;
|
|
614
615
|
}
|
|
615
616
|
function Pt(t) {
|
|
@@ -622,31 +623,31 @@ function st(t) {
|
|
|
622
623
|
function Yr(t) {
|
|
623
624
|
return ["table", "td", "th"].includes(ne(t));
|
|
624
625
|
}
|
|
625
|
-
function
|
|
626
|
-
const e = /firefox/i.test(
|
|
626
|
+
function Qt(t) {
|
|
627
|
+
const e = /firefox/i.test(sr()), r = Ie(t);
|
|
627
628
|
return r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].includes(r.willChange) || e && r.willChange === "filter" || e && !!r.filter && r.filter !== "none";
|
|
628
629
|
}
|
|
629
|
-
function
|
|
630
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
630
|
+
function ar() {
|
|
631
|
+
return !/^((?!chrome|android).)*safari/i.test(sr());
|
|
631
632
|
}
|
|
632
|
-
const
|
|
633
|
+
const Ut = Math.min, qe = Math.max, Ke = Math.round;
|
|
633
634
|
function ve(t, e, r) {
|
|
634
635
|
var i, o, n, a;
|
|
635
636
|
e === void 0 && (e = !1), r === void 0 && (r = !1);
|
|
636
637
|
const l = t.getBoundingClientRect();
|
|
637
638
|
let d = 1, x = 1;
|
|
638
639
|
e && re(t) && (d = t.offsetWidth > 0 && Ke(l.width) / t.offsetWidth || 1, x = t.offsetHeight > 0 && Ke(l.height) / t.offsetHeight || 1);
|
|
639
|
-
const w =
|
|
640
|
-
return { width: y, height: _, top: h, right:
|
|
640
|
+
const w = Ce(t) ? ae(t) : window, g = !ar() && r, O = (l.left + (g && (i = (o = w.visualViewport) == null ? void 0 : o.offsetLeft) != null ? i : 0)) / d, h = (l.top + (g && (n = (a = w.visualViewport) == null ? void 0 : a.offsetTop) != null ? n : 0)) / x, y = l.width / d, _ = l.height / x;
|
|
641
|
+
return { width: y, height: _, top: h, right: O + y, bottom: h + _, left: O, x: O, y: h };
|
|
641
642
|
}
|
|
642
643
|
function de(t) {
|
|
643
644
|
return (e = t, (e instanceof ae(e).Node ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
644
645
|
var e;
|
|
645
646
|
}
|
|
646
647
|
function at(t) {
|
|
647
|
-
return
|
|
648
|
+
return Ce(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
|
|
648
649
|
}
|
|
649
|
-
function
|
|
650
|
+
function lr(t) {
|
|
650
651
|
return ve(de(t)).left + at(t).scrollLeft;
|
|
651
652
|
}
|
|
652
653
|
function Zr(t, e, r) {
|
|
@@ -661,70 +662,70 @@ function Zr(t, e, r) {
|
|
|
661
662
|
const d = ve(e, !0);
|
|
662
663
|
l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
|
|
663
664
|
} else
|
|
664
|
-
o && (l.x =
|
|
665
|
+
o && (l.x = lr(o));
|
|
665
666
|
return { x: n.left + a.scrollLeft - l.x, y: n.top + a.scrollTop - l.y, width: n.width, height: n.height };
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
+
function cr(t) {
|
|
668
669
|
return ne(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pt(t) ? t.host : null) || de(t);
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
+
function Ft(t) {
|
|
671
672
|
return re(t) && getComputedStyle(t).position !== "fixed" ? t.offsetParent : null;
|
|
672
673
|
}
|
|
673
|
-
function
|
|
674
|
+
function bt(t) {
|
|
674
675
|
const e = ae(t);
|
|
675
|
-
let r =
|
|
676
|
+
let r = Ft(t);
|
|
676
677
|
for (; r && Yr(r) && getComputedStyle(r).position === "static"; )
|
|
677
|
-
r =
|
|
678
|
-
return r && (ne(r) === "html" || ne(r) === "body" && getComputedStyle(r).position === "static" && !
|
|
679
|
-
let o =
|
|
678
|
+
r = Ft(r);
|
|
679
|
+
return r && (ne(r) === "html" || ne(r) === "body" && getComputedStyle(r).position === "static" && !Qt(r)) ? e : r || function(i) {
|
|
680
|
+
let o = cr(i);
|
|
680
681
|
for (Pt(o) && (o = o.host); re(o) && !["html", "body"].includes(ne(o)); ) {
|
|
681
|
-
if (
|
|
682
|
+
if (Qt(o))
|
|
682
683
|
return o;
|
|
683
684
|
o = o.parentNode;
|
|
684
685
|
}
|
|
685
686
|
return null;
|
|
686
687
|
}(t) || e;
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
+
function Ht(t) {
|
|
689
690
|
if (re(t))
|
|
690
691
|
return { width: t.offsetWidth, height: t.offsetHeight };
|
|
691
692
|
const e = ve(t);
|
|
692
693
|
return { width: e.width, height: e.height };
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
-
const e =
|
|
696
|
-
return ["html", "body", "#document"].includes(ne(e)) ? t.ownerDocument.body : re(e) && st(e) ? e :
|
|
695
|
+
function ur(t) {
|
|
696
|
+
const e = cr(t);
|
|
697
|
+
return ["html", "body", "#document"].includes(ne(e)) ? t.ownerDocument.body : re(e) && st(e) ? e : ur(e);
|
|
697
698
|
}
|
|
698
|
-
function
|
|
699
|
+
function dr(t, e) {
|
|
699
700
|
var r;
|
|
700
701
|
e === void 0 && (e = []);
|
|
701
|
-
const i =
|
|
702
|
-
return o ? l : l.concat(
|
|
702
|
+
const i = ur(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), n = ae(i), a = o ? [n].concat(n.visualViewport || [], st(i) ? i : []) : i, l = e.concat(a);
|
|
703
|
+
return o ? l : l.concat(dr(a));
|
|
703
704
|
}
|
|
704
|
-
function
|
|
705
|
+
function jt(t, e, r) {
|
|
705
706
|
return e === "viewport" ? Je(function(i, o) {
|
|
706
707
|
const n = ae(i), a = de(i), l = n.visualViewport;
|
|
707
|
-
let d = a.clientWidth, x = a.clientHeight, w = 0,
|
|
708
|
+
let d = a.clientWidth, x = a.clientHeight, w = 0, g = 0;
|
|
708
709
|
if (l) {
|
|
709
710
|
d = l.width, x = l.height;
|
|
710
|
-
const
|
|
711
|
-
(
|
|
711
|
+
const O = ar();
|
|
712
|
+
(O || !O && o === "fixed") && (w = l.offsetLeft, g = l.offsetTop);
|
|
712
713
|
}
|
|
713
|
-
return { width: d, height: x, x: w, y:
|
|
714
|
-
}(t, r)) :
|
|
714
|
+
return { width: d, height: x, x: w, y: g };
|
|
715
|
+
}(t, r)) : Ce(e) ? function(i, o) {
|
|
715
716
|
const n = ve(i, !1, o === "fixed"), a = n.top + i.clientTop, l = n.left + i.clientLeft;
|
|
716
717
|
return { top: a, left: l, x: l, y: a, right: l + i.clientWidth, bottom: a + i.clientHeight, width: i.clientWidth, height: i.clientHeight };
|
|
717
718
|
}(e, r) : Je(function(i) {
|
|
718
719
|
var o;
|
|
719
|
-
const n = de(i), a = at(i), l = (o = i.ownerDocument) == null ? void 0 : o.body, d =
|
|
720
|
-
let w = -a.scrollLeft +
|
|
721
|
-
const
|
|
722
|
-
return Ie(l || n).direction === "rtl" && (w +=
|
|
720
|
+
const n = de(i), a = at(i), l = (o = i.ownerDocument) == null ? void 0 : o.body, d = qe(n.scrollWidth, n.clientWidth, l ? l.scrollWidth : 0, l ? l.clientWidth : 0), x = qe(n.scrollHeight, n.clientHeight, l ? l.scrollHeight : 0, l ? l.clientHeight : 0);
|
|
721
|
+
let w = -a.scrollLeft + lr(i);
|
|
722
|
+
const g = -a.scrollTop;
|
|
723
|
+
return Ie(l || n).direction === "rtl" && (w += qe(n.clientWidth, l ? l.clientWidth : 0) - d), { width: d, height: x, x: w, y: g };
|
|
723
724
|
}(de(t)));
|
|
724
725
|
}
|
|
725
726
|
function ei(t) {
|
|
726
|
-
const e =
|
|
727
|
-
return
|
|
727
|
+
const e = dr(t), r = ["absolute", "fixed"].includes(Ie(t).position) && re(t) ? bt(t) : t;
|
|
728
|
+
return Ce(r) ? e.filter((i) => Ce(i) && function(o, n) {
|
|
728
729
|
const a = n.getRootNode == null ? void 0 : n.getRootNode();
|
|
729
730
|
if (o.contains(n))
|
|
730
731
|
return !0;
|
|
@@ -742,9 +743,9 @@ function ei(t) {
|
|
|
742
743
|
const ti = { getClippingRect: function(t) {
|
|
743
744
|
let { element: e, boundary: r, rootBoundary: i, strategy: o } = t;
|
|
744
745
|
const n = [...r === "clippingAncestors" ? ei(e) : [].concat(r), i], a = n[0], l = n.reduce((d, x) => {
|
|
745
|
-
const w =
|
|
746
|
-
return d.top =
|
|
747
|
-
},
|
|
746
|
+
const w = jt(e, x, o);
|
|
747
|
+
return d.top = qe(w.top, d.top), d.right = Ut(w.right, d.right), d.bottom = Ut(w.bottom, d.bottom), d.left = qe(w.left, d.left), d;
|
|
748
|
+
}, jt(e, a, o));
|
|
748
749
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
749
750
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
|
|
750
751
|
let { rect: e, offsetParent: r, strategy: i } = t;
|
|
@@ -758,26 +759,26 @@ const ti = { getClippingRect: function(t) {
|
|
|
758
759
|
l.x = d.x + r.clientLeft, l.y = d.y + r.clientTop;
|
|
759
760
|
}
|
|
760
761
|
return { ...e, x: e.x - a.scrollLeft + l.x, y: e.y - a.scrollTop + l.y };
|
|
761
|
-
}, isElement:
|
|
762
|
+
}, isElement: Ce, getDimensions: Ht, getOffsetParent: bt, getDocumentElement: de, getElementRects: (t) => {
|
|
762
763
|
let { reference: e, floating: r, strategy: i } = t;
|
|
763
|
-
return { reference: Zr(e,
|
|
764
|
-
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => Ie(t).direction === "rtl" }, ri = (t, e, r) => Qr(t, e, { platform: ti, ...r }), Xe = "top", Ye = "bottom",
|
|
764
|
+
return { reference: Zr(e, bt(r), i), floating: { ...Ht(r), x: 0, y: 0 } };
|
|
765
|
+
}, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => Ie(t).direction === "rtl" }, ri = (t, e, r) => Qr(t, e, { platform: ti, ...r }), Xe = "top", Ye = "bottom", mt = "left", vt = "right", Ue = {
|
|
765
766
|
[Xe]: Ye,
|
|
766
767
|
[Ye]: Xe,
|
|
767
|
-
[
|
|
768
|
-
[
|
|
768
|
+
[mt]: vt,
|
|
769
|
+
[vt]: mt
|
|
769
770
|
}, ii = {
|
|
770
|
-
[
|
|
771
|
+
[mt]: -45,
|
|
771
772
|
[Xe]: 45,
|
|
772
|
-
[
|
|
773
|
+
[vt]: 135,
|
|
773
774
|
[Ye]: -135
|
|
774
|
-
},
|
|
775
|
+
}, Wt = "calc(50% - 7px)", oi = (t) => [Xe, Ye].includes(t);
|
|
775
776
|
function ni({ actualDirection: t, directionName: e, arrowEl: r }) {
|
|
776
777
|
if (!r)
|
|
777
778
|
return;
|
|
778
779
|
t = e;
|
|
779
780
|
const i = oi(e);
|
|
780
|
-
r.style.left = i ?
|
|
781
|
+
r.style.left = i ? Wt : "", r.style.top = i ? "" : Wt;
|
|
781
782
|
}
|
|
782
783
|
async function si(t) {
|
|
783
784
|
var o, n;
|
|
@@ -805,11 +806,11 @@ async function si(t) {
|
|
|
805
806
|
let { x: r, y: i } = e.middlewareData.arrow;
|
|
806
807
|
t.arrowEl && (t.arrowEl.style.left = r ? r + "px" : "", t.arrowEl.style.top = i ? i + "px" : "");
|
|
807
808
|
}
|
|
808
|
-
var
|
|
809
|
+
var yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
809
810
|
function ai(t) {
|
|
810
811
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
811
812
|
}
|
|
812
|
-
var
|
|
813
|
+
var hr = {}, pr = {};
|
|
813
814
|
(function(t) {
|
|
814
815
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.errorMessages = t.ErrorType = void 0;
|
|
815
816
|
var e;
|
|
@@ -831,10 +832,10 @@ var dr = {}, hr = {};
|
|
|
831
832
|
],
|
|
832
833
|
[e.EndOfString, "malformed escape sequence at end of string"]
|
|
833
834
|
]);
|
|
834
|
-
})(
|
|
835
|
+
})(pr);
|
|
835
836
|
(function(t) {
|
|
836
837
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.unraw = t.errorMessages = t.ErrorType = void 0;
|
|
837
|
-
const e =
|
|
838
|
+
const e = pr;
|
|
838
839
|
Object.defineProperty(t, "ErrorType", { enumerable: !0, get: function() {
|
|
839
840
|
return e.ErrorType;
|
|
840
841
|
} }), Object.defineProperty(t, "errorMessages", { enumerable: !0, get: function() {
|
|
@@ -893,9 +894,9 @@ var dr = {}, hr = {};
|
|
|
893
894
|
function w(h) {
|
|
894
895
|
return x.get(h) || h;
|
|
895
896
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
898
|
-
return h.replace(
|
|
897
|
+
const g = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
|
|
898
|
+
function O(h, y = !1) {
|
|
899
|
+
return h.replace(g, function(_, C, N, Q, U, M, ie, J, A) {
|
|
899
900
|
if (C !== void 0)
|
|
900
901
|
return "\\";
|
|
901
902
|
if (N !== void 0)
|
|
@@ -903,26 +904,26 @@ var dr = {}, hr = {};
|
|
|
903
904
|
if (Q !== void 0)
|
|
904
905
|
return l(Q);
|
|
905
906
|
if (U !== void 0)
|
|
906
|
-
return n(U,
|
|
907
|
+
return n(U, M);
|
|
907
908
|
if (ie !== void 0)
|
|
908
909
|
return n(ie);
|
|
909
910
|
if (J === "0")
|
|
910
911
|
return "\0";
|
|
911
912
|
if (J !== void 0)
|
|
912
913
|
return d(J, !y);
|
|
913
|
-
if (
|
|
914
|
-
return w(
|
|
914
|
+
if (A !== void 0)
|
|
915
|
+
return w(A);
|
|
915
916
|
throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString));
|
|
916
917
|
});
|
|
917
918
|
}
|
|
918
|
-
t.unraw =
|
|
919
|
-
})(
|
|
920
|
-
const li = /* @__PURE__ */ ai(
|
|
921
|
-
var
|
|
919
|
+
t.unraw = O, t.default = O;
|
|
920
|
+
})(hr);
|
|
921
|
+
const li = /* @__PURE__ */ ai(hr);
|
|
922
|
+
var Ae = {}, fr = {}, gr = { exports: {} };
|
|
922
923
|
(function(t) {
|
|
923
924
|
(function(e, r) {
|
|
924
925
|
t.exports ? t.exports = r() : e.moo = r();
|
|
925
|
-
})(
|
|
926
|
+
})(yt, function() {
|
|
926
927
|
var e = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = typeof new RegExp().sticky == "boolean";
|
|
927
928
|
function o(s) {
|
|
928
929
|
return s && r.call(s) === "[object RegExp]";
|
|
@@ -964,10 +965,10 @@ var Pe = {}, pr = {}, fr = { exports: {} };
|
|
|
964
965
|
} else
|
|
965
966
|
throw new Error("Not a pattern: " + s);
|
|
966
967
|
}
|
|
967
|
-
function
|
|
968
|
+
function g(s, c) {
|
|
968
969
|
return s.length > c ? s : Array(c - s.length + 1).join(" ") + s;
|
|
969
970
|
}
|
|
970
|
-
function
|
|
971
|
+
function O(s, c) {
|
|
971
972
|
for (var u = s.length, v = 0; ; ) {
|
|
972
973
|
var E = s.lastIndexOf(`
|
|
973
974
|
`, u - 1);
|
|
@@ -982,14 +983,14 @@ var Pe = {}, pr = {}, fr = { exports: {} };
|
|
|
982
983
|
for (var c = Object.getOwnPropertyNames(s), u = [], v = 0; v < c.length; v++) {
|
|
983
984
|
var E = c[v], $ = s[E], L = [].concat($);
|
|
984
985
|
if (E === "include") {
|
|
985
|
-
for (var
|
|
986
|
-
u.push({ include: L[
|
|
986
|
+
for (var P = 0; P < L.length; P++)
|
|
987
|
+
u.push({ include: L[P] });
|
|
987
988
|
continue;
|
|
988
989
|
}
|
|
989
|
-
var
|
|
990
|
+
var q = [];
|
|
990
991
|
L.forEach(function(k) {
|
|
991
|
-
n(k) ? (
|
|
992
|
-
}),
|
|
992
|
+
n(k) ? (q.length && u.push(_(E, q)), u.push(_(E, k)), q = []) : q.push(k);
|
|
993
|
+
}), q.length && u.push(_(E, q));
|
|
993
994
|
}
|
|
994
995
|
return u;
|
|
995
996
|
}
|
|
@@ -1036,10 +1037,10 @@ var Pe = {}, pr = {}, fr = { exports: {} };
|
|
|
1036
1037
|
}
|
|
1037
1038
|
var N = _("error", { lineBreaks: !0, shouldThrow: !0 });
|
|
1038
1039
|
function Q(s, c) {
|
|
1039
|
-
for (var u = null, v = /* @__PURE__ */ Object.create(null), E = !0, $ = null, L = [],
|
|
1040
|
-
s[
|
|
1041
|
-
for (var
|
|
1042
|
-
var k = s[
|
|
1040
|
+
for (var u = null, v = /* @__PURE__ */ Object.create(null), E = !0, $ = null, L = [], P = [], q = 0; q < s.length; q++)
|
|
1041
|
+
s[q].fallback && (E = !1);
|
|
1042
|
+
for (var q = 0; q < s.length; q++) {
|
|
1043
|
+
var k = s[q];
|
|
1043
1044
|
if (k.include)
|
|
1044
1045
|
throw new Error("Inheritance is not allowed in stateless lexers");
|
|
1045
1046
|
if (k.error || k.fallback) {
|
|
@@ -1073,26 +1074,26 @@ var Pe = {}, pr = {}, fr = { exports: {} };
|
|
|
1073
1074
|
var ye = x(j.map(w)), K = new RegExp(ye);
|
|
1074
1075
|
if (K.test(""))
|
|
1075
1076
|
throw new Error("RegExp matches empty string: " + K);
|
|
1076
|
-
var
|
|
1077
|
-
if (
|
|
1077
|
+
var Le = l(ye);
|
|
1078
|
+
if (Le > 0)
|
|
1078
1079
|
throw new Error("RegExp has capture groups: " + K + `
|
|
1079
1080
|
Use (?: … ) instead`);
|
|
1080
1081
|
if (!k.lineBreaks && K.test(`
|
|
1081
1082
|
`))
|
|
1082
1083
|
throw new Error("Rule should declare lineBreaks: " + K);
|
|
1083
|
-
|
|
1084
|
+
P.push(d(ye));
|
|
1084
1085
|
}
|
|
1085
1086
|
}
|
|
1086
|
-
var $e = u && u.fallback,
|
|
1087
|
-
$ === !0 && (
|
|
1088
|
-
var
|
|
1089
|
-
return { regexp:
|
|
1087
|
+
var $e = u && u.fallback, Te = i && !$e ? "ym" : "gm", Qe = i || $e ? "" : "|";
|
|
1088
|
+
$ === !0 && (Te += "u");
|
|
1089
|
+
var Or = new RegExp(x(P) + Qe, Te);
|
|
1090
|
+
return { regexp: Or, groups: L, fast: v, error: u || N };
|
|
1090
1091
|
}
|
|
1091
1092
|
function U(s) {
|
|
1092
1093
|
var c = Q(C(s));
|
|
1093
|
-
return new
|
|
1094
|
+
return new A({ start: c }, "start");
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function M(s, c, u) {
|
|
1096
1097
|
var v = s && (s.push || s.next);
|
|
1097
1098
|
if (v && !u[v])
|
|
1098
1099
|
throw new Error("Missing state '" + v + "' (in token '" + s.defaultType + "' of state '" + c + "')");
|
|
@@ -1109,21 +1110,21 @@ Use (?: … ) instead`);
|
|
|
1109
1110
|
E[L] = C(s[L]).concat(u);
|
|
1110
1111
|
}
|
|
1111
1112
|
for (var $ = 0; $ < v.length; $++)
|
|
1112
|
-
for (var L = v[$],
|
|
1113
|
-
var j =
|
|
1113
|
+
for (var L = v[$], P = E[L], q = /* @__PURE__ */ Object.create(null), k = 0; k < P.length; k++) {
|
|
1114
|
+
var j = P[k];
|
|
1114
1115
|
if (j.include) {
|
|
1115
1116
|
var he = [k, 1];
|
|
1116
|
-
if (j.include !== L && !
|
|
1117
|
-
|
|
1117
|
+
if (j.include !== L && !q[j.include]) {
|
|
1118
|
+
q[j.include] = !0;
|
|
1118
1119
|
var pe = E[j.include];
|
|
1119
1120
|
if (!pe)
|
|
1120
1121
|
throw new Error("Cannot include nonexistent state '" + j.include + "' (in state '" + L + "')");
|
|
1121
1122
|
for (var fe = 0; fe < pe.length; fe++) {
|
|
1122
1123
|
var ye = pe[fe];
|
|
1123
|
-
|
|
1124
|
+
P.indexOf(ye) === -1 && he.push(ye);
|
|
1124
1125
|
}
|
|
1125
1126
|
}
|
|
1126
|
-
|
|
1127
|
+
P.splice.apply(P, he), k--;
|
|
1127
1128
|
}
|
|
1128
1129
|
}
|
|
1129
1130
|
for (var K = /* @__PURE__ */ Object.create(null), $ = 0; $ < v.length; $++) {
|
|
@@ -1131,32 +1132,32 @@ Use (?: … ) instead`);
|
|
|
1131
1132
|
K[L] = Q(E[L], !0);
|
|
1132
1133
|
}
|
|
1133
1134
|
for (var $ = 0; $ < v.length; $++) {
|
|
1134
|
-
for (var
|
|
1135
|
-
|
|
1135
|
+
for (var Le = v[$], $e = K[Le], Te = $e.groups, k = 0; k < Te.length; k++)
|
|
1136
|
+
M(Te[k], Le, K);
|
|
1136
1137
|
for (var Qe = Object.getOwnPropertyNames($e.fast), k = 0; k < Qe.length; k++)
|
|
1137
|
-
|
|
1138
|
+
M($e.fast[Qe[k]], Le, K);
|
|
1138
1139
|
}
|
|
1139
|
-
return new
|
|
1140
|
+
return new A(K, c);
|
|
1140
1141
|
}
|
|
1141
1142
|
function J(s) {
|
|
1142
1143
|
for (var c = typeof Map < "u", u = c ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null), v = Object.getOwnPropertyNames(s), E = 0; E < v.length; E++) {
|
|
1143
|
-
var $ = v[E], L = s[$],
|
|
1144
|
-
|
|
1145
|
-
if (typeof
|
|
1144
|
+
var $ = v[E], L = s[$], P = Array.isArray(L) ? L : [L];
|
|
1145
|
+
P.forEach(function(q) {
|
|
1146
|
+
if (typeof q != "string")
|
|
1146
1147
|
throw new Error("keyword must be string (in keyword '" + $ + "')");
|
|
1147
|
-
c ? u.set(
|
|
1148
|
+
c ? u.set(q, $) : u[q] = $;
|
|
1148
1149
|
});
|
|
1149
1150
|
}
|
|
1150
|
-
return function(
|
|
1151
|
-
return c ? u.get(
|
|
1151
|
+
return function(q) {
|
|
1152
|
+
return c ? u.get(q) : u[q];
|
|
1152
1153
|
};
|
|
1153
1154
|
}
|
|
1154
|
-
var
|
|
1155
|
+
var A = function(s, c) {
|
|
1155
1156
|
this.startState = c, this.states = s, this.buffer = "", this.stack = [], this.reset();
|
|
1156
1157
|
};
|
|
1157
|
-
|
|
1158
|
+
A.prototype.reset = function(s, c) {
|
|
1158
1159
|
return this.buffer = s || "", this.index = 0, this.line = c ? c.line : 1, this.col = c ? c.col : 1, this.queuedToken = c ? c.queuedToken : null, this.queuedText = c ? c.queuedText : "", this.queuedThrow = c ? c.queuedThrow : null, this.setState(c ? c.state : this.startState), this.stack = c && c.stack ? c.stack.slice() : [], this;
|
|
1159
|
-
},
|
|
1160
|
+
}, A.prototype.save = function() {
|
|
1160
1161
|
return {
|
|
1161
1162
|
line: this.line,
|
|
1162
1163
|
col: this.col,
|
|
@@ -1166,15 +1167,15 @@ Use (?: … ) instead`);
|
|
|
1166
1167
|
queuedText: this.queuedText,
|
|
1167
1168
|
queuedThrow: this.queuedThrow
|
|
1168
1169
|
};
|
|
1169
|
-
},
|
|
1170
|
+
}, A.prototype.setState = function(s) {
|
|
1170
1171
|
if (!(!s || this.state === s)) {
|
|
1171
1172
|
this.state = s;
|
|
1172
1173
|
var c = this.states[s];
|
|
1173
1174
|
this.groups = c.groups, this.error = c.error, this.re = c.regexp, this.fast = c.fast;
|
|
1174
1175
|
}
|
|
1175
|
-
},
|
|
1176
|
+
}, A.prototype.popState = function() {
|
|
1176
1177
|
this.setState(this.stack.pop());
|
|
1177
|
-
},
|
|
1178
|
+
}, A.prototype.pushState = function(s) {
|
|
1178
1179
|
this.stack.push(this.state), this.setState(s);
|
|
1179
1180
|
};
|
|
1180
1181
|
var F = i ? function(s, c) {
|
|
@@ -1183,16 +1184,16 @@ Use (?: … ) instead`);
|
|
|
1183
1184
|
var u = s.exec(c);
|
|
1184
1185
|
return u[0].length === 0 ? null : u;
|
|
1185
1186
|
};
|
|
1186
|
-
|
|
1187
|
+
A.prototype._getGroup = function(s) {
|
|
1187
1188
|
for (var c = this.groups.length, u = 0; u < c; u++)
|
|
1188
1189
|
if (s[u + 1] !== void 0)
|
|
1189
1190
|
return this.groups[u];
|
|
1190
1191
|
throw new Error("Cannot find token type for matched text");
|
|
1191
1192
|
};
|
|
1192
|
-
function
|
|
1193
|
+
function z() {
|
|
1193
1194
|
return this.value;
|
|
1194
1195
|
}
|
|
1195
|
-
if (
|
|
1196
|
+
if (A.prototype.next = function() {
|
|
1196
1197
|
var s = this.index;
|
|
1197
1198
|
if (this.queuedGroup) {
|
|
1198
1199
|
var c = this._token(this.queuedGroup, this.queuedText, s);
|
|
@@ -1208,10 +1209,10 @@ Use (?: … ) instead`);
|
|
|
1208
1209
|
var E = F(v, u), $ = this.error;
|
|
1209
1210
|
if (E == null)
|
|
1210
1211
|
return this._token($, u.slice(s, u.length), s);
|
|
1211
|
-
var L = this._getGroup(E),
|
|
1212
|
-
return $.fallback && E.index !== s ? (this.queuedGroup = L, this.queuedText =
|
|
1212
|
+
var L = this._getGroup(E), P = E[0];
|
|
1213
|
+
return $.fallback && E.index !== s ? (this.queuedGroup = L, this.queuedText = P, this._token($, u.slice(s, E.index), s)) : this._token(L, P, s);
|
|
1213
1214
|
}
|
|
1214
|
-
},
|
|
1215
|
+
}, A.prototype._token = function(s, c, u) {
|
|
1215
1216
|
var v = 0;
|
|
1216
1217
|
if (s.lineBreaks) {
|
|
1217
1218
|
var E = /\n/g, $ = 1;
|
|
@@ -1226,15 +1227,15 @@ Use (?: … ) instead`);
|
|
|
1226
1227
|
type: typeof s.type == "function" && s.type(c) || s.defaultType,
|
|
1227
1228
|
value: typeof s.value == "function" ? s.value(c) : c,
|
|
1228
1229
|
text: c,
|
|
1229
|
-
toString:
|
|
1230
|
+
toString: z,
|
|
1230
1231
|
offset: u,
|
|
1231
1232
|
lineBreaks: v,
|
|
1232
1233
|
line: this.line,
|
|
1233
1234
|
col: this.col
|
|
1234
|
-
},
|
|
1235
|
-
if (this.index +=
|
|
1236
|
-
var
|
|
1237
|
-
throw
|
|
1235
|
+
}, P = c.length;
|
|
1236
|
+
if (this.index += P, this.line += v, v !== 0 ? this.col = P - $ + 1 : this.col += P, s.shouldThrow) {
|
|
1237
|
+
var q = new Error(this.formatError(L, "invalid syntax"));
|
|
1238
|
+
throw q;
|
|
1238
1239
|
}
|
|
1239
1240
|
return s.pop ? this.popState() : s.push ? this.pushState(s.push) : s.next && this.setState(s.next), L;
|
|
1240
1241
|
}, typeof Symbol < "u" && Symbol.iterator) {
|
|
@@ -1246,11 +1247,11 @@ Use (?: … ) instead`);
|
|
|
1246
1247
|
return { value: s, done: !s };
|
|
1247
1248
|
}, Z.prototype[Symbol.iterator] = function() {
|
|
1248
1249
|
return this;
|
|
1249
|
-
},
|
|
1250
|
+
}, A.prototype[Symbol.iterator] = function() {
|
|
1250
1251
|
return new Z(this);
|
|
1251
1252
|
};
|
|
1252
1253
|
}
|
|
1253
|
-
return
|
|
1254
|
+
return A.prototype.formatError = function(s, c) {
|
|
1254
1255
|
if (s == null)
|
|
1255
1256
|
var u = this.buffer.slice(this.index), s = {
|
|
1256
1257
|
text: u,
|
|
@@ -1260,20 +1261,20 @@ Use (?: … ) instead`);
|
|
|
1260
1261
|
line: this.line,
|
|
1261
1262
|
col: this.col
|
|
1262
1263
|
};
|
|
1263
|
-
var v = 2, E = Math.max(s.line - v, 1), $ = s.line + v, L = String($).length,
|
|
1264
|
+
var v = 2, E = Math.max(s.line - v, 1), $ = s.line + v, L = String($).length, P = O(
|
|
1264
1265
|
this.buffer,
|
|
1265
1266
|
this.line - s.line + v + 1
|
|
1266
|
-
).slice(0, 5),
|
|
1267
|
-
|
|
1268
|
-
for (var k = 0; k <
|
|
1269
|
-
var j =
|
|
1270
|
-
|
|
1267
|
+
).slice(0, 5), q = [];
|
|
1268
|
+
q.push(c + " at line " + s.line + " col " + s.col + ":"), q.push("");
|
|
1269
|
+
for (var k = 0; k < P.length; k++) {
|
|
1270
|
+
var j = P[k], he = E + k;
|
|
1271
|
+
q.push(g(String(he), L) + " " + j), he === s.line && q.push(g("", L + s.col + 1) + "^");
|
|
1271
1272
|
}
|
|
1272
|
-
return
|
|
1273
|
+
return q.join(`
|
|
1273
1274
|
`);
|
|
1274
|
-
},
|
|
1275
|
-
return new
|
|
1276
|
-
},
|
|
1275
|
+
}, A.prototype.clone = function() {
|
|
1276
|
+
return new A(this.states, this.state);
|
|
1277
|
+
}, A.prototype.has = function(s) {
|
|
1277
1278
|
return !0;
|
|
1278
1279
|
}, {
|
|
1279
1280
|
compile: U,
|
|
@@ -1283,10 +1284,10 @@ Use (?: … ) instead`);
|
|
|
1283
1284
|
keywords: J
|
|
1284
1285
|
};
|
|
1285
1286
|
});
|
|
1286
|
-
})(
|
|
1287
|
-
var ci =
|
|
1287
|
+
})(gr);
|
|
1288
|
+
var ci = gr.exports;
|
|
1288
1289
|
(function(t) {
|
|
1289
|
-
var e =
|
|
1290
|
+
var e = yt && yt.__importDefault || function(i) {
|
|
1290
1291
|
return i && i.__esModule ? i : { default: i };
|
|
1291
1292
|
};
|
|
1292
1293
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.lexer = t.states = void 0;
|
|
@@ -1344,10 +1345,10 @@ var ci = fr.exports;
|
|
|
1344
1345
|
end: { match: /\s*\}/u, pop: 1 }
|
|
1345
1346
|
}
|
|
1346
1347
|
}, t.lexer = r.default.states(t.states);
|
|
1347
|
-
})(
|
|
1348
|
-
Object.defineProperty(
|
|
1349
|
-
var
|
|
1350
|
-
const
|
|
1348
|
+
})(fr);
|
|
1349
|
+
Object.defineProperty(Ae, "__esModule", { value: !0 });
|
|
1350
|
+
var br = Ae.parse = Ae.ParseError = void 0;
|
|
1351
|
+
const mr = fr, Fe = (t) => ({
|
|
1351
1352
|
offset: t.offset,
|
|
1352
1353
|
line: t.line,
|
|
1353
1354
|
col: t.col,
|
|
@@ -1384,18 +1385,18 @@ const di = [
|
|
|
1384
1385
|
"spellout",
|
|
1385
1386
|
"ordinal",
|
|
1386
1387
|
"duration"
|
|
1387
|
-
],
|
|
1388
|
+
], Vt = ["zero", "one", "two", "few", "many", "other"];
|
|
1388
1389
|
class H extends Error {
|
|
1389
1390
|
/** @internal */
|
|
1390
1391
|
constructor(e, r) {
|
|
1391
|
-
super(
|
|
1392
|
+
super(mr.lexer.formatError(e, r));
|
|
1392
1393
|
}
|
|
1393
1394
|
}
|
|
1394
|
-
|
|
1395
|
+
Ae.ParseError = H;
|
|
1395
1396
|
class hi {
|
|
1396
1397
|
constructor(e, r) {
|
|
1397
1398
|
var i, o, n, a;
|
|
1398
|
-
this.lexer =
|
|
1399
|
+
this.lexer = mr.lexer.reset(e), this.cardinalKeys = (i = r == null ? void 0 : r.cardinal) !== null && i !== void 0 ? i : Vt, this.ordinalKeys = (o = r == null ? void 0 : r.ordinal) !== null && o !== void 0 ? o : Vt, this.strict = (n = r == null ? void 0 : r.strict) !== null && n !== void 0 ? n : !1, this.strictPluralKeys = (a = r == null ? void 0 : r.strictPluralKeys) !== null && a !== void 0 ? a : !0;
|
|
1399
1400
|
}
|
|
1400
1401
|
parse() {
|
|
1401
1402
|
return this.parseBody(!1, !0);
|
|
@@ -1518,8 +1519,8 @@ class hi {
|
|
|
1518
1519
|
function pi(t, e = {}) {
|
|
1519
1520
|
return new hi(t, e).parse();
|
|
1520
1521
|
}
|
|
1521
|
-
|
|
1522
|
-
function
|
|
1522
|
+
br = Ae.parse = pi;
|
|
1523
|
+
function vr(t, e) {
|
|
1523
1524
|
return t.filter((r) => r.type !== "content").length ? t.map((r) => {
|
|
1524
1525
|
var n;
|
|
1525
1526
|
if (r.type === "content")
|
|
@@ -1534,7 +1535,7 @@ function mr(t, e) {
|
|
|
1534
1535
|
}
|
|
1535
1536
|
const i = r.pluralOffset, o = {};
|
|
1536
1537
|
return r.cases.forEach((a) => {
|
|
1537
|
-
o[a.key.replace(/^=(.)+/, "$1")] =
|
|
1538
|
+
o[a.key.replace(/^=(.)+/, "$1")] = vr(
|
|
1538
1539
|
a.tokens,
|
|
1539
1540
|
e
|
|
1540
1541
|
);
|
|
@@ -1550,33 +1551,33 @@ function mr(t, e) {
|
|
|
1550
1551
|
}
|
|
1551
1552
|
function fi(t, e = (r) => r) {
|
|
1552
1553
|
try {
|
|
1553
|
-
return
|
|
1554
|
+
return vr(br(t), e);
|
|
1554
1555
|
} catch (r) {
|
|
1555
1556
|
return console.error(`${r.message}
|
|
1556
1557
|
|
|
1557
1558
|
Message: ${t}`), t;
|
|
1558
1559
|
}
|
|
1559
1560
|
}
|
|
1560
|
-
const te = (t) => typeof t == "string", gi = (t) => typeof t == "function",
|
|
1561
|
-
function
|
|
1561
|
+
const te = (t) => typeof t == "string", gi = (t) => typeof t == "function", zt = /* @__PURE__ */ new Map();
|
|
1562
|
+
function Rt(t) {
|
|
1562
1563
|
return [...Array.isArray(t) ? t : [t], "en"];
|
|
1563
1564
|
}
|
|
1564
|
-
function
|
|
1565
|
-
const i =
|
|
1565
|
+
function yr(t, e, r) {
|
|
1566
|
+
const i = Rt(t);
|
|
1566
1567
|
return Ze(
|
|
1567
1568
|
() => et("date", i, r),
|
|
1568
1569
|
() => new Intl.DateTimeFormat(i, r)
|
|
1569
1570
|
).format(te(e) ? new Date(e) : e);
|
|
1570
1571
|
}
|
|
1571
|
-
function
|
|
1572
|
-
const i =
|
|
1572
|
+
function $t(t, e, r) {
|
|
1573
|
+
const i = Rt(t);
|
|
1573
1574
|
return Ze(
|
|
1574
1575
|
() => et("number", i, r),
|
|
1575
1576
|
() => new Intl.NumberFormat(i, r)
|
|
1576
1577
|
).format(e);
|
|
1577
1578
|
}
|
|
1578
|
-
function
|
|
1579
|
-
const n =
|
|
1579
|
+
function Jt(t, e, r, { offset: i = 0, ...o }) {
|
|
1580
|
+
const n = Rt(t), a = e ? Ze(
|
|
1580
1581
|
() => et("plural-ordinal", n),
|
|
1581
1582
|
() => new Intl.PluralRules(n, { type: "ordinal" })
|
|
1582
1583
|
) : Ze(
|
|
@@ -1587,31 +1588,31 @@ function zt(t, e, r, { offset: i = 0, ...o }) {
|
|
|
1587
1588
|
}
|
|
1588
1589
|
function Ze(t, e) {
|
|
1589
1590
|
const r = t();
|
|
1590
|
-
let i =
|
|
1591
|
-
return i || (i = e(),
|
|
1591
|
+
let i = zt.get(r);
|
|
1592
|
+
return i || (i = e(), zt.set(r, i)), i;
|
|
1592
1593
|
}
|
|
1593
1594
|
function et(t, e, r) {
|
|
1594
1595
|
const i = e.join("-");
|
|
1595
1596
|
return `${t}-${i}-${JSON.stringify(r)}`;
|
|
1596
1597
|
}
|
|
1597
|
-
const
|
|
1598
|
+
const $r = /\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g, bi = (t, e, r = {}) => {
|
|
1598
1599
|
e = e || t;
|
|
1599
1600
|
const i = (n) => te(n) ? r[n] || { style: n } : n, o = (n, a) => {
|
|
1600
|
-
const l = Object.keys(r).length ? i("number") : {}, d =
|
|
1601
|
+
const l = Object.keys(r).length ? i("number") : {}, d = $t(e, n, l);
|
|
1601
1602
|
return a.replace("#", d);
|
|
1602
1603
|
};
|
|
1603
1604
|
return {
|
|
1604
1605
|
plural: (n, a) => {
|
|
1605
|
-
const { offset: l = 0 } = a, d =
|
|
1606
|
+
const { offset: l = 0 } = a, d = Jt(e, !1, n, a);
|
|
1606
1607
|
return o(n - l, d);
|
|
1607
1608
|
},
|
|
1608
1609
|
selectordinal: (n, a) => {
|
|
1609
|
-
const { offset: l = 0 } = a, d =
|
|
1610
|
+
const { offset: l = 0 } = a, d = Jt(e, !0, n, a);
|
|
1610
1611
|
return o(n - l, d);
|
|
1611
1612
|
},
|
|
1612
1613
|
select: (n, a) => a[n] ?? a.other,
|
|
1613
|
-
number: (n, a) =>
|
|
1614
|
-
date: (n, a) =>
|
|
1614
|
+
number: (n, a) => $t(e, n, i(a)),
|
|
1615
|
+
date: (n, a) => yr(e, n, i(a)),
|
|
1615
1616
|
undefined: (n) => n
|
|
1616
1617
|
};
|
|
1617
1618
|
};
|
|
@@ -1620,15 +1621,15 @@ function mi(t, e, r) {
|
|
|
1620
1621
|
const n = bi(e, r, o), a = (d) => Array.isArray(d) ? d.reduce((x, w) => {
|
|
1621
1622
|
if (te(w))
|
|
1622
1623
|
return x + w;
|
|
1623
|
-
const [
|
|
1624
|
+
const [g, O, h] = w;
|
|
1624
1625
|
let y = {};
|
|
1625
1626
|
h != null && !te(h) ? Object.keys(h).forEach((C) => {
|
|
1626
1627
|
y[C] = a(h[C]);
|
|
1627
1628
|
}) : y = h;
|
|
1628
|
-
const _ = n[
|
|
1629
|
+
const _ = n[O](i[g], y);
|
|
1629
1630
|
return _ == null ? x : x + _;
|
|
1630
1631
|
}, "") : d, l = a(t);
|
|
1631
|
-
return te(l) &&
|
|
1632
|
+
return te(l) && $r.test(l) ? li(l.trim()) : te(l) ? l.trim() : l;
|
|
1632
1633
|
};
|
|
1633
1634
|
}
|
|
1634
1635
|
var vi = Object.defineProperty, yi = (t, e, r) => e in t ? vi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, $i = (t, e, r) => (yi(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
@@ -1652,10 +1653,10 @@ class xi {
|
|
|
1652
1653
|
return Array.isArray(this._events[e]);
|
|
1653
1654
|
}
|
|
1654
1655
|
}
|
|
1655
|
-
var wi = Object.defineProperty, _i = (t, e, r) => e in t ? wi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r,
|
|
1656
|
+
var wi = Object.defineProperty, _i = (t, e, r) => e in t ? wi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, _e = (t, e, r) => (_i(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
1656
1657
|
class ki extends xi {
|
|
1657
1658
|
constructor(e) {
|
|
1658
|
-
super(),
|
|
1659
|
+
super(), _e(this, "_locale"), _e(this, "_locales"), _e(this, "_localeData"), _e(this, "_messages"), _e(this, "_missing"), _e(this, "t", this._.bind(this)), this._messages = {}, this._localeData = {}, e.missing != null && (this._missing = e.missing), e.messages != null && this.load(e.messages), e.localeData != null && this.loadLocaleData(e.localeData), (e.locale != null || e.locales != null) && this.activate(e.locale, e.locales);
|
|
1659
1660
|
}
|
|
1660
1661
|
get locale() {
|
|
1661
1662
|
return this._locale;
|
|
@@ -1707,44 +1708,44 @@ class ki extends xi {
|
|
|
1707
1708
|
return gi(a) ? a(this._locale, e) : a;
|
|
1708
1709
|
n && this.emit("missing", { id: e, locale: this._locale });
|
|
1709
1710
|
let l = this.messages[e] || i || e;
|
|
1710
|
-
return process.env.NODE_ENV !== "production" && (l = te(l) ? fi(l) : l), te(l) &&
|
|
1711
|
+
return process.env.NODE_ENV !== "production" && (l = te(l) ? fi(l) : l), te(l) && $r.test(l) ? JSON.parse(`"${l}"`) : te(l) ? l : mi(
|
|
1711
1712
|
l,
|
|
1712
1713
|
this._locale,
|
|
1713
1714
|
this._locales
|
|
1714
1715
|
)(r, o);
|
|
1715
1716
|
}
|
|
1716
1717
|
date(e, r) {
|
|
1717
|
-
return
|
|
1718
|
+
return yr(this._locales || this._locale, e, r);
|
|
1718
1719
|
}
|
|
1719
1720
|
number(e, r) {
|
|
1720
|
-
return
|
|
1721
|
+
return $t(this._locales || this._locale, e, r);
|
|
1721
1722
|
}
|
|
1722
1723
|
}
|
|
1723
1724
|
function Si(t = {}) {
|
|
1724
1725
|
return new ki(t);
|
|
1725
1726
|
}
|
|
1726
|
-
const
|
|
1727
|
+
const V = Si(), Ei = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}'), Ci = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}'), Li = JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}'), Ti = ["en", "nb", "fi"], xr = "en", Gt = (t) => Ti.find(
|
|
1727
1728
|
(e) => t === e || t.toLowerCase().includes(e)
|
|
1728
|
-
) ||
|
|
1729
|
+
) || xr;
|
|
1729
1730
|
function Di() {
|
|
1730
1731
|
if (typeof window > "u") {
|
|
1731
1732
|
const t = process.env.NMP_LANGUAGE || Intl.DateTimeFormat().resolvedOptions().locale;
|
|
1732
|
-
return
|
|
1733
|
+
return Gt(t);
|
|
1733
1734
|
}
|
|
1734
1735
|
try {
|
|
1735
1736
|
const t = document.documentElement.lang;
|
|
1736
|
-
return
|
|
1737
|
+
return Gt(t);
|
|
1737
1738
|
} catch (t) {
|
|
1738
|
-
return console.warn("could not detect locale, falling back to source locale", t),
|
|
1739
|
+
return console.warn("could not detect locale, falling back to source locale", t), xr;
|
|
1739
1740
|
}
|
|
1740
1741
|
}
|
|
1741
1742
|
const Oi = (t, e, r, i) => t === "nb" ? r : t === "fi" ? i : e, lt = (t, e, r) => {
|
|
1742
1743
|
const i = Di(), o = Oi(i, t, e, r);
|
|
1743
|
-
|
|
1744
|
+
V.load(i, o), V.activate(i);
|
|
1744
1745
|
};
|
|
1745
|
-
class
|
|
1746
|
+
class xt extends Re(B) {
|
|
1746
1747
|
constructor() {
|
|
1747
|
-
super(), lt(Ei, Ci, Li), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.highlight = !1, this.noArrow = !1;
|
|
1748
|
+
super(), lt(Ei, Ci, Li), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.highlight = !1, this.canClose = !1, this.noArrow = !1;
|
|
1748
1749
|
}
|
|
1749
1750
|
connectedCallback() {
|
|
1750
1751
|
if (super.connectedCallback(), !this.placement || !Object.keys(Ue).includes(this.placement))
|
|
@@ -1771,7 +1772,7 @@ ${JSON.stringify(
|
|
|
1771
1772
|
this.show ? "" : "hidden"
|
|
1772
1773
|
), this.tooltip || this._attentionEl.style.setProperty(
|
|
1773
1774
|
"--attention-display",
|
|
1774
|
-
this.show ? "
|
|
1775
|
+
this.show ? "flex" : "none"
|
|
1775
1776
|
), this.attentionState = {
|
|
1776
1777
|
isShowing: this.show,
|
|
1777
1778
|
isCallout: this.callout,
|
|
@@ -1786,25 +1787,25 @@ ${JSON.stringify(
|
|
|
1786
1787
|
pointingAtDirection() {
|
|
1787
1788
|
switch (Ue[this._actualDirection]) {
|
|
1788
1789
|
case "top":
|
|
1789
|
-
return
|
|
1790
|
+
return V._({
|
|
1790
1791
|
id: "attention.aria.pointingUp",
|
|
1791
1792
|
message: "pointing up",
|
|
1792
1793
|
comment: "Default screenreader message for top direction in the attention component"
|
|
1793
1794
|
});
|
|
1794
1795
|
case "right":
|
|
1795
|
-
return
|
|
1796
|
+
return V._({
|
|
1796
1797
|
id: "attention.aria.pointingRight",
|
|
1797
1798
|
message: "pointing right",
|
|
1798
1799
|
comment: "Default screenreader message for right direction in the attention component"
|
|
1799
1800
|
});
|
|
1800
1801
|
case "bottom":
|
|
1801
|
-
return
|
|
1802
|
+
return V._({
|
|
1802
1803
|
id: "attention.aria.pointingDown",
|
|
1803
1804
|
message: "pointing down",
|
|
1804
1805
|
comment: "Default screenreader message for bottom direction in the attention component"
|
|
1805
1806
|
});
|
|
1806
1807
|
case "left":
|
|
1807
|
-
return
|
|
1808
|
+
return V._({
|
|
1808
1809
|
id: "attention.aria.pointingLeft",
|
|
1809
1810
|
message: "pointing left",
|
|
1810
1811
|
comment: "Default screenreader message for left direction in the attention component"
|
|
@@ -1816,25 +1817,25 @@ ${JSON.stringify(
|
|
|
1816
1817
|
activeAttentionType() {
|
|
1817
1818
|
switch (!0) {
|
|
1818
1819
|
case this.tooltip:
|
|
1819
|
-
return
|
|
1820
|
+
return V._({
|
|
1820
1821
|
id: "attention.aria.tooltip",
|
|
1821
1822
|
message: "tooltip",
|
|
1822
1823
|
comment: "Default screenreader message for tooltip in the attention component"
|
|
1823
1824
|
});
|
|
1824
1825
|
case this.callout:
|
|
1825
|
-
return
|
|
1826
|
+
return V._({
|
|
1826
1827
|
id: "attention.aria.callout",
|
|
1827
1828
|
message: "callout speech bubble",
|
|
1828
1829
|
comment: "Default screenreader message for callout speech bubble in the attention component"
|
|
1829
1830
|
});
|
|
1830
1831
|
case this.popover:
|
|
1831
|
-
return
|
|
1832
|
+
return V._({
|
|
1832
1833
|
id: "attention.aria.popover",
|
|
1833
1834
|
message: "popover speech bubble",
|
|
1834
1835
|
comment: "Default screenreader message for popover speech bubble in the attention component"
|
|
1835
1836
|
});
|
|
1836
1837
|
case this.highlight:
|
|
1837
|
-
return
|
|
1838
|
+
return V._({
|
|
1838
1839
|
id: "attention.aria.highlight",
|
|
1839
1840
|
message: "highlighted speech bubble",
|
|
1840
1841
|
comment: "Default screenreader message for highlighted speech bubble in the attention component"
|
|
@@ -1860,10 +1861,17 @@ ${JSON.stringify(
|
|
|
1860
1861
|
highlight: this.highlight
|
|
1861
1862
|
}, r = Object.keys(e).find((i) => !!e[i]) || "";
|
|
1862
1863
|
return {
|
|
1863
|
-
wrapper:
|
|
1864
|
-
arrow:
|
|
1864
|
+
wrapper: we[r],
|
|
1865
|
+
arrow: we[`arrow${r.charAt(0).toUpperCase() + r.slice(1)}`]
|
|
1865
1866
|
};
|
|
1866
1867
|
}
|
|
1868
|
+
get _ariaClose() {
|
|
1869
|
+
return V._({
|
|
1870
|
+
id: "attention.aria.close",
|
|
1871
|
+
message: "Close",
|
|
1872
|
+
comment: "Aria label for the close button in attention"
|
|
1873
|
+
});
|
|
1874
|
+
}
|
|
1867
1875
|
firstUpdated() {
|
|
1868
1876
|
this.setAriaLabels(), this.callout && (this._attentionEl.style.position = "relative");
|
|
1869
1877
|
}
|
|
@@ -1877,15 +1885,15 @@ ${JSON.stringify(
|
|
|
1877
1885
|
return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
|
|
1878
1886
|
}
|
|
1879
1887
|
get _wrapperClasses() {
|
|
1880
|
-
return
|
|
1881
|
-
[
|
|
1888
|
+
return ht({
|
|
1889
|
+
[we.base]: !0,
|
|
1882
1890
|
[this._activeVariantClasses.wrapper]: !0
|
|
1883
1891
|
});
|
|
1884
1892
|
}
|
|
1885
1893
|
get _arrowClasses() {
|
|
1886
|
-
return
|
|
1887
|
-
[
|
|
1888
|
-
[
|
|
1894
|
+
return ht({
|
|
1895
|
+
[we.arrowBase]: !0,
|
|
1896
|
+
[we[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase() + this._arrowDirection.slice(1)}`]]: !0,
|
|
1889
1897
|
[this._activeVariantClasses.arrow]: !0
|
|
1890
1898
|
});
|
|
1891
1899
|
}
|
|
@@ -1899,6 +1907,28 @@ ${JSON.stringify(
|
|
|
1899
1907
|
this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
|
|
1900
1908
|
/>`;
|
|
1901
1909
|
}
|
|
1910
|
+
close() {
|
|
1911
|
+
const e = new CustomEvent("close", {
|
|
1912
|
+
bubbles: !0,
|
|
1913
|
+
composed: !0
|
|
1914
|
+
});
|
|
1915
|
+
this.updateComplete.then(() => this.dispatchEvent(e));
|
|
1916
|
+
}
|
|
1917
|
+
keypressed(e) {
|
|
1918
|
+
this.canClose && e.key === "Escape" && (e.preventDefault(), this.close());
|
|
1919
|
+
}
|
|
1920
|
+
get _closeBtnHtml() {
|
|
1921
|
+
return m`
|
|
1922
|
+
<button
|
|
1923
|
+
aria-label="${this._ariaClose}"
|
|
1924
|
+
@click="${this.close}"
|
|
1925
|
+
@keydown=${this.keypressed}
|
|
1926
|
+
class="${we.closeBtn}"
|
|
1927
|
+
>
|
|
1928
|
+
<w-icon-close-16 />
|
|
1929
|
+
</button>
|
|
1930
|
+
`;
|
|
1931
|
+
}
|
|
1902
1932
|
render() {
|
|
1903
1933
|
return m`
|
|
1904
1934
|
<div class=${I(this.className ? this.className : void 0)}>
|
|
@@ -1911,17 +1941,15 @@ ${JSON.stringify(
|
|
|
1911
1941
|
aria-label="${this.defaultAriaLabel()}"
|
|
1912
1942
|
class="${this._wrapperClasses}"
|
|
1913
1943
|
>
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
</div>
|
|
1944
|
+
${this._arrowHtml}
|
|
1945
|
+
<slot name="message"></slot>
|
|
1946
|
+
${this.canClose ? this._closeBtnHtml : dt}
|
|
1918
1947
|
</div>
|
|
1919
1948
|
` : m`
|
|
1920
1949
|
<div id="attention" class="${this._wrapperClasses}">
|
|
1921
|
-
<
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
</div>
|
|
1950
|
+
<slot name="message"></slot>
|
|
1951
|
+
${this._arrowHtml}
|
|
1952
|
+
${this.canClose ? this._closeBtnHtml : dt}
|
|
1925
1953
|
</div>
|
|
1926
1954
|
<slot name="target"></slot>
|
|
1927
1955
|
`}
|
|
@@ -1929,7 +1957,7 @@ ${JSON.stringify(
|
|
|
1929
1957
|
`;
|
|
1930
1958
|
}
|
|
1931
1959
|
}
|
|
1932
|
-
T(
|
|
1960
|
+
T(xt, "properties", {
|
|
1933
1961
|
// Whether Attention element should be visible.
|
|
1934
1962
|
show: { type: Boolean, reflect: !0 },
|
|
1935
1963
|
// Placement according to the target element
|
|
@@ -1943,10 +1971,12 @@ T($t, "properties", {
|
|
|
1943
1971
|
popover: { type: Boolean, reflect: !0 },
|
|
1944
1972
|
// Whether Attention element is rendered as a highlight
|
|
1945
1973
|
highlight: { type: Boolean, reflect: !0 },
|
|
1974
|
+
// Render Attention element with a close button
|
|
1975
|
+
canClose: { type: Boolean, reflect: !0 },
|
|
1946
1976
|
// Render Attention element without an arrow
|
|
1947
1977
|
noArrow: { type: Boolean, reflect: !0 }
|
|
1948
|
-
}), T(
|
|
1949
|
-
|
|
1978
|
+
}), T(xt, "styles", [
|
|
1979
|
+
B.styles,
|
|
1950
1980
|
se`
|
|
1951
1981
|
#attention {
|
|
1952
1982
|
position: absolute;
|
|
@@ -1965,13 +1995,13 @@ T($t, "properties", {
|
|
|
1965
1995
|
}
|
|
1966
1996
|
`
|
|
1967
1997
|
]);
|
|
1968
|
-
customElements.get("w-attention") || customElements.define("w-attention",
|
|
1969
|
-
class
|
|
1998
|
+
customElements.get("w-attention") || customElements.define("w-attention", xt);
|
|
1999
|
+
class wt extends B {
|
|
1970
2000
|
constructor() {
|
|
1971
2001
|
super(), this.variant = "neutral";
|
|
1972
2002
|
}
|
|
1973
2003
|
get _class() {
|
|
1974
|
-
return
|
|
2004
|
+
return ht({
|
|
1975
2005
|
[be.base]: !0,
|
|
1976
2006
|
[be[this.variant]]: !0,
|
|
1977
2007
|
[be.positionBase]: !!this.position,
|
|
@@ -1989,16 +2019,16 @@ class xt extends q {
|
|
|
1989
2019
|
`;
|
|
1990
2020
|
}
|
|
1991
2021
|
}
|
|
1992
|
-
T(
|
|
2022
|
+
T(wt, "properties", {
|
|
1993
2023
|
variant: {
|
|
1994
2024
|
type: "neutral" | "info" | "positive" | "warning" | "negative" | "disabled" | "notification" | "price"
|
|
1995
2025
|
},
|
|
1996
2026
|
position: {
|
|
1997
2027
|
type: "top-left" | "top-right" | "bottom-right" | "bottom-left"
|
|
1998
2028
|
}
|
|
1999
|
-
}), T(
|
|
2000
|
-
customElements.get("w-badge") || customElements.define("w-badge",
|
|
2001
|
-
class
|
|
2029
|
+
}), T(wt, "styles", [B.styles]);
|
|
2030
|
+
customElements.get("w-badge") || customElements.define("w-badge", wt);
|
|
2031
|
+
class _t extends B {
|
|
2002
2032
|
get _class() {
|
|
2003
2033
|
return G({
|
|
2004
2034
|
[oe.box]: !0,
|
|
@@ -2009,7 +2039,7 @@ class wt extends q {
|
|
|
2009
2039
|
});
|
|
2010
2040
|
}
|
|
2011
2041
|
get _optOutRoleWithDefault() {
|
|
2012
|
-
return this.role === "" ?
|
|
2042
|
+
return this.role === "" ? dt : this.role ?? "region";
|
|
2013
2043
|
}
|
|
2014
2044
|
render() {
|
|
2015
2045
|
return m`
|
|
@@ -2019,7 +2049,7 @@ class wt extends q {
|
|
|
2019
2049
|
`;
|
|
2020
2050
|
}
|
|
2021
2051
|
}
|
|
2022
|
-
T(
|
|
2052
|
+
T(_t, "properties", {
|
|
2023
2053
|
bleed: { type: Boolean },
|
|
2024
2054
|
bordered: { type: Boolean },
|
|
2025
2055
|
info: { type: Boolean },
|
|
@@ -2029,8 +2059,8 @@ T(wt, "properties", {
|
|
|
2029
2059
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
2030
2060
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
2031
2061
|
// https://stackoverflow.com/a/61631668
|
|
2032
|
-
T(
|
|
2033
|
-
|
|
2062
|
+
T(_t, "styles", [
|
|
2063
|
+
B.styles,
|
|
2034
2064
|
se`
|
|
2035
2065
|
:host {
|
|
2036
2066
|
display: block;
|
|
@@ -2040,16 +2070,16 @@ T(wt, "styles", [
|
|
|
2040
2070
|
}
|
|
2041
2071
|
`
|
|
2042
2072
|
]);
|
|
2043
|
-
customElements.get("w-box") || customElements.define("w-box",
|
|
2044
|
-
function
|
|
2073
|
+
customElements.get("w-box") || customElements.define("w-box", _t);
|
|
2074
|
+
function Bi(t, e) {
|
|
2045
2075
|
return t.flatMap((r) => [r, e]).slice(0, -1);
|
|
2046
2076
|
}
|
|
2047
|
-
const
|
|
2077
|
+
const qi = JSON.parse('{"breadcrumbs.ariaLabel":"You are here"}'), Ai = JSON.parse('{"breadcrumbs.ariaLabel":"Her er du"}'), Pi = JSON.parse('{"breadcrumbs.ariaLabel":"Olet tässä"}'), Ri = m`<span class=${ke.separator}
|
|
2048
2078
|
>/</span
|
|
2049
2079
|
>`;
|
|
2050
|
-
class
|
|
2080
|
+
class kt extends Re(B) {
|
|
2051
2081
|
constructor() {
|
|
2052
|
-
super(), lt(
|
|
2082
|
+
super(), lt(qi, Ai, Pi), this.ariaLabel = V._({
|
|
2053
2083
|
id: "breadcrumbs.ariaLabel",
|
|
2054
2084
|
message: "You are here",
|
|
2055
2085
|
comment: "Default screenreader message for the breadcrumb component"
|
|
@@ -2061,43 +2091,43 @@ class _t extends Re(q) {
|
|
|
2061
2091
|
if (typeof i == "string") {
|
|
2062
2092
|
const n = o === children.length - 1;
|
|
2063
2093
|
return m`<span
|
|
2064
|
-
class=${
|
|
2094
|
+
class=${ke.text}
|
|
2065
2095
|
aria-current=${n ? "page" : void 0}
|
|
2066
2096
|
>${i}</span
|
|
2067
2097
|
>`;
|
|
2068
2098
|
}
|
|
2069
2099
|
return i.classList.add(
|
|
2070
|
-
i.tagName === "A" ?
|
|
2100
|
+
i.tagName === "A" ? ke.link : ke.text
|
|
2071
2101
|
), i;
|
|
2072
2102
|
});
|
|
2073
|
-
this._children =
|
|
2103
|
+
this._children = Bi(r, Ri);
|
|
2074
2104
|
}
|
|
2075
2105
|
render() {
|
|
2076
2106
|
return m`
|
|
2077
2107
|
<nav aria-labelledby="breadCrumbLabel">
|
|
2078
|
-
<h2 id="breadCrumbLabel" class=${
|
|
2108
|
+
<h2 id="breadCrumbLabel" class=${ke.a11y}>
|
|
2079
2109
|
${this.ariaLabel}
|
|
2080
2110
|
</h2>
|
|
2081
|
-
<div class=${
|
|
2111
|
+
<div class=${ke.wrapper}>${this._children}</div>
|
|
2082
2112
|
</nav>
|
|
2083
2113
|
`;
|
|
2084
2114
|
}
|
|
2085
2115
|
}
|
|
2086
|
-
T(
|
|
2116
|
+
T(kt, "styles", [B.styles]), T(kt, "properties", {
|
|
2087
2117
|
ariaLabel: { type: String }
|
|
2088
2118
|
});
|
|
2089
|
-
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs",
|
|
2090
|
-
const
|
|
2091
|
-
class
|
|
2119
|
+
customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", kt);
|
|
2120
|
+
const Pe = typeof window < "u";
|
|
2121
|
+
class St extends B {
|
|
2092
2122
|
constructor() {
|
|
2093
|
-
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url =
|
|
2123
|
+
super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = Pe ? window.location.href : "";
|
|
2094
2124
|
}
|
|
2095
2125
|
async connectedCallback() {
|
|
2096
2126
|
if (super.connectedCallback(), !this.api) {
|
|
2097
2127
|
console.error('Broadcast "api" attribute invalid or undefined');
|
|
2098
2128
|
return;
|
|
2099
2129
|
}
|
|
2100
|
-
|
|
2130
|
+
Pe && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
|
|
2101
2131
|
}
|
|
2102
2132
|
async _fetchMessage() {
|
|
2103
2133
|
const e = `${this.api}?path=${this.url}`;
|
|
@@ -2115,7 +2145,7 @@ class kt extends q {
|
|
|
2115
2145
|
const e = this._messages.filter((r) => !this._hiddenMessageIds.includes(r.id));
|
|
2116
2146
|
return m`
|
|
2117
2147
|
<aside class=${`${e.length === 0 ? "hidden" : "mb-16"}`}>
|
|
2118
|
-
${
|
|
2148
|
+
${er(
|
|
2119
2149
|
e,
|
|
2120
2150
|
({ id: r }) => `broadcast-${r}`,
|
|
2121
2151
|
({ id: r, message: i }) => m`<w-toast
|
|
@@ -2131,7 +2161,7 @@ class kt extends q {
|
|
|
2131
2161
|
`;
|
|
2132
2162
|
}
|
|
2133
2163
|
}
|
|
2134
|
-
T(
|
|
2164
|
+
T(St, "properties", {
|
|
2135
2165
|
_messages: {
|
|
2136
2166
|
state: !0,
|
|
2137
2167
|
hasChanged(e, r) {
|
|
@@ -2148,9 +2178,9 @@ T(kt, "properties", {
|
|
|
2148
2178
|
interval: { type: Number, attribute: !0, reflect: !0 },
|
|
2149
2179
|
url: { type: String, attribute: !0, reflect: !0 },
|
|
2150
2180
|
api: { type: String, attribute: !0, reflect: !0 }
|
|
2151
|
-
}), T(
|
|
2152
|
-
customElements.get("w-broadcast") || customElements.define("w-broadcast",
|
|
2153
|
-
const Mi = JSON.parse('{"button.aria.loading":"Loading..."}'), Ni = JSON.parse('{"button.aria.loading":"Laster..."}'), Ii = JSON.parse('{"button.aria.loading":"Ladataan..."}'),
|
|
2181
|
+
}), T(St, "styles", [B.styles]);
|
|
2182
|
+
customElements.get("w-broadcast") || customElements.define("w-broadcast", St);
|
|
2183
|
+
const Mi = JSON.parse('{"button.aria.loading":"Loading..."}'), Ni = JSON.parse('{"button.aria.loading":"Laster..."}'), Ii = JSON.parse('{"button.aria.loading":"Ladataan..."}'), Kt = [
|
|
2154
2184
|
"primary",
|
|
2155
2185
|
"secondary",
|
|
2156
2186
|
"negative",
|
|
@@ -2158,19 +2188,19 @@ const Mi = JSON.parse('{"button.aria.loading":"Loading..."}'), Ni = JSON.parse('
|
|
|
2158
2188
|
"pill",
|
|
2159
2189
|
"link"
|
|
2160
2190
|
];
|
|
2161
|
-
class je extends Re(
|
|
2191
|
+
class je extends Re(B) {
|
|
2162
2192
|
constructor() {
|
|
2163
|
-
super(), lt(Mi, Ni, Ii), this.variant = "secondary", this.ariaValueTextLoading =
|
|
2193
|
+
super(), lt(Mi, Ni, Ii), this.variant = "secondary", this.ariaValueTextLoading = V._({
|
|
2164
2194
|
id: "button.aria.loading",
|
|
2165
2195
|
message: "Loading...",
|
|
2166
2196
|
comment: "Screenreader message for buttons that are loading"
|
|
2167
2197
|
});
|
|
2168
2198
|
}
|
|
2169
2199
|
connectedCallback() {
|
|
2170
|
-
if (super.connectedCallback(), !
|
|
2200
|
+
if (super.connectedCallback(), !Kt.includes(this.variant))
|
|
2171
2201
|
throw new Error(
|
|
2172
2202
|
`Invalid "variant" attribute. Set its value to one of the following:
|
|
2173
|
-
${
|
|
2203
|
+
${Kt.join(
|
|
2174
2204
|
", "
|
|
2175
2205
|
)}.`
|
|
2176
2206
|
);
|
|
@@ -2250,7 +2280,7 @@ ${Gt.join(
|
|
|
2250
2280
|
}
|
|
2251
2281
|
}
|
|
2252
2282
|
T(je, "shadowRootOptions", {
|
|
2253
|
-
...
|
|
2283
|
+
...B.shadowRootOptions,
|
|
2254
2284
|
delegatesFocus: !0
|
|
2255
2285
|
}), T(je, "properties", {
|
|
2256
2286
|
type: { type: "button" | "submit" | "reset", reflect: !0 },
|
|
@@ -2264,13 +2294,13 @@ T(je, "shadowRootOptions", {
|
|
|
2264
2294
|
rel: { type: String, reflect: !0 },
|
|
2265
2295
|
fullWidth: { type: Boolean, reflect: !0 },
|
|
2266
2296
|
buttonClass: { type: String, reflect: !0 }
|
|
2267
|
-
}), T(je, "styles", [
|
|
2297
|
+
}), T(je, "styles", [B.styles]);
|
|
2268
2298
|
customElements.get("w-button") || customElements.define("w-button", je);
|
|
2269
|
-
const
|
|
2299
|
+
const Xt = {
|
|
2270
2300
|
ENTER: "Enter",
|
|
2271
2301
|
SPACE: " "
|
|
2272
2302
|
};
|
|
2273
|
-
class
|
|
2303
|
+
class Et extends B {
|
|
2274
2304
|
constructor() {
|
|
2275
2305
|
super(), this.selected = !1, this.flat = !1, this.clickable = !1;
|
|
2276
2306
|
}
|
|
@@ -2306,7 +2336,7 @@ class St extends q {
|
|
|
2306
2336
|
></span>`;
|
|
2307
2337
|
}
|
|
2308
2338
|
keypressed(e) {
|
|
2309
|
-
!this.clickable || e.altKey || e.ctrlKey || (e.key ===
|
|
2339
|
+
!this.clickable || e.altKey || e.ctrlKey || (e.key === Xt.ENTER || e.key === Xt.SPACE) && (e.preventDefault(), this.click());
|
|
2310
2340
|
}
|
|
2311
2341
|
render() {
|
|
2312
2342
|
return m`
|
|
@@ -2323,8 +2353,8 @@ class St extends q {
|
|
|
2323
2353
|
`;
|
|
2324
2354
|
}
|
|
2325
2355
|
}
|
|
2326
|
-
T(
|
|
2327
|
-
|
|
2356
|
+
T(Et, "styles", [
|
|
2357
|
+
B.styles,
|
|
2328
2358
|
se`
|
|
2329
2359
|
a::after {
|
|
2330
2360
|
content: "";
|
|
@@ -2338,13 +2368,13 @@ T(St, "styles", [
|
|
|
2338
2368
|
display: block;
|
|
2339
2369
|
}
|
|
2340
2370
|
`
|
|
2341
|
-
]), T(
|
|
2371
|
+
]), T(Et, "properties", {
|
|
2342
2372
|
selected: { type: Boolean, reflect: !0 },
|
|
2343
2373
|
flat: { type: Boolean },
|
|
2344
2374
|
clickable: { type: Boolean }
|
|
2345
2375
|
});
|
|
2346
|
-
customElements.get("w-card") || customElements.define("w-card",
|
|
2347
|
-
class
|
|
2376
|
+
customElements.get("w-card") || customElements.define("w-card", Et);
|
|
2377
|
+
class Ct extends Re(B) {
|
|
2348
2378
|
constructor() {
|
|
2349
2379
|
super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
|
|
2350
2380
|
}
|
|
@@ -2413,7 +2443,7 @@ class Et extends Re(q) {
|
|
|
2413
2443
|
</div>`;
|
|
2414
2444
|
}
|
|
2415
2445
|
}
|
|
2416
|
-
T(
|
|
2446
|
+
T(Ct, "properties", {
|
|
2417
2447
|
expanded: { type: Boolean, reflect: !0 },
|
|
2418
2448
|
title: { type: String },
|
|
2419
2449
|
info: { type: Boolean },
|
|
@@ -2429,8 +2459,8 @@ T(Et, "properties", {
|
|
|
2429
2459
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
2430
2460
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
2431
2461
|
// https://stackoverflow.com/a/61631668
|
|
2432
|
-
T(
|
|
2433
|
-
|
|
2462
|
+
T(Ct, "styles", [
|
|
2463
|
+
B.styles,
|
|
2434
2464
|
se`
|
|
2435
2465
|
:host {
|
|
2436
2466
|
display: block;
|
|
@@ -2440,30 +2470,30 @@ T(Et, "styles", [
|
|
|
2440
2470
|
}
|
|
2441
2471
|
`
|
|
2442
2472
|
]);
|
|
2443
|
-
customElements.get("w-expandable") || customElements.define("w-expandable",
|
|
2473
|
+
customElements.get("w-expandable") || customElements.define("w-expandable", Ct);
|
|
2444
2474
|
const Qi = JSON.parse('{"select.label.optional":"(optional)"}'), Ui = JSON.parse('{"select.label.optional":"(valgfritt)"}'), Fi = JSON.parse('{"select.label.optional":"(valinnainen)"}');
|
|
2445
|
-
var tt,
|
|
2446
|
-
class
|
|
2475
|
+
var tt, wr, rt, _r, it, kr, ot, Sr, Se, We, Ee, Ve;
|
|
2476
|
+
class Lt extends Re(B) {
|
|
2447
2477
|
constructor() {
|
|
2448
2478
|
super();
|
|
2449
2479
|
ge(this, tt);
|
|
2450
2480
|
ge(this, rt);
|
|
2451
2481
|
ge(this, it);
|
|
2452
2482
|
ge(this, ot);
|
|
2453
|
-
ge(this, ke);
|
|
2454
2483
|
ge(this, Se);
|
|
2484
|
+
ge(this, Ee);
|
|
2455
2485
|
lt(Qi, Ui, Fi), this._options = this.innerHTML;
|
|
2456
2486
|
}
|
|
2457
2487
|
render() {
|
|
2458
2488
|
return m`<div class="${xe.wrapper}">
|
|
2459
2489
|
${He(
|
|
2460
2490
|
this.label,
|
|
2461
|
-
() => m`<label class="${X(this, rt,
|
|
2491
|
+
() => m`<label class="${X(this, rt, _r)}" for="${X(this, Se, We)}">
|
|
2462
2492
|
${this.label}
|
|
2463
2493
|
${He(
|
|
2464
2494
|
this.optional,
|
|
2465
|
-
() => m`<span class="${
|
|
2466
|
-
>${
|
|
2495
|
+
() => m`<span class="${Be.optional}"
|
|
2496
|
+
>${V._({
|
|
2467
2497
|
id: "select.label.optional",
|
|
2468
2498
|
message: "(optional)",
|
|
2469
2499
|
comment: "Shown behind label when marked as optional"
|
|
@@ -2474,53 +2504,53 @@ class Ct extends Re(q) {
|
|
|
2474
2504
|
)}
|
|
2475
2505
|
<div class="${xe.selectWrapper}">
|
|
2476
2506
|
<select
|
|
2477
|
-
class="${X(this, tt,
|
|
2478
|
-
id="${X(this,
|
|
2507
|
+
class="${X(this, tt, wr)}"
|
|
2508
|
+
id="${X(this, Se, We)}"
|
|
2479
2509
|
?autofocus=${this.autoFocus}
|
|
2480
|
-
aria-describedby="${I(X(this,
|
|
2510
|
+
aria-describedby="${I(X(this, Ee, Ve))}"
|
|
2481
2511
|
aria-invalid="${I(this.invalid)}"
|
|
2482
|
-
aria-errormessage="${I(this.invalid && X(this,
|
|
2512
|
+
aria-errormessage="${I(this.invalid && X(this, Ee, Ve))}"
|
|
2483
2513
|
>
|
|
2484
|
-
${
|
|
2514
|
+
${tr(this._options)}
|
|
2485
2515
|
</select>
|
|
2486
|
-
<div class="${X(this, ot,
|
|
2516
|
+
<div class="${X(this, ot, Sr)}">
|
|
2487
2517
|
<w-icon-chevron-down-16></w-icon-chevron-down-16>
|
|
2488
2518
|
</div>
|
|
2489
2519
|
</div>
|
|
2490
2520
|
${He(
|
|
2491
2521
|
this.always || this.invalid,
|
|
2492
|
-
() => m`<div id="${X(this,
|
|
2522
|
+
() => m`<div id="${X(this, Ee, Ve)}" class="${X(this, it, kr)}">
|
|
2493
2523
|
${this.hint}
|
|
2494
2524
|
</div>`
|
|
2495
2525
|
)}
|
|
2496
2526
|
</div>`;
|
|
2497
2527
|
}
|
|
2498
2528
|
}
|
|
2499
|
-
tt = new WeakSet(),
|
|
2529
|
+
tt = new WeakSet(), wr = function() {
|
|
2500
2530
|
return ue({
|
|
2501
2531
|
[xe.default]: !0,
|
|
2502
2532
|
[xe.invalid]: this.invalid
|
|
2503
2533
|
});
|
|
2504
|
-
}, rt = new WeakSet(),
|
|
2534
|
+
}, rt = new WeakSet(), _r = function() {
|
|
2505
2535
|
return ue({
|
|
2506
|
-
[
|
|
2507
|
-
[
|
|
2536
|
+
[Be.label]: !0,
|
|
2537
|
+
[Be.labelInvalid]: this.invalid
|
|
2508
2538
|
});
|
|
2509
|
-
}, it = new WeakSet(),
|
|
2539
|
+
}, it = new WeakSet(), kr = function() {
|
|
2510
2540
|
return ue({
|
|
2511
2541
|
[ze.helpText]: !0,
|
|
2512
2542
|
[ze.helpTextInvalid]: this.invalid
|
|
2513
2543
|
});
|
|
2514
|
-
}, ot = new WeakSet(),
|
|
2544
|
+
}, ot = new WeakSet(), Sr = function() {
|
|
2515
2545
|
return ue({
|
|
2516
2546
|
[xe.chevron]: !0,
|
|
2517
2547
|
[xe.chevronDisabled]: this.disabled
|
|
2518
2548
|
});
|
|
2519
|
-
},
|
|
2549
|
+
}, Se = new WeakSet(), We = function() {
|
|
2520
2550
|
return "select_id";
|
|
2521
|
-
},
|
|
2522
|
-
return this.hint ? `${X(this,
|
|
2523
|
-
}, T(
|
|
2551
|
+
}, Ee = new WeakSet(), Ve = function() {
|
|
2552
|
+
return this.hint ? `${X(this, Se, We)}__hint` : void 0;
|
|
2553
|
+
}, T(Lt, "properties", {
|
|
2524
2554
|
// Whether the element should receive focus on render
|
|
2525
2555
|
autoFocus: { type: Boolean, reflect: !0 },
|
|
2526
2556
|
// Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
@@ -2534,9 +2564,9 @@ tt = new WeakSet(), xr = function() {
|
|
|
2534
2564
|
// Whether to show optional text
|
|
2535
2565
|
optional: { type: Boolean, reflect: !0 },
|
|
2536
2566
|
_options: { state: !0 }
|
|
2537
|
-
}), T(
|
|
2538
|
-
customElements.get("w-select") || customElements.define("w-select",
|
|
2539
|
-
class
|
|
2567
|
+
}), T(Lt, "styles", [B.styles]);
|
|
2568
|
+
customElements.get("w-select") || customElements.define("w-select", Lt);
|
|
2569
|
+
class Tt extends B {
|
|
2540
2570
|
constructor() {
|
|
2541
2571
|
super(), this.type = "text";
|
|
2542
2572
|
}
|
|
@@ -2558,8 +2588,8 @@ class Lt extends q {
|
|
|
2558
2588
|
}
|
|
2559
2589
|
get _labelStyles() {
|
|
2560
2590
|
return G({
|
|
2561
|
-
[
|
|
2562
|
-
[
|
|
2591
|
+
[Be.label]: !0,
|
|
2592
|
+
[Be.labelInvalid]: this.invalid
|
|
2563
2593
|
});
|
|
2564
2594
|
}
|
|
2565
2595
|
get _label() {
|
|
@@ -2627,7 +2657,7 @@ class Lt extends q {
|
|
|
2627
2657
|
`;
|
|
2628
2658
|
}
|
|
2629
2659
|
}
|
|
2630
|
-
T(
|
|
2660
|
+
T(Tt, "properties", {
|
|
2631
2661
|
disabled: { type: Boolean },
|
|
2632
2662
|
invalid: { type: Boolean },
|
|
2633
2663
|
id: { type: String },
|
|
@@ -2651,8 +2681,8 @@ T(Lt, "properties", {
|
|
|
2651
2681
|
// ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors,
|
|
2652
2682
|
// so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important.
|
|
2653
2683
|
// https://stackoverflow.com/a/61631668
|
|
2654
|
-
T(
|
|
2655
|
-
|
|
2684
|
+
T(Tt, "styles", [
|
|
2685
|
+
B.styles,
|
|
2656
2686
|
se`
|
|
2657
2687
|
:host {
|
|
2658
2688
|
display: block;
|
|
@@ -2662,9 +2692,9 @@ T(Lt, "styles", [
|
|
|
2662
2692
|
}
|
|
2663
2693
|
`
|
|
2664
2694
|
]);
|
|
2665
|
-
customElements.get("w-textfield") || customElements.define("w-textfield",
|
|
2695
|
+
customElements.get("w-textfield") || customElements.define("w-textfield", Tt);
|
|
2666
2696
|
function Zi(t, e) {
|
|
2667
|
-
if (!
|
|
2697
|
+
if (!Pe)
|
|
2668
2698
|
return;
|
|
2669
2699
|
const r = customElements.get("w-toast-container").init(), i = {
|
|
2670
2700
|
id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
|
|
@@ -2676,67 +2706,67 @@ function Zi(t, e) {
|
|
|
2676
2706
|
return r.set(i), i;
|
|
2677
2707
|
}
|
|
2678
2708
|
function eo(t) {
|
|
2679
|
-
return
|
|
2709
|
+
return Pe ? customElements.get("w-toast-container").init().del(t) : void 0;
|
|
2680
2710
|
}
|
|
2681
2711
|
function to(t, e) {
|
|
2682
|
-
if (!
|
|
2712
|
+
if (!Pe)
|
|
2683
2713
|
return;
|
|
2684
2714
|
const r = customElements.get("w-toast-container").init();
|
|
2685
2715
|
return r.set({ ...r.get(t), ...e }), r.get(t);
|
|
2686
2716
|
}
|
|
2687
|
-
const
|
|
2688
|
-
let
|
|
2689
|
-
if (
|
|
2690
|
-
const t = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: r }) =>
|
|
2717
|
+
const Mt = typeof window < "u";
|
|
2718
|
+
let Er = !0;
|
|
2719
|
+
if (Mt) {
|
|
2720
|
+
const t = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: r }) => Er = !r;
|
|
2691
2721
|
t.addEventListener && t.addEventListener("change", e), e(t);
|
|
2692
2722
|
}
|
|
2693
|
-
const
|
|
2723
|
+
const Cr = (t) => {
|
|
2694
2724
|
t.style.transition = null, t.style.backfaceVisibility = null, t.style.overflow = null;
|
|
2695
|
-
},
|
|
2696
|
-
const e =
|
|
2725
|
+
}, Lr = (t) => {
|
|
2726
|
+
const e = Er ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
|
|
2697
2727
|
t.style.transition = `height ${e}`, t.style.backfaceVisibility = "hidden", t.style.overflow = "hidden";
|
|
2698
2728
|
}, Hi = (t, e) => () => {
|
|
2699
2729
|
t.style.height = "auto", t.style.overflow = null, e && e();
|
|
2700
2730
|
}, ji = (t) => () => {
|
|
2701
2731
|
t && t();
|
|
2702
|
-
},
|
|
2732
|
+
}, Tr = (t, e) => {
|
|
2703
2733
|
const r = (() => {
|
|
2704
2734
|
if (!e)
|
|
2705
2735
|
return new Promise((n) => {
|
|
2706
2736
|
e = n;
|
|
2707
2737
|
});
|
|
2708
2738
|
})(), i = Hi(t, e);
|
|
2709
|
-
|
|
2739
|
+
Cr(t), t.style.height = "auto";
|
|
2710
2740
|
let o = t.scrollHeight;
|
|
2711
|
-
if (
|
|
2712
|
-
t.addEventListener("transitionend", i, { once: !0 }), t.style.height = "0px", t.style.transitionTimingFunction = "ease-out",
|
|
2741
|
+
if (Mt && requestAnimationFrame(() => {
|
|
2742
|
+
t.addEventListener("transitionend", i, { once: !0 }), t.style.height = "0px", t.style.transitionTimingFunction = "ease-out", Lr(t), requestAnimationFrame(() => t.style.height = o + "px");
|
|
2713
2743
|
}), r)
|
|
2714
2744
|
return r;
|
|
2715
|
-
},
|
|
2745
|
+
}, Dr = (t, e) => {
|
|
2716
2746
|
const r = (() => {
|
|
2717
2747
|
if (!e)
|
|
2718
2748
|
return new Promise((n) => {
|
|
2719
2749
|
e = n;
|
|
2720
2750
|
});
|
|
2721
2751
|
})(), i = ji(e);
|
|
2722
|
-
|
|
2752
|
+
Cr(t);
|
|
2723
2753
|
let o = t.scrollHeight;
|
|
2724
|
-
if (
|
|
2725
|
-
t.addEventListener("transitionend", i, { once: !0 }), t.style.height = o + "px", t.style.transitionTimingFunction = "ease-in",
|
|
2754
|
+
if (Mt && requestAnimationFrame(() => {
|
|
2755
|
+
t.addEventListener("transitionend", i, { once: !0 }), t.style.height = o + "px", t.style.transitionTimingFunction = "ease-in", Lr(t), requestAnimationFrame(() => t.style.height = "0px");
|
|
2726
2756
|
}), r)
|
|
2727
2757
|
return r;
|
|
2728
|
-
},
|
|
2758
|
+
}, Yt = (t) => {
|
|
2729
2759
|
const e = {};
|
|
2730
2760
|
for (const [r, i] of Object.entries(t))
|
|
2731
2761
|
for (const o of r.split(" "))
|
|
2732
2762
|
e[o] = i;
|
|
2733
|
-
return
|
|
2763
|
+
return Zt(e);
|
|
2734
2764
|
}, le = {
|
|
2735
2765
|
success: "success",
|
|
2736
2766
|
error: "error",
|
|
2737
2767
|
warning: "warning"
|
|
2738
2768
|
};
|
|
2739
|
-
class
|
|
2769
|
+
class Dt extends B {
|
|
2740
2770
|
constructor() {
|
|
2741
2771
|
super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
|
|
2742
2772
|
}
|
|
@@ -2747,10 +2777,10 @@ class Tt extends q {
|
|
|
2747
2777
|
super.disconnectedCallback();
|
|
2748
2778
|
}
|
|
2749
2779
|
updated() {
|
|
2750
|
-
!this._expanded && this._wrapper &&
|
|
2780
|
+
!this._expanded && this._wrapper && Tr(this._wrapper, () => this._expanded = !0);
|
|
2751
2781
|
}
|
|
2752
2782
|
get _primaryClasses() {
|
|
2753
|
-
return
|
|
2783
|
+
return Yt({
|
|
2754
2784
|
[Y.toast]: !0,
|
|
2755
2785
|
[Y.positive]: this.type === le.success,
|
|
2756
2786
|
[Y.warning]: this.type === le.warning,
|
|
@@ -2758,7 +2788,7 @@ class Tt extends q {
|
|
|
2758
2788
|
});
|
|
2759
2789
|
}
|
|
2760
2790
|
get _iconClasses() {
|
|
2761
|
-
return
|
|
2791
|
+
return Yt({
|
|
2762
2792
|
[Y.icon]: !0,
|
|
2763
2793
|
[Y.iconPositive]: this.type == le.success,
|
|
2764
2794
|
[Y.iconWarning]: this.type === le.warning,
|
|
@@ -2786,7 +2816,7 @@ class Tt extends q {
|
|
|
2786
2816
|
}
|
|
2787
2817
|
async collapse() {
|
|
2788
2818
|
return new Promise((e) => {
|
|
2789
|
-
this._expanded && this._wrapper ?
|
|
2819
|
+
this._expanded && this._wrapper ? Dr(this._wrapper, e) : e();
|
|
2790
2820
|
});
|
|
2791
2821
|
}
|
|
2792
2822
|
close() {
|
|
@@ -2816,21 +2846,21 @@ class Tt extends q {
|
|
|
2816
2846
|
</section>` : m``;
|
|
2817
2847
|
}
|
|
2818
2848
|
}
|
|
2819
|
-
T(
|
|
2820
|
-
|
|
2849
|
+
T(Dt, "styles", [
|
|
2850
|
+
B.styles,
|
|
2821
2851
|
se`
|
|
2822
2852
|
:host {
|
|
2823
2853
|
display: block;
|
|
2824
2854
|
}
|
|
2825
2855
|
`
|
|
2826
|
-
]), T(
|
|
2856
|
+
]), T(Dt, "properties", {
|
|
2827
2857
|
id: { type: String, attribute: !0, reflect: !0 },
|
|
2828
2858
|
type: { type: String, attribute: !0, reflect: !0 },
|
|
2829
2859
|
text: { type: String, attribute: !0, reflect: !0 },
|
|
2830
2860
|
canclose: { type: Boolean, attribute: !0, reflect: !0 }
|
|
2831
2861
|
});
|
|
2832
|
-
customElements.get("w-toast") || customElements.define("w-toast",
|
|
2833
|
-
class
|
|
2862
|
+
customElements.get("w-toast") || customElements.define("w-toast", Dt);
|
|
2863
|
+
class Ot extends B {
|
|
2834
2864
|
constructor() {
|
|
2835
2865
|
super(), this._toasts = /* @__PURE__ */ new Map();
|
|
2836
2866
|
}
|
|
@@ -2910,7 +2940,7 @@ class Dt extends q {
|
|
|
2910
2940
|
return m`
|
|
2911
2941
|
<aside class="${ct.container}">
|
|
2912
2942
|
<div class="${ct.toaster}" id="w-toast-container-list">
|
|
2913
|
-
${
|
|
2943
|
+
${er(
|
|
2914
2944
|
this._toastsArray,
|
|
2915
2945
|
(e) => e.id,
|
|
2916
2946
|
(e) => m` <w-toast
|
|
@@ -2928,18 +2958,18 @@ class Dt extends q {
|
|
|
2928
2958
|
`;
|
|
2929
2959
|
}
|
|
2930
2960
|
}
|
|
2931
|
-
T(
|
|
2932
|
-
|
|
2961
|
+
T(Ot, "styles", [
|
|
2962
|
+
B.styles,
|
|
2933
2963
|
se`
|
|
2934
2964
|
:host {
|
|
2935
2965
|
display: block;
|
|
2936
2966
|
}
|
|
2937
2967
|
`
|
|
2938
|
-
]), T(
|
|
2968
|
+
]), T(Ot, "properties", {
|
|
2939
2969
|
_toasts: { state: !0 }
|
|
2940
2970
|
});
|
|
2941
|
-
customElements.get("w-toast-container") || customElements.define("w-toast-container",
|
|
2942
|
-
class
|
|
2971
|
+
customElements.get("w-toast-container") || customElements.define("w-toast-container", Ot);
|
|
2972
|
+
class Bt extends B {
|
|
2943
2973
|
constructor() {
|
|
2944
2974
|
super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
|
|
2945
2975
|
}
|
|
@@ -2952,7 +2982,7 @@ class Ot extends q {
|
|
|
2952
2982
|
this._mounted = !0;
|
|
2953
2983
|
return;
|
|
2954
2984
|
}
|
|
2955
|
-
this.show &&
|
|
2985
|
+
this.show && Tr(this._wrapper), !this.show && !this._removeElement && Dr(this._wrapper, () => this._removeElement = !0);
|
|
2956
2986
|
}
|
|
2957
2987
|
}
|
|
2958
2988
|
get _wrapper() {
|
|
@@ -2964,22 +2994,22 @@ class Ot extends q {
|
|
|
2964
2994
|
</div>`;
|
|
2965
2995
|
}
|
|
2966
2996
|
}
|
|
2967
|
-
T(
|
|
2997
|
+
T(Bt, "properties", {
|
|
2968
2998
|
show: {
|
|
2969
2999
|
type: Boolean,
|
|
2970
3000
|
reflect: !0
|
|
2971
3001
|
},
|
|
2972
3002
|
_removeElement: { type: Boolean, state: !0 }
|
|
2973
|
-
}), T(
|
|
2974
|
-
|
|
3003
|
+
}), T(Bt, "styles", [
|
|
3004
|
+
B.styles,
|
|
2975
3005
|
se`
|
|
2976
3006
|
:host {
|
|
2977
3007
|
display: block;
|
|
2978
3008
|
}
|
|
2979
3009
|
`
|
|
2980
3010
|
]);
|
|
2981
|
-
customElements.get("w-expand-transition") || customElements.define("w-expand-transition",
|
|
2982
|
-
class qt extends
|
|
3011
|
+
customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Bt);
|
|
3012
|
+
class qt extends B {
|
|
2983
3013
|
get _markup() {
|
|
2984
3014
|
return `<h${this.level}
|
|
2985
3015
|
style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
|
|
@@ -2989,30 +3019,30 @@ class qt extends q {
|
|
|
2989
3019
|
`;
|
|
2990
3020
|
}
|
|
2991
3021
|
render() {
|
|
2992
|
-
return this.level ?
|
|
3022
|
+
return this.level ? tr(this._markup) : m`<slot></slot>`;
|
|
2993
3023
|
}
|
|
2994
3024
|
}
|
|
2995
3025
|
T(qt, "properties", {
|
|
2996
3026
|
level: { type: Number }
|
|
2997
|
-
}), T(qt, "styles", [
|
|
3027
|
+
}), T(qt, "styles", [B.styles]);
|
|
2998
3028
|
customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", qt);
|
|
2999
3029
|
export {
|
|
3000
|
-
|
|
3030
|
+
Bt as ExpandTransition,
|
|
3001
3031
|
qt as UnstyledHeading,
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3032
|
+
pt as WarpAffix,
|
|
3033
|
+
ft as WarpAlert,
|
|
3034
|
+
xt as WarpAttention,
|
|
3035
|
+
wt as WarpBadge,
|
|
3036
|
+
_t as WarpBox,
|
|
3037
|
+
kt as WarpBreadcrumbs,
|
|
3038
|
+
St as WarpBroadcast,
|
|
3009
3039
|
je as WarpButton,
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3040
|
+
Et as WarpCard,
|
|
3041
|
+
Ct as WarpExpandable,
|
|
3042
|
+
Lt as WarpSelect,
|
|
3043
|
+
Tt as WarpTextField,
|
|
3044
|
+
Dt as WarpToast,
|
|
3045
|
+
Ot as WarpToastContainer,
|
|
3016
3046
|
eo as removeToast,
|
|
3017
3047
|
Zi as toast,
|
|
3018
3048
|
to as updateToast
|