@everymatrix/helper-modal 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/cjs/helper-modal.cjs.entry.js +6 -14
  2. package/dist/cjs/helper-modal.cjs.js +2 -2
  3. package/dist/cjs/{index-ee7f837d.js → index-51e3dceb.js} +65 -200
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/helper-modal/helper-modal.js +5 -21
  7. package/dist/esm/helper-modal.entry.js +6 -14
  8. package/dist/esm/helper-modal.js +3 -3
  9. package/dist/esm/{index-319c4812.js → index-abfbe08b.js} +65 -200
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/helper-modal/helper-modal.esm.js +1 -1
  12. package/dist/helper-modal/p-3b8cc0b1.js +2 -0
  13. package/dist/helper-modal/p-ddafd842.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/helper-modal/p-a261be3b.js +0 -2
  19. package/dist/helper-modal/p-be915d51.entry.js +0 -1
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-modal/.stencil/packages/stencil/helper-modal/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-modal/.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-modal/.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-modal/.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-modal/.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-ee7f837d.js');
5
+ const index = require('./index-51e3dceb.js');
6
6
 
7
7
  /**
8
8
  * @name isMobile
@@ -24,19 +24,6 @@ const HelperModal = class {
24
24
  constructor(hostRef) {
25
25
  index.registerInstance(this, hostRef);
26
26
  this.cancel = index.createEvent(this, "modalCloseEvent", 7);
27
- /**
28
- * Toggles if the helper is visible or not
29
- */
30
- this.visible = true;
31
- /**
32
- * Client custom styling via string
33
- */
34
- this.clientStyling = '';
35
- /**
36
- * Client custom styling via url content
37
- */
38
- this.clientStylingUrlContent = '';
39
- this.limitStylingAppends = false;
40
27
  this.userAgent = window.navigator.userAgent;
41
28
  this.setClientStyling = () => {
42
29
  let sheet = document.createElement('style');
@@ -50,6 +37,11 @@ const HelperModal = class {
50
37
  this.stylingContainer.prepend(cssFile);
51
38
  }, 1);
52
39
  };
40
+ this.titleModal = undefined;
41
+ this.visible = true;
42
+ this.clientStyling = '';
43
+ this.clientStylingUrlContent = '';
44
+ this.limitStylingAppends = false;
53
45
  }
54
46
  handleHelperModalClose() {
55
47
  this.visible = false;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ee7f837d.js');
5
+ const index = require('./index-51e3dceb.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-modal.cjs.js', document.baseURI).href));
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-modal';
24
- const BUILD = /* helper-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, 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: 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: 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-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, 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: 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: 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.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";
@@ -361,40 +356,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
361
356
  }
362
357
  if (!appliedStyles.has(scopeId2)) {
363
358
  {
364
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
359
+ styleElm = doc.createElement("style");
365
360
  styleElm.innerHTML = style;
366
361
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
367
362
  if (nonce != null) {
368
363
  styleElm.setAttribute("nonce", nonce);
369
364
  }
370
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
371
- if (styleContainerNode.nodeName === "HEAD") {
372
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
373
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
374
- styleContainerNode.insertBefore(
375
- styleElm,
376
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
- );
378
- } else if ("host" in styleContainerNode) {
379
- if (supportsConstructableStylesheets) {
380
- const stylesheet = new CSSStyleSheet();
381
- stylesheet.replaceSync(style);
382
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
383
- } else {
384
- const existingStyleContainer = styleContainerNode.querySelector("style");
385
- if (existingStyleContainer) {
386
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
387
- } else {
388
- styleContainerNode.prepend(styleElm);
389
- }
390
- }
391
- } else {
392
- styleContainerNode.append(styleElm);
393
- }
394
- }
395
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
396
- styleContainerNode.insertBefore(styleElm, null);
397
- }
365
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
398
366
  }
399
367
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
400
368
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -417,25 +385,23 @@ var attachStyles = (hostRef) => {
417
385
  const scopeId2 = addStyle(
418
386
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
419
387
  cmpMeta);
420
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
388
+ if (flags & 10 /* needsScopedEncapsulation */) {
421
389
  elm["s-sc"] = scopeId2;
422
390
  elm.classList.add(scopeId2 + "-h");
423
391
  }
424
392
  endAttachStyles();
425
393
  };
