@everymatrix/helper-tabs 1.54.12 → 1.55.0

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 (25) hide show
  1. package/dist/cjs/helper-tab_2.cjs.entry.js +29 -52
  2. package/dist/cjs/helper-tabs.cjs.js +2 -2
  3. package/dist/cjs/{index-11d06848.js → index-d8f4ee8c.js} +70 -171
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/helper-tab/helper-tab.js +12 -38
  7. package/dist/collection/components/helper-tabs/helper-tabs.js +16 -63
  8. package/dist/esm/helper-tab_2.entry.js +29 -52
  9. package/dist/esm/helper-tabs.js +3 -3
  10. package/dist/esm/{index-a23eff9f.js → index-55376e55.js} +70 -171
  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-47fcd693.js +2 -0
  14. package/dist/helper-tabs/p-7f43459b.entry.js +1 -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/package.json +1 -1
  18. package/dist/helper-tabs/p-c9bad8e6.js +0 -2
  19. package/dist/helper-tabs/p-e7d78538.entry.js +0 -1
  20. 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
  21. 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
  22. /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
  23. /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
  24. /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
  25. /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-11d06848.js');
5
+ const index = require('./index-d8f4ee8c.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['en'];
@@ -82,24 +82,6 @@ const HelperTabStyle0 = helperTabCss;
82
82
  const HelperTab = class {
83
83
  constructor(hostRef) {
84
84
  index.registerInstance(this, hostRef);
85
- /**
86
- * Selected index
87
- */
88
- this.selectedIndex = 0;
89
- /**
90
- * Client custom styling via string
91
- */
92
- this.clientStyling = '';
93
- /**
94
- * Client custom styling via url content
95
- */
96
- this.clientStylingUrlContent = '';
97
- /**
98
- * Language of the widget
99
- */
100
- this.language = 'en';
101
- this.tabContent = '';
102
- this.limitStylingAppends = false;
103
85
  this.setClientStyling = () => {
104
86
  let sheet = document.createElement('style');
105
87
  sheet.innerHTML = this.clientStyling;
@@ -112,6 +94,18 @@ const HelperTab = class {
112
94
  this.stylingContainer.prepend(cssFile);
113
95
  }, 1);
114
96
  };
97
+ this.selectedIndex = 0;
98
+ this.cmsEndpoint = undefined;
99
+ this.clientStyling = '';
100
+ this.clientStylingUrlContent = '';
101
+ this.lowNumber = undefined;
102
+ this.highNumber = undefined;
103
+ this.minimumAllowed = undefined;
104
+ this.maxinumAllowed = undefined;
105
+ this.language = 'en';
106
+ this.translationUrl = undefined;
107
+ this.tabContent = '';
108
+ this.limitStylingAppends = false;
115
109
  }
116
110
  componentWillLoad() {
117
111
  if (this.translationUrl) {
@@ -160,39 +154,6 @@ const HelperTabsStyle0 = helperTabsCss;
160
154
  const HelperTabs = class {
161
155
  constructor(hostRef) {
162
156
  index.registerInstance(this, hostRef);
163
- /**
164
- * Tell me if it is disabled
165
- */
166
- this.disabled = false;
167
- /**
168
- * Tell me what tab is selected
169
- */
170
- this.selected = false;
171
- /**
172
- * Default selected index
173
- */
174
- this.selectedIndex = 0;
175
- /**
176
- * Tabs details
177
- */
178
- this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
179
- /**
180
- * Client custom styling via string
181
- */
182
- this.clientStyling = '';
183
- /**
184
- * Client custom styling via url
185
- */
186
- this.clientStylingurl = '';
187
- /**
188
- * Client custom styling via url content
189
- */
190
- this.clientStylingUrlContent = '';
191
- /**
192
- * Language
193
- */
194
- this.language = 'en';
195
- this.limitStylingAppends = false;
196
157
  this.setClientStyling = () => {
197
158
  let sheet = document.createElement('style');
198
159
  sheet.innerHTML = this.clientStyling;
@@ -205,6 +166,22 @@ const HelperTabs = class {
205
166
  this.stylingContainer.prepend(cssFile);
206
167
  }, 1);
207
168
  };
169
+ this.disabled = false;
170
+ this.label = undefined;
171
+ this.selected = false;
172
+ this.cmsEndpoint = undefined;
173
+ this.selectedIndex = 0;
174
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
175
+ this.clientStyling = '';
176
+ this.clientStylingurl = '';
177
+ this.clientStylingUrlContent = '';
178
+ this.lowNumber = undefined;
179
+ this.highNumber = undefined;
180
+ this.minimumAllowed = undefined;
181
+ this.maxinumAllowed = undefined;
182
+ this.language = 'en';
183
+ this.translationUrl = undefined;
184
+ this.limitStylingAppends = false;
208
185
  }
209
186
  connectedCallback() {
210
187
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-11d06848.js');
5
+ const index = require('./index-d8f4ee8c.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.22.3 | 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: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, 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, 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: false };
24
+ const BUILD = /* helper-tabs */ { 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: true, 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: 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: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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,7 +344,7 @@ 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) {
@@ -359,10 +354,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
354
  if (styleContainerNode.nodeName === "HEAD") {
360
355
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
361
356
  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
- );
357
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
366
358
  } else if ("host" in styleContainerNode) {
367
359
  if (supportsConstructableStylesheets) {
368
360
  const stylesheet = new CSSStyleSheet();
@@ -380,7 +372,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
372
  styleContainerNode.append(styleElm);
381
373
  }
382
374
  }
383
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
375
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
384
376
  styleContainerNode.insertBefore(styleElm, null);
385
377
  }
386
378
  }
@@ -405,25 +397,23 @@ var attachStyles = (hostRef) => {
405
397
  const scopeId2 = addStyle(
406
398
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
407
399
  cmpMeta);
408
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
400
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
409
401
  elm["s-sc"] = scopeId2;
410
402
  elm.classList.add(scopeId2 + "-h");
411
403
  }
412
404
  endAttachStyles();
413
405
  };
414
406
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
415
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
407
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
416
408
  if (oldValue !== newValue) {
417
409
  let isProp = isMemberInElement(elm, memberName);
418
410
  let ln = memberName.toLowerCase();
419
411
  if (memberName === "class") {
420
412
  const classList = elm.classList;
421
413
  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
- }
414
+ const newClasses = parseClassList(newValue);
415
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
416
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
417
  } else if (memberName === "key") ; else if (memberName === "ref") {
428
418
  if (newValue) {
429
419
  newValue(elm);
@@ -461,7 +451,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
461
451
  elm.setAttribute(memberName, n);
462
452
  }
463
453
  }
464
- } else if (elm[memberName] !== newValue) {
454
+ } else {
465
455
  elm[memberName] = newValue;
466
456
  }
467
457
  } catch (e) {
@@ -483,44 +473,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
483
473
  }
