@everymatrix/casino-tournament-duration 1.56.0 → 1.56.3
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/casino-tournament-duration/casino-tournament-duration.esm.js +1 -1
- package/dist/casino-tournament-duration/p-22c89147.js +2 -0
- package/dist/casino-tournament-duration/p-b217bc2d.entry.js +1 -0
- package/dist/cjs/casino-tournament-duration.cjs.entry.js +10 -7
- package/dist/cjs/casino-tournament-duration.cjs.js +2 -2
- package/dist/cjs/{index-03d730d9.js → index-b7716dd4.js} +66 -201
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-tournament-duration/casino-tournament-duration.js +9 -20
- package/dist/esm/casino-tournament-duration.entry.js +10 -7
- package/dist/esm/casino-tournament-duration.js +3 -3
- package/dist/esm/{index-570a45b6.js → index-ab94677e.js} +66 -201
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-tournament-duration/p-201e69cb.entry.js +0 -1
- package/dist/casino-tournament-duration/p-bd114f3e.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,15 +2,18 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
3
3
|
export class CasinoTournamentDuration {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
this.startTime = undefined;
|
|
6
|
+
this.endTime = undefined;
|
|
7
|
+
this.status = undefined;
|
|
8
|
+
this.language = undefined;
|
|
8
9
|
this.clientStyling = '';
|
|
9
|
-
/**
|
|
10
|
-
* Client custom styling via url
|
|
11
|
-
*/
|
|
12
10
|
this.clientStylingUrl = '';
|
|
11
|
+
this.translationData = undefined;
|
|
12
|
+
this.tournamentUntilStartDays = undefined;
|
|
13
|
+
this.tournamentLeftDays = undefined;
|
|
14
|
+
this.showRemain = undefined;
|
|
13
15
|
this.limitStylingAppends = false;
|
|
16
|
+
this.durationInterval = undefined;
|
|
14
17
|
}
|
|
15
18
|
watchLanguage(newValue, oldValue) {
|
|
16
19
|
if (newValue && newValue != oldValue) {
|
|
@@ -145,8 +148,6 @@ export class CasinoTournamentDuration {
|
|
|
145
148
|
"tags": [],
|
|
146
149
|
"text": "Tournament start time"
|
|
147
150
|
},
|
|
148
|
-
"getter": false,
|
|
149
|
-
"setter": false,
|
|
150
151
|
"attribute": "start-time",
|
|
151
152
|
"reflect": false
|
|
152
153
|
},
|
|
@@ -164,8 +165,6 @@ export class CasinoTournamentDuration {
|
|
|
164
165
|
"tags": [],
|
|
165
166
|
"text": "Tournament end time"
|
|
166
167
|
},
|
|
167
|
-
"getter": false,
|
|
168
|
-
"setter": false,
|
|
169
168
|
"attribute": "end-time",
|
|
170
169
|
"reflect": false
|
|
171
170
|
},
|
|
@@ -183,8 +182,6 @@ export class CasinoTournamentDuration {
|
|
|
183
182
|
"tags": [],
|
|
184
183
|
"text": "Tournament status"
|
|
185
184
|
},
|
|
186
|
-
"getter": false,
|
|
187
|
-
"setter": false,
|
|
188
185
|
"attribute": "status",
|
|
189
186
|
"reflect": false
|
|
190
187
|
},
|
|
@@ -202,8 +199,6 @@ export class CasinoTournamentDuration {
|
|
|
202
199
|
"tags": [],
|
|
203
200
|
"text": "Widget language to show"
|
|
204
201
|
},
|
|
205
|
-
"getter": false,
|
|
206
|
-
"setter": false,
|
|
207
202
|
"attribute": "language",
|
|
208
203
|
"reflect": false
|
|
209
204
|
},
|
|
@@ -221,8 +216,6 @@ export class CasinoTournamentDuration {
|
|
|
221
216
|
"tags": [],
|
|
222
217
|
"text": "Client custom styling via inline styles"
|
|
223
218
|
},
|
|
224
|
-
"getter": false,
|
|
225
|
-
"setter": false,
|
|
226
219
|
"attribute": "client-styling",
|
|
227
220
|
"reflect": false,
|
|
228
221
|
"defaultValue": "''"
|
|
@@ -241,8 +234,6 @@ export class CasinoTournamentDuration {
|
|
|
241
234
|
"tags": [],
|
|
242
235
|
"text": "Client custom styling via url"
|
|
243
236
|
},
|
|
244
|
-
"getter": false,
|
|
245
|
-
"setter": false,
|
|
246
237
|
"attribute": "client-styling-url",
|
|
247
238
|
"reflect": false,
|
|
248
239
|
"defaultValue": "''"
|
|
@@ -261,8 +252,6 @@ export class CasinoTournamentDuration {
|
|
|
261
252
|
"tags": [],
|
|
262
253
|
"text": "Translations via parent component"
|
|
263
254
|
},
|
|
264
|
-
"getter": false,
|
|
265
|
-
"setter": false,
|
|
266
255
|
"attribute": "translation-data",
|
|
267
256
|
"reflect": true
|
|
268
257
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-ab94677e.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -102,15 +102,18 @@ const CasinoTournamentDurationStyle0 = casinoTournamentDurationCss;
|
|
|
102
102
|
const CasinoTournamentDuration = class {
|
|
103
103
|
constructor(hostRef) {
|
|
104
104
|
registerInstance(this, hostRef);
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
this.startTime = undefined;
|
|
106
|
+
this.endTime = undefined;
|
|
107
|
+
this.status = undefined;
|
|
108
|
+
this.language = undefined;
|
|
108
109
|
this.clientStyling = '';
|
|
109
|
-
/**
|
|
110
|
-
* Client custom styling via url
|
|
111
|
-
*/
|
|
112
110
|
this.clientStylingUrl = '';
|
|
111
|
+
this.translationData = undefined;
|
|
112
|
+
this.tournamentUntilStartDays = undefined;
|
|
113
|
+
this.tournamentLeftDays = undefined;
|
|
114
|
+
this.showRemain = undefined;
|
|
113
115
|
this.limitStylingAppends = false;
|
|
116
|
+
this.durationInterval = undefined;
|
|
114
117
|
}
|
|
115
118
|
watchLanguage(newValue, oldValue) {
|
|
116
119
|
if (newValue && newValue != oldValue) {
|
|
@@ -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-ab94677e.js';
|
|
2
|
+
export { s as setNonce } from './index-ab94677e.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.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-tournament-duration';
|
|
2
|
-
const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, 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,
|
|
2
|
+
const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, 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: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -321,40 +316,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
321
316
|
}
|
|
322
317
|
if (!appliedStyles.has(scopeId2)) {
|
|
323
318
|
{
|
|
324
|
-
styleElm =
|
|
319
|
+
styleElm = doc.createElement("style");
|
|
325
320
|
styleElm.innerHTML = style;
|
|
326
321
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
327
322
|
if (nonce != null) {
|
|
328
323
|
styleElm.setAttribute("nonce", nonce);
|
|
329
324
|
}
|
|
330
|
-
|
|
331
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
332
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
333
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
334
|
-
styleContainerNode.insertBefore(
|
|
335
|
-
styleElm,
|
|
336
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
337
|
-
);
|
|
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 */) {
|
|
356
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
357
|
-
}
|
|
325
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
358
326
|
}
|
|
359
327
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
360
328
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -377,25 +345,23 @@ var attachStyles = (hostRef) => {
|
|
|
377
345
|
const scopeId2 = addStyle(
|
|
378
346
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
379
347
|
cmpMeta);
|
|
380
|
-
if (
|
|
348
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
381
349
|
elm["s-sc"] = scopeId2;
|
|
382
350
|
elm.classList.add(scopeId2 + "-h");
|
|
383
351
|
}
|
|
384
352
|
endAttachStyles();
|
|
385
353
|
};
|
|
386
354
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
387
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
355
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
388
356
|
if (oldValue !== newValue) {
|
|
389
357
|
let isProp = isMemberInElement(elm, memberName);
|
|
390
358
|
memberName.toLowerCase();
|
|
391
359
|
if (memberName === "class") {
|
|
392
360
|
const classList = elm.classList;
|
|
393
361
|
const oldClasses = parseClassList(oldValue);
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
398
|
-
}
|
|
362
|
+
const newClasses = parseClassList(newValue);
|
|
363
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
364
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
399
365
|
} else if (memberName === "style") {
|
|
400
366
|
{
|
|
401
367
|
for (const prop in oldValue) {
|
|
@@ -426,13 +392,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
426
392
|
if (memberName === "list") {
|
|
427
393
|
isProp = false;
|
|
428
394
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
429
|
-
|
|
430
|
-
elm[memberName] = n;
|
|
431
|
-
} else {
|
|
432
|
-
elm.setAttribute(memberName, n);
|
|
433
|
-
}
|
|
395
|
+
elm[memberName] = n;
|
|
434
396
|
}
|
|
435
|
-
} else
|
|
397
|
+
} else {
|
|
436
398
|
elm[memberName] = newValue;
|
|
437
399
|
}
|
|
438
400
|
} catch (e) {
|
|
@@ -454,42 +416,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
454
416
|
}
|
|
455
417
|
};
|
|
456
418
|
var parseClassListRegex = /\s/;
|
|
457
|
-
var parseClassList = (value) =>
|
|
458
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
459
|
-
value = value.baseVal;
|
|
460
|
-
}
|
|
461
|
-
if (!value || typeof value !== "string") {
|
|
462
|
-
return [];
|
|
463
|
-
}
|
|
464
|
-
return value.split(parseClassListRegex);
|
|
465
|
-
};
|
|
419
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
466
420
|
|
|
467
421
|
// src/runtime/vdom/update-element.ts
|
|
468
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
422
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
469
423
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
470
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
471
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
424
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
425
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
472
426
|
{
|
|
473
427
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
474
428
|
if (!(memberName in newVnodeAttrs)) {
|
|
475
|
-
setAccessor(
|
|
476
|
-
elm,
|
|
477
|
-
memberName,
|
|
478
|
-
oldVnodeAttrs[memberName],
|
|
479
|
-
void 0,
|
|
480
|
-
isSvgMode2,
|
|
481
|
-
newVnode.$flags$);
|
|
429
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
482
430
|
}
|
|
483
431
|
}
|
|
484
432
|
}
|
|
485
433
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
486
|
-
setAccessor(
|
|
487
|
-
elm,
|
|
488
|
-
memberName,
|
|
489
|
-
oldVnodeAttrs[memberName],
|
|
490
|
-
newVnodeAttrs[memberName],
|
|
491
|
-
isSvgMode2,
|
|
492
|
-
newVnode.$flags$);
|
|
434
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
493
435
|
}
|
|
494
436
|
};
|
|
495
437
|
function sortedAttrNames(attrNames) {
|
|
@@ -501,10 +443,13 @@ function sortedAttrNames(attrNames) {
|
|
|
501
443
|
attrNames
|
|
502
444
|
);
|
|
503
445
|
}
|
|
446
|
+
|
|
447
|
+
// src/runtime/vdom/vdom-render.ts
|
|
448
|
+
var scopeId;
|
|
504
449
|
var hostTagName;
|
|
505
450
|
var useNativeShadowDom = false;
|
|
506
451
|
var isSvgMode = false;
|
|
507
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
452
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
508
453
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
509
454
|
let i2 = 0;
|
|
510
455
|
let elm;
|
|
@@ -518,6 +463,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
518
463
|
{
|
|
519
464
|
updateElement(null, newVNode2, isSvgMode);
|
|
520
465
|
}
|
|
466
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
467
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
468
|
+
}
|
|
521
469
|
if (newVNode2.$children$) {
|
|
522
470
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
523
471
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -646,9 +594,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
646
594
|
if (!isInitialRender) {
|
|
647
595
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
648
596
|
}
|
|
649
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
650
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
651
|
-
}
|
|
652
597
|
return true;
|
|
653
598
|
}
|
|
654
599
|
return false;
|
|
@@ -671,10 +616,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
671
616
|
elm.textContent = "";
|
|
672
617
|
}
|
|
673
618
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
674
|
-
} else if (
|
|
675
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
676
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
677
|
-
) {
|
|
619
|
+
} else if (oldChildren !== null) {
|
|
678
620
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
679
621
|
}
|
|
680
622
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -682,9 +624,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
682
624
|
}
|
|
683
625
|
};
|
|
684
626
|
var insertBefore = (parent, newNode, reference) => {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
627
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
628
|
+
return inserted;
|
|
688
629
|
};
|
|
689
630
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
690
631
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -709,21 +650,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
709
650
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
710
651
|
hostRef.$vnode$ = rootVnode;
|
|
711
652
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
712
|
-
|
|
653
|
+
{
|
|
654
|
+
scopeId = hostElm["s-sc"];
|
|
655
|
+
}
|
|
656
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
713
657
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
714
658
|
};
|
|
715
659
|
|
|
716
660
|
// src/runtime/update-component.ts
|
|
717
661
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
718
662
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
719
|
-
|
|
720
|
-
new Promise(
|
|
721
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
722
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
723
|
-
r();
|
|
724
|
-
}
|
|
725
|
-
)
|
|
726
|
-
);
|
|
663
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
727
664
|
}
|
|
728
665
|
};
|
|
729
666
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -750,7 +687,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
750
687
|
let maybePromise;
|
|
751
688
|
if (isInitialLoad) {
|
|
752
689
|
{
|
|
753
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
690
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
754
691
|
}
|
|
755
692
|
}
|
|
756
693
|
endSchedule();
|
|
@@ -819,7 +756,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
819
756
|
const instance = hostRef.$lazyInstance$ ;
|
|
820
757
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
821
758
|
{
|
|
822
|
-
safeCall(instance, "componentDidRender"
|
|
759
|
+
safeCall(instance, "componentDidRender");
|
|
823
760
|
}
|
|
824
761
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
825
762
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -848,14 +785,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
848
785
|
}
|
|
849
786
|
};
|
|
850
787
|
var appDidLoad = (who) => {
|
|
788
|
+
{
|
|
789
|
+
addHydratedFlag(doc.documentElement);
|
|
790
|
+
}
|
|
851
791
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
852
792
|
};
|
|
853
|
-
var safeCall = (instance, method, arg
|
|
793
|
+
var safeCall = (instance, method, arg) => {
|
|
854
794
|
if (instance && instance[method]) {
|
|
855
795
|
try {
|
|
856
796
|
return instance[method](arg);
|
|
857
797
|
} catch (e) {
|
|
858
|
-
consoleError(e
|
|
798
|
+
consoleError(e);
|
|
859
799
|
}
|
|
860
800
|
}
|
|
861
801
|
return void 0;
|
|
@@ -914,68 +854,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
914
854
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
915
855
|
members.map(([memberName, [memberFlags]]) => {
|
|
916
856
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
917
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
918
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
919
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
920
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
921
|
-
Object.defineProperty(prototype, memberName, {
|
|
922
|
-
get() {
|
|
923
|
-
{
|
|
924
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
925
|
-
return getValue(this, memberName);
|
|
926
|
-
}
|
|
927
|
-
const ref = getHostRef(this);
|
|
928
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
929
|
-
if (!instance) return;
|
|
930
|
-
return instance[memberName];
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
configurable: true,
|
|
934
|
-
enumerable: true
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
857
|
Object.defineProperty(prototype, memberName, {
|
|
858
|
+
get() {
|
|
859
|
+
return getValue(this, memberName);
|
|
860
|
+
},
|
|
938
861
|
set(newValue) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
944
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
945
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
946
|
-
}
|
|
947
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
948
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
949
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
950
|
-
return;
|
|
951
|
-
}
|
|
952
|
-
{
|
|
953
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
954
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
955
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
956
|
-
ref.$onReadyPromise$.then(() => {
|
|
957
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
958
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
const setterSetVal = () => {
|
|
965
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
966
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
967
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
968
|
-
}
|
|
969
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
970
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
971
|
-
};
|
|
972
|
-
if (ref.$lazyInstance$) {
|
|
973
|
-
setterSetVal();
|
|
974
|
-
} else {
|
|
975
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}
|
|
862
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
863
|
+
},
|
|
864
|
+
configurable: true,
|
|
865
|
+
enumerable: true
|
|
979
866
|
});
|
|
980
867
|
}
|
|
981
868
|
});
|
|
@@ -985,11 +872,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
985
872
|
plt.jmp(() => {
|
|
986
873
|
var _a2;
|
|
987
874
|
const propName = attrNameToPropName.get(attrName);
|
|
988
|
-
if (this.hasOwnProperty(propName)
|
|
875
|
+
if (this.hasOwnProperty(propName)) {
|
|
989
876
|
newValue = this[propName];
|
|
990
877
|
delete this[propName];
|
|
991
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
992
|
-
this[propName] == newValue) {
|
|
878
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
993
879
|
return;
|
|
994
880
|
} else if (propName == null) {
|
|
995
881
|
const hostRef = getHostRef(this);
|
|
@@ -1005,11 +891,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1005
891
|
}
|
|
1006
892
|
return;
|
|
1007
893
|
}
|
|
1008
|
-
|
|
1009
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1010
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1011
|
-
this[propName] = newValue;
|
|
1012
|
-
}
|
|
894
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1013
895
|
});
|
|
1014
896
|
};
|
|
1015
897
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1038,7 +920,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1038
920
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1039
921
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1040
922
|
if (bundleId) {
|
|
1041
|
-
const CstrImport = loadModule(cmpMeta
|
|
923
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1042
924
|
if (CstrImport && "then" in CstrImport) {
|
|
1043
925
|
const endLoad = uniqueTime();
|
|
1044
926
|
Cstr = await CstrImport;
|
|
@@ -1063,7 +945,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1063
945
|
try {
|
|
1064
946
|
new Cstr(hostRef);
|
|
1065
947
|
} catch (e) {
|
|
1066
|
-
consoleError(e
|
|
948
|
+
consoleError(e);
|
|
1067
949
|
}
|
|
1068
950
|
{
|
|
1069
951
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1098,7 +980,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1098
980
|
schedule();
|
|
1099
981
|
}
|
|
1100
982
|
};
|
|
1101
|
-
var fireConnectedCallback = (instance
|
|
983
|
+
var fireConnectedCallback = (instance) => {
|
|
1102
984
|
};
|
|
1103
985
|
|
|
1104
986
|
// src/runtime/connected-callback.ts
|
|
@@ -1138,7 +1020,7 @@ var connectedCallback = (elm) => {
|
|
|
1138
1020
|
endConnected();
|
|
1139
1021
|
}
|
|
1140
1022
|
};
|
|
1141
|
-
var disconnectInstance = (instance
|
|
1023
|
+
var disconnectInstance = (instance) => {
|
|
1142
1024
|
};
|
|
1143
1025
|
var disconnectedCallback = async (elm) => {
|
|
1144
1026
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1147,12 +1029,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1147
1029
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1148
1030
|
}
|
|
1149
1031
|
}
|
|
1150
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1151
|
-
rootAppliedStyles.delete(elm);
|
|
1152
|
-
}
|
|
1153
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1154
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1155
|
-
}
|
|
1156
1032
|
};
|
|
1157
1033
|
|
|
1158
1034
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1233,17 +1109,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1233
1109
|
}
|
|
1234
1110
|
disconnectedCallback() {
|
|
1235
1111
|
plt.jmp(() => disconnectedCallback(this));
|
|
1236
|
-
plt.raf(() => {
|
|
1237
|
-
var _a3;
|
|
1238
|
-
const hostRef = getHostRef(this);
|
|
1239
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1240
|
-
if (i2 > -1) {
|
|
1241
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1242
|
-
}
|
|
1243
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1244
|
-
delete hostRef.$vnode$.$elm$;
|
|
1245
|
-
}
|
|
1246
|
-
});
|
|
1247
1112
|
}
|
|
1248
1113
|
componentOnReady() {
|
|
1249
1114
|
return getHostRef(this).$onReadyPromise$;
|
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-ab94677e.js';
|
|
2
|
+
export { s as setNonce } from './index-ab94677e.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
-
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
-
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1020
1018
|
crossOrigin?: string;
|
|
1021
1019
|
crossorigin?: string;
|
|
1022
1020
|
loop?: boolean;
|
|
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
|
|
|
1566
1564
|
onSubmitCapture?: (event: Event) => void;
|
|
1567
1565
|
onInvalid?: (event: Event) => void;
|
|
1568
1566
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
-
onToggle?: (event: Event) => void;
|
|
1572
|
-
onToggleCapture?: (event: Event) => void;
|
|
1573
1567
|
onLoad?: (event: Event) => void;
|
|
1574
1568
|
onLoadCapture?: (event: Event) => void;
|
|
1575
1569
|
onError?: (event: Event) => void;
|