426
394
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
427
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
395
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
396
  if (oldValue !== newValue) {
429
397
  let isProp = isMemberInElement(elm, memberName);
430
398
  let ln = memberName.toLowerCase();
431
399
  if (memberName === "class") {
432
400
  const classList = elm.classList;
433
401
  const oldClasses = parseClassList(oldValue);
434
- let newClasses = parseClassList(newValue);
435
- {
436
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
437
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
438
- }
402
+ const newClasses = parseClassList(newValue);
403
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
404
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
405
  } else if (memberName === "key") ; else if (memberName === "ref") {
440
406
  if (newValue) {
441
407
  newValue(elm);
@@ -467,13 +433,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
467
433
  if (memberName === "list") {
468
434
  isProp = false;
469
435
  } else if (oldValue == null || elm[memberName] != n) {
470
- if (typeof elm.__lookupSetter__(memberName) === "function") {
471
- elm[memberName] = n;
472
- } else {
473
- elm.setAttribute(memberName, n);
474
- }
436
+ elm[memberName] = n;
475
437
  }
476
- } else if (elm[memberName] !== newValue) {
438
+ } else {
477
439
  elm[memberName] = newValue;
478
440
  }
479
441
  } catch (e) {
@@ -495,44 +457,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
495
457
  }
496
458
  };
497
459
  var parseClassListRegex = /\s/;
498
- var parseClassList = (value) => {
499
- if (typeof value === "object" && value && "baseVal" in value) {
500
- value = value.baseVal;
501
- }
502
- if (!value || typeof value !== "string") {
503
- return [];
504
- }
505
- return value.split(parseClassListRegex);
506
- };
460
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
507
461
  var CAPTURE_EVENT_SUFFIX = "Capture";
508
462
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
509
463
 
510
464
  // src/runtime/vdom/update-element.ts
511
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
465
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
466
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
513
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
- const newVnodeAttrs = newVnode.$attrs$ || {};
467
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
468
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
515
469
  {
516
470
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
517
471
  if (!(memberName in newVnodeAttrs)) {
518
- setAccessor(
519
- elm,
520
- memberName,
521
- oldVnodeAttrs[memberName],
522
- void 0,
523
- isSvgMode2,
524
- newVnode.$flags$);
472
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
525
473
  }
526
474
  }
527
475
  }
528
476
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
529
- setAccessor(
530
- elm,
531
- memberName,
532
- oldVnodeAttrs[memberName],
533
- newVnodeAttrs[memberName],
534
- isSvgMode2,
535
- newVnode.$flags$);
477
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
536
478
  }
537
479
  };
538
480
  function sortedAttrNames(attrNames) {
@@ -544,10 +486,13 @@ function sortedAttrNames(attrNames) {
544
486
  attrNames
545
487
  );
546
488
  }
489
+
490
+ // src/runtime/vdom/vdom-render.ts
491
+ var scopeId;
547
492
  var hostTagName;
548
493
  var useNativeShadowDom = false;
549
494
  var isSvgMode = false;
550
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
495
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
496
  const newVNode2 = newParentVNode.$children$[childIndex];
552
497
  let i2 = 0;
553
498
  let elm;
@@ -561,6 +506,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
561
506
  {
562
507
  updateElement(null, newVNode2, isSvgMode);
563
508
  }
509
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
510
+ elm.classList.add(elm["s-si"] = scopeId);
511
+ }
564
512
  if (newVNode2.$children$) {
565
513
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
566
514
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -690,9 +638,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
638
  if (!isInitialRender) {
691
639
  return leftVNode.$key$ === rightVNode.$key$;
692
640
  }
693
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
- leftVNode.$key$ = rightVNode.$key$;
695
- }
696
641
  return true;
697
642
  }
698
643
  return false;
@@ -716,10 +661,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
716
661
  elm.textContent = "";
717
662
  }
718
663
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
719
- } else if (
720
- // don't do this on initial render as it can cause non-hydrated content to be removed
721
- !isInitialRender && BUILD.updatable && oldChildren !== null
722
- ) {
664
+ } else if (oldChildren !== null) {
723
665
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
724
666
  }
725
667
  } else if (oldVNode.$text$ !== text) {
@@ -733,9 +675,8 @@ var nullifyVNodeRefs = (vNode) => {
733
675
  }
734
676
  };
735
677
  var insertBefore = (parent, newNode, reference) => {
736
- {
737
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
- }
678
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
679
+ return inserted;
739
680
  };
740
681
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
682
  const hostElm = hostRef.$hostElement$;
@@ -760,21 +701,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
760
701
  rootVnode.$flags$ |= 4 /* isHost */;
761
702
  hostRef.$vnode$ = rootVnode;
762
703
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
763
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
704
+ {
705
+ scopeId = hostElm["s-sc"];
706
+ }
707
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
764
708
  patch(oldVNode, rootVnode, isInitialLoad);
765
709
  };
766
710
 
767
711
  // src/runtime/update-component.ts
