@everymatrix/helper-tabs 1.56.0 → 1.56.2

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.
Files changed (26) hide show
  1. package/dist/cjs/helper-tab_2.cjs.entry.js +16 -37
  2. package/dist/cjs/helper-tabs.cjs.js +2 -2
  3. package/dist/cjs/{index-08bd9c7c.js → index-d010e014.js} +73 -208
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/helper-tab/helper-tab.js +7 -34
  7. package/dist/collection/components/helper-tabs/helper-tabs.js +8 -56
  8. package/dist/esm/helper-tab_2.entry.js +16 -37
  9. package/dist/esm/helper-tabs.js +3 -3
  10. package/dist/esm/{index-c5727b52.js → index-3174302b.js} +73 -208
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/helper-tabs/helper-tabs.esm.js +1 -1
  13. package/dist/helper-tabs/p-88d4a539.entry.js +1 -0
  14. package/dist/helper-tabs/p-a0103339.js +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +2 -0
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/helper-tabs/p-c6fec16e.entry.js +0 -1
  20. package/dist/helper-tabs/p-d8d96e22.js +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-tabs/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-08bd9c7c.js');
5
+ const index = require('./index-d010e014.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['en'];
@@ -139,22 +139,17 @@ const HelperTabStyle0 = helperTabCss;
139
139
  const HelperTab = class {
140
140
  constructor(hostRef) {
141
141
  index.registerInstance(this, hostRef);
142
- /**
143
- * Selected index
144
- */
145
142
  this.selectedIndex = 0;
146
- /**
147
- * Client custom styling via string
148
- */
143
+ this.cmsEndpoint = undefined;
144
+ this.mbSource = undefined;
149
145
  this.clientStyling = '';
150
- /**
151
- * Client custom styling via url content
152
- */
153
146
  this.clientStylingUrl = '';
154
- /**
155
- * Language of the widget
156
- */
147
+ this.lowNumber = undefined;
148
+ this.highNumber = undefined;
149
+ this.minimumAllowed = undefined;
150
+ this.maxinumAllowed = undefined;
157
151
  this.language = 'en';
152
+ this.translationUrl = undefined;
158
153
  this.tabContent = '';
159
154
  }
160
155
  handleClientStylingChange(newValue, oldValue) {
@@ -224,38 +219,22 @@ const HelperTabsStyle0 = helperTabsCss;
224
219
  const HelperTabs = class {
225
220
  constructor(hostRef) {
226
221
  index.registerInstance(this, hostRef);
227
- /**
228
- * Tell me if it is disabled
229
- */
230
222
  this.disabled = false;
231
- /**
232
- * Tell me what tab is selected
233
- */
223
+ this.label = undefined;
234
224
  this.selected = false;
235
- /**
236
- * Default selected index
237
- */
225
+ this.cmsEndpoint = undefined;
238
226
  this.selectedIndex = 0;
239
- /**
240
- * Tabs details
241
- */
242
227
  this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
243
- /**
244
- * Client custom styling via string
245
- */
246
228
  this.clientStyling = '';
247
- /**
248
- * Client custom styling via url
249
- */
229
+ this.mbSource = undefined;
250
230
  this.clientStylingurl = '';
251
- /**
252
- * Client custom styling via url content
253
- */
254
231
  this.clientStylingUrl = '';
255
- /**
256
- * Language
257
- */
232
+ this.lowNumber = undefined;
233
+ this.highNumber = undefined;
234
+ this.minimumAllowed = undefined;
235
+ this.maxinumAllowed = undefined;
258
236
  this.language = 'en';
237
+ this.translationUrl = undefined;
259
238
  }
260
239
  connectedCallback() {
261
240
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-08bd9c7c.js');
5
+ const index = require('./index-d010e014.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | 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('helper-tabs.cjs.js', document.baseURI).href));
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-tabs';
24
- const BUILD = /* helper-tabs */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, 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: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* helper-tabs */ { 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: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: true, propMutable: true, propNumber: true, 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: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -349,40 +344,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
349
344
  }
350
345
  if (!appliedStyles.has(scopeId2)) {
351
346
  {
352
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
347
+ styleElm = doc.createElement("style");
353
348
  styleElm.innerHTML = style;
354
349
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
355
350
  if (nonce != null) {
356
351
  styleElm.setAttribute("nonce", nonce);
357
352
  }
358
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
359
- if (styleContainerNode.nodeName === "HEAD") {
360
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
361
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
362
- styleContainerNode.insertBefore(
363
- styleElm,
364
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
365
- );
366
- } else if ("host" in styleContainerNode) {
367
- if (supportsConstructableStylesheets) {
368
- const stylesheet = new CSSStyleSheet();
369
- stylesheet.replaceSync(style);
370
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
371
- } else {
372
- const existingStyleContainer = styleContainerNode.querySelector("style");
373
- if (existingStyleContainer) {
374
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
375
- } else {
376
- styleContainerNode.prepend(styleElm);
377
- }
378
- }
379
- } else {
380
- styleContainerNode.append(styleElm);
381
- }
382
- }
383
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
384
- styleContainerNode.insertBefore(styleElm, null);
385
- }
353
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
386
354
  }
387
355
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
388
356
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -405,25 +373,23 @@ var attachStyles = (hostRef) => {
405
373
  const scopeId2 = addStyle(
406
374
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
407
375
  cmpMeta);
408
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
376
+ if (flags & 10 /* needsScopedEncapsulation */) {
409
377
  elm["s-sc"] = scopeId2;
410
378
  elm.classList.add(scopeId2 + "-h");
411
379
  }
412
380
  endAttachStyles();
413
381
  };
414
382
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
415
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
383
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
416
384
  if (oldValue !== newValue) {
417
385
  let isProp = isMemberInElement(elm, memberName);
418
386
  let ln = memberName.toLowerCase();
419
387
  if (memberName === "class") {
420
388
  const classList = elm.classList;
421
389
  const oldClasses = parseClassList(oldValue);
422
- let newClasses = parseClassList(newValue);
423
- {
424
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
426
- }
390
+ const newClasses = parseClassList(newValue);
391
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
392
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
393
  } else if (memberName === "key") ; else if (memberName === "ref") {
428
394
  if (newValue) {
429
395
  newValue(elm);
@@ -455,13 +421,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
455
421
  if (memberName === "list") {
456
422
  isProp = false;
457
423
  } else if (oldValue == null || elm[memberName] != n) {
458
- if (typeof elm.__lookupSetter__(memberName) === "function") {
459
- elm[memberName] = n;
460
- } else {
461
- elm.setAttribute(memberName, n);
462
- }
424
+ elm[memberName] = n;
463
425
  }
464
- } else if (elm[memberName] !== newValue) {
426
+ } else {
465
427
  elm[memberName] = newValue;
466
428
  }
467
429
  } catch (e) {
@@ -483,44 +445,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
483
445
  }
484
446
  };
485
447
  var parseClassListRegex = /\s/;
486
- var parseClassList = (value) => {
487
- if (typeof value === "object" && value && "baseVal" in value) {
488
- value = value.baseVal;
489
- }
490
- if (!value || typeof value !== "string") {
491
- return [];
492
- }
493
- return value.split(parseClassListRegex);
494
- };
448
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
495
449
  var CAPTURE_EVENT_SUFFIX = "Capture";
496
450
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
497
451
 
498
452
  // src/runtime/vdom/update-element.ts
499
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
453
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
500
454
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
501
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
502
- const newVnodeAttrs = newVnode.$attrs$ || {};
455
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
456
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
503
457
  {
504
458
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
505
459
  if (!(memberName in newVnodeAttrs)) {
506
- setAccessor(
507
- elm,
508
- memberName,
509
- oldVnodeAttrs[memberName],
510
- void 0,
511
- isSvgMode2,
512
- newVnode.$flags$);
460
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
513
461
  }
514
462
  }
515
463
  }
516
464
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
517
- setAccessor(
518
- elm,
519
- memberName,
520
- oldVnodeAttrs[memberName],
521
- newVnodeAttrs[memberName],
522
- isSvgMode2,
523
- newVnode.$flags$);
465
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
524
466
  }
525
467
  };
526
468
  function sortedAttrNames(attrNames) {
@@ -532,10 +474,13 @@ function sortedAttrNames(attrNames) {
532
474
  attrNames
533
475
  );
534
476
  }
477
+
478
+ // src/runtime/vdom/vdom-render.ts
479
+ var scopeId;
535
480
  var hostTagName;
536
481
  var useNativeShadowDom = false;
537
482
  var isSvgMode = false;
538
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
483
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
539
484
  const newVNode2 = newParentVNode.$children$[childIndex];
540
485
  let i2 = 0;
541
486
  let elm;
@@ -549,6 +494,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
549
494
  {
550
495
  updateElement(null, newVNode2, isSvgMode);
551
496
  }
497
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
498
+ elm.classList.add(elm["s-si"] = scopeId);
499
+ }
552
500
  if (newVNode2.$children$) {
553
501
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
554
502
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -678,9 +626,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
678
626
  if (!isInitialRender) {
679
627
  return leftVNode.$key$ === rightVNode.$key$;
680
628
  }
681
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
682
- leftVNode.$key$ = rightVNode.$key$;
683
- }
684
629
  return true;
685
630
  }