484
474
  };
485
475
  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
- };
476
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
495
477
  var CAPTURE_EVENT_SUFFIX = "Capture";
496
478
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
497
479
 
498
480
  // src/runtime/vdom/update-element.ts
499
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
481
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
500
482
  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$ || {};
483
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
484
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
503
485
  {
504
486
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
505
487
  if (!(memberName in newVnodeAttrs)) {
506
- setAccessor(
507
- elm,
508
- memberName,
509
- oldVnodeAttrs[memberName],
510
- void 0,
511
- isSvgMode2,
512
- newVnode.$flags$);
488
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
513
489
  }
514
490
  }
515
491
  }
516
492
  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$);
493
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
524
494
  }
525
495
  };
526
496
  function sortedAttrNames(attrNames) {
@@ -532,10 +502,13 @@ function sortedAttrNames(attrNames) {
532
502
  attrNames
533
503
  );
534
504
  }
505
+
506
+ // src/runtime/vdom/vdom-render.ts
507
+ var scopeId;
535
508
  var hostTagName;
536
509
  var useNativeShadowDom = false;
537
510
  var isSvgMode = false;
538
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
511
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
539
512
  const newVNode2 = newParentVNode.$children$[childIndex];
540
513
  let i2 = 0;
541
514
  let elm;
@@ -549,6 +522,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
549
522
  {
550
523
  updateElement(null, newVNode2, isSvgMode);
551
524
  }