768
712
  var attachToAncestor = (hostRef, ancestorComponent) => {
769
713
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
770
- const index = ancestorComponent["s-p"].push(
771
- new Promise(
772
- (r) => hostRef.$onRenderResolve$ = () => {
773
- ancestorComponent["s-p"].splice(index - 1, 1);
774
- r();
775
- }
776
- )
777
- );
714
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
778
715
  }
779
716
  };
780
717
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -865,7 +802,7 @@ var postUpdateComponent = (hostRef) => {
865
802
  const instance = hostRef.$lazyInstance$ ;
866
803
  const ancestorComponent = hostRef.$ancestorComponent$;
867
804
  {
868
- safeCall(instance, "componentDidRender", void 0, elm);
805
+ safeCall(instance, "componentDidRender");
869
806
  }
870
807
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
871
808
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -894,14 +831,17 @@ var postUpdateComponent = (hostRef) => {
894
831
  }
895
832
  };
896
833
  var appDidLoad = (who) => {
834
+ {
835
+ addHydratedFlag(doc.documentElement);
836
+ }
897
837
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
898
838
  };
899
- var safeCall = (instance, method, arg, elm) => {
839
+ var safeCall = (instance, method, arg) => {
900
840
  if (instance && instance[method]) {
901
841
  try {
902
842
  return instance[method](arg);
903
843
  } catch (e) {
904
- consoleError(e, elm);
844
+ consoleError(e);
905
845
  }
906
846
  }
907
847
  return void 0;
@@ -944,68 +884,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
944
884
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
945
885
  members.map(([memberName, [memberFlags]]) => {
946
886
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
947
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
948
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
949
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
950
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
951
- Object.defineProperty(prototype, memberName, {
952
- get() {
953
- {
954
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
955
- return getValue(this, memberName);
956
- }
957
- const ref = getHostRef(this);
958
- const instance = ref ? ref.$lazyInstance$ : prototype;
959
- if (!instance) return;
960
- return instance[memberName];
961
- }
962
- },
963
- configurable: true,
964
- enumerable: true
965
- });
966
- }
967
887
  Object.defineProperty(prototype, memberName, {
888
+ get() {
889
+ return getValue(this, memberName);
890
+ },
968
891
  set(newValue) {
969
- const ref = getHostRef(this);
970
- if (origSetter) {
971
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
972
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
973
- newValue = ref.$instanceValues$.get(memberName);
974
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
- ref.$instanceValues$.set(memberName, currentValue);
976
- }
977
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
978
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
979
- setValue(this, memberName, newValue, cmpMeta);
980
- return;
981
- }
982
- {
983
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
984
- setValue(this, memberName, newValue, cmpMeta);
985
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
986
- ref.$onReadyPromise$.then(() => {
987
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
988
- ref.$lazyInstance$[memberName] = newValue;
989
- }
990
- });
991
- }
992
- return;
993
- }
994
- const setterSetVal = () => {
995
- const currentValue = ref.$lazyInstance$[memberName];
996
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
997
- ref.$instanceValues$.set(memberName, currentValue);
998
- }
999
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1000
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1001
- };
1002
- if (ref.$lazyInstance$) {
1003
- setterSetVal();
1004
- } else {
1005
- ref.$onReadyPromise$.then(() => setterSetVal());
1006
- }
1007
- }
1008
- }
892
+ setValue(this, memberName, newValue, cmpMeta);
893
+ },
894
+ configurable: true,
895
+ enumerable: true
1009
896
  });
1010
897
  }
1011
898
  });
@@ -1015,11 +902,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
902
  plt.jmp(() => {
1016
903
  var _a2;
1017
904
  const propName = attrNameToPropName.get(attrName);
1018
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
905
+ if (this.hasOwnProperty(propName)) {
1019
906
  newValue = this[propName];
1020
907
  delete this[propName];
1021
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1022
- this[propName] == newValue) {
908
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1023
909
  return;
1024
910
  } else if (propName == null) {
1025
911
  const hostRef = getHostRef(this);
@@ -1035,11 +921,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1035
921
  }
1036
922
  return;
1037
923
  }
1038
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1039
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1040
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1041
- this[propName] = newValue;
1042
- }
924
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1043
925
  });
1044
926
  };
