le-kit 0.1.0 → 0.1.2
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/admin/index.d.ts +2 -0
- package/dist/admin/index.js +6 -0
- package/dist/admin/loader.js +9 -0
- package/dist/components/index.js +7 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/le-box.js +4 -4
- package/dist/components/le-box.js.map +1 -1
- package/dist/components/le-button.js +1 -1
- package/dist/{core/components/p-DxxFRStS.js → components/le-button2.js} +53 -15
- package/dist/components/le-button2.js.map +1 -0
- package/dist/components/le-card.js +4 -4
- package/dist/components/le-card.js.map +1 -1
- package/dist/components/le-checkbox.js +1 -1
- package/dist/components/le-component.js +1 -1
- package/dist/components/le-number-input.js +6 -6
- package/dist/components/le-number-input.js.map +1 -1
- package/dist/components/le-popover.js +1 -1
- package/dist/components/{p-CXeWQG7d.js → le-popover2.js} +6 -6
- package/dist/components/le-popover2.js.map +1 -0
- package/dist/components/le-popup.js +8 -8
- package/dist/components/le-popup.js.map +1 -1
- package/dist/components/le-round-progress.js +2 -2
- package/dist/components/le-round-progress.js.map +1 -1
- package/dist/components/le-slot.js +1 -1
- package/dist/components/le-stack.js +4 -4
- package/dist/components/le-stack.js.map +1 -1
- package/dist/components/le-string-input.js +1 -1
- package/dist/components/le-text.js +4 -4
- package/dist/components/le-text.js.map +1 -1
- package/dist/components/le-turntable.js +2 -2
- package/dist/components/le-turntable.js.map +1 -1
- package/dist/core/components/index.js +7 -2
- package/dist/core/components/index.js.map +1 -1
- package/dist/core/components/le-box.js +4 -4
- package/dist/core/components/le-box.js.map +1 -1
- package/dist/core/components/le-button.js +1 -1
- package/dist/{components/p-DxxFRStS.js → core/components/le-button2.js} +62 -74
- package/dist/core/components/le-button2.js.map +1 -0
- package/dist/core/components/le-card.js +4 -4
- package/dist/core/components/le-card.js.map +1 -1
- package/dist/core/components/le-checkbox.js +1 -1
- package/dist/core/components/le-number-input.js +6 -6
- package/dist/core/components/le-number-input.js.map +1 -1
- package/dist/core/components/le-popover.js +1 -1
- package/dist/core/components/{p-CXeWQG7d.js → le-popover2.js} +6 -6
- package/dist/core/components/le-popover2.js.map +1 -0
- package/dist/core/components/le-popup.js +8 -8
- package/dist/core/components/le-popup.js.map +1 -1
- package/dist/core/components/le-round-progress.js +2 -2
- package/dist/core/components/le-round-progress.js.map +1 -1
- package/dist/core/components/le-stack.js +4 -4
- package/dist/core/components/le-stack.js.map +1 -1
- package/dist/core/components/le-string-input.js +1 -1
- package/dist/core/components/le-text.js +4 -4
- package/dist/core/components/le-text.js.map +1 -1
- package/dist/core/components/le-turntable.js +2 -2
- package/dist/core/components/le-turntable.js.map +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +6 -0
- package/dist/core/loader.js +9 -0
- package/dist/docs.json +3 -1
- package/package.json +42 -8
- package/readme.md +40 -29
- package/dist/components/p-CXeWQG7d.js.map +0 -1
- package/dist/components/p-DxxFRStS.js.map +0 -1
- package/dist/components/p-IPZGv1ea.js +0 -1442
- package/dist/components/p-IPZGv1ea.js.map +0 -1
- package/dist/core/components/p-CXeWQG7d.js.map +0 -1
- package/dist/core/components/p-DxxFRStS.js.map +0 -1
- package/dist/core/components/p-IPZGv1ea.js +0 -1442
- package/dist/core/components/p-IPZGv1ea.js.map +0 -1
|
@@ -1,1442 +0,0 @@
|
|
|
1
|
-
const NAMESPACE = 'le-kit';
|
|
2
|
-
const BUILD = /* le-kit */ { hydratedSelectorName: "hydrated", lazyLoad: false, state: true, updatable: true};
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Platform v4.38.3 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
var __defProp = Object.defineProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// src/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
var reWireGetterSetter = (instance, hostRef) => {
|
|
17
|
-
var _a;
|
|
18
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
19
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
20
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
21
|
-
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
22
|
-
const ogValue = instance[memberName];
|
|
23
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
24
|
-
if (ogDescriptor) {
|
|
25
|
-
Object.defineProperty(instance, memberName, {
|
|
26
|
-
get() {
|
|
27
|
-
return ogDescriptor.get.call(this);
|
|
28
|
-
},
|
|
29
|
-
set(newValue) {
|
|
30
|
-
ogDescriptor.set.call(this, newValue);
|
|
31
|
-
},
|
|
32
|
-
configurable: true,
|
|
33
|
-
enumerable: true
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
function getPropertyDescriptor(obj, memberName) {
|
|
41
|
-
while (obj) {
|
|
42
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
43
|
-
if (desc == null ? void 0 : desc.get) return desc;
|
|
44
|
-
obj = Object.getPrototypeOf(obj);
|
|
45
|
-
}
|
|
46
|
-
return void 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// src/client/client-host-ref.ts
|
|
50
|
-
var getHostRef = (ref) => {
|
|
51
|
-
if (ref.__stencil__getHostRef) {
|
|
52
|
-
return ref.__stencil__getHostRef();
|
|
53
|
-
}
|
|
54
|
-
return void 0;
|
|
55
|
-
};
|
|
56
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
57
|
-
const hostRef = {
|
|
58
|
-
$flags$: 0,
|
|
59
|
-
$hostElement$: hostElement,
|
|
60
|
-
$cmpMeta$: cmpMeta,
|
|
61
|
-
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
62
|
-
$serializerValues$: /* @__PURE__ */ new Map()
|
|
63
|
-
};
|
|
64
|
-
{
|
|
65
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
66
|
-
hostElement["s-p"] = [];
|
|
67
|
-
hostElement["s-rc"] = [];
|
|
68
|
-
}
|
|
69
|
-
const ref = hostRef;
|
|
70
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
71
|
-
if (cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
|
|
72
|
-
reWireGetterSetter(hostElement, hostRef);
|
|
73
|
-
}
|
|
74
|
-
return ref;
|
|
75
|
-
};
|
|
76
|
-
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
77
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
78
|
-
|
|
79
|
-
// src/client/client-style.ts
|
|
80
|
-
var styles = /* @__PURE__ */ new Map();
|
|
81
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
82
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
83
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
84
|
-
var H = win.HTMLElement || class {
|
|
85
|
-
};
|
|
86
|
-
var plt = {
|
|
87
|
-
$flags$: 0,
|
|
88
|
-
$resourcesUrl$: "",
|
|
89
|
-
jmp: (h2) => h2(),
|
|
90
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
91
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
92
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
93
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
94
|
-
};
|
|
95
|
-
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
96
|
-
var _a;
|
|
97
|
-
let supportsListenerOptions2 = false;
|
|
98
|
-
try {
|
|
99
|
-
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
100
|
-
"e",
|
|
101
|
-
null,
|
|
102
|
-
Object.defineProperty({}, "passive", {
|
|
103
|
-
get() {
|
|
104
|
-
supportsListenerOptions2 = true;
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
|
-
);
|
|
108
|
-
} catch (e) {
|
|
109
|
-
}
|
|
110
|
-
return supportsListenerOptions2;
|
|
111
|
-
})();
|
|
112
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
113
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
114
|
-
try {
|
|
115
|
-
new CSSStyleSheet();
|
|
116
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
117
|
-
} catch (e) {
|
|
118
|
-
}
|
|
119
|
-
return false;
|
|
120
|
-
})() ;
|
|
121
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
122
|
-
var queuePending = false;
|
|
123
|
-
var queueDomReads = [];
|
|
124
|
-
var queueDomWrites = [];
|
|
125
|
-
var queueTask = (queue, write) => (cb) => {
|
|
126
|
-
queue.push(cb);
|
|
127
|
-
if (!queuePending) {
|
|
128
|
-
queuePending = true;
|
|
129
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
130
|
-
nextTick(flush);
|
|
131
|
-
} else {
|
|
132
|
-
plt.raf(flush);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
var consume = (queue) => {
|
|
137
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
138
|
-
try {
|
|
139
|
-
queue[i2](performance.now());
|
|
140
|
-
} catch (e) {
|
|
141
|
-
consoleError(e);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
queue.length = 0;
|
|
145
|
-
};
|
|
146
|
-
var flush = () => {
|
|
147
|
-
consume(queueDomReads);
|
|
148
|
-
{
|
|
149
|
-
consume(queueDomWrites);
|
|
150
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
151
|
-
plt.raf(flush);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
156
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
157
|
-
|
|
158
|
-
// src/runtime/asset-path.ts
|
|
159
|
-
var getAssetPath = (path) => {
|
|
160
|
-
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
161
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
162
|
-
};
|
|
163
|
-
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
164
|
-
var isComplexType = (o) => {
|
|
165
|
-
o = typeof o;
|
|
166
|
-
return o === "object" || o === "function";
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
170
|
-
function queryNonceMetaTagContent(doc) {
|
|
171
|
-
var _a, _b, _c;
|
|
172
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// src/utils/regular-expression.ts
|
|
176
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
177
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
// src/utils/result.ts
|
|
181
|
-
var result_exports = {};
|
|
182
|
-
__export(result_exports, {
|
|
183
|
-
err: () => err,
|
|
184
|
-
map: () => map,
|
|
185
|
-
ok: () => ok,
|
|
186
|
-
unwrap: () => unwrap,
|
|
187
|
-
unwrapErr: () => unwrapErr
|
|
188
|
-
});
|
|
189
|
-
var ok = (value) => ({
|
|
190
|
-
isOk: true,
|
|
191
|
-
isErr: false,
|
|
192
|
-
value
|
|
193
|
-
});
|
|
194
|
-
var err = (value) => ({
|
|
195
|
-
isOk: false,
|
|
196
|
-
isErr: true,
|
|
197
|
-
value
|
|
198
|
-
});
|
|
199
|
-
function map(result, fn) {
|
|
200
|
-
if (result.isOk) {
|
|
201
|
-
const val = fn(result.value);
|
|
202
|
-
if (val instanceof Promise) {
|
|
203
|
-
return val.then((newVal) => ok(newVal));
|
|
204
|
-
} else {
|
|
205
|
-
return ok(val);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
if (result.isErr) {
|
|
209
|
-
const value = result.value;
|
|
210
|
-
return err(value);
|
|
211
|
-
}
|
|
212
|
-
throw "should never get here";
|
|
213
|
-
}
|
|
214
|
-
var unwrap = (result) => {
|
|
215
|
-
if (result.isOk) {
|
|
216
|
-
return result.value;
|
|
217
|
-
} else {
|
|
218
|
-
throw result.value;
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
var unwrapErr = (result) => {
|
|
222
|
-
if (result.isErr) {
|
|
223
|
-
return result.value;
|
|
224
|
-
} else {
|
|
225
|
-
throw result.value;
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// src/utils/style.ts
|
|
230
|
-
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
231
|
-
if (!supportsConstructableStylesheets) return void 0;
|
|
232
|
-
const sheet = new CSSStyleSheet();
|
|
233
|
-
sheet.replaceSync(styles2);
|
|
234
|
-
return sheet;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// src/utils/shadow-root.ts
|
|
238
|
-
var globalStyleSheet;
|
|
239
|
-
function createShadowRoot(cmpMeta) {
|
|
240
|
-
var _a;
|
|
241
|
-
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
242
|
-
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
243
|
-
if (globalStyleSheet) {
|
|
244
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
245
|
-
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
246
|
-
} else {
|
|
247
|
-
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
var createTime = (fnName, tagName = "") => {
|
|
252
|
-
{
|
|
253
|
-
return () => {
|
|
254
|
-
return;
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
259
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
260
|
-
let style = styles.get(scopeId2);
|
|
261
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
262
|
-
style = style || new CSSStyleSheet();
|
|
263
|
-
if (typeof style === "string") {
|
|
264
|
-
style = cssText;
|
|
265
|
-
} else {
|
|
266
|
-
style.replaceSync(cssText);
|
|
267
|
-
}
|
|
268
|
-
} else {
|
|
269
|
-
style = cssText;
|
|
270
|
-
}
|
|
271
|
-
styles.set(scopeId2, style);
|
|
272
|
-
};
|
|
273
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
274
|
-
var _a;
|
|
275
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
276
|
-
const style = styles.get(scopeId2);
|
|
277
|
-
if (!win.document) {
|
|
278
|
-
return scopeId2;
|
|
279
|
-
}
|
|
280
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
281
|
-
if (style) {
|
|
282
|
-
if (typeof style === "string") {
|
|
283
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
284
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
285
|
-
let styleElm;
|
|
286
|
-
if (!appliedStyles) {
|
|
287
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
288
|
-
}
|
|
289
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
290
|
-
{
|
|
291
|
-
styleElm = win.document.createElement("style");
|
|
292
|
-
styleElm.innerHTML = style;
|
|
293
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
294
|
-
if (nonce != null) {
|
|
295
|
-
styleElm.setAttribute("nonce", nonce);
|
|
296
|
-
}
|
|
297
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
298
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
299
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
300
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
301
|
-
styleContainerNode.insertBefore(
|
|
302
|
-
styleElm,
|
|
303
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
304
|
-
);
|
|
305
|
-
} else if ("host" in styleContainerNode) {
|
|
306
|
-
if (supportsConstructableStylesheets) {
|
|
307
|
-
const stylesheet = new CSSStyleSheet();
|
|
308
|
-
stylesheet.replaceSync(style);
|
|
309
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
310
|
-
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
311
|
-
} else {
|
|
312
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
313
|
-
}
|
|
314
|
-
} else {
|
|
315
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
316
|
-
if (existingStyleContainer) {
|
|
317
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
318
|
-
} else {
|
|
319
|
-
styleContainerNode.prepend(styleElm);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
} else {
|
|
323
|
-
styleContainerNode.append(styleElm);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
327
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
331
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
332
|
-
}
|
|
333
|
-
if (appliedStyles) {
|
|
334
|
-
appliedStyles.add(scopeId2);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
338
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
339
|
-
styleContainerNode.adoptedStyleSheets.push(style);
|
|
340
|
-
} else {
|
|
341
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
return scopeId2;
|
|
346
|
-
};
|
|
347
|
-
var attachStyles = (hostRef) => {
|
|
348
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
349
|
-
const elm = hostRef.$hostElement$;
|
|
350
|
-
const flags = cmpMeta.$flags$;
|
|
351
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
352
|
-
const scopeId2 = addStyle(
|
|
353
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
354
|
-
cmpMeta);
|
|
355
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
356
|
-
elm["s-sc"] = scopeId2;
|
|
357
|
-
elm.classList.add(scopeId2 + "-h");
|
|
358
|
-
}
|
|
359
|
-
endAttachStyles();
|
|
360
|
-
};
|
|
361
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
362
|
-
var h = (nodeName, vnodeData, ...children) => {
|
|
363
|
-
let child = null;
|
|
364
|
-
let key = null;
|
|
365
|
-
let simple = false;
|
|
366
|
-
let lastSimple = false;
|
|
367
|
-
const vNodeChildren = [];
|
|
368
|
-
const walk = (c) => {
|
|
369
|
-
for (let i2 = 0; i2 < c.length; i2++) {
|
|
370
|
-
child = c[i2];
|
|
371
|
-
if (Array.isArray(child)) {
|
|
372
|
-
walk(child);
|
|
373
|
-
} else if (child != null && typeof child !== "boolean") {
|
|
374
|
-
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
375
|
-
child = String(child);
|
|
376
|
-
}
|
|
377
|
-
if (simple && lastSimple) {
|
|
378
|
-
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
379
|
-
} else {
|
|
380
|
-
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
381
|
-
}
|
|
382
|
-
lastSimple = simple;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
walk(children);
|
|
387
|
-
if (vnodeData) {
|
|
388
|
-
if (vnodeData.key) {
|
|
389
|
-
key = vnodeData.key;
|
|
390
|
-
}
|
|
391
|
-
{
|
|
392
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
393
|
-
if (classData) {
|
|
394
|
-
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
if (typeof nodeName === "function") {
|
|
399
|
-
return nodeName(
|
|
400
|
-
vnodeData === null ? {} : vnodeData,
|
|
401
|
-
vNodeChildren,
|
|
402
|
-
vdomFnUtils
|
|
403
|
-
);
|
|
404
|
-
}
|
|
405
|
-
const vnode = newVNode(nodeName, null);
|
|
406
|
-
vnode.$attrs$ = vnodeData;
|
|
407
|
-
if (vNodeChildren.length > 0) {
|
|
408
|
-
vnode.$children$ = vNodeChildren;
|
|
409
|
-
}
|
|
410
|
-
{
|
|
411
|
-
vnode.$key$ = key;
|
|
412
|
-
}
|
|
413
|
-
return vnode;
|
|
414
|
-
};
|
|
415
|
-
var newVNode = (tag, text) => {
|
|
416
|
-
const vnode = {
|
|
417
|
-
$flags$: 0,
|
|
418
|
-
$tag$: tag,
|
|
419
|
-
$text$: text,
|
|
420
|
-
$elm$: null,
|
|
421
|
-
$children$: null
|
|
422
|
-
};
|
|
423
|
-
{
|
|
424
|
-
vnode.$attrs$ = null;
|
|
425
|
-
}
|
|
426
|
-
{
|
|
427
|
-
vnode.$key$ = null;
|
|
428
|
-
}
|
|
429
|
-
return vnode;
|
|
430
|
-
};
|
|
431
|
-
var Host = {};
|
|
432
|
-
var isHost = (node) => node && node.$tag$ === Host;
|
|
433
|
-
var vdomFnUtils = {
|
|
434
|
-
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
435
|
-
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
436
|
-
};
|
|
437
|
-
var convertToPublic = (node) => ({
|
|
438
|
-
vattrs: node.$attrs$,
|
|
439
|
-
vchildren: node.$children$,
|
|
440
|
-
vkey: node.$key$,
|
|
441
|
-
vname: node.$name$,
|
|
442
|
-
vtag: node.$tag$,
|
|
443
|
-
vtext: node.$text$
|
|
444
|
-
});
|
|
445
|
-
var convertToPrivate = (node) => {
|
|
446
|
-
if (typeof node.vtag === "function") {
|
|
447
|
-
const vnodeData = { ...node.vattrs };
|
|
448
|
-
if (node.vkey) {
|
|
449
|
-
vnodeData.key = node.vkey;
|
|
450
|
-
}
|
|
451
|
-
if (node.vname) {
|
|
452
|
-
vnodeData.name = node.vname;
|
|
453
|
-
}
|
|
454
|
-
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
455
|
-
}
|
|
456
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
457
|
-
vnode.$attrs$ = node.vattrs;
|
|
458
|
-
vnode.$children$ = node.vchildren;
|
|
459
|
-
vnode.$key$ = node.vkey;
|
|
460
|
-
vnode.$name$ = node.vname;
|
|
461
|
-
return vnode;
|
|
462
|
-
};
|
|
463
|
-
var createSupportsRuleRe = (selector) => {
|
|
464
|
-
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
465
|
-
return new RegExp(
|
|
466
|
-
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
467
|
-
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
468
|
-
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
|
|
469
|
-
"g"
|
|
470
|
-
);
|
|
471
|
-
};
|
|
472
|
-
createSupportsRuleRe("::slotted");
|
|
473
|
-
createSupportsRuleRe(":host");
|
|
474
|
-
createSupportsRuleRe(":host-context");
|
|
475
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
476
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
477
|
-
if (propType & 4 /* Boolean */) {
|
|
478
|
-
{
|
|
479
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
if (propType & 2 /* Number */) {
|
|
483
|
-
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
484
|
-
}
|
|
485
|
-
if (propType & 1 /* String */) {
|
|
486
|
-
return String(propValue);
|
|
487
|
-
}
|
|
488
|
-
return propValue;
|
|
489
|
-
}
|
|
490
|
-
return propValue;
|
|
491
|
-
};
|
|
492
|
-
var getElement = (ref) => {
|
|
493
|
-
return ref;
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
// src/runtime/event-emitter.ts
|
|
497
|
-
var createEvent = (ref, name, flags) => {
|
|
498
|
-
const elm = getElement(ref);
|
|
499
|
-
return {
|
|
500
|
-
emit: (detail) => {
|
|
501
|
-
return emitEvent(elm, name, {
|
|
502
|
-
bubbles: true,
|
|
503
|
-
composed: true,
|
|
504
|
-
cancelable: true,
|
|
505
|
-
detail
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
var emitEvent = (elm, name, opts) => {
|
|
511
|
-
const ev = plt.ce(name, opts);
|
|
512
|
-
elm.dispatchEvent(ev);
|
|
513
|
-
return ev;
|
|
514
|
-
};
|
|
515
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
516
|
-
if (oldValue === newValue) {
|
|
517
|
-
return;
|
|
518
|
-
}
|
|
519
|
-
let isProp = isMemberInElement(elm, memberName);
|
|
520
|
-
let ln = memberName.toLowerCase();
|
|
521
|
-
if (memberName === "class") {
|
|
522
|
-
const classList = elm.classList;
|
|
523
|
-
const oldClasses = parseClassList(oldValue);
|
|
524
|
-
let newClasses = parseClassList(newValue);
|
|
525
|
-
{
|
|
526
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
527
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
528
|
-
}
|
|
529
|
-
} else if (memberName === "style") {
|
|
530
|
-
{
|
|
531
|
-
for (const prop in oldValue) {
|
|
532
|
-
if (!newValue || newValue[prop] == null) {
|
|
533
|
-
if (prop.includes("-")) {
|
|
534
|
-
elm.style.removeProperty(prop);
|
|
535
|
-
} else {
|
|
536
|
-
elm.style[prop] = "";
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
for (const prop in newValue) {
|
|
542
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
543
|
-
if (prop.includes("-")) {
|
|
544
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
545
|
-
} else {
|
|
546
|
-
elm.style[prop] = newValue[prop];
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
551
|
-
if (newValue) {
|
|
552
|
-
newValue(elm);
|
|
553
|
-
}
|
|
554
|
-
} else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
555
|
-
if (memberName[2] === "-") {
|
|
556
|
-
memberName = memberName.slice(3);
|
|
557
|
-
} else if (isMemberInElement(win, ln)) {
|
|
558
|
-
memberName = ln.slice(2);
|
|
559
|
-
} else {
|
|
560
|
-
memberName = ln[2] + memberName.slice(3);
|
|
561
|
-
}
|
|
562
|
-
if (oldValue || newValue) {
|
|
563
|
-
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
564
|
-
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
565
|
-
if (oldValue) {
|
|
566
|
-
plt.rel(elm, memberName, oldValue, capture);
|
|
567
|
-
}
|
|
568
|
-
if (newValue) {
|
|
569
|
-
plt.ael(elm, memberName, newValue, capture);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
} else {
|
|
573
|
-
const isComplex = isComplexType(newValue);
|
|
574
|
-
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
575
|
-
try {
|
|
576
|
-
if (!elm.tagName.includes("-")) {
|
|
577
|
-
const n = newValue == null ? "" : newValue;
|
|
578
|
-
if (memberName === "list") {
|
|
579
|
-
isProp = false;
|
|
580
|
-
} else if (oldValue == null || elm[memberName] != n) {
|
|
581
|
-
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
582
|
-
elm[memberName] = n;
|
|
583
|
-
} else {
|
|
584
|
-
elm.setAttribute(memberName, n);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
} else if (elm[memberName] !== newValue) {
|
|
588
|
-
elm[memberName] = newValue;
|
|
589
|
-
}
|
|
590
|
-
} catch (e) {
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
let xlink = false;
|
|
594
|
-
{
|
|
595
|
-
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
596
|
-
memberName = ln;
|
|
597
|
-
xlink = true;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
if (newValue == null || newValue === false) {
|
|
601
|
-
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
602
|
-
if (xlink) {
|
|
603
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
604
|
-
} else {
|
|
605
|
-
elm.removeAttribute(memberName);
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
609
|
-
newValue = newValue === true ? "" : newValue;
|
|
610
|
-
if (xlink) {
|
|
611
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
612
|
-
} else {
|
|
613
|
-
elm.setAttribute(memberName, newValue);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
var parseClassListRegex = /\s/;
|
|
619
|
-
var parseClassList = (value) => {
|
|
620
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
621
|
-
value = value.baseVal;
|
|
622
|
-
}
|
|
623
|
-
if (!value || typeof value !== "string") {
|
|
624
|
-
return [];
|
|
625
|
-
}
|
|
626
|
-
return value.split(parseClassListRegex);
|
|
627
|
-
};
|
|
628
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
629
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
630
|
-
|
|
631
|
-
// src/runtime/vdom/update-element.ts
|
|
632
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
633
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
634
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
635
|
-
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
636
|
-
{
|
|
637
|
-
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
638
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
639
|
-
setAccessor(
|
|
640
|
-
elm,
|
|
641
|
-
memberName,
|
|
642
|
-
oldVnodeAttrs[memberName],
|
|
643
|
-
void 0,
|
|
644
|
-
isSvgMode2,
|
|
645
|
-
newVnode.$flags$);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
650
|
-
setAccessor(
|
|
651
|
-
elm,
|
|
652
|
-
memberName,
|
|
653
|
-
oldVnodeAttrs[memberName],
|
|
654
|
-
newVnodeAttrs[memberName],
|
|
655
|
-
isSvgMode2,
|
|
656
|
-
newVnode.$flags$);
|
|
657
|
-
}
|
|
658
|
-
};
|
|
659
|
-
function sortedAttrNames(attrNames) {
|
|
660
|
-
return attrNames.includes("ref") ? (
|
|
661
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
662
|
-
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
663
|
-
) : (
|
|
664
|
-
// no need to sort, return the original array
|
|
665
|
-
attrNames
|
|
666
|
-
);
|
|
667
|
-
}
|
|
668
|
-
var hostTagName;
|
|
669
|
-
var isSvgMode = false;
|
|
670
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
671
|
-
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
672
|
-
let i2 = 0;
|
|
673
|
-
let elm;
|
|
674
|
-
let childNode;
|
|
675
|
-
if (newVNode2.$text$ !== null) {
|
|
676
|
-
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
677
|
-
} else {
|
|
678
|
-
if (!isSvgMode) {
|
|
679
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
680
|
-
}
|
|
681
|
-
if (!win.document) {
|
|
682
|
-
throw new Error(
|
|
683
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
684
|
-
);
|
|
685
|
-
}
|
|
686
|
-
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
687
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
688
|
-
newVNode2.$tag$
|
|
689
|
-
) ;
|
|
690
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
691
|
-
isSvgMode = false;
|
|
692
|
-
}
|
|
693
|
-
{
|
|
694
|
-
updateElement(null, newVNode2, isSvgMode);
|
|
695
|
-
}
|
|
696
|
-
if (newVNode2.$children$) {
|
|
697
|
-
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
698
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
699
|
-
if (childNode) {
|
|
700
|
-
elm.appendChild(childNode);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
{
|
|
705
|
-
if (newVNode2.$tag$ === "svg") {
|
|
706
|
-
isSvgMode = false;
|
|
707
|
-
} else if (elm.tagName === "foreignObject") {
|
|
708
|
-
isSvgMode = true;
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
elm["s-hn"] = hostTagName;
|
|
713
|
-
return elm;
|
|
714
|
-
};
|
|
715
|
-
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
716
|
-
let containerElm = parentElm;
|
|
717
|
-
let childNode;
|
|
718
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
719
|
-
containerElm = containerElm.shadowRoot;
|
|
720
|
-
}
|
|
721
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
722
|
-
if (vnodes[startIdx]) {
|
|
723
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
724
|
-
if (childNode) {
|
|
725
|
-
vnodes[startIdx].$elm$ = childNode;
|
|
726
|
-
insertBefore(containerElm, childNode, before);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
732
|
-
for (let index = startIdx; index <= endIdx; ++index) {
|
|
733
|
-
const vnode = vnodes[index];
|
|
734
|
-
if (vnode) {
|
|
735
|
-
const elm = vnode.$elm$;
|
|
736
|
-
nullifyVNodeRefs(vnode);
|
|
737
|
-
if (elm) {
|
|
738
|
-
elm.remove();
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
744
|
-
let oldStartIdx = 0;
|
|
745
|
-
let newStartIdx = 0;
|
|
746
|
-
let idxInOld = 0;
|
|
747
|
-
let i2 = 0;
|
|
748
|
-
let oldEndIdx = oldCh.length - 1;
|
|
749
|
-
let oldStartVnode = oldCh[0];
|
|
750
|
-
let oldEndVnode = oldCh[oldEndIdx];
|
|
751
|
-
let newEndIdx = newCh.length - 1;
|
|
752
|
-
let newStartVnode = newCh[0];
|
|
753
|
-
let newEndVnode = newCh[newEndIdx];
|
|
754
|
-
let node;
|
|
755
|
-
let elmToMove;
|
|
756
|
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
757
|
-
if (oldStartVnode == null) {
|
|
758
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
759
|
-
} else if (oldEndVnode == null) {
|
|
760
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
761
|
-
} else if (newStartVnode == null) {
|
|
762
|
-
newStartVnode = newCh[++newStartIdx];
|
|
763
|
-
} else if (newEndVnode == null) {
|
|
764
|
-
newEndVnode = newCh[--newEndIdx];
|
|
765
|
-
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
766
|
-
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
767
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
768
|
-
newStartVnode = newCh[++newStartIdx];
|
|
769
|
-
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
770
|
-
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
771
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
772
|
-
newEndVnode = newCh[--newEndIdx];
|
|
773
|
-
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
774
|
-
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
775
|
-
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
776
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
777
|
-
newEndVnode = newCh[--newEndIdx];
|
|
778
|
-
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
779
|
-
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
780
|
-
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
781
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
782
|
-
newStartVnode = newCh[++newStartIdx];
|
|
783
|
-
} else {
|
|
784
|
-
idxInOld = -1;
|
|
785
|
-
{
|
|
786
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
787
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
788
|
-
idxInOld = i2;
|
|
789
|
-
break;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
if (idxInOld >= 0) {
|
|
794
|
-
elmToMove = oldCh[idxInOld];
|
|
795
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
796
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
797
|
-
} else {
|
|
798
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
799
|
-
oldCh[idxInOld] = void 0;
|
|
800
|
-
node = elmToMove.$elm$;
|
|
801
|
-
}
|
|
802
|
-
newStartVnode = newCh[++newStartIdx];
|
|
803
|
-
} else {
|
|
804
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
805
|
-
newStartVnode = newCh[++newStartIdx];
|
|
806
|
-
}
|
|
807
|
-
if (node) {
|
|
808
|
-
{
|
|
809
|
-
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
if (oldStartIdx > oldEndIdx) {
|
|
815
|
-
addVnodes(
|
|
816
|
-
parentElm,
|
|
817
|
-
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
818
|
-
newVNode2,
|
|
819
|
-
newCh,
|
|
820
|
-
newStartIdx,
|
|
821
|
-
newEndIdx
|
|
822
|
-
);
|
|
823
|
-
} else if (newStartIdx > newEndIdx) {
|
|
824
|
-
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
828
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
829
|
-
if (!isInitialRender) {
|
|
830
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
831
|
-
}
|
|
832
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
833
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
834
|
-
}
|
|
835
|
-
return true;
|
|
836
|
-
}
|
|
837
|
-
return false;
|
|
838
|
-
};
|
|
839
|
-
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
840
|
-
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
841
|
-
const oldChildren = oldVNode.$children$;
|
|
842
|
-
const newChildren = newVNode2.$children$;
|
|
843
|
-
const tag = newVNode2.$tag$;
|
|
844
|
-
const text = newVNode2.$text$;
|
|
845
|
-
if (text === null) {
|
|
846
|
-
{
|
|
847
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
848
|
-
}
|
|
849
|
-
{
|
|
850
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
851
|
-
}
|
|
852
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
853
|
-
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
854
|
-
} else if (newChildren !== null) {
|
|
855
|
-
if (oldVNode.$text$ !== null) {
|
|
856
|
-
elm.textContent = "";
|
|
857
|
-
}
|
|
858
|
-
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
859
|
-
} else if (
|
|
860
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
861
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
862
|
-
) {
|
|
863
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
864
|
-
} else ;
|
|
865
|
-
if (isSvgMode && tag === "svg") {
|
|
866
|
-
isSvgMode = false;
|
|
867
|
-
}
|
|
868
|
-
} else if (oldVNode.$text$ !== text) {
|
|
869
|
-
elm.data = text;
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
var nullifyVNodeRefs = (vNode) => {
|
|
873
|
-
{
|
|
874
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
875
|
-
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
var insertBefore = (parent, newNode, reference) => {
|
|
879
|
-
{
|
|
880
|
-
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
884
|
-
const hostElm = hostRef.$hostElement$;
|
|
885
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
886
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
887
|
-
const isHostElement = isHost(renderFnResults);
|
|
888
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
889
|
-
hostTagName = hostElm.tagName;
|
|
890
|
-
if (cmpMeta.$attrsToReflect$) {
|
|
891
|
-
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
892
|
-
cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
|
|
893
|
-
{
|
|
894
|
-
rootVnode.$attrs$[attribute] = hostElm[propName];
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
if (isInitialLoad && rootVnode.$attrs$) {
|
|
899
|
-
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
900
|
-
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
901
|
-
rootVnode.$attrs$[key] = hostElm[key];
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
rootVnode.$tag$ = null;
|
|
906
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
907
|
-
hostRef.$vnode$ = rootVnode;
|
|
908
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
909
|
-
patch(oldVNode, rootVnode, isInitialLoad);
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
// src/runtime/update-component.ts
|
|
913
|
-
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
914
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
915
|
-
const index = ancestorComponent["s-p"].push(
|
|
916
|
-
new Promise(
|
|
917
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
918
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
919
|
-
r();
|
|
920
|
-
}
|
|
921
|
-
)
|
|
922
|
-
);
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
926
|
-
{
|
|
927
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
928
|
-
}
|
|
929
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
930
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
931
|
-
return;
|
|
932
|
-
}
|
|
933
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
934
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
935
|
-
if (isInitialLoad) {
|
|
936
|
-
queueMicrotask(() => {
|
|
937
|
-
dispatch();
|
|
938
|
-
});
|
|
939
|
-
return;
|
|
940
|
-
}
|
|
941
|
-
return writeTask(dispatch) ;
|
|
942
|
-
};
|
|
943
|
-
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
944
|
-
const elm = hostRef.$hostElement$;
|
|
945
|
-
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
946
|
-
const instance = elm;
|
|
947
|
-
if (!instance) {
|
|
948
|
-
throw new Error(
|
|
949
|
-
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
950
|
-
);
|
|
951
|
-
}
|
|
952
|
-
let maybePromise;
|
|
953
|
-
if (isInitialLoad) {
|
|
954
|
-
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
955
|
-
} else {
|
|
956
|
-
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
957
|
-
}
|
|
958
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
959
|
-
endSchedule();
|
|
960
|
-
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
961
|
-
};
|
|
962
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
|
|
963
|
-
console.error(err2);
|
|
964
|
-
fn();
|
|
965
|
-
}) : fn();
|
|
966
|
-
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
967
|
-
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
968
|
-
var _a;
|
|
969
|
-
const elm = hostRef.$hostElement$;
|
|
970
|
-
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
971
|
-
const rc = elm["s-rc"];
|
|
972
|
-
if (isInitialLoad) {
|
|
973
|
-
attachStyles(hostRef);
|
|
974
|
-
}
|
|
975
|
-
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
976
|
-
{
|
|
977
|
-
callRender(hostRef, instance, elm, isInitialLoad);
|
|
978
|
-
}
|
|
979
|
-
if (rc) {
|
|
980
|
-
rc.map((cb) => cb());
|
|
981
|
-
elm["s-rc"] = void 0;
|
|
982
|
-
}
|
|
983
|
-
endRender();
|
|
984
|
-
endUpdate();
|
|
985
|
-
{
|
|
986
|
-
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
987
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
988
|
-
if (childrenPromises.length === 0) {
|
|
989
|
-
postUpdate();
|
|
990
|
-
} else {
|
|
991
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
992
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
993
|
-
childrenPromises.length = 0;
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
998
|
-
try {
|
|
999
|
-
instance = instance.render() ;
|
|
1000
|
-
{
|
|
1001
|
-
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
1002
|
-
}
|
|
1003
|
-
{
|
|
1004
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1005
|
-
}
|
|
1006
|
-
{
|
|
1007
|
-
{
|
|
1008
|
-
{
|
|
1009
|
-
renderVdom(hostRef, instance, isInitialLoad);
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
} catch (e) {
|
|
1014
|
-
consoleError(e, hostRef.$hostElement$);
|
|
1015
|
-
}
|
|
1016
|
-
return null;
|
|
1017
|
-
};
|
|
1018
|
-
var postUpdateComponent = (hostRef) => {
|
|
1019
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
1020
|
-
const elm = hostRef.$hostElement$;
|
|
1021
|
-
const endPostUpdate = createTime("postUpdate", tagName);
|
|
1022
|
-
const instance = elm;
|
|
1023
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1024
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
1025
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1026
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1027
|
-
{
|
|
1028
|
-
addHydratedFlag(elm);
|
|
1029
|
-
}
|
|
1030
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
1031
|
-
endPostUpdate();
|
|
1032
|
-
{
|
|
1033
|
-
hostRef.$onReadyResolve$(elm);
|
|
1034
|
-
if (!ancestorComponent) {
|
|
1035
|
-
appDidLoad();
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
} else {
|
|
1039
|
-
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
1040
|
-
endPostUpdate();
|
|
1041
|
-
}
|
|
1042
|
-
{
|
|
1043
|
-
if (hostRef.$onRenderResolve$) {
|
|
1044
|
-
hostRef.$onRenderResolve$();
|
|
1045
|
-
hostRef.$onRenderResolve$ = void 0;
|
|
1046
|
-
}
|
|
1047
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1048
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1049
|
-
}
|
|
1050
|
-
hostRef.$flags$ &= -517;
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
var appDidLoad = (who) => {
|
|
1054
|
-
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
1055
|
-
};
|
|
1056
|
-
var safeCall = (instance, method, arg, elm) => {
|
|
1057
|
-
if (instance && instance[method]) {
|
|
1058
|
-
try {
|
|
1059
|
-
return instance[method](arg);
|
|
1060
|
-
} catch (e) {
|
|
1061
|
-
consoleError(e, elm);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
return void 0;
|
|
1065
|
-
};
|
|
1066
|
-
var addHydratedFlag = (elm) => {
|
|
1067
|
-
var _a;
|
|
1068
|
-
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
1069
|
-
};
|
|
1070
|
-
|
|
1071
|
-
// src/runtime/set-value.ts
|
|
1072
|
-
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1073
|
-
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1074
|
-
const hostRef = getHostRef(ref);
|
|
1075
|
-
if (!hostRef) {
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
const elm = ref;
|
|
1079
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1080
|
-
const flags = hostRef.$flags$;
|
|
1081
|
-
const instance = elm;
|
|
1082
|
-
newVal = parsePropertyValue(
|
|
1083
|
-
newVal,
|
|
1084
|
-
cmpMeta.$members$[propName][0]);
|
|
1085
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1086
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1087
|
-
if (didValueChange) {
|
|
1088
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
1089
|
-
{
|
|
1090
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1091
|
-
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1092
|
-
if (watchMethods) {
|
|
1093
|
-
watchMethods.map((watchMethodName) => {
|
|
1094
|
-
try {
|
|
1095
|
-
instance[watchMethodName](newVal, oldVal, propName);
|
|
1096
|
-
} catch (e) {
|
|
1097
|
-
consoleError(e, elm);
|
|
1098
|
-
}
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1103
|
-
if (instance.componentShouldUpdate) {
|
|
1104
|
-
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
1105
|
-
return;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
scheduleUpdate(hostRef, false);
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
// src/runtime/proxy-component.ts
|
|
1115
|
-
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1116
|
-
var _a, _b;
|
|
1117
|
-
const prototype = Cstr.prototype;
|
|
1118
|
-
{
|
|
1119
|
-
{
|
|
1120
|
-
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1121
|
-
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1122
|
-
}
|
|
1123
|
-
if (Cstr.deserializers && !cmpMeta.$deserializers$) {
|
|
1124
|
-
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1125
|
-
}
|
|
1126
|
-
if (Cstr.serializers && !cmpMeta.$serializers$) {
|
|
1127
|
-
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1131
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
1132
|
-
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
1133
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1134
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1135
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1136
|
-
{
|
|
1137
|
-
Object.defineProperty(prototype, memberName, {
|
|
1138
|
-
get() {
|
|
1139
|
-
{
|
|
1140
|
-
return origGetter ? origGetter.apply(this) : getValue(this, memberName);
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
|
-
configurable: true,
|
|
1144
|
-
enumerable: true
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
Object.defineProperty(prototype, memberName, {
|
|
1148
|
-
set(newValue) {
|
|
1149
|
-
const ref = getHostRef(this);
|
|
1150
|
-
if (!ref) {
|
|
1151
|
-
return;
|
|
1152
|
-
}
|
|
1153
|
-
if (origSetter) {
|
|
1154
|
-
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1155
|
-
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1156
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
1157
|
-
}
|
|
1158
|
-
origSetter.apply(this, [
|
|
1159
|
-
parsePropertyValue(
|
|
1160
|
-
newValue,
|
|
1161
|
-
memberFlags)
|
|
1162
|
-
]);
|
|
1163
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1164
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1165
|
-
return;
|
|
1166
|
-
}
|
|
1167
|
-
{
|
|
1168
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1169
|
-
return;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
});
|
|
1175
|
-
{
|
|
1176
|
-
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1177
|
-
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1178
|
-
plt.jmp(() => {
|
|
1179
|
-
var _a2;
|
|
1180
|
-
const propName = attrNameToPropName.get(attrName);
|
|
1181
|
-
const hostRef = getHostRef(this);
|
|
1182
|
-
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) ;
|
|
1183
|
-
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1184
|
-
this[propName] == newValue) {
|
|
1185
|
-
return;
|
|
1186
|
-
} else if (propName == null) {
|
|
1187
|
-
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1188
|
-
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
|
1189
|
-
const elm = this;
|
|
1190
|
-
const instance = elm;
|
|
1191
|
-
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1192
|
-
entry == null ? void 0 : entry.forEach((callbackName) => {
|
|
1193
|
-
if (instance[callbackName] != null) {
|
|
1194
|
-
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1195
|
-
}
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
return;
|
|
1199
|
-
}
|
|
1200
|
-
const propFlags = members.find(([m]) => m === propName);
|
|
1201
|
-
if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
|
|
1202
|
-
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1203
|
-
}
|
|
1204
|
-
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1205
|
-
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1206
|
-
this[propName] = newValue;
|
|
1207
|
-
}
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
Cstr.observedAttributes = Array.from(
|
|
1211
|
-
/* @__PURE__ */ new Set([
|
|
1212
|
-
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1213
|
-
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1214
|
-
var _a2;
|
|
1215
|
-
const attrName = m[1] || propName;
|
|
1216
|
-
attrNameToPropName.set(attrName, propName);
|
|
1217
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1218
|
-
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
1219
|
-
}
|
|
1220
|
-
return attrName;
|
|
1221
|
-
})
|
|
1222
|
-
])
|
|
1223
|
-
);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
return Cstr;
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
// src/runtime/initialize-component.ts
|
|
1230
|
-
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1231
|
-
let Cstr;
|
|
1232
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1233
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1234
|
-
{
|
|
1235
|
-
Cstr = elm.constructor;
|
|
1236
|
-
const cmpTag = elm.localName;
|
|
1237
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1238
|
-
}
|
|
1239
|
-
if (Cstr && Cstr.style) {
|
|
1240
|
-
let style;
|
|
1241
|
-
if (typeof Cstr.style === "string") {
|
|
1242
|
-
style = Cstr.style;
|
|
1243
|
-
}
|
|
1244
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1245
|
-
if (!styles.has(scopeId2)) {
|
|
1246
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1247
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1248
|
-
endRegisterStyles();
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1253
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1254
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1255
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1256
|
-
} else {
|
|
1257
|
-
schedule();
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
var fireConnectedCallback = (instance, elm) => {
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
|
-
// src/runtime/connected-callback.ts
|
|
1264
|
-
var connectedCallback = (elm) => {
|
|
1265
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1266
|
-
const hostRef = getHostRef(elm);
|
|
1267
|
-
if (!hostRef) {
|
|
1268
|
-
return;
|
|
1269
|
-
}
|
|
1270
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1271
|
-
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1272
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1273
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1274
|
-
{
|
|
1275
|
-
let ancestorComponent = elm;
|
|
1276
|
-
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1277
|
-
if (ancestorComponent["s-p"]) {
|
|
1278
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1279
|
-
break;
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
if (cmpMeta.$members$) {
|
|
1284
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1285
|
-
if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
|
|
1286
|
-
const value = elm[memberName];
|
|
1287
|
-
delete elm[memberName];
|
|
1288
|
-
elm[memberName] = value;
|
|
1289
|
-
}
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
{
|
|
1293
|
-
initializeComponent(elm, hostRef, cmpMeta);
|
|
1294
|
-
}
|
|
1295
|
-
} else {
|
|
1296
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1297
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1298
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
endConnected();
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
var disconnectedCallback = async (elm) => {
|
|
1305
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1306
|
-
const hostRef = getHostRef(elm);
|
|
1307
|
-
{
|
|
1308
|
-
if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
|
|
1309
|
-
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1310
|
-
hostRef.$rmListeners$ = void 0;
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1315
|
-
rootAppliedStyles.delete(elm);
|
|
1316
|
-
}
|
|
1317
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1318
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
var proxyCustomElement = (Cstr, compactMeta) => {
|
|
1322
|
-
const cmpMeta = {
|
|
1323
|
-
$flags$: compactMeta[0],
|
|
1324
|
-
$tagName$: compactMeta[1]
|
|
1325
|
-
};
|
|
1326
|
-
{
|
|
1327
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
1328
|
-
}
|
|
1329
|
-
{
|
|
1330
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
1331
|
-
}
|
|
1332
|
-
{
|
|
1333
|
-
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
1334
|
-
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
1335
|
-
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
1336
|
-
}
|
|
1337
|
-
{
|
|
1338
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
1339
|
-
}
|
|
1340
|
-
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
1341
|
-
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
1342
|
-
Object.assign(Cstr.prototype, {
|
|
1343
|
-
__hasHostListenerAttached: false,
|
|
1344
|
-
__registerHost() {
|
|
1345
|
-
registerHost(this, cmpMeta);
|
|
1346
|
-
},
|
|
1347
|
-
connectedCallback() {
|
|
1348
|
-
if (!this.__hasHostListenerAttached) {
|
|
1349
|
-
const hostRef = getHostRef(this);
|
|
1350
|
-
if (!hostRef) {
|
|
1351
|
-
return;
|
|
1352
|
-
}
|
|
1353
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
1354
|
-
this.__hasHostListenerAttached = true;
|
|
1355
|
-
}
|
|
1356
|
-
connectedCallback(this);
|
|
1357
|
-
if (originalConnectedCallback) {
|
|
1358
|
-
originalConnectedCallback.call(this);
|
|
1359
|
-
}
|
|
1360
|
-
},
|
|
1361
|
-
disconnectedCallback() {
|
|
1362
|
-
disconnectedCallback(this);
|
|
1363
|
-
if (originalDisconnectedCallback) {
|
|
1364
|
-
originalDisconnectedCallback.call(this);
|
|
1365
|
-
}
|
|
1366
|
-
},
|
|
1367
|
-
__attachShadow() {
|
|
1368
|
-
{
|
|
1369
|
-
if (!this.shadowRoot) {
|
|
1370
|
-
createShadowRoot.call(this, cmpMeta);
|
|
1371
|
-
} else {
|
|
1372
|
-
if (this.shadowRoot.mode !== "open") {
|
|
1373
|
-
throw new Error(
|
|
1374
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
});
|
|
1381
|
-
Cstr.is = cmpMeta.$tagName$;
|
|
1382
|
-
return proxyComponent(Cstr, cmpMeta);
|
|
1383
|
-
};
|
|
1384
|
-
|
|
1385
|
-
// src/runtime/fragment.ts
|
|
1386
|
-
var Fragment = (_, children) => children;
|
|
1387
|
-
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1388
|
-
if (listeners && win.document) {
|
|
1389
|
-
listeners.map(([flags, name, method]) => {
|
|
1390
|
-
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
1391
|
-
const handler = hostListenerProxy(hostRef, method);
|
|
1392
|
-
const opts = hostListenerOpts(flags);
|
|
1393
|
-
plt.ael(target, name, handler, opts);
|
|
1394
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
|
-
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1399
|
-
try {
|
|
1400
|
-
{
|
|
1401
|
-
hostRef.$hostElement$[methodName](ev);
|
|
1402
|
-
}
|
|
1403
|
-
} catch (e) {
|
|
1404
|
-
consoleError(e, hostRef.$hostElement$);
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
var getHostListenerTarget = (doc, elm, flags) => {
|
|
1408
|
-
if (flags & 8 /* TargetWindow */) {
|
|
1409
|
-
return win;
|
|
1410
|
-
}
|
|
1411
|
-
return elm;
|
|
1412
|
-
};
|
|
1413
|
-
var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
1414
|
-
passive: (flags & 1 /* Passive */) !== 0,
|
|
1415
|
-
capture: (flags & 2 /* Capture */) !== 0
|
|
1416
|
-
} : (flags & 2 /* Capture */) !== 0;
|
|
1417
|
-
|
|
1418
|
-
// src/runtime/nonce.ts
|
|
1419
|
-
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1420
|
-
|
|
1421
|
-
// src/runtime/platform-options.ts
|
|
1422
|
-
var setPlatformOptions = (opts) => Object.assign(plt, opts);
|
|
1423
|
-
|
|
1424
|
-
// src/runtime/render.ts
|
|
1425
|
-
function render(vnode, container) {
|
|
1426
|
-
const cmpMeta = {
|
|
1427
|
-
$flags$: 0,
|
|
1428
|
-
$tagName$: container.tagName
|
|
1429
|
-
};
|
|
1430
|
-
const ref = {
|
|
1431
|
-
$cmpMeta$: cmpMeta,
|
|
1432
|
-
$hostElement$: container
|
|
1433
|
-
};
|
|
1434
|
-
renderVdom(ref, vnode);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
const globalStyles = ":root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--le-spacing-0:0;--le-spacing-1:0.25rem;--le-spacing-2:0.5rem;--le-spacing-3:0.75rem;--le-spacing-4:1rem;--le-spacing-5:1.25rem;--le-spacing-6:1.5rem;--le-spacing-8:2rem;--le-spacing-10:2.5rem;--le-spacing-12:3rem;--le-spacing-16:4rem;--le-font-family-base:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;--le-font-family-mono:'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;--le-font-size-xs:0.75rem;--le-font-size-sm:0.875rem;--le-font-size-md:1rem;--le-font-size-lg:1.125rem;--le-font-size-xl:1.25rem;--le-font-size-2xl:1.5rem;--le-font-size-3xl:1.875rem;--le-font-size-4xl:2.25rem;--le-font-weight-normal:400;--le-font-weight-medium:500;--le-font-weight-semibold:600;--le-font-weight-bold:700;--le-line-height-tight:1.25;--le-line-height-normal:1.5;--le-line-height-relaxed:1.75;--le-radius-none:0;--le-radius-xs:0.066rem;--le-radius-sm:0.125rem;--le-radius-md:0.25rem;--le-radius-lg:0.5rem;--le-radius-xl:0.75rem;--le-radius-2xl:1rem;--le-radius-full:9999px;--le-transition-fast:100ms;--le-transition-normal:200ms;--le-transition-slow:300ms;--le-transition-easing:cubic-bezier(0.4, 0, 0.2, 1);--le-z-dropdown:1000;--le-z-sticky:1020;--le-z-fixed:1030;--le-z-modal-backdrop:1040;--le-z-modal:1050;--le-z-popover:1060;--le-z-tooltip:1070}:root,[theme=\"default\"]{--le-color-primary:#0088ff;--le-color-primary-light:#4da6ff;--le-color-primary-dark:#0066cc;--le-color-primary-contrast:#ffffff;--le-color-secondary:#6c757d;--le-color-secondary-light:#868e96;--le-color-secondary-dark:#545b62;--le-color-secondary-contrast:#ffffff;--le-color-success:#28a745;--le-color-success-light:#48c764;--le-color-success-dark:#1e7e34;--le-color-success-contrast:#ffffff;--le-color-warning:#ffc107;--le-color-warning-light:#ffcd39;--le-color-warning-dark:#d39e00;--le-color-warning-contrast:#212529;--le-color-danger:#dc3545;--le-color-danger-light:#e4606d;--le-color-danger-dark:#bd2130;--le-color-danger-contrast:#ffffff;--le-color-info:#17a2b8;--le-color-info-light:#3ab0c3;--le-color-info-dark:#117a8b;--le-color-info-contrast:#ffffff;--le-color-white:#ffffff;--le-color-black:#000000;--le-color-gray-50:#fafafa;--le-color-gray-100:#f5f5f5;--le-color-gray-200:#eeeeee;--le-color-gray-300:#e0e0e0;--le-color-gray-400:#bdbdbd;--le-color-gray-500:#9e9e9e;--le-color-gray-600:#757575;--le-color-gray-700:#616161;--le-color-gray-800:#424242;--le-color-gray-900:#212121;--le-color-background:#ffffff;--le-color-background-secondary:#f5f5f5;--le-color-background-tertiary:#eeeeee;--le-color-surface:#ffffff;--le-color-surface-elevated:#ffffff;--le-color-text-primary:#212121;--le-color-text-secondary:#757575;--le-color-text-disabled:#9e9e9e;--le-color-text-inverse:#ffffff;--le-color-border:#e0e0e0;--le-color-border-light:#eeeeee;--le-color-border-dark:#bdbdbd;--le-border-width:2px;--le-color-border-input:#c4d6e6;--le-color-focus:rgba(0, 136, 255, 0.5);--le-radius-none:0;--le-radius-sm:0.125rem;--le-radius-md:0.25rem;--le-radius-lg:0.5rem;--le-radius-xl:0.75rem;--le-radius-2xl:1rem;--le-radius-full:9999px;--le-shadow-none:none;--le-shadow-sm:0 1px 2px rgba(0, 0, 0, 0.05);--le-shadow-md:0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);--le-shadow-lg:0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);--le-shadow-xl:0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);--le-shadow-2xl:0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04)}[theme=\"dark\"]{--le-color-primary:#4da6ff;--le-color-primary-light:#80c1ff;--le-color-primary-dark:#0088ff;--le-color-primary-contrast:#000000;--le-color-secondary:#868e96;--le-color-secondary-light:#adb5bd;--le-color-secondary-dark:#6c757d;--le-color-secondary-contrast:#000000;--le-color-success:#48c764;--le-color-success-light:#6dd587;--le-color-success-dark:#28a745;--le-color-success-contrast:#000000;--le-color-warning:#ffcd39;--le-color-warning-light:#ffda6a;--le-color-warning-dark:#ffc107;--le-color-warning-contrast:#000000;--le-color-danger:#e4606d;--le-color-danger-light:#ea868f;--le-color-danger-dark:#dc3545;--le-color-danger-contrast:#000000;--le-color-info:#3ab0c3;--le-color-info-light:#6dc4d3;--le-color-info-dark:#17a2b8;--le-color-info-contrast:#000000;--le-color-white:#ffffff;--le-color-black:#000000;--le-color-gray-50:#212121;--le-color-gray-100:#424242;--le-color-gray-200:#616161;--le-color-gray-300:#757575;--le-color-gray-400:#9e9e9e;--le-color-gray-500:#bdbdbd;--le-color-gray-600:#e0e0e0;--le-color-gray-700:#eeeeee;--le-color-gray-800:#f5f5f5;--le-color-gray-900:#fafafa;--le-color-background:#121212;--le-color-background-secondary:#1e1e1e;--le-color-background-tertiary:#2d2d2d;--le-color-surface:#1e1e1e;--le-color-surface-elevated:#2d2d2d;--le-color-text-primary:#ffffff;--le-color-text-secondary:#b3b3b3;--le-color-text-disabled:#666666;--le-color-text-inverse:#121212;--le-color-border:#333333;--le-color-border-light:#2d2d2d;--le-color-border-dark:#444444;--le-border-width:2px;--le-color-border-input:#515c6b;--le-color-focus:rgba(77, 166, 255, 0.5);--le-radius-none:0;--le-radius-sm:0.125rem;--le-radius-md:0.25rem;--le-radius-lg:0.5rem;--le-radius-xl:0.75rem;--le-radius-2xl:1rem;--le-radius-full:9999px;--le-shadow-none:none;--le-shadow-sm:0 1px 2px rgba(0, 0, 0, 0.3);--le-shadow-md:0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);--le-shadow-lg:0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);--le-shadow-xl:0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);--le-shadow-2xl:0 20px 25px rgba(0, 0, 0, 0.4), 0 10px 10px rgba(0, 0, 0, 0.3)}[theme=\"gradient\"]{--le-color-primary:#8b5cf6;--le-color-primary-light:#a78bfa;--le-color-primary-dark:#7c3aed;--le-color-primary-contrast:#ffffff;--le-color-secondary:#ec4899;--le-color-secondary-light:#f472b6;--le-color-secondary-dark:#db2777;--le-color-secondary-contrast:#ffffff;--le-color-success:#10b981;--le-color-success-light:#34d399;--le-color-success-dark:#059669;--le-color-success-contrast:#ffffff;--le-color-warning:#f59e0b;--le-color-warning-light:#fbbf24;--le-color-warning-dark:#d97706;--le-color-warning-contrast:#000000;--le-color-danger:#ef4444;--le-color-danger-light:#f87171;--le-color-danger-dark:#dc2626;--le-color-danger-contrast:#ffffff;--le-color-info:#06b6d4;--le-color-info-light:#22d3ee;--le-color-info-dark:#0891b2;--le-color-info-contrast:#ffffff;--le-color-white:#ffffff;--le-color-black:#000000;--le-color-gray-50:#faf5ff;--le-color-gray-100:#f3e8ff;--le-color-gray-200:#e9d5ff;--le-color-gray-300:#d8b4fe;--le-color-gray-400:#c084fc;--le-color-gray-500:#a855f7;--le-color-gray-600:#9333ea;--le-color-gray-700:#7e22ce;--le-color-gray-800:#6b21a8;--le-color-gray-900:#581c87;--le-color-background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);--le-color-background-secondary:rgba(255, 255, 255, 0.1);--le-color-background-tertiary:rgba(255, 255, 255, 0.05);--le-color-surface:rgba(255, 255, 255, 0.95);--le-color-surface-elevated:#ffffff;--le-color-text-primary:#1f2937;--le-color-text-secondary:#6b7280;--le-color-text-disabled:#9ca3af;--le-color-text-inverse:#ffffff;--le-color-border:rgba(139, 92, 246, 0.3);--le-color-border-light:rgba(139, 92, 246, 0.1);--le-color-border-dark:rgba(139, 92, 246, 0.5);--le-border-width:2px;--le-color-border-input:#eccddd;--le-color-focus:rgba(139, 92, 246, 0.5);--le-radius-none:0;--le-radius-sm:0.25rem;--le-radius-md:0.5rem;--le-radius-lg:1rem;--le-radius-xl:1.5rem;--le-radius-2xl:2rem;--le-radius-full:9999px;--le-shadow-none:none;--le-shadow-sm:0 1px 2px rgba(139, 92, 246, 0.1);--le-shadow-md:0 4px 6px rgba(139, 92, 246, 0.15), 0 2px 4px rgba(139, 92, 246, 0.1);--le-shadow-lg:0 10px 20px rgba(139, 92, 246, 0.2), 0 4px 8px rgba(139, 92, 246, 0.1);--le-shadow-xl:0 20px 40px rgba(139, 92, 246, 0.25), 0 8px 16px rgba(139, 92, 246, 0.15);--le-shadow-2xl:0 30px 60px rgba(139, 92, 246, 0.3), 0 15px 30px rgba(139, 92, 246, 0.2)}[theme=\"minimal\"]{--le-color-primary:#111827;--le-color-primary-light:#374151;--le-color-primary-dark:#030712;--le-color-primary-contrast:#ffffff;--le-color-secondary:#6b7280;--le-color-secondary-light:#9ca3af;--le-color-secondary-dark:#4b5563;--le-color-secondary-contrast:#ffffff;--le-color-success:#059669;--le-color-success-light:#10b981;--le-color-success-dark:#047857;--le-color-success-contrast:#ffffff;--le-color-warning:#d97706;--le-color-warning-light:#f59e0b;--le-color-warning-dark:#b45309;--le-color-warning-contrast:#ffffff;--le-color-danger:#dc2626;--le-color-danger-light:#ef4444;--le-color-danger-dark:#b91c1c;--le-color-danger-contrast:#ffffff;--le-color-info:#0284c7;--le-color-info-light:#0ea5e9;--le-color-info-dark:#0369a1;--le-color-info-contrast:#ffffff;--le-color-white:#ffffff;--le-color-black:#000000;--le-color-gray-50:#f9fafb;--le-color-gray-100:#f3f4f6;--le-color-gray-200:#e5e7eb;--le-color-gray-300:#d1d5db;--le-color-gray-400:#9ca3af;--le-color-gray-500:#6b7280;--le-color-gray-600:#4b5563;--le-color-gray-700:#374151;--le-color-gray-800:#1f2937;--le-color-gray-900:#111827;--le-color-background:#ffffff;--le-color-background-secondary:#fafafa;--le-color-background-tertiary:#f5f5f5;--le-color-surface:#ffffff;--le-color-surface-elevated:#ffffff;--le-color-text-primary:#111827;--le-color-text-secondary:#6b7280;--le-color-text-disabled:#9ca3af;--le-color-text-inverse:#ffffff;--le-color-border:#e5e7eb;--le-color-border-light:#f3f4f6;--le-color-border-dark:#d1d5db;--le-border-width:1px;--le-color-border-input:#c8cfdd;--le-color-focus:rgba(17, 24, 39, 0.3);--le-radius-none:0;--le-radius-sm:0;--le-radius-md:2px;--le-radius-lg:4px;--le-radius-xl:6px;--le-radius-2xl:8px;--le-radius-full:9999px;--le-shadow-none:none;--le-shadow-sm:none;--le-shadow-md:0 1px 2px rgba(0, 0, 0, 0.05);--le-shadow-lg:0 1px 3px rgba(0, 0, 0, 0.08);--le-shadow-xl:0 2px 4px rgba(0, 0, 0, 0.1);--le-shadow-2xl:0 4px 8px rgba(0, 0, 0, 0.1)}[theme=\"warm\"]{--le-color-primary:#ea580c;--le-color-primary-light:#fb923c;--le-color-primary-dark:#c2410c;--le-color-primary-contrast:#ffffff;--le-color-secondary:#b45309;--le-color-secondary-light:#d97706;--le-color-secondary-dark:#92400e;--le-color-secondary-contrast:#ffffff;--le-color-success:#16a34a;--le-color-success-light:#22c55e;--le-color-success-dark:#15803d;--le-color-success-contrast:#ffffff;--le-color-warning:#ca8a04;--le-color-warning-light:#eab308;--le-color-warning-dark:#a16207;--le-color-warning-contrast:#000000;--le-color-danger:#dc2626;--le-color-danger-light:#ef4444;--le-color-danger-dark:#b91c1c;--le-color-danger-contrast:#ffffff;--le-color-info:#0891b2;--le-color-info-light:#06b6d4;--le-color-info-dark:#0e7490;--le-color-info-contrast:#ffffff;--le-color-white:#ffffff;--le-color-black:#000000;--le-color-gray-50:#fffbeb;--le-color-gray-100:#fef3c7;--le-color-gray-200:#fde68a;--le-color-gray-300:#fcd34d;--le-color-gray-400:#fbbf24;--le-color-gray-500:#f59e0b;--le-color-gray-600:#d97706;--le-color-gray-700:#b45309;--le-color-gray-800:#92400e;--le-color-gray-900:#78350f;--le-color-background:#fffbeb;--le-color-background-secondary:#fef3c7;--le-color-background-tertiary:#fde68a;--le-color-surface:#ffffff;--le-color-surface-elevated:#ffffff;--le-color-text-primary:#78350f;--le-color-text-secondary:#92400e;--le-color-text-disabled:#d97706;--le-color-text-inverse:#ffffff;--le-color-border:#fcd34d;--le-color-border-light:#fde68a;--le-color-border-dark:#fbbf24;--le-border-width:2px;--le-color-border-input:#e7d4c4;--le-color-focus:rgba(234, 88, 12, 0.5);--le-radius-none:0;--le-radius-sm:0.125rem;--le-radius-md:0.375rem;--le-radius-lg:0.625rem;--le-radius-xl:0.875rem;--le-radius-2xl:1.125rem;--le-radius-full:9999px;--le-shadow-none:none;--le-shadow-sm:0 1px 2px rgba(234, 88, 12, 0.05);--le-shadow-md:0 4px 6px rgba(234, 88, 12, 0.1), 0 2px 4px rgba(234, 88, 12, 0.06);--le-shadow-lg:0 10px 15px rgba(234, 88, 12, 0.15), 0 4px 6px rgba(234, 88, 12, 0.08);--le-shadow-xl:0 20px 25px rgba(234, 88, 12, 0.15), 0 10px 10px rgba(234, 88, 12, 0.1);--le-shadow-2xl:0 25px 50px rgba(234, 88, 12, 0.2), 0 12px 24px rgba(234, 88, 12, 0.12)}:root{--le-space-xs:4px;--le-space-sm:8px;--le-space-md:16px;--le-space-lg:24px;--le-space-xl:32px;--le-space-2xl:48px;--le-space-3xl:64px;--le-font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;--le-font-family-mono:'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;--le-font-size-xs:0.75rem;--le-font-size-sm:0.875rem;--le-font-size-md:1rem;--le-font-size-lg:1.125rem;--le-font-size-xl:1.25rem;--le-font-size-2xl:1.5rem;--le-font-size-3xl:2rem;--le-font-size-4xl:2.5rem;--le-font-weight-normal:400;--le-font-weight-medium:500;--le-font-weight-semibold:600;--le-font-weight-bold:700;--le-line-height-tight:1.25;--le-line-height-normal:1.5;--le-line-height-relaxed:1.75;--le-transition-fast:150ms ease;--le-transition-normal:250ms ease;--le-transition-slow:400ms ease;--le-transition-bounce:400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);--le-z-dropdown:1000;--le-z-sticky:1020;--le-z-fixed:1030;--le-z-modal-backdrop:1040;--le-z-modal:1050;--le-z-popover:1060;--le-z-tooltip:1070}:root,[theme=\"default\"]{--le-color-primary:#3b82f6;--le-color-primary-hover:#2563eb;--le-color-primary-active:#1d4ed8;--le-color-primary-subtle:#eff6ff;--le-color-on-primary:#ffffff;--le-color-secondary:#64748b;--le-color-secondary-hover:#475569;--le-color-secondary-active:#334155;--le-color-secondary-subtle:#f1f5f9;--le-color-on-secondary:#ffffff;--le-color-success:#22c55e;--le-color-success-subtle:#f0fdf4;--le-color-on-success:#ffffff;--le-color-warning:#f59e0b;--le-color-warning-subtle:#fffbeb;--le-color-on-warning:#000000;--le-color-error:#ef4444;--le-color-error-subtle:#fef2f2;--le-color-on-error:#ffffff;--le-color-info:#06b6d4;--le-color-info-subtle:#ecfeff;--le-color-on-info:#ffffff;--le-color-background:#ffffff;--le-color-surface:#ffffff;--le-color-surface-raised:#ffffff;--le-color-surface-overlay:rgba(0, 0, 0, 0.5);--le-color-text:#1e293b;--le-color-text-secondary:#64748b;--le-color-text-muted:#94a3b8;--le-color-text-inverse:#ffffff;--le-color-border:#e2e8f0;--le-color-border-strong:#cbd5e1;--le-color-border-focus:var(--le-color-primary);--le-radius-none:0;--le-radius-sm:4px;--le-radius-md:7px;--le-radius-lg:12px;--le-radius-xl:16px;--le-radius-2xl:24px;--le-radius-full:9999px;--le-shadow-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--le-shadow-md:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);--le-shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);--le-shadow-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);--le-shadow-focus:0 0 0 3px rgba(59, 130, 246, 0.3)}[theme=\"dark\"]{--le-color-primary:#60a5fa;--le-color-primary-hover:#93c5fd;--le-color-primary-active:#3b82f6;--le-color-primary-subtle:#1e3a5f;--le-color-on-primary:#0f172a;--le-color-secondary:#94a3b8;--le-color-secondary-hover:#cbd5e1;--le-color-secondary-active:#64748b;--le-color-secondary-subtle:#1e293b;--le-color-on-secondary:#0f172a;--le-color-success:#4ade80;--le-color-success-subtle:#14532d;--le-color-on-success:#0f172a;--le-color-warning:#fbbf24;--le-color-warning-subtle:#422006;--le-color-on-warning:#0f172a;--le-color-error:#f87171;--le-color-error-subtle:#450a0a;--le-color-on-error:#0f172a;--le-color-info:#22d3ee;--le-color-info-subtle:#164e63;--le-color-on-info:#0f172a;--le-color-background:#0f172a;--le-color-surface:#1e293b;--le-color-surface-raised:#334155;--le-color-surface-overlay:rgba(0, 0, 0, 0.7);--le-color-text:#f1f5f9;--le-color-text-secondary:#94a3b8;--le-color-text-muted:#64748b;--le-color-text-inverse:#0f172a;--le-color-border:#334155;--le-color-border-strong:#475569;--le-color-border-focus:var(--le-color-primary);--le-shadow-sm:0 1px 2px 0 rgba(0, 0, 0, 0.3);--le-shadow-md:0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);--le-shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);--le-shadow-xl:0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);--le-shadow-focus:0 0 0 3px rgba(96, 165, 250, 0.4)}[theme=\"gradient\"]{--le-color-primary:#8b5cf6;--le-color-primary-hover:#a78bfa;--le-color-primary-active:#7c3aed;--le-color-primary-subtle:#f5f3ff;--le-color-on-primary:#ffffff;--le-color-secondary:#ec4899;--le-color-secondary-hover:#f472b6;--le-color-secondary-active:#db2777;--le-color-secondary-subtle:#fdf2f8;--le-color-on-secondary:#ffffff;--le-color-success:#10b981;--le-color-success-subtle:#ecfdf5;--le-color-on-success:#ffffff;--le-color-warning:#f59e0b;--le-color-warning-subtle:#fffbeb;--le-color-on-warning:#000000;--le-color-error:#f43f5e;--le-color-error-subtle:#fff1f2;--le-color-on-error:#ffffff;--le-color-info:#06b6d4;--le-color-info-subtle:#ecfeff;--le-color-on-info:#ffffff;--le-color-background:linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #fff7ed 100%);--le-color-surface:rgba(255, 255, 255, 0.9);--le-color-surface-raised:#ffffff;--le-color-surface-overlay:rgba(139, 92, 246, 0.3);--le-color-text:#1f2937;--le-color-text-secondary:#6b7280;--le-color-text-muted:#9ca3af;--le-color-text-inverse:#ffffff;--le-color-border:rgba(139, 92, 246, 0.2);--le-color-border-strong:rgba(139, 92, 246, 0.4);--le-color-border-focus:var(--le-color-primary);--le-radius-sm:6px;--le-radius-md:12px;--le-radius-lg:16px;--le-radius-xl:20px;--le-radius-2xl:28px;--le-shadow-sm:0 1px 3px 0 rgba(139, 92, 246, 0.1);--le-shadow-md:0 4px 6px -1px rgba(139, 92, 246, 0.15), 0 2px 4px -2px rgba(236, 72, 153, 0.1);--le-shadow-lg:0 10px 15px -3px rgba(139, 92, 246, 0.2), 0 4px 6px -4px rgba(236, 72, 153, 0.15);--le-shadow-xl:0 20px 25px -5px rgba(139, 92, 246, 0.25), 0 8px 10px -6px rgba(236, 72, 153, 0.2);--le-shadow-focus:0 0 0 3px rgba(139, 92, 246, 0.4)}[theme=\"minimal\"]{--le-color-primary:#374151;--le-color-primary-hover:#1f2937;--le-color-primary-active:#111827;--le-color-primary-subtle:#f3f4f6;--le-color-on-primary:#ffffff;--le-color-secondary:#9ca3af;--le-color-secondary-hover:#6b7280;--le-color-secondary-active:#4b5563;--le-color-secondary-subtle:#f9fafb;--le-color-on-secondary:#ffffff;--le-color-success:#059669;--le-color-success-subtle:#f0fdf4;--le-color-on-success:#ffffff;--le-color-warning:#d97706;--le-color-warning-subtle:#fffbeb;--le-color-on-warning:#ffffff;--le-color-error:#dc2626;--le-color-error-subtle:#fef2f2;--le-color-on-error:#ffffff;--le-color-info:#0891b2;--le-color-info-subtle:#ecfeff;--le-color-on-info:#ffffff;--le-color-background:#fafafa;--le-color-surface:#ffffff;--le-color-surface-raised:#ffffff;--le-color-surface-overlay:rgba(0, 0, 0, 0.4);--le-color-text:#111827;--le-color-text-secondary:#6b7280;--le-color-text-muted:#9ca3af;--le-color-text-inverse:#ffffff;--le-color-border:#e5e7eb;--le-color-border-strong:#d1d5db;--le-color-border-focus:var(--le-color-primary);--le-radius-none:0;--le-radius-sm:2px;--le-radius-md:4px;--le-radius-lg:6px;--le-radius-xl:8px;--le-radius-2xl:12px;--le-radius-full:9999px;--le-shadow-sm:0 1px 2px 0 rgba(0, 0, 0, 0.03);--le-shadow-md:0 2px 4px -1px rgba(0, 0, 0, 0.06);--le-shadow-lg:0 4px 8px -2px rgba(0, 0, 0, 0.08);--le-shadow-xl:0 8px 16px -4px rgba(0, 0, 0, 0.1);--le-shadow-focus:0 0 0 2px rgba(55, 65, 81, 0.2)}[theme=\"warm\"]{--le-color-primary:#ea580c;--le-color-primary-hover:#f97316;--le-color-primary-active:#c2410c;--le-color-primary-subtle:#fff7ed;--le-color-on-primary:#ffffff;--le-color-secondary:#78716c;--le-color-secondary-hover:#57534e;--le-color-secondary-active:#44403c;--le-color-secondary-subtle:#fafaf9;--le-color-on-secondary:#ffffff;--le-color-success:#65a30d;--le-color-success-subtle:#f7fee7;--le-color-on-success:#ffffff;--le-color-warning:#d97706;--le-color-warning-subtle:#fffbeb;--le-color-on-warning:#000000;--le-color-error:#dc2626;--le-color-error-subtle:#fef2f2;--le-color-on-error:#ffffff;--le-color-info:#0891b2;--le-color-info-subtle:#ecfeff;--le-color-on-info:#ffffff;--le-color-background:#fffbf5;--le-color-surface:#ffffff;--le-color-surface-raised:#ffffff;--le-color-surface-overlay:rgba(120, 53, 15, 0.4);--le-color-text:#292524;--le-color-text-secondary:#78716c;--le-color-text-muted:#a8a29e;--le-color-text-inverse:#ffffff;--le-color-border:#e7e5e4;--le-color-border-strong:#d6d3d1;--le-color-border-focus:var(--le-color-primary);--le-radius-sm:4px;--le-radius-md:8px;--le-radius-lg:12px;--le-radius-xl:16px;--le-radius-2xl:24px;--le-shadow-sm:0 1px 2px 0 rgba(120, 53, 15, 0.05);--le-shadow-md:0 4px 6px -1px rgba(120, 53, 15, 0.1), 0 2px 4px -2px rgba(120, 53, 15, 0.08);--le-shadow-lg:0 10px 15px -3px rgba(120, 53, 15, 0.12), 0 4px 6px -4px rgba(120, 53, 15, 0.1);--le-shadow-xl:0 20px 25px -5px rgba(120, 53, 15, 0.15), 0 8px 10px -6px rgba(120, 53, 15, 0.12);--le-shadow-focus:0 0 0 3px rgba(234, 88, 12, 0.3)}";
|
|
1438
|
-
|
|
1439
|
-
export { Fragment as F, H, setNonce as a, setPlatformOptions as b, Host as c, createEvent as d, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|
|
1440
|
-
//# sourceMappingURL=p-IPZGv1ea.js.map
|
|
1441
|
-
|
|
1442
|
-
//# sourceMappingURL=p-IPZGv1ea.js.map
|