525
+ const rootNode = elm.getRootNode();
526
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
527
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
528
+ elm.classList.add(elm["s-si"] = scopeId);
529
+ }
552
530
  if (newVNode2.$children$) {
553
531
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
554
532
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -678,9 +656,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
678
656
  if (!isInitialRender) {
679
657
  return leftVNode.$key$ === rightVNode.$key$;
680
658
  }
681
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
682
- leftVNode.$key$ = rightVNode.$key$;
683
- }
684
659
  return true;
685
660
  }
686
661
  return false;
@@ -720,9 +695,8 @@ var nullifyVNodeRefs = (vNode) => {
720
695
  }
721
696
  };
722
697
  var insertBefore = (parent, newNode, reference) => {
723
- {
724
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
725
- }
698
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
699
+ return inserted;
726
700
  };
727
701
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
702
  const hostElm = hostRef.$hostElement$;
@@ -747,21 +721,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
747
721
  rootVnode.$flags$ |= 4 /* isHost */;
748
722
  hostRef.$vnode$ = rootVnode;
749
723
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
750
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
724
+ {
725
+ scopeId = hostElm["s-sc"];
726
+ }
727
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
751
728
  patch(oldVNode, rootVnode, isInitialLoad);
752
729
  };
753
730
 
754
731
  // src/runtime/update-component.ts
755
732
  var attachToAncestor = (hostRef, ancestorComponent) => {
756
733
  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
- );
734
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
765
735
  }
766
736
  };
767
737
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -788,7 +758,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
788
758
  let maybePromise;
789
759
  if (isInitialLoad) {
790
760
  {
791
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
761
+ maybePromise = safeCall(instance, "componentWillLoad");
792
762
  }
793
763
  }
794
764
  endSchedule();
@@ -857,7 +827,7 @@ var postUpdateComponent = (hostRef) => {
857
827
  const instance = hostRef.$lazyInstance$ ;
858
828
  const ancestorComponent = hostRef.$ancestorComponent$;
859
829
  {
860
- safeCall(instance, "componentDidRender", void 0, elm);
830
+ safeCall(instance, "componentDidRender");
861
831
  }
862
832
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
863
833
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -886,14 +856,17 @@ var postUpdateComponent = (hostRef) => {
886
856
  }
887
857
  };
888
858
  var appDidLoad = (who) => {
859
+ {
860
+ addHydratedFlag(doc.documentElement);
861
+ }
889
862
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
890
863
  };
891
- var safeCall = (instance, method, arg, elm) => {
864
+ var safeCall = (instance, method, arg) => {
892
865
  if (instance && instance[method]) {
893
866
  try {
894
867
  return instance[method](arg);
895
868
  } catch (e) {
896
- consoleError(e, elm);
869
+ consoleError(e);
897
870
  }
898
871
  }
899
872
  return void 0;
@@ -936,68 +909,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
936
909
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
937
910
  members.map(([memberName, [memberFlags]]) => {
938
911
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
939
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
940
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
941
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
942
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
943
- Object.defineProperty(prototype, memberName, {
944
- get() {
945
- {
946
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
947
- return getValue(this, memberName);
948
- }
949
- const ref = getHostRef(this);
950
- const instance = ref ? ref.$lazyInstance$ : prototype;
951
- if (!instance) return;
952
- return instance[memberName];
953
- }
954
- },
955
- configurable: true,
956
- enumerable: true
957
- });
958
- }
959
912
  Object.defineProperty(prototype, memberName, {
913
+ get() {
914
+ return getValue(this, memberName);
915
+ },
960
916
  set(newValue) {
961
- const ref = getHostRef(this);
962
- if (origSetter) {
963
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
964
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
965
- newValue = ref.$instanceValues$.get(memberName);
966
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
967
- ref.$instanceValues$.set(memberName, currentValue);
968
- }
969
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
970
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
971
- setValue(this, memberName, newValue, cmpMeta);
972
- return;
973
- }
974
- {
975
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
976
- setValue(this, memberName, newValue, cmpMeta);
977
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
978
- ref.$onReadyPromise$.then(() => {
979
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
980
- ref.$lazyInstance$[memberName] = newValue;
981
- }
982
- });
983
- }
984
- return;
985
- }
986
- const setterSetVal = () => {
987
- const currentValue = ref.$lazyInstance$[memberName];
988
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
989
- ref.$instanceValues$.set(memberName, currentValue);
990
- }
991
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
992
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
993
- };
994
- if (ref.$lazyInstance$) {
995
- setterSetVal();
996
- } else {
997
- ref.$onReadyPromise$.then(() => setterSetVal());
998
- }
999
- }
1000
- }
917
+ setValue(this, memberName, newValue, cmpMeta);
918
+ },
919
+ configurable: true,
920
+ enumerable: true
1001
921
  });