686
631
  return false;
@@ -703,10 +648,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
703
648
  elm.textContent = "";
704
649
  }
705
650
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
706
- } else if (
707
- // don't do this on initial render as it can cause non-hydrated content to be removed
708
- !isInitialRender && BUILD.updatable && oldChildren !== null
709
- ) {
651
+ } else if (oldChildren !== null) {
710
652
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
711
653
  }
712
654
  } else if (oldVNode.$text$ !== text) {
@@ -720,9 +662,8 @@ var nullifyVNodeRefs = (vNode) => {
720
662
  }
721
663
  };
722
664
  var insertBefore = (parent, newNode, reference) => {
723
- {
724
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
725
- }
665
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
666
+ return inserted;
726
667
  };
727
668
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
669
  const hostElm = hostRef.$hostElement$;
@@ -747,21 +688,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
747
688
  rootVnode.$flags$ |= 4 /* isHost */;
748
689
  hostRef.$vnode$ = rootVnode;
749
690
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
750
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
691
+ {
692
+ scopeId = hostElm["s-sc"];
693
+ }
694
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
751
695
  patch(oldVNode, rootVnode, isInitialLoad);
752
696
  };
753
697
 
754
698
  // src/runtime/update-component.ts
755
699
  var attachToAncestor = (hostRef, ancestorComponent) => {
756
700
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
757
- const index = ancestorComponent["s-p"].push(
758
- new Promise(
759
- (r) => hostRef.$onRenderResolve$ = () => {
760
- ancestorComponent["s-p"].splice(index - 1, 1);
761
- r();
762
- }
763
- )
764
- );
701
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
765
702
  }
