@everymatrix/user-actions 1.90.27 → 1.90.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-04ccb420.js → index-66cfb45f.js} +460 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/user-actions.cjs.js +2 -2
- package/dist/cjs/user-actions_2.cjs.entry.js +723 -0
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/user-actions/user-actions.js +337 -3
- package/dist/esm/{index-2b2bb7fc.js → index-ec24e8d4.js} +460 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/user-actions.js +3 -3
- package/dist/esm/user-actions_2.entry.js +718 -0
- package/dist/types/components/user-actions/user-actions.d.ts +47 -1
- package/dist/types/components.d.ts +82 -0
- package/dist/user-actions/index-ec24e8d4.js +2 -0
- package/dist/user-actions/user-actions.esm.js +1 -1
- package/dist/user-actions/user-actions_2.entry.js +1 -0
- package/package.json +1 -1
- package/dist/cjs/user-actions.cjs.entry.js +0 -91
- package/dist/esm/user-actions.entry.js +0 -87
- package/dist/user-actions/index-2b2bb7fc.js +0 -2
- package/dist/user-actions/user-actions.entry.js +0 -1
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'user-actions';
|
|
24
|
-
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
const BUILD = /* user-actions */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -48,6 +48,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
48
48
|
}
|
|
49
49
|
return hostRefs.set(hostElement, hostRef);
|
|
50
50
|
};
|
|
51
|
+
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
51
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
52
53
|
|
|
53
54
|
// src/client/client-load-module.ts
|
|
@@ -70,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
70
71
|
}
|
|
71
72
|
switch(bundleId) {
|
|
72
73
|
|
|
73
|
-
case 'user-
|
|
74
|
+
case 'user-actions_2.cjs':
|
|
74
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
75
76
|
/* webpackMode: "lazy" */
|
|
76
|
-
'./user-
|
|
77
|
+
'./user-actions_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -165,6 +166,14 @@ var flush = () => {
|
|
|
165
166
|
};
|
|
166
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
167
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
173
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
174
|
+
|
|
175
|
+
// src/utils/helpers.ts
|
|
176
|
+
var isDef = (v) => v != null;
|
|
168
177
|
var isComplexType = (o) => {
|
|
169
178
|
o = typeof o;
|
|
170
179
|
return o === "object" || o === "function";
|
|
@@ -238,6 +247,70 @@ var uniqueTime = (key, measureText) => {
|
|
|
238
247
|
};
|
|
239
248
|
}
|
|
240
249
|
};
|
|
250
|
+
var h = (nodeName, vnodeData, ...children) => {
|
|
251
|
+
let child = null;
|
|
252
|
+
let key = null;
|
|
253
|
+
let simple = false;
|
|
254
|
+
let lastSimple = false;
|
|
255
|
+
const vNodeChildren = [];
|
|
256
|
+
const walk = (c) => {
|
|
257
|
+
for (let i2 = 0; i2 < c.length; i2++) {
|
|
258
|
+
child = c[i2];
|
|
259
|
+
if (Array.isArray(child)) {
|
|
260
|
+
walk(child);
|
|
261
|
+
} else if (child != null && typeof child !== "boolean") {
|
|
262
|
+
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
263
|
+
child = String(child);
|
|
264
|
+
}
|
|
265
|
+
if (simple && lastSimple) {
|
|
266
|
+
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
267
|
+
} else {
|
|
268
|
+
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
269
|
+
}
|
|
270
|
+
lastSimple = simple;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
walk(children);
|
|
275
|
+
if (vnodeData) {
|
|
276
|
+
if (vnodeData.key) {
|
|
277
|
+
key = vnodeData.key;
|
|
278
|
+
}
|
|
279
|
+
{
|
|
280
|
+
const classData = vnodeData.className || vnodeData.class;
|
|
281
|
+
if (classData) {
|
|
282
|
+
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
const vnode = newVNode(nodeName, null);
|
|
287
|
+
vnode.$attrs$ = vnodeData;
|
|
288
|
+
if (vNodeChildren.length > 0) {
|
|
289
|
+
vnode.$children$ = vNodeChildren;
|
|
290
|
+
}
|
|
291
|
+
{
|
|
292
|
+
vnode.$key$ = key;
|
|
293
|
+
}
|
|
294
|
+
return vnode;
|
|
295
|
+
};
|
|
296
|
+
var newVNode = (tag, text) => {
|
|
297
|
+
const vnode = {
|
|
298
|
+
$flags$: 0,
|
|
299
|
+
$tag$: tag,
|
|
300
|
+
$text$: text,
|
|
301
|
+
$elm$: null,
|
|
302
|
+
$children$: null
|
|
303
|
+
};
|
|
304
|
+
{
|
|
305
|
+
vnode.$attrs$ = null;
|
|
306
|
+
}
|
|
307
|
+
{
|
|
308
|
+
vnode.$key$ = null;
|
|
309
|
+
}
|
|
310
|
+
return vnode;
|
|
311
|
+
};
|
|
312
|
+
var Host = {};
|
|
313
|
+
var isHost = (node) => node && node.$tag$ === Host;
|
|
241
314
|
var parsePropertyValue = (propValue, propType) => {
|
|
242
315
|
if (propValue != null && !isComplexType(propValue)) {
|
|
243
316
|
if (propType & 1 /* String */) {
|
|
@@ -318,6 +391,341 @@ var attachStyles = (hostRef) => {
|
|
|
318
391
|
endAttachStyles();
|
|
319
392
|
};
|
|
320
393
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
394
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
395
|
+
if (oldValue !== newValue) {
|
|
396
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
397
|
+
let ln = memberName.toLowerCase();
|
|
398
|
+
if (memberName === "class") {
|
|
399
|
+
const classList = elm.classList;
|
|
400
|
+
const oldClasses = parseClassList(oldValue);
|
|
401
|
+
const newClasses = parseClassList(newValue);
|
|
402
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
403
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
404
|
+
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
405
|
+
if (newValue) {
|
|
406
|
+
newValue(elm);
|
|
407
|
+
}
|
|
408
|
+
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
409
|
+
if (memberName[2] === "-") {
|
|
410
|
+
memberName = memberName.slice(3);
|
|
411
|
+
} else if (isMemberInElement(win, ln)) {
|
|
412
|
+
memberName = ln.slice(2);
|
|
413
|
+
} else {
|
|
414
|
+
memberName = ln[2] + memberName.slice(3);
|
|
415
|
+
}
|
|
416
|
+
if (oldValue || newValue) {
|
|
417
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
418
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
419
|
+
if (oldValue) {
|
|
420
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
421
|
+
}
|
|
422
|
+
if (newValue) {
|
|
423
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
} else {
|
|
427
|
+
const isComplex = isComplexType(newValue);
|
|
428
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
429
|
+
try {
|
|
430
|
+
if (!elm.tagName.includes("-")) {
|
|
431
|
+
const n = newValue == null ? "" : newValue;
|
|
432
|
+
if (memberName === "list") {
|
|
433
|
+
isProp = false;
|
|
434
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
435
|
+
elm[memberName] = n;
|
|
436
|
+
}
|
|
437
|
+
} else {
|
|
438
|
+
elm[memberName] = newValue;
|
|
439
|
+
}
|
|
440
|
+
} catch (e) {
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (newValue == null || newValue === false) {
|
|
444
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
445
|
+
{
|
|
446
|
+
elm.removeAttribute(memberName);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
450
|
+
newValue = newValue === true ? "" : newValue;
|
|
451
|
+
{
|
|
452
|
+
elm.setAttribute(memberName, newValue);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
var parseClassListRegex = /\s/;
|
|
459
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
460
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
461
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
462
|
+
|
|
463
|
+
// src/runtime/vdom/update-element.ts
|
|
464
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
465
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
466
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
467
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
468
|
+
{
|
|
469
|
+
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
470
|
+
if (!(memberName in newVnodeAttrs)) {
|
|
471
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
476
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
function sortedAttrNames(attrNames) {
|
|
480
|
+
return attrNames.includes("ref") ? (
|
|
481
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
482
|
+
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
483
|
+
) : (
|
|
484
|
+
// no need to sort, return the original array
|
|
485
|
+
attrNames
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// src/runtime/vdom/vdom-render.ts
|
|
490
|
+
var scopeId;
|
|
491
|
+
var hostTagName;
|
|
492
|
+
var useNativeShadowDom = false;
|
|
493
|
+
var isSvgMode = false;
|
|
494
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
495
|
+
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
496
|
+
let i2 = 0;
|
|
497
|
+
let elm;
|
|
498
|
+
let childNode;
|
|
499
|
+
if (newVNode2.$text$ !== null) {
|
|
500
|
+
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
501
|
+
} else {
|
|
502
|
+
if (!isSvgMode) {
|
|
503
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
504
|
+
}
|
|
505
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
506
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
507
|
+
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
508
|
+
) ;
|
|
509
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
510
|
+
isSvgMode = false;
|
|
511
|
+
}
|
|
512
|
+
{
|
|
513
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
514
|
+
}
|
|
515
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
516
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
517
|
+
}
|
|
518
|
+
if (newVNode2.$children$) {
|
|
519
|
+
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
520
|
+
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
521
|
+
if (childNode) {
|
|
522
|
+
elm.appendChild(childNode);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
{
|
|
527
|
+
if (newVNode2.$tag$ === "svg") {
|
|
528
|
+
isSvgMode = false;
|
|
529
|
+
} else if (elm.tagName === "foreignObject") {
|
|
530
|
+
isSvgMode = true;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
elm["s-hn"] = hostTagName;
|
|
535
|
+
return elm;
|
|
536
|
+
};
|
|
537
|
+
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
538
|
+
let containerElm = parentElm;
|
|
539
|
+
let childNode;
|
|
540
|
+
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
541
|
+
containerElm = containerElm.shadowRoot;
|
|
542
|
+
}
|
|
543
|
+
for (; startIdx <= endIdx; ++startIdx) {
|
|
544
|
+
if (vnodes[startIdx]) {
|
|
545
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
546
|
+
if (childNode) {
|
|
547
|
+
vnodes[startIdx].$elm$ = childNode;
|
|
548
|
+
insertBefore(containerElm, childNode, before);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
554
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
555
|
+
const vnode = vnodes[index];
|
|
556
|
+
if (vnode) {
|
|
557
|
+
const elm = vnode.$elm$;
|
|
558
|
+
nullifyVNodeRefs(vnode);
|
|
559
|
+
if (elm) {
|
|
560
|
+
elm.remove();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
566
|
+
let oldStartIdx = 0;
|
|
567
|
+
let newStartIdx = 0;
|
|
568
|
+
let idxInOld = 0;
|
|
569
|
+
let i2 = 0;
|
|
570
|
+
let oldEndIdx = oldCh.length - 1;
|
|
571
|
+
let oldStartVnode = oldCh[0];
|
|
572
|
+
let oldEndVnode = oldCh[oldEndIdx];
|
|
573
|
+
let newEndIdx = newCh.length - 1;
|
|
574
|
+
let newStartVnode = newCh[0];
|
|
575
|
+
let newEndVnode = newCh[newEndIdx];
|
|
576
|
+
let node;
|
|
577
|
+
let elmToMove;
|
|
578
|
+
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
579
|
+
if (oldStartVnode == null) {
|
|
580
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
581
|
+
} else if (oldEndVnode == null) {
|
|
582
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
583
|
+
} else if (newStartVnode == null) {
|
|
584
|
+
newStartVnode = newCh[++newStartIdx];
|
|
585
|
+
} else if (newEndVnode == null) {
|
|
586
|
+
newEndVnode = newCh[--newEndIdx];
|
|
587
|
+
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
588
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
589
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
590
|
+
newStartVnode = newCh[++newStartIdx];
|
|
591
|
+
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
592
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
593
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
594
|
+
newEndVnode = newCh[--newEndIdx];
|
|
595
|
+
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
596
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
597
|
+
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
598
|
+
oldStartVnode = oldCh[++oldStartIdx];
|
|
599
|
+
newEndVnode = newCh[--newEndIdx];
|
|
600
|
+
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
601
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
602
|
+
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
603
|
+
oldEndVnode = oldCh[--oldEndIdx];
|
|
604
|
+
newStartVnode = newCh[++newStartIdx];
|
|
605
|
+
} else {
|
|
606
|
+
idxInOld = -1;
|
|
607
|
+
{
|
|
608
|
+
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
609
|
+
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
610
|
+
idxInOld = i2;
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
if (idxInOld >= 0) {
|
|
616
|
+
elmToMove = oldCh[idxInOld];
|
|
617
|
+
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
618
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
619
|
+
} else {
|
|
620
|
+
patch(elmToMove, newStartVnode, isInitialRender);
|
|
621
|
+
oldCh[idxInOld] = void 0;
|
|
622
|
+
node = elmToMove.$elm$;
|
|
623
|
+
}
|
|
624
|
+
newStartVnode = newCh[++newStartIdx];
|
|
625
|
+
} else {
|
|
626
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
627
|
+
newStartVnode = newCh[++newStartIdx];
|
|
628
|
+
}
|
|
629
|
+
if (node) {
|
|
630
|
+
{
|
|
631
|
+
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (oldStartIdx > oldEndIdx) {
|
|
637
|
+
addVnodes(
|
|
638
|
+
parentElm,
|
|
639
|
+
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
640
|
+
newVNode2,
|
|
641
|
+
newCh,
|
|
642
|
+
newStartIdx,
|
|
643
|
+
newEndIdx
|
|
644
|
+
);
|
|
645
|
+
} else if (newStartIdx > newEndIdx) {
|
|
646
|
+
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
650
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
651
|
+
if (!isInitialRender) {
|
|
652
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
653
|
+
}
|
|
654
|
+
return true;
|
|
655
|
+
}
|
|
656
|
+
return false;
|
|
657
|
+
};
|
|
658
|
+
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
659
|
+
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
660
|
+
const oldChildren = oldVNode.$children$;
|
|
661
|
+
const newChildren = newVNode2.$children$;
|
|
662
|
+
const tag = newVNode2.$tag$;
|
|
663
|
+
const text = newVNode2.$text$;
|
|
664
|
+
if (text === null) {
|
|
665
|
+
{
|
|
666
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
667
|
+
}
|
|
668
|
+
{
|
|
669
|
+
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
670
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
if (oldChildren !== null && newChildren !== null) {
|
|
674
|
+
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
675
|
+
} else if (newChildren !== null) {
|
|
676
|
+
if (oldVNode.$text$ !== null) {
|
|
677
|
+
elm.textContent = "";
|
|
678
|
+
}
|
|
679
|
+
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
680
|
+
} else if (oldChildren !== null) {
|
|
681
|
+
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
682
|
+
}
|
|
683
|
+
if (isSvgMode && tag === "svg") {
|
|
684
|
+
isSvgMode = false;
|
|
685
|
+
}
|
|
686
|
+
} else if (oldVNode.$text$ !== text) {
|
|
687
|
+
elm.data = text;
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
var nullifyVNodeRefs = (vNode) => {
|
|
691
|
+
{
|
|
692
|
+
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
693
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
var insertBefore = (parent, newNode, reference) => {
|
|
697
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
698
|
+
return inserted;
|
|
699
|
+
};
|
|
700
|
+
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
701
|
+
const hostElm = hostRef.$hostElement$;
|
|
702
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
703
|
+
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
704
|
+
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
705
|
+
hostTagName = hostElm.tagName;
|
|
706
|
+
if (cmpMeta.$attrsToReflect$) {
|
|
707
|
+
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
708
|
+
cmpMeta.$attrsToReflect$.map(
|
|
709
|
+
([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
713
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
714
|
+
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
715
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
rootVnode.$tag$ = null;
|
|
720
|
+
rootVnode.$flags$ |= 4 /* isHost */;
|
|
721
|
+
hostRef.$vnode$ = rootVnode;
|
|
722
|
+
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
723
|
+
{
|
|
724
|
+
scopeId = hostElm["s-sc"];
|
|
725
|
+
}
|
|
726
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
727
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
728
|
+
};
|
|
321
729
|
|
|
322
730
|
// src/runtime/update-component.ts
|
|
323
731
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -377,7 +785,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
377
785
|
}
|
|
378
786
|
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
379
787
|
{
|
|
380
|
-
callRender(hostRef, instance, elm);
|
|
788
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
381
789
|
}
|
|
382
790
|
if (rc) {
|
|
383
791
|
rc.map((cb) => cb());
|
|
@@ -408,11 +816,8 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
|
408
816
|
}
|
|
409
817
|
{
|
|
410
818
|
{
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
shadowRoot.textContent = instance;
|
|
414
|
-
} else {
|
|
415
|
-
elm.textContent = instance;
|
|
819
|
+
{
|
|
820
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
416
821
|
}
|
|
417
822
|
}
|
|
418
823
|
}
|
|
@@ -425,12 +830,16 @@ var postUpdateComponent = (hostRef) => {
|
|
|
425
830
|
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
426
831
|
const elm = hostRef.$hostElement$;
|
|
427
832
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
833
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
428
834
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
429
835
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
430
836
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
431
837
|
{
|
|
432
838
|
addHydratedFlag(elm);
|
|
433
839
|
}
|
|
840
|
+
{
|
|
841
|
+
safeCall(instance, "componentDidLoad");
|
|
842
|
+
}
|
|
434
843
|
endPostUpdate();
|
|
435
844
|
{
|
|
436
845
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -482,6 +891,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
482
891
|
`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/ionic-team/stencil/issues/5457).`
|
|
483
892
|
);
|
|
484
893
|
}
|
|
894
|
+
const elm = hostRef.$hostElement$ ;
|
|
485
895
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
486
896
|
const flags = hostRef.$flags$;
|
|
487
897
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -491,6 +901,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
491
901
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
492
902
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
493
903
|
if (instance) {
|
|
904
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
905
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
906
|
+
if (watchMethods) {
|
|
907
|
+
watchMethods.map((watchMethodName) => {
|
|
908
|
+
try {
|
|
909
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
910
|
+
} catch (e) {
|
|
911
|
+
consoleError(e, elm);
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
}
|
|
494
916
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
495
917
|
scheduleUpdate(hostRef, false);
|
|
496
918
|
}
|
|
@@ -502,7 +924,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
502
924
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
503
925
|
var _a, _b;
|
|
504
926
|
const prototype = Cstr.prototype;
|
|
505
|
-
if (cmpMeta.$members$ ||
|
|
927
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
928
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
929
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
930
|
+
}
|
|
506
931
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
507
932
|
members.map(([memberName, [memberFlags]]) => {
|
|
508
933
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -550,8 +975,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
550
975
|
/* @__PURE__ */ new Set([
|
|
551
976
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
552
977
|
...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
|
|
978
|
+
var _a2;
|
|
553
979
|
const attrName = m[1] || propName;
|
|
554
980
|
attrNameToPropName.set(attrName, propName);
|
|
981
|
+
if (m[0] & 512 /* ReflectAttr */) {
|
|
982
|
+
(_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
|
|
983
|
+
}
|
|
555
984
|
return attrName;
|
|
556
985
|
})
|
|
557
986
|
])
|
|
@@ -580,6 +1009,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
580
1009
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
581
1010
|
}
|
|
582
1011
|
if (!Cstr.isProxied) {
|
|
1012
|
+
{
|
|
1013
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1014
|
+
}
|
|
583
1015
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
584
1016
|
Cstr.isProxied = true;
|
|
585
1017
|
}
|
|
@@ -595,6 +1027,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
595
1027
|
{
|
|
596
1028
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
597
1029
|
}
|
|
1030
|
+
{
|
|
1031
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1032
|
+
}
|
|
598
1033
|
endNewInstance();
|
|
599
1034
|
} else {
|
|
600
1035
|
Cstr = elm.constructor;
|
|
@@ -664,6 +1099,9 @@ var connectedCallback = (elm) => {
|
|
|
664
1099
|
}
|
|
665
1100
|
};
|
|
666
1101
|
var disconnectInstance = (instance) => {
|
|
1102
|
+
{
|
|
1103
|
+
safeCall(instance, "disconnectedCallback");
|
|
1104
|
+
}
|
|
667
1105
|
};
|
|
668
1106
|
var disconnectedCallback = async (elm) => {
|
|
669
1107
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -674,8 +1112,10 @@ var disconnectedCallback = async (elm) => {
|
|
|
674
1112
|
hostRef.$rmListeners$ = void 0;
|
|
675
1113
|
}
|
|
676
1114
|
}
|
|
677
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
678
|
-
hostRef.$
|
|
1115
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1116
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1117
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1118
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
679
1119
|
}
|
|
680
1120
|
}
|
|
681
1121
|
};
|
|
@@ -698,6 +1138,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
698
1138
|
let hasSlotRelocation = false;
|
|
699
1139
|
lazyBundles.map((lazyBundle) => {
|
|
700
1140
|
lazyBundle[1].map((compactMeta) => {
|
|
1141
|
+
var _a2;
|
|
701
1142
|
const cmpMeta = {
|
|
702
1143
|
$flags$: compactMeta[0],
|
|
703
1144
|
$tagName$: compactMeta[1],
|
|
@@ -713,6 +1154,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
713
1154
|
{
|
|
714
1155
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
715
1156
|
}
|
|
1157
|
+
{
|
|
1158
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1159
|
+
}
|
|
1160
|
+
{
|
|
1161
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1162
|
+
}
|
|
716
1163
|
const tagName = cmpMeta.$tagName$;
|
|
717
1164
|
const HostElement = class extends HTMLElement {
|
|
718
1165
|
// StencilLazyHost
|
|
@@ -834,6 +1281,7 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
834
1281
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
835
1282
|
|
|
836
1283
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1284
|
+
exports.h = h;
|
|
837
1285
|
exports.promiseResolve = promiseResolve;
|
|
838
1286
|
exports.registerInstance = registerInstance;
|
|
839
1287
|
exports.setNonce = setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-66cfb45f.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["user-
|
|
11
|
+
return index.bootstrapLazy([["user-actions_2.cjs",[[1,"user-actions",{"mbSource":[513,"mb-source"],"endpoint":[1],"userid":[1],"operatorid":[1],"playercurrency":[513],"hasfundsacknowledgment":[1],"session":[513],"language":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"gmversion":[513],"totalcalculationmode":[513],"actionStack":[32],"customerFundsProtectionActive":[32]},[[8,"message","handleEvent"]]],[1,"user-funds-acknowledgment",{"session":[513],"operatorid":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[1537],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"playercurrency":[513],"userid":[513],"gmversion":[513],"totalcalculationmode":[513],"isLoading":[32],"isConsentChecked":[32],"totalCashAmount":[32],"errorMessage":[32],"errorAmountMessage":[32],"consentsSubmitted":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -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-66cfb45f.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["user-
|
|
22
|
+
return index.bootstrapLazy([["user-actions_2.cjs",[[1,"user-actions",{"mbSource":[513,"mb-source"],"endpoint":[1],"userid":[1],"operatorid":[1],"playercurrency":[513],"hasfundsacknowledgment":[1],"session":[513],"language":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"gmversion":[513],"totalcalculationmode":[513],"actionStack":[32],"customerFundsProtectionActive":[32]},[[8,"message","handleEvent"]]],[1,"user-funds-acknowledgment",{"session":[513],"operatorid":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"endpoint":[513],"language":[1537],"translationUrl":[513,"translation-url"],"currencylocale":[513],"currencydisplay":[513],"maximumfractiondigits":[513],"minimumfractiondigits":[513],"customdisplayformat":[513],"alwaysshowdecimals":[513],"playercurrency":[513],"userid":[513],"gmversion":[513],"totalcalculationmode":[513],"isLoading":[32],"isConsentChecked":[32],"totalCashAmount":[32],"errorMessage":[32],"errorAmountMessage":[32],"consentsSubmitted":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|