1002
922
  }
1003
923
  });
@@ -1007,7 +927,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1007
927
  plt.jmp(() => {
1008
928
  var _a2;
1009
929
  const propName = attrNameToPropName.get(attrName);
1010
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
930
+ if (this.hasOwnProperty(propName)) {
1011
931
  newValue = this[propName];
1012
932
  delete this[propName];
1013
933
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1027,11 +947,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
947
  }
1028
948
  return;
1029
949
  }
1030
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1031
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1032
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1033
- this[propName] = newValue;
1034
- }
950
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
951
  });
1036
952
  };
1037
953
  Cstr.observedAttributes = Array.from(
@@ -1060,7 +976,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1060
976
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1061
977
  const bundleId = cmpMeta.$lazyBundleId$;
1062
978
  if (bundleId) {
1063
- const CstrImport = loadModule(cmpMeta, hostRef);
979
+ const CstrImport = loadModule(cmpMeta);
1064
980
  if (CstrImport && "then" in CstrImport) {
1065
981
  const endLoad = uniqueTime();
1066
982
  Cstr = await CstrImport;
@@ -1082,13 +998,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1082
998
  try {
1083
999
  new Cstr(hostRef);
1084
1000
  } catch (e) {
1085
- consoleError(e, elm);
1001
+ consoleError(e);
1086
1002
  }
1087
1003
  {
1088
1004
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1089
1005
  }
1090
1006
  endNewInstance();
1091
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1007
+ fireConnectedCallback(hostRef.$lazyInstance$);
1092
1008
  } else {
1093
1009
  Cstr = elm.constructor;
1094
1010
  const cmpTag = elm.localName;
@@ -1115,9 +1031,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1115
1031
  schedule();
1116
1032
  }
1117
1033
  };
1118
- var fireConnectedCallback = (instance, elm) => {
1034
+ var fireConnectedCallback = (instance) => {
1119
1035
  {
1120
- safeCall(instance, "connectedCallback", void 0, elm);
1036
+ safeCall(instance, "connectedCallback");
1121
1037
  }
1122
1038
  };
1123
1039
 
@@ -1152,15 +1068,15 @@ var connectedCallback = (elm) => {
1152
1068
  }
1153
1069
  } else {
1154
1070
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1155
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1071
+ fireConnectedCallback(hostRef.$lazyInstance$);
1156
1072
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1157
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1073
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1158
1074
  }
1159
1075
  }
1160
1076
  endConnected();
1161
1077
  }
1162
1078
  };
1163
- var disconnectInstance = (instance, elm) => {
1079
+ var disconnectInstance = (instance) => {
1164
1080
  };
1165
1081
  var disconnectedCallback = async (elm) => {
1166
1082
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1169,12 +1085,6 @@ var disconnectedCallback = async (elm) => {
1169
1085
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1170
1086
  }
1171
1087
  }
1172
- if (rootAppliedStyles.has(elm)) {
1173
- rootAppliedStyles.delete(elm);
1174
- }
1175
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1176
- rootAppliedStyles.delete(elm.shadowRoot);
1177
- }
1178
1088
  };
1179
1089
 
1180
1090
  // src/runtime/bootstrap-lazy.ts
@@ -1251,17 +1161,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1251
1161
  }
1252
1162
  disconnectedCallback() {
1253
1163
  plt.jmp(() => disconnectedCallback(this));
1254
- plt.raf(() => {
1255
- var _a3;
1256
- const hostRef = getHostRef(this);
1257
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1258
- if (i2 > -1) {
1259
- deferredConnectedCallbacks.splice(i2, 1);
1260
- }
1261
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1262
- delete hostRef.$vnode$.$elm$;
1263
- }
1264
- });
1265
1164
  }
1266
1165
  componentOnReady() {
1267
1166
  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-11d06848.js');
5
+ const index = require('./index-d8f4ee8c.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.26.0",
8
+ "version": "4.22.3",
9
9
  "typescriptVersion": "5.5.4"
10
10
  },
11
11
  "collections": [],