proto-icons-wc 0.1.2 → 0.1.4
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/icon-proofs.cjs.entry.js +1 -1
- package/dist/cjs/{index-edcc551f.js → index-0b623ee3.js} +114 -62
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-icons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/icon-proofs.entry.js +1 -1
- package/dist/esm/{index-e5d21bfd.js → index-bde762e5.js} +114 -62
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-icons-wc.js +3 -3
- package/dist/proto-icons-wc/{p-2b3c62cc.entry.js → p-14848f88.entry.js} +1 -1
- package/dist/proto-icons-wc/p-cf466c30.js +2 -0
- package/dist/proto-icons-wc/proto-icons-wc.esm.js +1 -1
- package/package.json +4 -4
- package/dist/proto-icons-wc/p-bfbb55be.js +0 -2
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'proto-icons-wc';
|
|
24
|
-
const BUILD = /* proto-icons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
24
|
+
const BUILD = /* proto-icons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, 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.27.1 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -37,10 +37,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
37
37
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
38
|
|
|
39
39
|
// src/client/client-host-ref.ts
|
|
40
|
-
var
|
|
41
|
-
|
|
40
|
+
var getHostRef = (ref) => {
|
|
41
|
+
if (ref.__stencil__getHostRef) {
|
|
42
|
+
return ref.__stencil__getHostRef();
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
};
|
|
42
46
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
43
|
-
|
|
47
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
48
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
44
49
|
};
|
|
45
50
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
51
|
const hostRef = {
|
|
@@ -54,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
59
|
hostElement["s-p"] = [];
|
|
55
60
|
hostElement["s-rc"] = [];
|
|
56
61
|
}
|
|
57
|
-
const ref =
|
|
62
|
+
const ref = hostRef;
|
|
63
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
58
64
|
return ref;
|
|
59
65
|
};
|
|
60
66
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -98,7 +104,6 @@ var HYDRATED_STYLE_ID = "sty-id";
|
|
|
98
104
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
99
105
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
100
106
|
var win = typeof window !== "undefined" ? window : {};
|
|
101
|
-
var doc = win.document || { head: {} };
|
|
102
107
|
var plt = {
|
|
103
108
|
$flags$: 0,
|
|
104
109
|
$resourcesUrl$: "",
|
|
@@ -158,9 +163,9 @@ var isComplexType = (o) => {
|
|
|
158
163
|
};
|
|
159
164
|
|
|
160
165
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
161
|
-
function queryNonceMetaTagContent(
|
|
166
|
+
function queryNonceMetaTagContent(doc) {
|
|
162
167
|
var _a, _b, _c;
|
|
163
|
-
return (_c = (_b = (_a =
|
|
168
|
+
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;
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
// src/utils/result.ts
|
|
@@ -319,7 +324,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
319
324
|
var _a;
|
|
320
325
|
const scopeId2 = getScopeId(cmpMeta);
|
|
321
326
|
const style = styles.get(scopeId2);
|
|
322
|
-
|
|
327
|
+
if (!win.document) {
|
|
328
|
+
return scopeId2;
|
|
329
|
+
}
|
|
330
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
323
331
|
if (style) {
|
|
324
332
|
if (typeof style === "string") {
|
|
325
333
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -330,9 +338,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
330
338
|
}
|
|
331
339
|
if (!appliedStyles.has(scopeId2)) {
|
|
332
340
|
{
|
|
333
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
341
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
334
342
|
styleElm.innerHTML = style;
|
|
335
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
343
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
336
344
|
if (nonce != null) {
|
|
337
345
|
styleElm.setAttribute("nonce", nonce);
|
|
338
346
|
}
|
|
@@ -394,50 +402,51 @@ var attachStyles = (hostRef) => {
|
|
|
394
402
|
};
|
|
395
403
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
396
404
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
397
|
-
if (oldValue
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
405
|
+
if (oldValue === newValue) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
409
|
+
memberName.toLowerCase();
|
|
410
|
+
if (memberName === "class") {
|
|
411
|
+
const classList = elm.classList;
|
|
412
|
+
const oldClasses = parseClassList(oldValue);
|
|
413
|
+
let newClasses = parseClassList(newValue);
|
|
414
|
+
{
|
|
415
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
416
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
417
|
+
}
|
|
418
|
+
} else if (memberName === "key") ; else {
|
|
419
|
+
const isComplex = isComplexType(newValue);
|
|
420
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
421
|
+
try {
|
|
422
|
+
if (!elm.tagName.includes("-")) {
|
|
423
|
+
const n = newValue == null ? "" : newValue;
|
|
424
|
+
if (memberName === "list") {
|
|
425
|
+
isProp = false;
|
|
426
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
427
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
428
|
+
elm[memberName] = n;
|
|
429
|
+
} else {
|
|
430
|
+
elm.setAttribute(memberName, n);
|
|
422
431
|
}
|
|
423
|
-
} else if (elm[memberName] !== newValue) {
|
|
424
|
-
elm[memberName] = newValue;
|
|
425
432
|
}
|
|
426
|
-
}
|
|
433
|
+
} else if (elm[memberName] !== newValue) {
|
|
434
|
+
elm[memberName] = newValue;
|
|
427
435
|
}
|
|
436
|
+
} catch (e) {
|
|
428
437
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
elm.removeAttribute(memberName);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
436
|
-
newValue = newValue === true ? "" : newValue;
|
|
438
|
+
}
|
|
439
|
+
if (newValue == null || newValue === false) {
|
|
440
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
437
441
|
{
|
|
438
|
-
elm.
|
|
442
|
+
elm.removeAttribute(memberName);
|
|
439
443
|
}
|
|
440
444
|
}
|
|
445
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
446
|
+
newValue = newValue === true ? "" : newValue;
|
|
447
|
+
{
|
|
448
|
+
elm.setAttribute(memberName, newValue);
|
|
449
|
+
}
|
|
441
450
|
}
|
|
442
451
|
}
|
|
443
452
|
};
|
|
@@ -498,12 +507,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
498
507
|
let elm;
|
|
499
508
|
let childNode;
|
|
500
509
|
if (newVNode2.$text$ !== null) {
|
|
501
|
-
elm = newVNode2.$elm$ =
|
|
510
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
502
511
|
} else {
|
|
503
512
|
if (!isSvgMode) {
|
|
504
513
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
505
514
|
}
|
|
506
|
-
|
|
515
|
+
if (!win.document) {
|
|
516
|
+
throw new Error(
|
|
517
|
+
"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."
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
507
521
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
508
522
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
509
523
|
) ;
|
|
@@ -666,9 +680,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
666
680
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
667
681
|
}
|
|
668
682
|
{
|
|
669
|
-
|
|
670
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
671
|
-
}
|
|
683
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
672
684
|
}
|
|
673
685
|
if (oldChildren !== null && newChildren !== null) {
|
|
674
686
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -751,6 +763,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
751
763
|
);
|
|
752
764
|
}
|
|
753
765
|
let maybePromise;
|
|
766
|
+
if (isInitialLoad) {
|
|
767
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
768
|
+
} else {
|
|
769
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
770
|
+
}
|
|
771
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
754
772
|
endSchedule();
|
|
755
773
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
756
774
|
};
|
|
@@ -814,12 +832,15 @@ var postUpdateComponent = (hostRef) => {
|
|
|
814
832
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
815
833
|
const elm = hostRef.$hostElement$;
|
|
816
834
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
835
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
817
836
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
837
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
818
838
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
819
839
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
820
840
|
{
|
|
821
841
|
addHydratedFlag(elm);
|
|
822
842
|
}
|
|
843
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
823
844
|
endPostUpdate();
|
|
824
845
|
{
|
|
825
846
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -828,6 +849,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
828
849
|
}
|
|
829
850
|
}
|
|
830
851
|
} else {
|
|
852
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
831
853
|
endPostUpdate();
|
|
832
854
|
}
|
|
833
855
|
{
|
|
@@ -844,6 +866,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
844
866
|
var appDidLoad = (who) => {
|
|
845
867
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
846
868
|
};
|
|
869
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
870
|
+
if (instance && instance[method]) {
|
|
871
|
+
try {
|
|
872
|
+
return instance[method](arg);
|
|
873
|
+
} catch (e) {
|
|
874
|
+
consoleError(e, elm);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
return void 0;
|
|
878
|
+
};
|
|
847
879
|
var addHydratedFlag = (elm) => {
|
|
848
880
|
var _a;
|
|
849
881
|
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
@@ -868,6 +900,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
868
900
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
869
901
|
if (instance) {
|
|
870
902
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
903
|
+
if (instance.componentShouldUpdate) {
|
|
904
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
905
|
+
return;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
871
908
|
scheduleUpdate(hostRef, false);
|
|
872
909
|
}
|
|
873
910
|
}
|
|
@@ -986,6 +1023,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
986
1023
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
987
1024
|
}
|
|
988
1025
|
endNewInstance();
|
|
1026
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
989
1027
|
} else {
|
|
990
1028
|
Cstr = elm.constructor;
|
|
991
1029
|
const cmpTag = elm.localName;
|
|
@@ -1013,6 +1051,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1013
1051
|
}
|
|
1014
1052
|
};
|
|
1015
1053
|
var fireConnectedCallback = (instance, elm) => {
|
|
1054
|
+
{
|
|
1055
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1056
|
+
}
|
|
1016
1057
|
};
|
|
1017
1058
|
|
|
1018
1059
|
// src/runtime/connected-callback.ts
|
|
@@ -1045,20 +1086,27 @@ var connectedCallback = (elm) => {
|
|
|
1045
1086
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1046
1087
|
}
|
|
1047
1088
|
} else {
|
|
1048
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1049
|
-
hostRef.$
|
|
1089
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1090
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1091
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1092
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1050
1093
|
}
|
|
1051
1094
|
}
|
|
1052
1095
|
endConnected();
|
|
1053
1096
|
}
|
|
1054
1097
|
};
|
|
1055
1098
|
var disconnectInstance = (instance, elm) => {
|
|
1099
|
+
{
|
|
1100
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1101
|
+
}
|
|
1056
1102
|
};
|
|
1057
1103
|
var disconnectedCallback = async (elm) => {
|
|
1058
1104
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1059
1105
|
const hostRef = getHostRef(elm);
|
|
1060
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1061
|
-
hostRef.$
|
|
1106
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1107
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1108
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1109
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1062
1110
|
}
|
|
1063
1111
|
}
|
|
1064
1112
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -1072,18 +1120,22 @@ var disconnectedCallback = async (elm) => {
|
|
|
1072
1120
|
// src/runtime/bootstrap-lazy.ts
|
|
1073
1121
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1074
1122
|
var _a;
|
|
1123
|
+
if (!win.document) {
|
|
1124
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1075
1127
|
const endBootstrap = createTime();
|
|
1076
1128
|
const cmpTags = [];
|
|
1077
1129
|
const exclude = options.exclude || [];
|
|
1078
1130
|
const customElements2 = win.customElements;
|
|
1079
|
-
const head =
|
|
1131
|
+
const head = win.document.head;
|
|
1080
1132
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1081
|
-
const dataStyles = /* @__PURE__ */
|
|
1133
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1082
1134
|
const deferredConnectedCallbacks = [];
|
|
1083
1135
|
let appLoadFallback;
|
|
1084
1136
|
let isBootstrapping = true;
|
|
1085
1137
|
Object.assign(plt, options);
|
|
1086
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1138
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1087
1139
|
let hasSlotRelocation = false;
|
|
1088
1140
|
lazyBundles.map((lazyBundle) => {
|
|
1089
1141
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1175,7 +1227,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1175
1227
|
}
|
|
1176
1228
|
if (dataStyles.innerHTML.length) {
|
|
1177
1229
|
dataStyles.setAttribute("data-styles", "");
|
|
1178
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1230
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1179
1231
|
if (nonce != null) {
|
|
1180
1232
|
dataStyles.setAttribute("nonce", nonce);
|
|
1181
1233
|
}
|
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-0b623ee3.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-0b623ee3.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.27.1 | 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-icons-wc.cjs.js', document.baseURI).href));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'proto-icons-wc';
|
|
2
|
-
const BUILD = /* proto-icons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
2
|
+
const BUILD = /* proto-icons-wc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: false, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, 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.27.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -15,10 +15,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
15
15
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
16
|
|
|
17
17
|
// src/client/client-host-ref.ts
|
|
18
|
-
var
|
|
19
|
-
|
|
18
|
+
var getHostRef = (ref) => {
|
|
19
|
+
if (ref.__stencil__getHostRef) {
|
|
20
|
+
return ref.__stencil__getHostRef();
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
};
|
|
20
24
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
-
|
|
25
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
26
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
22
27
|
};
|
|
23
28
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
29
|
const hostRef = {
|
|
@@ -32,7 +37,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
37
|
hostElement["s-p"] = [];
|
|
33
38
|
hostElement["s-rc"] = [];
|
|
34
39
|
}
|
|
35
|
-
const ref =
|
|
40
|
+
const ref = hostRef;
|
|
41
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
36
42
|
return ref;
|
|
37
43
|
};
|
|
38
44
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -76,7 +82,6 @@ var HYDRATED_STYLE_ID = "sty-id";
|
|
|
76
82
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
77
83
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
78
84
|
var win = typeof window !== "undefined" ? window : {};
|
|
79
|
-
var doc = win.document || { head: {} };
|
|
80
85
|
var plt = {
|
|
81
86
|
$flags$: 0,
|
|
82
87
|
$resourcesUrl$: "",
|
|
@@ -136,9 +141,9 @@ var isComplexType = (o) => {
|
|
|
136
141
|
};
|
|
137
142
|
|
|
138
143
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
139
|
-
function queryNonceMetaTagContent(
|
|
144
|
+
function queryNonceMetaTagContent(doc) {
|
|
140
145
|
var _a, _b, _c;
|
|
141
|
-
return (_c = (_b = (_a =
|
|
146
|
+
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;
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
// src/utils/result.ts
|
|
@@ -297,7 +302,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
297
302
|
var _a;
|
|
298
303
|
const scopeId2 = getScopeId(cmpMeta);
|
|
299
304
|
const style = styles.get(scopeId2);
|
|
300
|
-
|
|
305
|
+
if (!win.document) {
|
|
306
|
+
return scopeId2;
|
|
307
|
+
}
|
|
308
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
301
309
|
if (style) {
|
|
302
310
|
if (typeof style === "string") {
|
|
303
311
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -308,9 +316,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
308
316
|
}
|
|
309
317
|
if (!appliedStyles.has(scopeId2)) {
|
|
310
318
|
{
|
|
311
|
-
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) ||
|
|
319
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
|
|
312
320
|
styleElm.innerHTML = style;
|
|
313
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
321
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
314
322
|
if (nonce != null) {
|
|
315
323
|
styleElm.setAttribute("nonce", nonce);
|
|
316
324
|
}
|
|
@@ -372,50 +380,51 @@ var attachStyles = (hostRef) => {
|
|
|
372
380
|
};
|
|
373
381
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
374
382
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
375
|
-
if (oldValue
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
383
|
+
if (oldValue === newValue) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
387
|
+
memberName.toLowerCase();
|
|
388
|
+
if (memberName === "class") {
|
|
389
|
+
const classList = elm.classList;
|
|
390
|
+
const oldClasses = parseClassList(oldValue);
|
|
391
|
+
let newClasses = parseClassList(newValue);
|
|
392
|
+
{
|
|
393
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
394
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
395
|
+
}
|
|
396
|
+
} else if (memberName === "key") ; else {
|
|
397
|
+
const isComplex = isComplexType(newValue);
|
|
398
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
399
|
+
try {
|
|
400
|
+
if (!elm.tagName.includes("-")) {
|
|
401
|
+
const n = newValue == null ? "" : newValue;
|
|
402
|
+
if (memberName === "list") {
|
|
403
|
+
isProp = false;
|
|
404
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
405
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
406
|
+
elm[memberName] = n;
|
|
407
|
+
} else {
|
|
408
|
+
elm.setAttribute(memberName, n);
|
|
400
409
|
}
|
|
401
|
-
} else if (elm[memberName] !== newValue) {
|
|
402
|
-
elm[memberName] = newValue;
|
|
403
410
|
}
|
|
404
|
-
}
|
|
411
|
+
} else if (elm[memberName] !== newValue) {
|
|
412
|
+
elm[memberName] = newValue;
|
|
405
413
|
}
|
|
414
|
+
} catch (e) {
|
|
406
415
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
elm.removeAttribute(memberName);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
414
|
-
newValue = newValue === true ? "" : newValue;
|
|
416
|
+
}
|
|
417
|
+
if (newValue == null || newValue === false) {
|
|
418
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
415
419
|
{
|
|
416
|
-
elm.
|
|
420
|
+
elm.removeAttribute(memberName);
|
|
417
421
|
}
|
|
418
422
|
}
|
|
423
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
424
|
+
newValue = newValue === true ? "" : newValue;
|
|
425
|
+
{
|
|
426
|
+
elm.setAttribute(memberName, newValue);
|
|
427
|
+
}
|
|
419
428
|
}
|
|
420
429
|
}
|
|
421
430
|
};
|
|
@@ -476,12 +485,17 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
476
485
|
let elm;
|
|
477
486
|
let childNode;
|
|
478
487
|
if (newVNode2.$text$ !== null) {
|
|
479
|
-
elm = newVNode2.$elm$ =
|
|
488
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
480
489
|
} else {
|
|
481
490
|
if (!isSvgMode) {
|
|
482
491
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
483
492
|
}
|
|
484
|
-
|
|
493
|
+
if (!win.document) {
|
|
494
|
+
throw new Error(
|
|
495
|
+
"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."
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
485
499
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
486
500
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
487
501
|
) ;
|
|
@@ -644,9 +658,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
644
658
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
645
659
|
}
|
|
646
660
|
{
|
|
647
|
-
|
|
648
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
649
|
-
}
|
|
661
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
650
662
|
}
|
|
651
663
|
if (oldChildren !== null && newChildren !== null) {
|
|
652
664
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -729,6 +741,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
729
741
|
);
|
|
730
742
|
}
|
|
731
743
|
let maybePromise;
|
|
744
|
+
if (isInitialLoad) {
|
|
745
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
746
|
+
} else {
|
|
747
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
748
|
+
}
|
|
749
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
732
750
|
endSchedule();
|
|
733
751
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
734
752
|
};
|
|
@@ -792,12 +810,15 @@ var postUpdateComponent = (hostRef) => {
|
|
|
792
810
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
793
811
|
const elm = hostRef.$hostElement$;
|
|
794
812
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
813
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
795
814
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
815
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
796
816
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
797
817
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
798
818
|
{
|
|
799
819
|
addHydratedFlag(elm);
|
|
800
820
|
}
|
|
821
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
801
822
|
endPostUpdate();
|
|
802
823
|
{
|
|
803
824
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -806,6 +827,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
806
827
|
}
|
|
807
828
|
}
|
|
808
829
|
} else {
|
|
830
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
809
831
|
endPostUpdate();
|
|
810
832
|
}
|
|
811
833
|
{
|
|
@@ -822,6 +844,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
822
844
|
var appDidLoad = (who) => {
|
|
823
845
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
824
846
|
};
|
|
847
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
848
|
+
if (instance && instance[method]) {
|
|
849
|
+
try {
|
|
850
|
+
return instance[method](arg);
|
|
851
|
+
} catch (e) {
|
|
852
|
+
consoleError(e, elm);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return void 0;
|
|
856
|
+
};
|
|
825
857
|
var addHydratedFlag = (elm) => {
|
|
826
858
|
var _a;
|
|
827
859
|
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
@@ -846,6 +878,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
846
878
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
847
879
|
if (instance) {
|
|
848
880
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
881
|
+
if (instance.componentShouldUpdate) {
|
|
882
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
849
886
|
scheduleUpdate(hostRef, false);
|
|
850
887
|
}
|
|
851
888
|
}
|
|
@@ -964,6 +1001,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
964
1001
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
965
1002
|
}
|
|
966
1003
|
endNewInstance();
|
|
1004
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
967
1005
|
} else {
|
|
968
1006
|
Cstr = elm.constructor;
|
|
969
1007
|
const cmpTag = elm.localName;
|
|
@@ -991,6 +1029,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
991
1029
|
}
|
|
992
1030
|
};
|
|
993
1031
|
var fireConnectedCallback = (instance, elm) => {
|
|
1032
|
+
{
|
|
1033
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1034
|
+
}
|
|
994
1035
|
};
|
|
995
1036
|
|
|
996
1037
|
// src/runtime/connected-callback.ts
|
|
@@ -1023,20 +1064,27 @@ var connectedCallback = (elm) => {
|
|
|
1023
1064
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1024
1065
|
}
|
|
1025
1066
|
} else {
|
|
1026
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1027
|
-
hostRef.$
|
|
1067
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1068
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1069
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1070
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1028
1071
|
}
|
|
1029
1072
|
}
|
|
1030
1073
|
endConnected();
|
|
1031
1074
|
}
|
|
1032
1075
|
};
|
|
1033
1076
|
var disconnectInstance = (instance, elm) => {
|
|
1077
|
+
{
|
|
1078
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1079
|
+
}
|
|
1034
1080
|
};
|
|
1035
1081
|
var disconnectedCallback = async (elm) => {
|
|
1036
1082
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1037
1083
|
const hostRef = getHostRef(elm);
|
|
1038
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1039
|
-
hostRef.$
|
|
1084
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1085
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1086
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1087
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1040
1088
|
}
|
|
1041
1089
|
}
|
|
1042
1090
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -1050,18 +1098,22 @@ var disconnectedCallback = async (elm) => {
|
|
|
1050
1098
|
// src/runtime/bootstrap-lazy.ts
|
|
1051
1099
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1052
1100
|
var _a;
|
|
1101
|
+
if (!win.document) {
|
|
1102
|
+
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1103
|
+
return;
|
|
1104
|
+
}
|
|
1053
1105
|
const endBootstrap = createTime();
|
|
1054
1106
|
const cmpTags = [];
|
|
1055
1107
|
const exclude = options.exclude || [];
|
|
1056
1108
|
const customElements2 = win.customElements;
|
|
1057
|
-
const head =
|
|
1109
|
+
const head = win.document.head;
|
|
1058
1110
|
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1059
|
-
const dataStyles = /* @__PURE__ */
|
|
1111
|
+
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1060
1112
|
const deferredConnectedCallbacks = [];
|
|
1061
1113
|
let appLoadFallback;
|
|
1062
1114
|
let isBootstrapping = true;
|
|
1063
1115
|
Object.assign(plt, options);
|
|
1064
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./",
|
|
1116
|
+
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1065
1117
|
let hasSlotRelocation = false;
|
|
1066
1118
|
lazyBundles.map((lazyBundle) => {
|
|
1067
1119
|
lazyBundle[1].map((compactMeta) => {
|
|
@@ -1153,7 +1205,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1153
1205
|
}
|
|
1154
1206
|
if (dataStyles.innerHTML.length) {
|
|
1155
1207
|
dataStyles.setAttribute("data-styles", "");
|
|
1156
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(
|
|
1208
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1157
1209
|
if (nonce != null) {
|
|
1158
1210
|
dataStyles.setAttribute("nonce", nonce);
|
|
1159
1211
|
}
|
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-bde762e5.js';
|
|
2
|
+
export { s as setNonce } from './index-bde762e5.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-bde762e5.js';
|
|
2
|
+
export { s as setNonce } from './index-bde762e5.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.27.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as l}from"./p-
|
|
1
|
+
import{r as e,h as l}from"./p-cf466c30.js";const o={"arrow-up":"M5.3 10.7l1.4 1.4L11 7.8V20h2V7.8l4.3 4.3 1.4-1.4L12 4z","arrow-down":"M18.7 13.3l-1.4-1.4-4.3 4.3V4h-2v12.2l-4.3-4.3-1.4 1.4L12 20z",left:"M14 17.4L8.6 12 14 6.6 15.4 8l-4 4 4 4z",right:"M10 17.4L8.6 16l4-4-4-4L10 6.6l5.4 5.4z",up:"M16 15.4l-4-4-4 4L6.6 14 12 8.6l5.4 5.4z",down:"M12 15.4L6.6 10 8 8.6l4 4 4-4 1.4 1.4z",more:"M12 14a2 2 0 100-4 2 2 0 000 4zm-6 0a2 2 0 100-4 2 2 0 000 4zm12 0a2 2 0 100-4 2 2 0 000 4z"},r=Object.keys(o),a=class{constructor(a){e(this,a),this.colors={},this.sizes=[24],this.icons=[...r,"pad"],this.protoIcon=(e,r,a=24)=>{const t=o[e];return l("svg",{width:a,height:a,viewBox:"0 0 24 24",role:"img","aria-labelledby":"title"},l("title",null,e),l("g",{fill:r},l("path",{d:t})),l("path",{d:"M0 0h24v24H0z",fill:"none"}))},this.iconRow=e=>{const{colors:o,icons:r,protoIcon:a}=this;return l("div",{class:"proof"},l("div",{class:"label"},e,a("down","currentColor")),l("hr",null),l("div",{class:"row"},r.map((l=>a(l,o[l],e)))))}}render(){const{sizes:e}=this;return l("div",{key:"cf13d87ba4b705df3ad2fe9365bbc900a63ba8a7",class:"page"},l("h1",{key:"1c2de1cdc8db4a89cf57ad5e3670ad0f7f1fa79e"},"Icon Proofs"),l("div",{key:"a1abaa6fa8da925f551074424dd724766329b20e",class:"sheet"},e.map((e=>this.iconRow(e)))),";")}};a.style=".page{color:var(--clrs-navy);font-family:'Roboto', 'Helvetica Neue', Arial, sans-serif;-webkit-font-smoothing:antialiased}.sheet{display:flex;flex-direction:column;margin:16px}.proof{display:flex;flex-direction:column;margin-bottom:32px}.proof svg{fill:var(--cx-icon-fill, '#111111')}.label{font-size:24px;font-weight:bold;color:var(--clrs-red);display:flex;flex-direction:row;align-items:center}.row{display:flex;flex-direction:row;flex-wrap:wrap}h1{color:var(--clrs-red);text-transform:uppercase;font-size:4em;font-weight:100;text-align:center}hr{margin-left:0;margin-right:0}";export{a as icon_proofs}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>(0,console.error)(e,t),l=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="undefined"!=typeof window?window:{},c={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)},u=e=>Promise.resolve(e),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),f=!1,d=[],p=[],h=(e,t)=>n=>{e.push(n),f||(f=!0,t&&4&c.o?w(v):c.raf(v))},m=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},v=()=>{m(d),m(p),(f=d.length>0)&&c.raf(v)},w=e=>u().then(e),y=h(p,!0),b=e=>"object"==(e=typeof e)||"function"===e;function $(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:()=>S,map:()=>j,ok:()=>g,unwrap:()=>O,unwrapErr:()=>E});var g=e=>({isOk:!0,isErr:!1,value:e}),S=e=>({isOk:!1,isErr:!0,value:e});function j(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>g(e))):g(n)}if(e.isErr)return S(e.value);throw"should never get here"}var k,O=e=>{if(e.isOk)return e.value;throw e.value},E=e=>{if(e.isErr)return e.value;throw e.value},C=(e,t,...n)=>{let o=null,l=null,i=!1,r=!1;const s=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!b(o))&&(o+=""),i&&r?s[s.length-1].i+=o:s.push(i?M(null,o):o),r=i)};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=M(e,null);return u.u=t,s.length>0&&(u.p=s),u.h=l,u},M=(e,t)=>({o:0,m:e,i:t,v:null,p:null,u:null,h:null}),P={},x=e=>(null==e||b(e),e),D=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,o,l,i)=>{if(n===o)return;let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=R(n);let i=R(o);t.remove(...l.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!l.includes(e))))}else if("key"===t);else{const s=b(o);if((r||s&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]!==o&&(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||l)&&!s&&1===e.nodeType&&e.setAttribute(t,o=!0===o?"":o)}},N=/\s/,R=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(N):[]),A=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},i=t.u||{};for(const e of L(Object.keys(l)))e in i||W(o,e,l[e],void 0,n,t.o);for(const e of L(Object.keys(i)))W(o,e,l[e],i[e],n,t.o)};function L(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var T=!1,H=(e,t,n)=>{const o=t.p[n];let l,i,r=0;if(null!==o.i)l=o.v=s.document.createTextNode(o.i);else{if(T||(T="svg"===o.m),!s.document)throw Error("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.");if(l=o.v=s.document.createElementNS(T?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),T&&"foreignObject"===o.m&&(T=!1),A(null,o,T),o.p)for(r=0;r<o.p.length;++r)i=H(e,o,r),i&&l.appendChild(i);"svg"===o.m?T=!1:"foreignObject"===l.tagName&&(T=!0)}return l["s-hn"]=k,l},z=(e,t,n,o,l,i)=>{let r,s=e;for(s.shadowRoot&&s.tagName===k&&(s=s.shadowRoot);l<=i;++l)o[l]&&(r=H(null,n,l),r&&(o[l].v=r,G(s,r,t)))},F=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},V=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.h&&t.h&&(e.h=t.h),!0):e.h===t.h),q=(e,t,n=!1)=>{const o=t.v=e.v,l=e.p,i=t.p,r=t.m,s=t.i;null===s?(A(e,t,T="svg"===r||"foreignObject"!==r&&T),null!==l&&null!==i?((e,t,n,o,l=!1)=>{let i,r,s=0,c=0,u=0,a=0,f=t.length-1,d=t[0],p=t[f],h=o.length-1,m=o[0],v=o[h];for(;s<=f&&c<=h;)if(null==d)d=t[++s];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--h];else if(V(d,m,l))q(d,m,l),d=t[++s],m=o[++c];else if(V(p,v,l))q(p,v,l),p=t[--f],v=o[--h];else if(V(d,v,l))q(d,v,l),G(e,d.v,p.v.nextSibling),d=t[++s],v=o[--h];else if(V(p,m,l))q(p,m,l),G(e,p.v,d.v),p=t[--f],m=o[++c];else{for(u=-1,a=s;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===m.h){u=a;break}u>=0?(r=t[u],r.m!==m.m?i=H(t&&t[c],n,u):(q(r,m,l),t[u]=void 0,i=r.v),m=o[++c]):(i=H(t&&t[c],n,c),m=o[++c]),i&&G(d.v.parentNode,i,d.v)}s>f?z(e,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&F(t,s,f)})(o,l,t,i,n):null!==i?(null!==e.i&&(o.textContent=""),z(o,null,t,i,0,i.length-1)):!n&&null!==l&&F(l,0,l.length-1),T&&"svg"===r&&(T=!1)):e.i!==s&&(o.data=s)},G=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),y((()=>_(e,t)));e.o|=512},_=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.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`);let l;return l=ee(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=B(l,(()=>ee(o,"componentWillRender",void 0,n))),B(l,(()=>K(e,o,t)))},B=(e,t)=>J(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),J=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,K=async(e,t,n)=>{var o;const l=e.$hostElement$,u=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=U(t),l=i.get(o);if(!s.document)return o;if(e=11===e.nodeType?e:s.document,l)if("string"==typeof l){let i,u=D.get(e=e.head||e);if(u||D.set(e,u=new Set),!u.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||s.document.createElement("style"),i.innerHTML=l;const r=null!=(n=c.O)?n:$(s.document);if(null!=r&&i.setAttribute("nonce",r),!(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(i,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(a){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(i)}else e.append(i);1&t.o&&e.insertBefore(i,null)}4&t.o&&(i.innerHTML+=r),u&&u.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||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Q(e,t,l,n),u&&(u.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>X(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Q=(e,t,n,l)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,i=e.C||M(null,null),r=(e=>e&&e.m===P)(t)?t:C(null,null,t);if(k=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.C=r,r.v=i.v=o.shadowRoot||o,q(i,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},X=e=>{const t=e.$hostElement$,n=e.t,o=e.j;ee(n,"componentDidRender",void 0,t),64&e.o?ee(n,"componentDidUpdate",void 0,t):(e.o|=64,te(t),ee(n,"componentDidLoad",void 0,t),e.M(t),o||Z()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Y(e,!1))),e.o&=-517},Z=()=>{w((()=>(e=>{const t=c.ce("appload",{detail:{namespace:"proto-icons-wc"}});return e.dispatchEvent(t),t})(s)))},ee=(e,t,n,l)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e,l)}},te=e=>e.classList.add("hydrated"),ne=(e,n,o,l)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" 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 r=i.P.get(n),s=i.o,c=i.t;if(o=x(o),(!(8&s)||void 0===r)&&o!==r&&(!Number.isNaN(r)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&s))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,r,n))return;Y(i,!1)}},oe=(e,n,o)=>{var l;const i=e.prototype;return n.D&&Object.entries(null!=(l=n.D)?l:{}).map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:r,set:s}=Object.getOwnPropertyDescriptor(i,e)||{};r&&(n.D[e][0]|=2048),s&&(n.D[e][0]|=4096),(1&o||!r)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).P.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(i){const r=t(this);if(s){const t=32&l?this[e]:r.$hostElement$[e];return void 0===t&&r.P.get(e)?i=r.P.get(e):!r.P.get(e)&&t&&r.P.set(e,t),s.call(this,x(i)),void ne(this,e,i=32&l?this[e]:r.$hostElement$[e],n)}{if(!(1&o&&4096&n.D[e][0]))return ne(this,e,i,n),void(1&o&&!r.t&&r.U.then((()=>{4096&n.D[e][0]&&r.t[e]!==r.P.get(e)&&(r.t[e]=i)})));const t=()=>{const t=r.t[e];!r.P.get(e)&&t&&r.P.set(e,t),r.t[e]=x(i),ne(this,e,r.t[e],n)};r.t?t():r.U.then((()=>t()))}}})}})),e},le=(e,t)=>{ee(e,"connectedCallback",void 0,t)},ie=(e,t)=>{ee(e,"disconnectedCallback",void 0,t||e)},re=(e,n={})=>{var u;if(!s.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const f=[],d=n.exclude||[],p=s.customElements,h=s.document.head,m=h.querySelector("meta[charset]"),v=s.document.createElement("style"),w=[];let y,b=!0;Object.assign(c,n),c.l=new URL(n.resourcesUrl||"./",s.document.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((n=>{const r={o:n[0],$:n[1],D:n[2],W:n[3]};4&r.o&&(g=!0),r.D=n[2];const s=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,P:new Map};n.U=new Promise((e=>n.M=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! 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),y&&(clearTimeout(y),y=null),b?w.push(this):c.jmp((()=>(e=>{if(!(1&c.o)){const n=t(e),r=n.k,s=()=>{};if(1&n.o)(null==n?void 0:n.t)?le(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>le(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){I(n,n.j=t);break}}r.D&&Object.entries(r.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let r;if(!(32&t.o)){if(t.o|=32,n.N){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),i=e.N;if(!i)return;const r=l.get(i);return r?r[n]:import(`./${i}.entry.js`).then((e=>(l.set(i,e),e[n])),(e=>{o(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};r=await i,e()}else r=i;if(!r)throw Error(`Constructor for "${n.$}#${t.R}" was not found`);r.isProxied||(oe(r,n,2),r.isProxied=!0);const s=()=>{};t.o|=8;try{new r(t)}catch(t){o(t,e)}t.o&=-9,s(),le(t.t,e)}else r=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(r&&r.style){let e;"string"==typeof r.style&&(e=r.style);const t=U(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const s=t.j,c=()=>Y(t,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(e,n,r)}s()}})(this)))}disconnectedCallback(){c.jmp((()=>(async e=>{if(!(1&c.o)){const n=t(e);(null==n?void 0:n.t)?ie(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>ie(n.t,e)))}D.has(e)&&D.delete(e),e.shadowRoot&&D.has(e.shadowRoot)&&D.delete(e.shadowRoot)})(this))),c.raf((()=>{var e;const n=t(this),o=w.findIndex((e=>e===this));o>-1&&w.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).U}};r.N=e[0],d.includes(s)||p.get(s)||(f.push(s),p.define(s,oe(u,r,1)))}))})),f.length>0&&(g&&(v.textContent+=r),v.textContent+=f.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(u=c.O)?u:$(s.document);null!=e&&v.setAttribute("nonce",e),h.insertBefore(v,m?m.nextSibling:h.firstChild)}b=!1,w.length?w.map((e=>e.connectedCallback())):c.jmp((()=>y=setTimeout(Z,30)))},se=e=>c.O=e;export{re as b,C as h,u as p,n as r,se as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as o,b as r}from"./p-
|
|
1
|
+
import{p as o,b as r}from"./p-cf466c30.js";export{s as setNonce}from"./p-cf466c30.js";import{g as p}from"./p-e1255160.js";(()=>{const s=import.meta.url,r={};return""!==s&&(r.resourcesUrl=new URL(".",s).href),o(r)})().then((async s=>(await p(),r([["p-14848f88",[[1,"icon-proofs",{colors:[16],sizes:[16]}]]]],s))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-icons-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"format": "prettier --write src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@stencil/core": "4.
|
|
28
|
+
"@stencil/core": "4.27.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"cspell": "8.17.
|
|
31
|
+
"cspell": "8.17.5",
|
|
32
32
|
"eslint": "9.21.0",
|
|
33
|
-
"prettier": "3.5.
|
|
33
|
+
"prettier": "3.5.2",
|
|
34
34
|
"typescript": "5.7.3"
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT"
|
|
@@ -1,2 +0,0 @@
|
|
|
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)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.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)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?$(v):a.raf(v))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{w(p),w(m),(d=p.length>0)&&a.raf(v)},$=e=>f().then(e),b=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(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:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},x=(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&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(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=P(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},P=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),N={},T=e=>(null==e||g(e),e),A=new WeakMap,H=e=>"sc-"+e.$,R=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=D(n);let s=D(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?i=!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):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},U=/\s/,D=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),F=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of L(Object.keys(l)))e in s||R(o,e,l[e],void 0,n,t.o);for(const e of L(Object.keys(s)))R(o,e,l[e],s[e],n,t.o)};function L(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var V=!1,W=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else{if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),F(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(e,o,i),s&&l.appendChild(s);"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0)}return l["s-hn"]=E,l},q=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,t)))},G=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),z=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(F(e,t,V="svg"===i||"foreignObject"!==i&&V),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=t[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=t[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(e,d.v,h.v),d=t[--f],m=o[++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=W(t&&t[c],n,u):(z(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=W(t&&t[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?q(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),q(o,null,t,s,0,s.length-1)):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)):e.i!==r&&(o.data=r)},B=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),b((()=>K(e,t)));e.o|=512},K=(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 Q(void 0,(()=>Y(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=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=H(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=A.get(e=e.head||e);if(i||A.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(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,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(h){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&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),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||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(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||P(null,null),i=(e=>e&&e.m===N)(t)?t:x(null,null,t);if(E=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.v=s.v=o.shadowRoot||o,z(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.j;64&e.o||(e.o|=64,ne(t),e.M(t),n||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&$((()=>J(e,!1))),e.o&=-517},te=()=>{$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"proto-icons-wc"}});return e.dispatchEvent(t),t})(c)))},ne=e=>e.classList.add("hydrated"),oe=(e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.$}" 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=T(o),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&J(s,!1))},le=(e,t,o)=>{var l;const s=e.prototype;return t.N&&Object.entries(null!=(l=t.N)?l:{}).map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,e)||{};i&&(t.N[e][0]|=2048),r&&(t.N[e][0]|=4096),(1&o||!i)&&Object.defineProperty(s,e,{get(){{if(!(2048&t.N[e][0]))return((e,t)=>n(this).P.get(t))(0,e);const o=n(this),l=o?o.t:s;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.P.get(e)?s=i.P.get(e):!i.P.get(e)&&n&&i.P.set(e,n),r.call(this,T(s)),void oe(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.N[e][0]))return oe(this,e,s,t),void(1&o&&!i.t&&i.T.then((()=>{4096&t.N[e][0]&&i.t[e]!==i.P.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.P.get(e)&&n&&i.P.set(e,n),i.t[e]=T(s),oe(this,e,i.t[e],t)};i.t?n():i.T.then((()=>n()))}}})}})),e},se=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],N:o[2],A:o[3]};4&r.o&&(j=!0),r.N=o[2];const c=r.$,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.T=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! 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),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.N&&Object.entries(o.N).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.H){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.H;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${t.R}" was not found`);o.isProxied||(le(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r()}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=H(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>J(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}))}A.has(e)&&A.delete(e),e.shadowRoot&&A.has(e.shadowRoot)&&A.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this),o=$.findIndex((e=>e===this));o>-1&&$.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).T}};r.H=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,le(u,r,1)))}))})),d.length>0&&(j&&(v.textContent+=r),v.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(te,30)))},ie=e=>a.k=e;export{se as b,x as h,f as p,o as r,ie as s}
|