766
703
  };
767
704
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -788,7 +725,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
788
725
  let maybePromise;
789
726
  if (isInitialLoad) {
790
727
  {
791
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
728
+ maybePromise = safeCall(instance, "componentWillLoad");
792
729
  }
793
730
  }
794
731
  endSchedule();
@@ -862,7 +799,7 @@ var postUpdateComponent = (hostRef) => {
862
799
  addHydratedFlag(elm);
863
800
  }
864
801
  {
865
- safeCall(instance, "componentDidLoad", void 0, elm);
802
+ safeCall(instance, "componentDidLoad");
866
803
  }
867
804
  endPostUpdate();
868
805
  {
@@ -886,14 +823,17 @@ var postUpdateComponent = (hostRef) => {
886
823
  }
887
824
  };
888
825
  var appDidLoad = (who) => {
826
+ {
827
+ addHydratedFlag(doc.documentElement);
828
+ }
889
829
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
890
830
  };
891
- var safeCall = (instance, method, arg, elm) => {
831
+ var safeCall = (instance, method, arg) => {
892
832
  if (instance && instance[method]) {
893
833
  try {
894
834
  return instance[method](arg);
895
835
  } catch (e) {
896
- consoleError(e, elm);
836
+ consoleError(e);
897
837
  }
898
838
  }
899
839
  return void 0;
@@ -952,68 +892,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
952
892
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
953
893
  members.map(([memberName, [memberFlags]]) => {
954
894
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
955
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
956
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
957
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
958
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
959
- Object.defineProperty(prototype, memberName, {
960
- get() {
961
- {
962
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
963
- return getValue(this, memberName);
964
- }
965
- const ref = getHostRef(this);
966
- const instance = ref ? ref.$lazyInstance$ : prototype;
967
- if (!instance) return;
968
- return instance[memberName];
969
- }
970
- },
971
- configurable: true,
972
- enumerable: true
973
- });
974
- }
975
895
  Object.defineProperty(prototype, memberName, {
896
+ get() {
897
+ return getValue(this, memberName);
898
+ },
976
899
  set(newValue) {
977
- const ref = getHostRef(this);
978
- if (origSetter) {
979
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
981
- newValue = ref.$instanceValues$.get(memberName);
982
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
- ref.$instanceValues$.set(memberName, currentValue);
984
- }
985
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
986
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
987
- setValue(this, memberName, newValue, cmpMeta);
988
- return;
989
- }
990
- {
991
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
992
- setValue(this, memberName, newValue, cmpMeta);
993
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
994
- ref.$onReadyPromise$.then(() => {
995
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
996
- ref.$lazyInstance$[memberName] = newValue;
997
- }
998
- });
999
- }
1000
- return;
1001
- }
1002
- const setterSetVal = () => {
1003
- const currentValue = ref.$lazyInstance$[memberName];
1004
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1005
- ref.$instanceValues$.set(memberName, currentValue);
1006
- }
1007
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1008
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1009
- };
1010
- if (ref.$lazyInstance$) {
1011
- setterSetVal();
1012
- } else {
1013
- ref.$onReadyPromise$.then(() => setterSetVal());
1014
- }
1015
- }
1016
- }
900
+ setValue(this, memberName, newValue, cmpMeta);
901
+ },
902
+ configurable: true,
903
+ enumerable: true
1017
904
  });
