proto-sudoku-wc 0.1.67 → 0.1.69
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/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/{index-DX7gStMP.js → index-vwAjVR0m.js} +150 -110
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/proto-sudoku-wc.cjs.js +4 -3
- package/dist/cjs/proto-sudoku.cjs.entry.js +24 -7
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/{index-BJPfPsHf.js → index-moxqhnZq.js} +151 -110
- package/dist/esm/loader.js +3 -2
- package/dist/esm/proto-sudoku-wc.js +4 -3
- package/dist/esm/proto-sudoku.entry.js +24 -7
- package/dist/proto-sudoku-wc/p-DQuL1Twl.js +1 -0
- package/dist/proto-sudoku-wc/p-a5b9d6f1.entry.js +2 -0
- package/dist/proto-sudoku-wc/p-moxqhnZq.js +2 -0
- package/dist/proto-sudoku-wc/proto-sudoku-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +9 -9
- package/dist/proto-sudoku-wc/p-2465fde4.entry.js +0 -2
- package/dist/proto-sudoku-wc/p-BJPfPsHf.js +0 -2
@@ -3,11 +3,8 @@
|
|
3
3
|
const NAMESPACE = 'proto-sudoku-wc';
|
4
4
|
const BUILD = /* proto-sudoku-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
|
5
5
|
|
6
|
-
const globalScripts = () => {};
|
7
|
-
const globalStyles = "";
|
8
|
-
|
9
6
|
/*
|
10
|
-
Stencil Client Platform v4.
|
7
|
+
Stencil Client Platform v4.36.0 | MIT Licensed | https://stenciljs.com
|
11
8
|
*/
|
12
9
|
var __defProp = Object.defineProperty;
|
13
10
|
var __export = (target, all) => {
|
@@ -104,6 +101,7 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
104
101
|
}
|
105
102
|
return false;
|
106
103
|
})() ;
|
104
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
107
105
|
var queuePending = false;
|
108
106
|
var queueDomReads = [];
|
109
107
|
var queueDomWrites = [];
|
@@ -203,12 +201,24 @@ var unwrapErr = (result) => {
|
|
203
201
|
throw result.value;
|
204
202
|
}
|
205
203
|
};
|
204
|
+
|
205
|
+
// src/utils/style.ts
|
206
|
+
function createStyleSheetIfNeededAndSupported(styles2) {
|
207
|
+
return void 0;
|
208
|
+
}
|
209
|
+
|
210
|
+
// src/utils/shadow-root.ts
|
211
|
+
var globalStyleSheet;
|
206
212
|
function createShadowRoot(cmpMeta) {
|
213
|
+
var _a;
|
207
214
|
const shadowRoot = this.attachShadow({ mode: "open" });
|
208
|
-
if (
|
209
|
-
|
210
|
-
|
211
|
-
|
215
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
|
216
|
+
if (globalStyleSheet) {
|
217
|
+
if (supportsMutableAdoptedStyleSheets) {
|
218
|
+
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
219
|
+
} else {
|
220
|
+
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
221
|
+
}
|
212
222
|
}
|
213
223
|
}
|
214
224
|
var createTime = (fnName, tagName = "") => {
|
@@ -225,6 +235,110 @@ var uniqueTime = (key, measureText) => {
|
|
225
235
|
};
|
226
236
|
}
|
227
237
|
};
|
238
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
239
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
240
|
+
let style = styles.get(scopeId2);
|
241
|
+
if (supportsConstructableStylesheets && allowCS) {
|
242
|
+
style = style || new CSSStyleSheet();
|
243
|
+
if (typeof style === "string") {
|
244
|
+
style = cssText;
|
245
|
+
} else {
|
246
|
+
style.replaceSync(cssText);
|
247
|
+
}
|
248
|
+
} else {
|
249
|
+
style = cssText;
|
250
|
+
}
|
251
|
+
styles.set(scopeId2, style);
|
252
|
+
};
|
253
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
254
|
+
var _a;
|
255
|
+
const scopeId2 = getScopeId(cmpMeta);
|
256
|
+
const style = styles.get(scopeId2);
|
257
|
+
if (!win.document) {
|
258
|
+
return scopeId2;
|
259
|
+
}
|
260
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
261
|
+
if (style) {
|
262
|
+
if (typeof style === "string") {
|
263
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
264
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
265
|
+
let styleElm;
|
266
|
+
if (!appliedStyles) {
|
267
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
268
|
+
}
|
269
|
+
if (!appliedStyles.has(scopeId2)) {
|
270
|
+
{
|
271
|
+
styleElm = win.document.createElement("style");
|
272
|
+
styleElm.innerHTML = style;
|
273
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
274
|
+
if (nonce != null) {
|
275
|
+
styleElm.setAttribute("nonce", nonce);
|
276
|
+
}
|
277
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
278
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
279
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
280
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
281
|
+
styleContainerNode.insertBefore(
|
282
|
+
styleElm,
|
283
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
284
|
+
);
|
285
|
+
} else if ("host" in styleContainerNode) {
|
286
|
+
if (supportsConstructableStylesheets) {
|
287
|
+
const stylesheet = new CSSStyleSheet();
|
288
|
+
stylesheet.replaceSync(style);
|
289
|
+
if (supportsMutableAdoptedStyleSheets) {
|
290
|
+
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
291
|
+
} else {
|
292
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
293
|
+
}
|
294
|
+
} else {
|
295
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
296
|
+
if (existingStyleContainer) {
|
297
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
298
|
+
} else {
|
299
|
+
styleContainerNode.prepend(styleElm);
|
300
|
+
}
|
301
|
+
}
|
302
|
+
} else {
|
303
|
+
styleContainerNode.append(styleElm);
|
304
|
+
}
|
305
|
+
}
|
306
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
307
|
+
styleContainerNode.insertBefore(styleElm, null);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
311
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
312
|
+
}
|
313
|
+
if (appliedStyles) {
|
314
|
+
appliedStyles.add(scopeId2);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
318
|
+
if (supportsMutableAdoptedStyleSheets) {
|
319
|
+
styleContainerNode.adoptedStyleSheets.push(style);
|
320
|
+
} else {
|
321
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
return scopeId2;
|
326
|
+
};
|
327
|
+
var attachStyles = (hostRef) => {
|
328
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
329
|
+
const elm = hostRef.$hostElement$;
|
330
|
+
const flags = cmpMeta.$flags$;
|
331
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
332
|
+
const scopeId2 = addStyle(
|
333
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
334
|
+
cmpMeta);
|
335
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
336
|
+
elm["s-sc"] = scopeId2;
|
337
|
+
elm.classList.add(scopeId2 + "-h");
|
338
|
+
}
|
339
|
+
endAttachStyles();
|
340
|
+
};
|
341
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
228
342
|
var h = (nodeName, vnodeData, ...children) => {
|
229
343
|
let child = null;
|
230
344
|
let key = null;
|
@@ -352,102 +466,6 @@ var emitEvent = (elm, name, opts) => {
|
|
352
466
|
elm.dispatchEvent(ev);
|
353
467
|
return ev;
|
354
468
|
};
|
355
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
356
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
357
|
-
let style = styles.get(scopeId2);
|
358
|
-
if (supportsConstructableStylesheets && allowCS) {
|
359
|
-
style = style || new CSSStyleSheet();
|
360
|
-
if (typeof style === "string") {
|
361
|
-
style = cssText;
|
362
|
-
} else {
|
363
|
-
style.replaceSync(cssText);
|
364
|
-
}
|
365
|
-
} else {
|
366
|
-
style = cssText;
|
367
|
-
}
|
368
|
-
styles.set(scopeId2, style);
|
369
|
-
};
|
370
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
371
|
-
var _a;
|
372
|
-
const scopeId2 = getScopeId(cmpMeta);
|
373
|
-
const style = styles.get(scopeId2);
|
374
|
-
if (!win.document) {
|
375
|
-
return scopeId2;
|
376
|
-
}
|
377
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
378
|
-
if (style) {
|
379
|
-
if (typeof style === "string") {
|
380
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
381
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
382
|
-
let styleElm;
|
383
|
-
if (!appliedStyles) {
|
384
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
385
|
-
}
|
386
|
-
if (!appliedStyles.has(scopeId2)) {
|
387
|
-
{
|
388
|
-
styleElm = win.document.createElement("style");
|
389
|
-
styleElm.innerHTML = style;
|
390
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
391
|
-
if (nonce != null) {
|
392
|
-
styleElm.setAttribute("nonce", nonce);
|
393
|
-
}
|
394
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
395
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
396
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
397
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
398
|
-
styleContainerNode.insertBefore(
|
399
|
-
styleElm,
|
400
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
401
|
-
);
|
402
|
-
} else if ("host" in styleContainerNode) {
|
403
|
-
if (supportsConstructableStylesheets) {
|
404
|
-
const stylesheet = new CSSStyleSheet();
|
405
|
-
stylesheet.replaceSync(style);
|
406
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
407
|
-
} else {
|
408
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
409
|
-
if (existingStyleContainer) {
|
410
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
411
|
-
} else {
|
412
|
-
styleContainerNode.prepend(styleElm);
|
413
|
-
}
|
414
|
-
}
|
415
|
-
} else {
|
416
|
-
styleContainerNode.append(styleElm);
|
417
|
-
}
|
418
|
-
}
|
419
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
420
|
-
styleContainerNode.insertBefore(styleElm, null);
|
421
|
-
}
|
422
|
-
}
|
423
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
424
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
425
|
-
}
|
426
|
-
if (appliedStyles) {
|
427
|
-
appliedStyles.add(scopeId2);
|
428
|
-
}
|
429
|
-
}
|
430
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
431
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
432
|
-
}
|
433
|
-
}
|
434
|
-
return scopeId2;
|
435
|
-
};
|
436
|
-
var attachStyles = (hostRef) => {
|
437
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
438
|
-
const elm = hostRef.$hostElement$;
|
439
|
-
const flags = cmpMeta.$flags$;
|
440
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
441
|
-
const scopeId2 = addStyle(
|
442
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
443
|
-
cmpMeta);
|
444
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
445
|
-
elm["s-sc"] = scopeId2;
|
446
|
-
elm.classList.add(scopeId2 + "-h");
|
447
|
-
}
|
448
|
-
endAttachStyles();
|
449
|
-
};
|
450
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
451
469
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
452
470
|
if (oldValue === newValue) {
|
453
471
|
return;
|
@@ -760,7 +778,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
760
778
|
!isInitialRender && BUILD.updatable && oldChildren !== null
|
761
779
|
) {
|
762
780
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
763
|
-
}
|
781
|
+
} else ;
|
764
782
|
if (isSvgMode && tag === "svg") {
|
765
783
|
isSvgMode = false;
|
766
784
|
}
|
@@ -816,6 +834,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
816
834
|
}
|
817
835
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
818
836
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
837
|
+
if (isInitialLoad) {
|
838
|
+
queueMicrotask(() => {
|
839
|
+
dispatch();
|
840
|
+
});
|
841
|
+
return;
|
842
|
+
}
|
819
843
|
return writeTask(dispatch) ;
|
820
844
|
};
|
821
845
|
var dispatchHooks = (hostRef, isInitialLoad) => {
|
@@ -933,9 +957,10 @@ var postUpdateComponent = (hostRef) => {
|
|
933
957
|
}
|
934
958
|
};
|
935
959
|
var forceUpdate = (ref) => {
|
960
|
+
var _a;
|
936
961
|
{
|
937
962
|
const hostRef = getHostRef(ref);
|
938
|
-
const isConnected = hostRef.$hostElement
|
963
|
+
const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
|
939
964
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
940
965
|
scheduleUpdate(hostRef, false);
|
941
966
|
}
|
@@ -964,6 +989,9 @@ var addHydratedFlag = (elm) => {
|
|
964
989
|
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
965
990
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
966
991
|
const hostRef = getHostRef(ref);
|
992
|
+
if (!hostRef) {
|
993
|
+
return;
|
994
|
+
}
|
967
995
|
if (!hostRef) {
|
968
996
|
throw new Error(
|
969
997
|
`Couldn't find host element for "${cmpMeta.$tagName$}" 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/stenciljs/core/issues/5457).`
|
@@ -1023,6 +1051,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1023
1051
|
Object.defineProperty(prototype, memberName, {
|
1024
1052
|
set(newValue) {
|
1025
1053
|
const ref = getHostRef(this);
|
1054
|
+
if (!ref) {
|
1055
|
+
return;
|
1056
|
+
}
|
1026
1057
|
if (origSetter) {
|
1027
1058
|
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
1028
1059
|
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
@@ -1086,7 +1117,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1086
1117
|
} else if (propName == null) {
|
1087
1118
|
const hostRef = getHostRef(this);
|
1088
1119
|
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
1089
|
-
if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
1120
|
+
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
|
1090
1121
|
const instance = hostRef.$lazyInstance$ ;
|
1091
1122
|
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
1092
1123
|
entry == null ? void 0 : entry.forEach((callbackName) => {
|
@@ -1191,6 +1222,9 @@ var fireConnectedCallback = (instance, elm) => {
|
|
1191
1222
|
var connectedCallback = (elm) => {
|
1192
1223
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
1193
1224
|
const hostRef = getHostRef(elm);
|
1225
|
+
if (!hostRef) {
|
1226
|
+
return;
|
1227
|
+
}
|
1194
1228
|
const cmpMeta = hostRef.$cmpMeta$;
|
1195
1229
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
1196
1230
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
@@ -1305,7 +1339,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1305
1339
|
}
|
1306
1340
|
}
|
1307
1341
|
connectedCallback() {
|
1308
|
-
getHostRef(this);
|
1342
|
+
const hostRef = getHostRef(this);
|
1343
|
+
if (!hostRef) {
|
1344
|
+
return;
|
1345
|
+
}
|
1309
1346
|
if (!this.hasRegisteredEventListeners) {
|
1310
1347
|
this.hasRegisteredEventListeners = true;
|
1311
1348
|
}
|
@@ -1324,6 +1361,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1324
1361
|
plt.raf(() => {
|
1325
1362
|
var _a3;
|
1326
1363
|
const hostRef = getHostRef(this);
|
1364
|
+
if (!hostRef) {
|
1365
|
+
return;
|
1366
|
+
}
|
1327
1367
|
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
1328
1368
|
if (i2 > -1) {
|
1329
1369
|
deferredConnectedCallbacks.splice(i2, 1);
|
@@ -1334,7 +1374,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1334
1374
|
});
|
1335
1375
|
}
|
1336
1376
|
componentOnReady() {
|
1337
|
-
|
1377
|
+
var _a3;
|
1378
|
+
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
1338
1379
|
}
|
1339
1380
|
};
|
1340
1381
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
@@ -1380,7 +1421,6 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1380
1421
|
exports.bootstrapLazy = bootstrapLazy;
|
1381
1422
|
exports.forceUpdate = forceUpdate;
|
1382
1423
|
exports.getRenderingRef = getRenderingRef;
|
1383
|
-
exports.globalScripts = globalScripts;
|
1384
1424
|
exports.h = h;
|
1385
1425
|
exports.promiseResolve = promiseResolve;
|
1386
1426
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/loader.cjs.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var index = require('./index-
|
3
|
+
var index = require('./index-vwAjVR0m.js');
|
4
|
+
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
4
5
|
|
5
6
|
const defineCustomElements = async (win, options) => {
|
6
7
|
if (typeof window === 'undefined') return undefined;
|
7
|
-
await
|
8
|
+
await appGlobals.globalScripts();
|
8
9
|
return index.bootstrapLazy([["proto-sudoku.cjs",[[1,"proto-sudoku",{"tag":[1],"platform":[1]}]]]], options);
|
9
10
|
};
|
10
11
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var index = require('./index-
|
3
|
+
var index = require('./index-vwAjVR0m.js');
|
4
|
+
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
4
5
|
|
5
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
6
7
|
/*
|
7
|
-
Stencil Client Patch Browser v4.
|
8
|
+
Stencil Client Patch Browser v4.36.0 | MIT Licensed | https://stenciljs.com
|
8
9
|
*/
|
9
10
|
|
10
11
|
var patchBrowser = () => {
|
@@ -17,7 +18,7 @@ var patchBrowser = () => {
|
|
17
18
|
};
|
18
19
|
|
19
20
|
patchBrowser().then(async (options) => {
|
20
|
-
await
|
21
|
+
await appGlobals.globalScripts();
|
21
22
|
return index.bootstrapLazy([["proto-sudoku.cjs",[[1,"proto-sudoku",{"tag":[1],"platform":[1]}]]]], options);
|
22
23
|
});
|
23
24
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var index = require('./index-
|
3
|
+
var index = require('./index-vwAjVR0m.js');
|
4
4
|
|
5
5
|
const Alien = props => {
|
6
6
|
const hex = props.hex || 'currentColor';
|
@@ -133,6 +133,8 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
133
133
|
set: [],
|
134
134
|
reset: [],
|
135
135
|
};
|
136
|
+
// Track onChange listeners to enable removeListener functionality
|
137
|
+
const changeListeners = new Map();
|
136
138
|
const reset = () => {
|
137
139
|
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
138
140
|
// otherwise, the state won't be properly reset
|
@@ -186,17 +188,21 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
186
188
|
};
|
187
189
|
};
|
188
190
|
const onChange = (propName, cb) => {
|
189
|
-
const
|
191
|
+
const setHandler = (key, newValue) => {
|
190
192
|
if (key === propName) {
|
191
193
|
cb(newValue);
|
192
194
|
}
|
193
|
-
}
|
194
|
-
|
195
|
-
//
|
196
|
-
const
|
195
|
+
};
|
196
|
+
const resetHandler = () => cb(unwrap(defaultState)[propName]);
|
197
|
+
// Register the handlers
|
198
|
+
const unSet = on('set', setHandler);
|
199
|
+
const unReset = on('reset', resetHandler);
|
200
|
+
// Track the relationship between the user callback and internal handlers
|
201
|
+
changeListeners.set(cb, { setHandler, resetHandler, propName });
|
197
202
|
return () => {
|
198
203
|
unSet();
|
199
204
|
unReset();
|
205
|
+
changeListeners.delete(cb);
|
200
206
|
};
|
201
207
|
};
|
202
208
|
const use = (...subscriptions) => {
|
@@ -221,6 +227,15 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
221
227
|
const oldValue = states.get(key);
|
222
228
|
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
223
229
|
};
|
230
|
+
const removeListener = (propName, listener) => {
|
231
|
+
const listenerInfo = changeListeners.get(listener);
|
232
|
+
if (listenerInfo && listenerInfo.propName === propName) {
|
233
|
+
// Remove the specific handlers that were created for this listener
|
234
|
+
removeFromArray(handlers.set, listenerInfo.setHandler);
|
235
|
+
removeFromArray(handlers.reset, listenerInfo.resetHandler);
|
236
|
+
changeListeners.delete(listener);
|
237
|
+
}
|
238
|
+
};
|
224
239
|
return {
|
225
240
|
state,
|
226
241
|
get,
|
@@ -231,6 +246,7 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
231
246
|
dispose,
|
232
247
|
reset,
|
233
248
|
forceUpdate,
|
249
|
+
removeListener,
|
234
250
|
};
|
235
251
|
};
|
236
252
|
const removeFromArray = (array, item) => {
|
@@ -301,6 +317,7 @@ const supportsRequestStreams = (() => {
|
|
301
317
|
return duplexAccessed && !hasContentType;
|
302
318
|
})();
|
303
319
|
const supportsAbortController = typeof globalThis.AbortController === 'function';
|
320
|
+
const supportsAbortSignal = typeof globalThis.AbortSignal === 'function' && typeof globalThis.AbortSignal.any === 'function';
|
304
321
|
const supportsResponseStreams = typeof globalThis.ReadableStream === 'function';
|
305
322
|
const supportsFormData = typeof globalThis.FormData === 'function';
|
306
323
|
const requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
|
@@ -724,7 +741,7 @@ class Ky {
|
|
724
741
|
}
|
725
742
|
this._input = this._options.prefixUrl + this._input;
|
726
743
|
}
|
727
|
-
if (supportsAbortController) {
|
744
|
+
if (supportsAbortController && supportsAbortSignal) {
|
728
745
|
const originalSignal = this._options.signal ?? this._input.signal;
|
729
746
|
this.abortController = new globalThis.AbortController();
|
730
747
|
this._options.signal = originalSignal ? AbortSignal.any([originalSignal, this.abortController.signal]) : this.abortController.signal;
|