proto-daisy-db 0.0.381 → 0.0.383
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/cjs/{index-7d94a624.js → index-d92a1003.js} +182 -130
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-daisy-db.cjs.js +2 -2
- package/dist/cjs/proto-daisy-db_5.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/proto-daisy-db/proto-daisy-db.js +2 -0
- package/dist/collection/components/proto-faux-keys/proto-faux-keys.js +2 -0
- package/dist/collection/components/proto-faux-stamp/proto-faux-stamp.js +2 -0
- package/dist/collection/components/proto-faux-trigger/proto-faux-trigger.js +4 -0
- package/dist/collection/components/proto-faux-type/proto-faux-type.js +4 -0
- package/dist/esm/{index-499a6b94.js → index-4eff58f0.js} +182 -130
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-daisy-db.js +3 -3
- package/dist/esm/proto-daisy-db_5.entry.js +1 -1
- package/dist/proto-daisy-db/{p-eb3f5d4f.entry.js → p-05dbfa8a.entry.js} +1 -1
- package/dist/proto-daisy-db/p-da8ebe19.js +2 -0
- package/dist/proto-daisy-db/proto-daisy-db.esm.js +1 -1
- package/package.json +3 -3
- package/dist/proto-daisy-db/p-2c3e5cb5.js +0 -2
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
24
24
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -202,20 +202,6 @@ var unwrapErr = (result) => {
|
|
|
202
202
|
throw result.value;
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
-
var createTime = (fnName, tagName = "") => {
|
|
206
|
-
{
|
|
207
|
-
return () => {
|
|
208
|
-
return;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
var uniqueTime = (key, measureText) => {
|
|
213
|
-
{
|
|
214
|
-
return () => {
|
|
215
|
-
return;
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
205
|
var h = (nodeName, vnodeData, ...children) => {
|
|
220
206
|
let child = null;
|
|
221
207
|
let key = null;
|
|
@@ -280,110 +266,6 @@ var newVNode = (tag, text) => {
|
|
|
280
266
|
};
|
|
281
267
|
var Host = {};
|
|
282
268
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
283
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
284
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
285
|
-
if (propType & 1 /* String */) {
|
|
286
|
-
return String(propValue);
|
|
287
|
-
}
|
|
288
|
-
return propValue;
|
|
289
|
-
}
|
|
290
|
-
return propValue;
|
|
291
|
-
};
|
|
292
|
-
var emitEvent = (elm, name, opts) => {
|
|
293
|
-
const ev = plt.ce(name, opts);
|
|
294
|
-
elm.dispatchEvent(ev);
|
|
295
|
-
return ev;
|
|
296
|
-
};
|
|
297
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
298
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
299
|
-
let style = styles.get(scopeId2);
|
|
300
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
301
|
-
style = style || new CSSStyleSheet();
|
|
302
|
-
if (typeof style === "string") {
|
|
303
|
-
style = cssText;
|
|
304
|
-
} else {
|
|
305
|
-
style.replaceSync(cssText);
|
|
306
|
-
}
|
|
307
|
-
} else {
|
|
308
|
-
style = cssText;
|
|
309
|
-
}
|
|
310
|
-
styles.set(scopeId2, style);
|
|
311
|
-
};
|
|
312
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
313
|
-
var _a;
|
|
314
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
315
|
-
const style = styles.get(scopeId2);
|
|
316
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
317
|
-
if (style) {
|
|
318
|
-
if (typeof style === "string") {
|
|
319
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
320
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
321
|
-
let styleElm;
|
|
322
|
-
if (!appliedStyles) {
|
|
323
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
324
|
-
}
|
|
325
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
326
|
-
{
|
|
327
|
-
styleElm = doc.createElement("style");
|
|
328
|
-
styleElm.innerHTML = style;
|
|
329
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
330
|
-
if (nonce != null) {
|
|
331
|
-
styleElm.setAttribute("nonce", nonce);
|
|
332
|
-
}
|
|
333
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
334
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
335
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
336
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
337
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
338
|
-
} else if ("host" in styleContainerNode) {
|
|
339
|
-
if (supportsConstructableStylesheets) {
|
|
340
|
-
const stylesheet = new CSSStyleSheet();
|
|
341
|
-
stylesheet.replaceSync(style);
|
|
342
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
343
|
-
} else {
|
|
344
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
345
|
-
if (existingStyleContainer) {
|
|
346
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
347
|
-
} else {
|
|
348
|
-
styleContainerNode.prepend(styleElm);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
} else {
|
|
352
|
-
styleContainerNode.append(styleElm);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
356
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
360
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
361
|
-
}
|
|
362
|
-
if (appliedStyles) {
|
|
363
|
-
appliedStyles.add(scopeId2);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
367
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return scopeId2;
|
|
371
|
-
};
|
|
372
|
-
var attachStyles = (hostRef) => {
|
|
373
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
374
|
-
const elm = hostRef.$hostElement$;
|
|
375
|
-
const flags = cmpMeta.$flags$;
|
|
376
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
377
|
-
const scopeId2 = addStyle(
|
|
378
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
379
|
-
cmpMeta);
|
|
380
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
381
|
-
elm["s-sc"] = scopeId2;
|
|
382
|
-
elm.classList.add(scopeId2 + "-h");
|
|
383
|
-
}
|
|
384
|
-
endAttachStyles();
|
|
385
|
-
};
|
|
386
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
387
269
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
388
270
|
if (oldValue !== newValue) {
|
|
389
271
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -392,6 +274,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
392
274
|
const classList = elm.classList;
|
|
393
275
|
const oldClasses = parseClassList(oldValue);
|
|
394
276
|
const newClasses = parseClassList(newValue);
|
|
277
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
278
|
+
newClasses.push(elm["s-si"]);
|
|
279
|
+
}
|
|
395
280
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
396
281
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
397
282
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
@@ -690,6 +575,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
690
575
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
691
576
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
692
577
|
};
|
|
578
|
+
var createTime = (fnName, tagName = "") => {
|
|
579
|
+
{
|
|
580
|
+
return () => {
|
|
581
|
+
return;
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
var uniqueTime = (key, measureText) => {
|
|
586
|
+
{
|
|
587
|
+
return () => {
|
|
588
|
+
return;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
593
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
594
|
+
if (propType & 1 /* String */) {
|
|
595
|
+
return String(propValue);
|
|
596
|
+
}
|
|
597
|
+
return propValue;
|
|
598
|
+
}
|
|
599
|
+
return propValue;
|
|
600
|
+
};
|
|
601
|
+
var emitEvent = (elm, name, opts) => {
|
|
602
|
+
const ev = plt.ce(name, opts);
|
|
603
|
+
elm.dispatchEvent(ev);
|
|
604
|
+
return ev;
|
|
605
|
+
};
|
|
606
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
607
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
608
|
+
let style = styles.get(scopeId2);
|
|
609
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
610
|
+
style = style || new CSSStyleSheet();
|
|
611
|
+
if (typeof style === "string") {
|
|
612
|
+
style = cssText;
|
|
613
|
+
} else {
|
|
614
|
+
style.replaceSync(cssText);
|
|
615
|
+
}
|
|
616
|
+
} else {
|
|
617
|
+
style = cssText;
|
|
618
|
+
}
|
|
619
|
+
styles.set(scopeId2, style);
|
|
620
|
+
};
|
|
621
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
622
|
+
var _a;
|
|
623
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
624
|
+
const style = styles.get(scopeId2);
|
|
625
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
626
|
+
if (style) {
|
|
627
|
+
if (typeof style === "string") {
|
|
628
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
629
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
630
|
+
let styleElm;
|
|
631
|
+
if (!appliedStyles) {
|
|
632
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
633
|
+
}
|
|
634
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
635
|
+
{
|
|
636
|
+
styleElm = doc.createElement("style");
|
|
637
|
+
styleElm.innerHTML = style;
|
|
638
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
639
|
+
if (nonce != null) {
|
|
640
|
+
styleElm.setAttribute("nonce", nonce);
|
|
641
|
+
}
|
|
642
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
643
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
644
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
645
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
646
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
647
|
+
} else if ("host" in styleContainerNode) {
|
|
648
|
+
if (supportsConstructableStylesheets) {
|
|
649
|
+
const stylesheet = new CSSStyleSheet();
|
|
650
|
+
stylesheet.replaceSync(style);
|
|
651
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
652
|
+
} else {
|
|
653
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
654
|
+
if (existingStyleContainer) {
|
|
655
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
656
|
+
} else {
|
|
657
|
+
styleContainerNode.prepend(styleElm);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
} else {
|
|
661
|
+
styleContainerNode.append(styleElm);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
665
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
669
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
670
|
+
}
|
|
671
|
+
if (appliedStyles) {
|
|
672
|
+
appliedStyles.add(scopeId2);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
676
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return scopeId2;
|
|
680
|
+
};
|
|
681
|
+
var attachStyles = (hostRef) => {
|
|
682
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
683
|
+
const elm = hostRef.$hostElement$;
|
|
684
|
+
const flags = cmpMeta.$flags$;
|
|
685
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
686
|
+
const scopeId2 = addStyle(
|
|
687
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
688
|
+
cmpMeta);
|
|
689
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
690
|
+
elm["s-sc"] = scopeId2;
|
|
691
|
+
elm.classList.add(scopeId2 + "-h");
|
|
692
|
+
}
|
|
693
|
+
endAttachStyles();
|
|
694
|
+
};
|
|
695
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
693
696
|
|
|
694
697
|
// src/runtime/update-component.ts
|
|
695
698
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -867,16 +870,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
867
870
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
868
871
|
members.map(([memberName, [memberFlags]]) => {
|
|
869
872
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
873
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
874
|
+
Object.defineProperty(prototype, memberName, {
|
|
875
|
+
get() {
|
|
876
|
+
return getValue(this, memberName);
|
|
877
|
+
},
|
|
878
|
+
set(newValue) {
|
|
879
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
880
|
+
},
|
|
881
|
+
configurable: true,
|
|
882
|
+
enumerable: true
|
|
883
|
+
});
|
|
884
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
885
|
+
{
|
|
886
|
+
Object.defineProperty(prototype, memberName, {
|
|
887
|
+
get() {
|
|
888
|
+
const ref = getHostRef(this);
|
|
889
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
890
|
+
if (!instance) return;
|
|
891
|
+
return instance[memberName];
|
|
892
|
+
},
|
|
893
|
+
configurable: true,
|
|
894
|
+
enumerable: true
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
898
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
899
|
+
Object.defineProperty(prototype, memberName, {
|
|
900
|
+
set(newValue) {
|
|
901
|
+
const ref = getHostRef(this);
|
|
902
|
+
if (origSetter) {
|
|
903
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
904
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
905
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
906
|
+
}
|
|
907
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
908
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
if (!ref) return;
|
|
912
|
+
const setterSetVal = () => {
|
|
913
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
914
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
915
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
916
|
+
}
|
|
917
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
918
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
919
|
+
};
|
|
920
|
+
if (ref.$lazyInstance$) {
|
|
921
|
+
setterSetVal();
|
|
922
|
+
} else {
|
|
923
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
}
|
|
880
929
|
}
|
|
881
930
|
});
|
|
882
931
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -905,7 +954,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
905
954
|
}
|
|
906
955
|
return;
|
|
907
956
|
}
|
|
908
|
-
|
|
957
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
958
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
959
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
960
|
+
}
|
|
909
961
|
});
|
|
910
962
|
};
|
|
911
963
|
Cstr.observedAttributes = Array.from(
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d92a1003.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d92a1003.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-daisy-db.cjs.js', document.baseURI).href));
|
|
@@ -60,6 +60,8 @@ export class ProtoFauxTrigger {
|
|
|
60
60
|
"tags": [],
|
|
61
61
|
"text": ""
|
|
62
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
63
65
|
"attribute": "emitter",
|
|
64
66
|
"reflect": false,
|
|
65
67
|
"defaultValue": "undefined"
|
|
@@ -78,6 +80,8 @@ export class ProtoFauxTrigger {
|
|
|
78
80
|
"tags": [],
|
|
79
81
|
"text": ""
|
|
80
82
|
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
81
85
|
"defaultValue": "undefined"
|
|
82
86
|
}
|
|
83
87
|
};
|
|
@@ -42,6 +42,8 @@ export class ProtoFauxType {
|
|
|
42
42
|
"tags": [],
|
|
43
43
|
"text": ""
|
|
44
44
|
},
|
|
45
|
+
"getter": false,
|
|
46
|
+
"setter": false,
|
|
45
47
|
"attribute": "emitter",
|
|
46
48
|
"reflect": false,
|
|
47
49
|
"defaultValue": "undefined"
|
|
@@ -60,6 +62,8 @@ export class ProtoFauxType {
|
|
|
60
62
|
"tags": [],
|
|
61
63
|
"text": ""
|
|
62
64
|
},
|
|
65
|
+
"getter": false,
|
|
66
|
+
"setter": false,
|
|
63
67
|
"attribute": "event-type",
|
|
64
68
|
"reflect": false,
|
|
65
69
|
"defaultValue": "undefined"
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-daisy-db';
|
|
|
2
2
|
const BUILD = /* proto-daisy-db */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -180,20 +180,6 @@ var unwrapErr = (result) => {
|
|
|
180
180
|
throw result.value;
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
var createTime = (fnName, tagName = "") => {
|
|
184
|
-
{
|
|
185
|
-
return () => {
|
|
186
|
-
return;
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
var uniqueTime = (key, measureText) => {
|
|
191
|
-
{
|
|
192
|
-
return () => {
|
|
193
|
-
return;
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
183
|
var h = (nodeName, vnodeData, ...children) => {
|
|
198
184
|
let child = null;
|
|
199
185
|
let key = null;
|
|
@@ -258,110 +244,6 @@ var newVNode = (tag, text) => {
|
|
|
258
244
|
};
|
|
259
245
|
var Host = {};
|
|
260
246
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
261
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
262
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
263
|
-
if (propType & 1 /* String */) {
|
|
264
|
-
return String(propValue);
|
|
265
|
-
}
|
|
266
|
-
return propValue;
|
|
267
|
-
}
|
|
268
|
-
return propValue;
|
|
269
|
-
};
|
|
270
|
-
var emitEvent = (elm, name, opts) => {
|
|
271
|
-
const ev = plt.ce(name, opts);
|
|
272
|
-
elm.dispatchEvent(ev);
|
|
273
|
-
return ev;
|
|
274
|
-
};
|
|
275
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
276
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
277
|
-
let style = styles.get(scopeId2);
|
|
278
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
279
|
-
style = style || new CSSStyleSheet();
|
|
280
|
-
if (typeof style === "string") {
|
|
281
|
-
style = cssText;
|
|
282
|
-
} else {
|
|
283
|
-
style.replaceSync(cssText);
|
|
284
|
-
}
|
|
285
|
-
} else {
|
|
286
|
-
style = cssText;
|
|
287
|
-
}
|
|
288
|
-
styles.set(scopeId2, style);
|
|
289
|
-
};
|
|
290
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
291
|
-
var _a;
|
|
292
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
293
|
-
const style = styles.get(scopeId2);
|
|
294
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
295
|
-
if (style) {
|
|
296
|
-
if (typeof style === "string") {
|
|
297
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
298
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
299
|
-
let styleElm;
|
|
300
|
-
if (!appliedStyles) {
|
|
301
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
302
|
-
}
|
|
303
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
304
|
-
{
|
|
305
|
-
styleElm = doc.createElement("style");
|
|
306
|
-
styleElm.innerHTML = style;
|
|
307
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
308
|
-
if (nonce != null) {
|
|
309
|
-
styleElm.setAttribute("nonce", nonce);
|
|
310
|
-
}
|
|
311
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
312
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
313
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
314
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
315
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
316
|
-
} else if ("host" in styleContainerNode) {
|
|
317
|
-
if (supportsConstructableStylesheets) {
|
|
318
|
-
const stylesheet = new CSSStyleSheet();
|
|
319
|
-
stylesheet.replaceSync(style);
|
|
320
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
321
|
-
} else {
|
|
322
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
323
|
-
if (existingStyleContainer) {
|
|
324
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
325
|
-
} else {
|
|
326
|
-
styleContainerNode.prepend(styleElm);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
} else {
|
|
330
|
-
styleContainerNode.append(styleElm);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
334
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
338
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
339
|
-
}
|
|
340
|
-
if (appliedStyles) {
|
|
341
|
-
appliedStyles.add(scopeId2);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
345
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return scopeId2;
|
|
349
|
-
};
|
|
350
|
-
var attachStyles = (hostRef) => {
|
|
351
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
352
|
-
const elm = hostRef.$hostElement$;
|
|
353
|
-
const flags = cmpMeta.$flags$;
|
|
354
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
355
|
-
const scopeId2 = addStyle(
|
|
356
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
357
|
-
cmpMeta);
|
|
358
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
359
|
-
elm["s-sc"] = scopeId2;
|
|
360
|
-
elm.classList.add(scopeId2 + "-h");
|
|
361
|
-
}
|
|
362
|
-
endAttachStyles();
|
|
363
|
-
};
|
|
364
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
365
247
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
366
248
|
if (oldValue !== newValue) {
|
|
367
249
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -370,6 +252,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
370
252
|
const classList = elm.classList;
|
|
371
253
|
const oldClasses = parseClassList(oldValue);
|
|
372
254
|
const newClasses = parseClassList(newValue);
|
|
255
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
256
|
+
newClasses.push(elm["s-si"]);
|
|
257
|
+
}
|
|
373
258
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
374
259
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
375
260
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
@@ -668,6 +553,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
668
553
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
669
554
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
670
555
|
};
|
|
556
|
+
var createTime = (fnName, tagName = "") => {
|
|
557
|
+
{
|
|
558
|
+
return () => {
|
|
559
|
+
return;
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
var uniqueTime = (key, measureText) => {
|
|
564
|
+
{
|
|
565
|
+
return () => {
|
|
566
|
+
return;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
571
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
572
|
+
if (propType & 1 /* String */) {
|
|
573
|
+
return String(propValue);
|
|
574
|
+
}
|
|
575
|
+
return propValue;
|
|
576
|
+
}
|
|
577
|
+
return propValue;
|
|
578
|
+
};
|
|
579
|
+
var emitEvent = (elm, name, opts) => {
|
|
580
|
+
const ev = plt.ce(name, opts);
|
|
581
|
+
elm.dispatchEvent(ev);
|
|
582
|
+
return ev;
|
|
583
|
+
};
|
|
584
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
585
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
586
|
+
let style = styles.get(scopeId2);
|
|
587
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
588
|
+
style = style || new CSSStyleSheet();
|
|
589
|
+
if (typeof style === "string") {
|
|
590
|
+
style = cssText;
|
|
591
|
+
} else {
|
|
592
|
+
style.replaceSync(cssText);
|
|
593
|
+
}
|
|
594
|
+
} else {
|
|
595
|
+
style = cssText;
|
|
596
|
+
}
|
|
597
|
+
styles.set(scopeId2, style);
|
|
598
|
+
};
|
|
599
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
600
|
+
var _a;
|
|
601
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
602
|
+
const style = styles.get(scopeId2);
|
|
603
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
604
|
+
if (style) {
|
|
605
|
+
if (typeof style === "string") {
|
|
606
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
607
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
608
|
+
let styleElm;
|
|
609
|
+
if (!appliedStyles) {
|
|
610
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
611
|
+
}
|
|
612
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
613
|
+
{
|
|
614
|
+
styleElm = doc.createElement("style");
|
|
615
|
+
styleElm.innerHTML = style;
|
|
616
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
617
|
+
if (nonce != null) {
|
|
618
|
+
styleElm.setAttribute("nonce", nonce);
|
|
619
|
+
}
|
|
620
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
621
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
622
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
623
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
624
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
625
|
+
} else if ("host" in styleContainerNode) {
|
|
626
|
+
if (supportsConstructableStylesheets) {
|
|
627
|
+
const stylesheet = new CSSStyleSheet();
|
|
628
|
+
stylesheet.replaceSync(style);
|
|
629
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
630
|
+
} else {
|
|
631
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
632
|
+
if (existingStyleContainer) {
|
|
633
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
634
|
+
} else {
|
|
635
|
+
styleContainerNode.prepend(styleElm);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
} else {
|
|
639
|
+
styleContainerNode.append(styleElm);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
643
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
647
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
648
|
+
}
|
|
649
|
+
if (appliedStyles) {
|
|
650
|
+
appliedStyles.add(scopeId2);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
654
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return scopeId2;
|
|
658
|
+
};
|
|
659
|
+
var attachStyles = (hostRef) => {
|
|
660
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
661
|
+
const elm = hostRef.$hostElement$;
|
|
662
|
+
const flags = cmpMeta.$flags$;
|
|
663
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
664
|
+
const scopeId2 = addStyle(
|
|
665
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
666
|
+
cmpMeta);
|
|
667
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
668
|
+
elm["s-sc"] = scopeId2;
|
|
669
|
+
elm.classList.add(scopeId2 + "-h");
|
|
670
|
+
}
|
|
671
|
+
endAttachStyles();
|
|
672
|
+
};
|
|
673
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
671
674
|
|
|
672
675
|
// src/runtime/update-component.ts
|
|
673
676
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -845,16 +848,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
845
848
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
846
849
|
members.map(([memberName, [memberFlags]]) => {
|
|
847
850
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
851
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
852
|
+
Object.defineProperty(prototype, memberName, {
|
|
853
|
+
get() {
|
|
854
|
+
return getValue(this, memberName);
|
|
855
|
+
},
|
|
856
|
+
set(newValue) {
|
|
857
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
858
|
+
},
|
|
859
|
+
configurable: true,
|
|
860
|
+
enumerable: true
|
|
861
|
+
});
|
|
862
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
863
|
+
{
|
|
864
|
+
Object.defineProperty(prototype, memberName, {
|
|
865
|
+
get() {
|
|
866
|
+
const ref = getHostRef(this);
|
|
867
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
868
|
+
if (!instance) return;
|
|
869
|
+
return instance[memberName];
|
|
870
|
+
},
|
|
871
|
+
configurable: true,
|
|
872
|
+
enumerable: true
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
876
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
877
|
+
Object.defineProperty(prototype, memberName, {
|
|
878
|
+
set(newValue) {
|
|
879
|
+
const ref = getHostRef(this);
|
|
880
|
+
if (origSetter) {
|
|
881
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
882
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
883
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
884
|
+
}
|
|
885
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
886
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
889
|
+
if (!ref) return;
|
|
890
|
+
const setterSetVal = () => {
|
|
891
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
892
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
893
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
894
|
+
}
|
|
895
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
896
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
897
|
+
};
|
|
898
|
+
if (ref.$lazyInstance$) {
|
|
899
|
+
setterSetVal();
|
|
900
|
+
} else {
|
|
901
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
}
|
|
858
907
|
}
|
|
859
908
|
});
|
|
860
909
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -883,7 +932,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
883
932
|
}
|
|
884
933
|
return;
|
|
885
934
|
}
|
|
886
|
-
|
|
935
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
936
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
937
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
938
|
+
}
|
|
887
939
|
});
|
|
888
940
|
};
|
|
889
941
|
Cstr.observedAttributes = Array.from(
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-4eff58f0.js';
|
|
2
|
+
export { s as setNonce } from './index-4eff58f0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-4eff58f0.js';
|
|
2
|
+
export { s as setNonce } from './index-4eff58f0.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.23.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-da8ebe19.js";const e="proto-daisy-db:app-data",s=class{constructor(a){t(this,a),this.emitter=void 0}componentDidLoad(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter];t.on("app-data:get",(()=>{var a;console.log("app-data:get"),(a=localStorage.getItem(e),new Promise(((t,e)=>{try{t(JSON.parse(a))}catch(t){e(t)}}))).then((a=>{t.emit("app-data:value",a)})).catch((t=>{console.log(t)}))})),t.on("app-data:store",(t=>{console.log("app-data:store",t),(t=>{const a=JSON.stringify(t);localStorage.setItem(e,a)})(t)})),t.emit("proto-daisy-db",{ready:!0})}}render(){return a("div",{key:"35e42fc3a7d518f3bc0211bc5f2c8221fd9bcc81"})}};s.style="";const o=class{constructor(a){t(this,a),this.data=void 0}render(){const t=this.data?Object.keys(this.data):[];return a("div",{key:"a423b82d951a69b266dd3d508a8dc11326a8008b",class:"flex flex-col"},t.map((t=>a("span",null,t))))}};o.style="";const r=class{constructor(a){t(this,a),this.data=void 0}render(){return a("div",{key:"f4837fa667d5d6e57086b09d1bc91719035442be",class:"flex"},a("span",{key:"a70fa27ba603ead243b5d262922082141420e0ac"},this.data?this.data.stamp:""))}};r.style="";const i=class{constructor(a){t(this,a),this.emitter=void 0,this.data=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("app-data:value",(t=>{this.data=t}))}emitData(){if(this.emitter&&window[this.emitter]){const t=window[this.emitter],a={login:!0,stamp:Date.now(),theme:"dark",dealers:[]};this.data=void 0,t.emit("app-data:store",a)}}fetchData(){this.emitter&&window[this.emitter]&&window[this.emitter].emit("app-data:get",42)}render(){return a("div",{key:"47a9f4c68160b18fceedba61f54a7be29c75325a",class:"flex flex-col font-sans"},a("div",{key:"334f34a36a896139cf4cc01f66bbf0d09bd89505",class:"flex flex-row content-center gap-2"},a("button",{key:"784f07b93d4cd4a0287e6dd172bc73ab8e3c49e5",class:"btn bg-clrs-navy text-clrs-white",onClick:()=>this.emitData()},"Save"),a("button",{key:"8526e3216eb0a725ea22b288ac0cb3c503405ee4",class:"btn bg-clrs-blue text-clrs-white",onClick:()=>this.fetchData()},"Fetch")),a("proto-faux-type",{key:"3033b83816b2997c790fb8df1e1d90f387f62afa",class:"mt-4",emitter:this.emitter}),a("proto-faux-stamp",{key:"811eef59cdcdfa2edb318ee5facf7ae0bc497c82",class:"mt-2 text-xs",data:this.data}),a("proto-faux-keys",{key:"ed39e233d92c46f801841240d32d783ee6b0f0fd",class:"mt-2",data:this.data}))}};i.style="*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.btn{border-radius:0.375rem;border-width:1px;border-style:solid;border-color:var(--clrs-aqua, #7fdbff);padding:0.5rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.flex{display:flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.content-center{align-content:center}.gap-2{gap:0.5rem}.bg-clrs-blue{background-color:var(--clrs-blue, #0074d9)}.bg-clrs-navy{background-color:var(--clrs-navy, #001f3f)}.font-sans{font-family:ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',\n 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}.text-xs{font-size:0.75rem;line-height:1rem}.italic{font-style:italic}.text-clrs-white{color:var(--clrs-white, #ffffff)}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),\n 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),\n var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";const c=class{constructor(a){t(this,a),this.emitter=void 0,this.eventType=void 0}componentDidLoad(){this.emitter&&window[this.emitter]&&window[this.emitter].on("*",(t=>{this.eventType=t}))}render(){return a("div",{key:"d441f639241a54d1ef8ae9c26a4560b5266457df"},a("span",{key:"a192c0ce3af5f94d72856ca851300537fd00f31f",class:"text-xs italic"},this.eventType))}};c.style="proto-faux-type{}";export{s as proto_daisy_db,o as proto_faux_keys,r as proto_faux_stamp,i as proto_faux_trigger,c as proto_faux_type}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},f=u.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],b=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(m),$(y),(p=m.length>0)&&a.raf(w)},v=e=>h().then(e),S=b(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?D(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},D=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=L(n),s=L(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(e["s-si"]),t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(N);t=t.replace(U,""),n&&a.rel(e,t,n,l),o&&a.ael(e,t,o,l)}}},T=/\s/,L=e=>e?e.split(T):[],N="Capture",U=RegExp(N+"$"),F=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||g,s=t.u||g;for(const e of W(Object.keys(l)))e in s||R(o,e,l[e],void 0,n,t.o);for(const e of W(Object.keys(s)))R(o,e,l[e],s[e],n,t.o)};function W(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.$=f.createTextNode(o.i);else if(l=o.$=f.createElement(o.m),F(null,o,q),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=G(e,o,i),s&&l.appendChild(s);return l["s-hn"]=M,l},V=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=G(null,n,l),i&&(o[l].$=i,I(r,i,t)))},_=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},z=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),B=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;null===i?(F(e,t,q),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,h=t[0],d=t[a],p=o.length-1,m=o[0],y=o[p];for(;r<=a&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--a];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(z(h,m,l))B(h,m,l),h=t[++r],m=o[++c];else if(z(d,y,l))B(d,y,l),d=t[--a],y=o[--p];else if(z(h,y,l))B(h,y,l),I(e,h.$,d.$.nextSibling),h=t[++r],y=o[--p];else if(z(d,m,l))B(d,m,l),I(e,d.$,h.$),d=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.m!==m.m?s=G(t&&t[c],n,u):(B(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=G(t&&t[c],n,c),m=o[++c]),s&&I(h.$.parentNode,s,h.$)}r>a?V(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&_(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),V(o,null,t,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1)):e.i!==i&&(o.data=i)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>null==e||j(e)?e:1&t?e+"":e,K=new WeakMap,Q=e=>"sc-"+e.v,X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),S((()=>Z(e,t)));e.o|=512},Z=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return ee(void 0,(()=>ne(e,n,t)))},ee=(e,t)=>te(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),te=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ne=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=Q(t),l=r.get(o);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let s,i=K.get(e=e.head||e);if(i||K.set(e,i=new Set),!i.has(o)){{s=f.createElement("style"),s.innerHTML=l;const o=null!=(n=a.k)?n:O(f);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);oe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},oe=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.$=s.$=o.shadowRoot||o,B(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,re(t),ie(n,"componentDidLoad"),e.M(t),o||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>Y(e,!1))),e.o&=-517},se=()=>{re(f.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(t),r=s.o,c=s.t;o=J(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&Y(s,!1))},ue=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,J(l,t.A[e][0])),void ce(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=J(l,t.A[e][0]),ce(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},fe=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=f.head,b=y.querySelector("meta[charset]"),$=f.createElement("style"),w=[];let v,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",f.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],v:o[1],A:o[2],R:o[3]};4&l.o&&(g=!0),l.A=o[2];const c=l.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?w.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,l=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.T){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.T;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.v}#${t.L}" was not found`);o.isProxied||(ue(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=Q(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Y(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}})()))}componentOnReady(){return n(this).D}};l.T=e[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,l,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=a.k)?l:O(f);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,b?b.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(se,30)))},ae=e=>a.k=e;export{fe as b,A as h,h as p,o as r,ae as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as e}from"./p-
|
|
1
|
+
import{p as t,b as e}from"./p-da8ebe19.js";export{s as setNonce}from"./p-da8ebe19.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-05dbfa8a",[[0,"proto-faux-trigger",{emitter:[1],data:[1040]}],[1,"proto-daisy-db",{emitter:[1]}],[0,"proto-faux-keys",{data:[16]}],[0,"proto-faux-stamp",{data:[16]}],[0,"proto-faux-type",{emitter:[1],eventType:[1025,"event-type"]}]]]],t))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-daisy-db",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.383",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "4.
|
|
30
|
+
"@stencil/core": "4.23.0",
|
|
31
31
|
"mitt": "3.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"autoprefixer": "10.4.20",
|
|
35
35
|
"concurrently": "9.1.0",
|
|
36
|
-
"cspell": "8.
|
|
36
|
+
"cspell": "8.17.0",
|
|
37
37
|
"postcss": "8.4.49",
|
|
38
38
|
"prettier": "3.4.2",
|
|
39
39
|
"prettier-plugin-tailwindcss": "0.6.9",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?v(b):f.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{w(m),w(y),(d=m.length>0)&&f.raf(b)},v=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?D(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},D=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=new WeakMap,T=e=>"sc-"+e.v,L=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(F);t=t.replace(W,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},N=/\s/,U=e=>e?e.split(N):[],F="Capture",W=RegExp(F+"$"),q=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of G(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of G(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,_=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),q(null,l,V),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=_(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},z=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=_(null,n,o),i&&(l[o].$=i,K(r,i,t)))},B=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},I=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),J=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(q(e,t,V),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;r<=f&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(I(h,m,o))J(h,m,o),h=t[++r],m=l[++c];else if(I(p,y,o))J(p,y,o),p=t[--f],y=l[--d];else if(I(h,y,o))J(h,y,o),K(e,h.$,p.$.nextSibling),h=t[++r],y=l[--d];else if(I(p,m,o))J(p,m,o),K(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=_(t&&t[c],n,u):(J(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=_(t&&t[c],n,c),m=l[++c]),s&&K(h.$.parentNode,s,h.$)}r>f?z(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&B(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),z(l,null,t,s,0,s.length-1)):!n&&null!==o&&B(o,0,o.length-1)):e.i!==i&&(l.data=i)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},X=(e,t)=>{if(e.l|=16,!(4&e.l))return Q(e,e.j),S((()=>Y(e,t)));e.l|=512},Y=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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`);return Z(void 0,(()=>te(e,n,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=T(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=R.get(e=e.head||e);if(i||R.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ne(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ne=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=l.tagName,n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.C=i,i.$=s.$=l.shadowRoot||l,J(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ie(t),se(n,"componentDidLoad"),e.M(t),l||oe()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>X(e,!1))),e.l&=-517},oe=()=>{ie(a.documentElement),v((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"proto-daisy-db"}});return e.dispatchEvent(t),t})(u)))},se=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ie=e=>e.classList.add("hydrated"),re=(e,t,l)=>{var o,s;const i=e.prototype;if(t.P){const r=Object.entries(null!=(o=t.P)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.A.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(l,o.P[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.A.set(t,l),c&&2==(18&r)&&X(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.D)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ce=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let v,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],v:l[1],P:l[2],H:l[3]};4&o.l&&(g=!0),o.P=l[2];const c=o.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,A:new Map};l.R=new Promise((e=>l.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(t,t.j=n);break}}l.P&&Object.entries(l.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.T){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.T;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.L}" was not found`);l.isProxied||(re(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=T(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>X(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.R)&&e.R.then((()=>{}))}})()))}componentOnReady(){return n(this).R}};o.T=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,re(u,o,1)))}))})),h.length>0&&(g&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(oe,30)))},ue=e=>f.O=e;export{ce as b,A as h,h as p,l as r,ue as s}
|