1018
905
  }
1019
906
  });
@@ -1023,11 +910,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1023
910
  plt.jmp(() => {
1024
911
  var _a2;
1025
912
  const propName = attrNameToPropName.get(attrName);
1026
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
913
+ if (this.hasOwnProperty(propName)) {
1027
914
  newValue = this[propName];
1028
915
  delete this[propName];
1029
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1030
- this[propName] == newValue) {
916
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1031
917
  return;
1032
918
  } else if (propName == null) {
1033
919
  const hostRef = getHostRef(this);
@@ -1043,11 +929,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1043
929
  }
1044
930
  return;
1045
931
  }
1046
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1047
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1049
- this[propName] = newValue;
1050
- }
932
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1051
933
  });
1052
934
  };
1053
935
  Cstr.observedAttributes = Array.from(
@@ -1076,7 +958,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1076
958
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1077
959
  const bundleId = cmpMeta.$lazyBundleId$;
1078
960
  if (bundleId) {
1079
- const CstrImport = loadModule(cmpMeta, hostRef);
961
+ const CstrImport = loadModule(cmpMeta);
1080
962
  if (CstrImport && "then" in CstrImport) {
1081
963
  const endLoad = uniqueTime();
1082
964
  Cstr = await CstrImport;
@@ -1101,7 +983,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1101
983
  try {
1102
984
  new Cstr(hostRef);
1103
985
  } catch (e) {
1104
- consoleError(e, elm);
986
+ consoleError(e);
1105
987
  }
1106
988
  {
1107
989
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1110,7 +992,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1110
992
  hostRef.$flags$ |= 128 /* isWatchReady */;
1111
993
  }
1112
994
  endNewInstance();
1113
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
995
+ fireConnectedCallback(hostRef.$lazyInstance$);
1114
996
  } else {
1115
997
  Cstr = elm.constructor;
1116
998
  const cmpTag = elm.localName;
@@ -1137,9 +1019,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1137
1019
  schedule();
1138
1020
  }
1139
1021
  };
1140
- var fireConnectedCallback = (instance, elm) => {
1022
+ var fireConnectedCallback = (instance) => {
1141
1023
  {
1142
- safeCall(instance, "connectedCallback", void 0, elm);
1024
+ safeCall(instance, "connectedCallback");
1143
1025
  }
1144
1026
  };
1145
1027
 
@@ -1174,34 +1056,28 @@ var connectedCallback = (elm) => {
1174
1056
  }
1175
1057
  } else {
1176
1058
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1177
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1059
+ fireConnectedCallback(hostRef.$lazyInstance$);
1178
1060
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1179
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1061
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1180
1062
  }
1181
1063
  }
1182
1064
  endConnected();
1183
1065
  }
1184
1066
  };
1185
- var disconnectInstance = (instance, elm) => {
1067
+ var disconnectInstance = (instance) => {
1186
1068
  {
1187
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1069
+ safeCall(instance, "disconnectedCallback");
1188
1070
  }
1189
1071
  };
1190
1072
  var disconnectedCallback = async (elm) => {
1191
1073
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1192
1074
  const hostRef = getHostRef(elm);
1193
1075
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1194
- disconnectInstance(hostRef.$lazyInstance$, elm);
1076
+ disconnectInstance(hostRef.$lazyInstance$);
1195
1077
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1196
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1078
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1197
1079
  }
1198
1080
  }
1199
- if (rootAppliedStyles.has(elm)) {
1200
- rootAppliedStyles.delete(elm);
1201
- }
1202
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1203
- rootAppliedStyles.delete(elm.shadowRoot);
1204
- }
1205
1081
  };
1206
1082
 
1207
1083
  // src/runtime/bootstrap-lazy.ts
@@ -1282,17 +1158,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1282
1158
  }
1283
1159
  disconnectedCallback() {
1284
1160
  plt.jmp(() => disconnectedCallback(this));
1285
- plt.raf(() => {
1286
- var _a3;
1287
- const hostRef = getHostRef(this);
1288
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1289
- if (i2 > -1) {
1290
- deferredConnectedCallbacks.splice(i2, 1);
1291
- }
1292
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1293
- delete hostRef.$vnode$.$elm$;
1294
- }
1295
- });
1296
1161
  }
1297
1162
  componentOnReady() {
1298
1163
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-08bd9c7c.js');
5
+ const index = require('./index-d010e014.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -5,8 +5,8 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.26.0",
9
- "typescriptVersion": "5.5.4"
8
+ "version": "4.19.2",
9
+ "typescriptVersion": "5.4.5"
10
10
  },
11
11
  "collections": [],
12
12
  "bundles": []