1045
927
  Cstr.observedAttributes = Array.from(
@@ -1068,7 +950,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
950
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1069
951
  const bundleId = cmpMeta.$lazyBundleId$;
1070
952
  if (bundleId) {
1071
- const CstrImport = loadModule(cmpMeta, hostRef);
953
+ const CstrImport = loadModule(cmpMeta);
1072
954
  if (CstrImport && "then" in CstrImport) {
1073
955
  const endLoad = uniqueTime();
1074
956
  Cstr = await CstrImport;
@@ -1090,7 +972,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1090
972
  try {
1091
973
  new Cstr(hostRef);
1092
974
  } catch (e) {
1093
- consoleError(e, elm);
975
+ consoleError(e);
1094
976
  }
1095
977
  {
1096
978
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1122,7 +1004,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1122
1004
  schedule();
1123
1005
  }
1124
1006
  };
1125
- var fireConnectedCallback = (instance, elm) => {
1007
+ var fireConnectedCallback = (instance) => {
1126
1008
  };
1127
1009
 
1128
1010
  // src/runtime/connected-callback.ts
@@ -1162,7 +1044,7 @@ var connectedCallback = (elm) => {
1162
1044
  endConnected();
1163
1045
  }
1164
1046
  };
1165
- var disconnectInstance = (instance, elm) => {
1047
+ var disconnectInstance = (instance) => {
1166
1048
  };
1167
1049
  var disconnectedCallback = async (elm) => {
1168
1050
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1171,12 +1053,6 @@ var disconnectedCallback = async (elm) => {
1171
1053
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1172
1054
  }
1173
1055
  }
1174
- if (rootAppliedStyles.has(elm)) {
1175
- rootAppliedStyles.delete(elm);
1176
- }
1177
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1178
- rootAppliedStyles.delete(elm.shadowRoot);
1179
- }
1180
1056
  };
1181
1057
 
1182
1058
  // src/runtime/bootstrap-lazy.ts
@@ -1253,17 +1129,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1253
1129
  }
1254
1130
  disconnectedCallback() {
1255
1131
  plt.jmp(() => disconnectedCallback(this));
1256
- plt.raf(() => {
1257
- var _a3;
1258
- const hostRef = getHostRef(this);
1259
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1260
- if (i2 > -1) {
1261
- deferredConnectedCallbacks.splice(i2, 1);
1262
- }
1263
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1264
- delete hostRef.$vnode$.$elm$;
1265
- }
1266
- });
1267
1132
  }
1268
1133
  componentOnReady() {
1269
1134
  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-ee7f837d.js');
5
+ const index = require('./index-51e3dceb.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -2,19 +2,6 @@ import { h } from "@stencil/core";
2
2
  import { isMobile } from "../../utils/utils";
3
3
  export class HelperModal {
4
4
  constructor() {
5
- /**
6
- * Toggles if the helper is visible or not
7
- */
8
- this.visible = true;
9
- /**
10
- * Client custom styling via string
11
- */
12
- this.clientStyling = '';
13
- /**
14
- * Client custom styling via url content
15
- */
16
- this.clientStylingUrlContent = '';
17
- this.limitStylingAppends = false;
18
5
  this.userAgent = window.navigator.userAgent;
19
6
  this.setClientStyling = () => {
20
7
  let sheet = document.createElement('style');
@@ -28,6 +15,11 @@ export class HelperModal {
28
15
  this.stylingContainer.prepend(cssFile);
29
16
  }, 1);
30
17
  };
18
+ this.titleModal = undefined;
19
+ this.visible = true;
20
+ this.clientStyling = '';
21
+ this.clientStylingUrlContent = '';
22
+ this.limitStylingAppends = false;
31
23
  }
32
24
  handleHelperModalClose() {
33
25
  this.visible = false;
@@ -77,8 +69,6 @@ export class HelperModal {
77
69
  "tags": [],
78
70
  "text": "Modal title"
79
71
  },
80
- "getter": false,
81
- "setter": false,
82
72
  "attribute": "title-modal",
83
73
  "reflect": true
84
74
  },
@@ -96,8 +86,6 @@ export class HelperModal {
96
86
  "tags": [],
97
87
  "text": "Toggles if the helper is visible or not"
98
88
  },
99
- "getter": false,
100
- "setter": false,
101
89
  "attribute": "visible",
102
90
  "reflect": true,
103
91
  "defaultValue": "true"
@@ -116,8 +104,6 @@ export class HelperModal {
116
104
  "tags": [],
117
105
  "text": "Client custom styling via string"
118
106
  },
119
- "getter": false,
120
- "setter": false,
121
107
  "attribute": "client-styling",
122
108
  "reflect": true,
123
109
  "defaultValue": "''"
@@ -136,8 +122,6 @@ export class HelperModal {
136
122
  "tags": [],
137
123
  "text": "Client custom styling via url content"
138
124
  },
139
- "getter": false,
140
- "setter": false,
141
125
  "attribute": "client-styling-url-content",
142
126
  "reflect": true,
143
127
  "defaultValue": "''"