@everymatrix/general-input 1.55.0 → 1.56.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 (43) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +17680 -17641
  2. package/dist/cjs/general-input.cjs.entry.js +17 -18
  3. package/dist/cjs/general-input.cjs.js +2 -2
  4. package/dist/cjs/{index-01420a64.js → index-a91d7bcb.js} +177 -76
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +12 -16
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +33 -17
  9. package/dist/collection/components/checkbox-input/checkbox-input.js +29 -14
  10. package/dist/collection/components/date-input/date-input.js +35 -17
  11. package/dist/collection/components/email-input/email-input.js +29 -16
  12. package/dist/collection/components/general-input/general-input.js +51 -18
  13. package/dist/collection/components/number-input/number-input.js +27 -15
  14. package/dist/collection/components/password-input/password-input.js +34 -19
  15. package/dist/collection/components/radio-input/radio-input.js +24 -14
  16. package/dist/collection/components/select-input/select-input.js +39 -17
  17. package/dist/collection/components/tel-input/tel-input.js +31 -17
  18. package/dist/collection/components/text-input/text-input.js +36 -17
  19. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +33 -17
  20. package/dist/esm/checkbox-group-input_10.entry.js +17680 -17641
  21. package/dist/esm/general-input.entry.js +17 -18
  22. package/dist/esm/general-input.js +3 -3
  23. package/dist/esm/{index-542cff81.js → index-3bab966c.js} +177 -76
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/toggle-checkbox-input.entry.js +12 -16
  26. package/dist/general-input/general-input.esm.js +1 -1
  27. package/dist/general-input/p-5ab8d194.js +2 -0
  28. package/dist/general-input/p-8ce07665.entry.js +1 -0
  29. package/dist/general-input/p-9ad71153.entry.js +1 -0
  30. package/dist/general-input/p-a708ec0e.entry.js +4465 -0
  31. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +2 -0
  32. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +2 -0
  33. package/package.json +1 -1
  34. package/dist/general-input/p-3cab3b95.entry.js +0 -1
  35. package/dist/general-input/p-3ce1e382.js +0 -2
  36. package/dist/general-input/p-e5532cb1.entry.js +0 -1
  37. package/dist/general-input/p-ff2306f9.entry.js +0 -5909
  38. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.d.ts +0 -2
  39. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-input/.stencil/packages/stencil/general-input/stencil.config.dev.d.ts +0 -2
  40. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/index.d.ts +0 -0
  41. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  42. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-input/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  43. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/general-input/.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-01420a64.js');
5
+ const index = require('./index-a91d7bcb.js');
6
6
  const locale_utils = require('./locale.utils-345d0792.js');
7
7
 
8
8
  const generalInputCss = ":host{display:block;height:100%}";
@@ -11,29 +11,28 @@ const GeneralInputStyle0 = generalInputCss;
11
11
  const GeneralInput = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
+ /**
15
+ * Type the general-input should take. Can take the default HTML input values.
16
+ */
17
+ this.type = 'text';
18
+ /**
19
+ * Client custom styling via inline style
20
+ */
21
+ this.clientStyling = '';
22
+ /**
23
+ * Translations via URL
24
+ */
25
+ this.translationUrl = '';
26
+ /**
27
+ * Emit event on click
28
+ */
29
+ this.emitOnClick = false;
14
30
  this.handleClick = (event) => {
15
31
  if (this.emitOnClick) {
16
32
  event.stopPropagation();
17
33
  window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
18
34
  }
19
35
  };
20
- this.type = 'text';
21
- this.name = undefined;
22
- this.displayName = undefined;
23
- this.placeholder = undefined;
24
- this.action = undefined;
25
- this.validation = undefined;
26
- this.options = undefined;
27
- this.language = undefined;
28
- this.autofilled = undefined;
29
- this.tooltip = undefined;
30
- this.defaultValue = undefined;
31
- this.emitValue = undefined;
32
- this.isDuplicateInput = undefined;
33
- this.clientStyling = '';
34
- this.dateFormat = undefined;
35
- this.translationUrl = '';
36
- this.emitOnClick = false;
37
36
  }
38
37
  connectedCallback() {
39
38
  if (this.translationUrl) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-01420a64.js');
5
+ const index = require('./index-a91d7bcb.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | 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('general-input.cjs.js', document.baseURI).href));
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'general-input';
24
- const BUILD = /* general-input */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, 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: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* general-input */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, 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: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | 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
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -91,16 +96,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
91
96
  /* webpackExclude: /\.system\.entry\.js$/ */
92
97
  /* webpackMode: "lazy" */
93
98
  `./${bundleId}.entry.js${""}`
94
- )); }).then((importedModule) => {
95
- {
96
- cmpModules.set(bundleId, importedModule);
99
+ )); }).then(
100
+ (importedModule) => {
101
+ {
102
+ cmpModules.set(bundleId, importedModule);
103
+ }
104
+ return importedModule[exportName];
105
+ },
106
+ (e) => {
107
+ consoleError(e, hostRef.$hostElement$);
97
108
  }
98
- return importedModule[exportName];
99
- }, consoleError);
109
+ );
100
110
  };
101
111
 
102
112
  // src/client/client-style.ts
103
113
  var styles = /* @__PURE__ */ new Map();
114
+ var HYDRATED_STYLE_ID = "sty-id";
104
115
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
105
116
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
106
117
  var win = typeof window !== "undefined" ? window : {};
@@ -174,12 +185,6 @@ var flush = () => {
174
185
  };
175
186
  var nextTick = (cb) => promiseResolve().then(cb);
176
187
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
177
-
178
- // src/utils/constants.ts
179
- var EMPTY_OBJ = {};
180
-
181
- // src/utils/helpers.ts
182
- var isDef = (v) => v != null;
183
188
  var isComplexType = (o) => {
184
189
  o = typeof o;
185
190
  return o === "object" || o === "function";
@@ -380,7 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
385
  }
381
386
  if (!appliedStyles.has(scopeId2)) {
382
387
  {
383
- styleElm = doc.createElement("style");
388
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
384
389
  styleElm.innerHTML = style;
385
390
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
386
391
  if (nonce != null) {
@@ -390,7 +395,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
390
395
  if (styleContainerNode.nodeName === "HEAD") {
391
396
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
392
397
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
393
- styleContainerNode.insertBefore(styleElm, referenceNode2);
398
+ styleContainerNode.insertBefore(
399
+ styleElm,
400
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
401
+ );
394
402
  } else if ("host" in styleContainerNode) {
395
403
  if (supportsConstructableStylesheets) {
396
404
  const stylesheet = new CSSStyleSheet();
@@ -408,7 +416,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
408
416
  styleContainerNode.append(styleElm);
409
417
  }
410
418
  }
411
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
419
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
412
420
  styleContainerNode.insertBefore(styleElm, null);
413
421
  }
414
422
  }
@@ -433,23 +441,25 @@ var attachStyles = (hostRef) => {
433
441
  const scopeId2 = addStyle(
434
442
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
435
443
  cmpMeta);
436
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
444
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
437
445
  elm["s-sc"] = scopeId2;
438
446
  elm.classList.add(scopeId2 + "-h");
439
447
  }
440
448
  endAttachStyles();
441
449
  };
442
450
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
443
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
451
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
444
452
  if (oldValue !== newValue) {
445
453
  let isProp = isMemberInElement(elm, memberName);
446
454
  let ln = memberName.toLowerCase();
447
455
  if (memberName === "class") {
448
456
  const classList = elm.classList;
449
457
  const oldClasses = parseClassList(oldValue);
450
- const newClasses = parseClassList(newValue);
451
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
452
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
+ let newClasses = parseClassList(newValue);
459
+ {
460
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
461
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
462
+ }
453
463
  } else if (memberName === "key") ; else if (memberName === "ref") {
454
464
  if (newValue) {
455
465
  newValue(elm);
@@ -487,7 +497,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
487
497
  elm.setAttribute(memberName, n);
488
498
  }
489
499
  }
490
- } else {
500
+ } else if (elm[memberName] !== newValue) {
491
501
  elm[memberName] = newValue;
492
502
  }
493
503
  } catch (e) {
@@ -509,24 +519,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
509
519
  }
510
520
  };
511
521
  var parseClassListRegex = /\s/;
512
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
522
+ var parseClassList = (value) => {
523
+ if (typeof value === "object" && value && "baseVal" in value) {
524
+ value = value.baseVal;
525
+ }
526
+ if (!value || typeof value !== "string") {
527
+ return [];
528
+ }
529
+ return value.split(parseClassListRegex);
530
+ };
513
531
  var CAPTURE_EVENT_SUFFIX = "Capture";
514
532
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
515
533
 
516
534
  // src/runtime/vdom/update-element.ts
517
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
535
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
518
536
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
519
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
520
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
537
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
538
+ const newVnodeAttrs = newVnode.$attrs$ || {};
521
539
  {
522
540
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
523
541
  if (!(memberName in newVnodeAttrs)) {
524
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
542
+ setAccessor(
543
+ elm,
544
+ memberName,
545
+ oldVnodeAttrs[memberName],
546
+ void 0,
547
+ isSvgMode2,
548
+ newVnode.$flags$);
525
549
  }
526
550
  }
527
551
  }
528
552
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
529
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
553
+ setAccessor(
554
+ elm,
555
+ memberName,
556
+ oldVnodeAttrs[memberName],
557
+ newVnodeAttrs[memberName],
558
+ isSvgMode2,
559
+ newVnode.$flags$);
530
560
  }
531
561
  };
532
562
  function sortedAttrNames(attrNames) {
@@ -538,13 +568,10 @@ function sortedAttrNames(attrNames) {
538
568
  attrNames
539
569
  );
540
570
  }
541
-
542
- // src/runtime/vdom/vdom-render.ts
543
- var scopeId;
544
571
  var hostTagName;
545
572
  var useNativeShadowDom = false;
546
573
  var isSvgMode = false;
547
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
574
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
548
575
  const newVNode2 = newParentVNode.$children$[childIndex];
549
576
  let i2 = 0;
550
577
  let elm;
@@ -558,11 +585,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
558
585
  {
559
586
  updateElement(null, newVNode2, isSvgMode);
560
587
  }
561
- const rootNode = elm.getRootNode();
562
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
563
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
564
- elm.classList.add(elm["s-si"] = scopeId);
565
- }
566
588
  if (newVNode2.$children$) {
567
589
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
568
590
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -692,6 +714,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
692
714
  if (!isInitialRender) {
693
715
  return leftVNode.$key$ === rightVNode.$key$;
694
716
  }
717
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
718
+ leftVNode.$key$ = rightVNode.$key$;
719
+ }
695
720
  return true;
696
721
  }
697
722
  return false;
@@ -731,8 +756,9 @@ var nullifyVNodeRefs = (vNode) => {
731
756
  }
732
757
  };
733
758
  var insertBefore = (parent, newNode, reference) => {
734
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
735
- return inserted;
759
+ {
760
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
761
+ }
736
762
  };
737
763
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
764
  const hostElm = hostRef.$hostElement$;
@@ -757,17 +783,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
757
783
  rootVnode.$flags$ |= 4 /* isHost */;
758
784
  hostRef.$vnode$ = rootVnode;
759
785
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
760
- {
761
- scopeId = hostElm["s-sc"];
762
- }
763
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
786
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
764
787
  patch(oldVNode, rootVnode, isInitialLoad);
765
788
  };
766
789
 
767
790
  // src/runtime/update-component.ts
768
791
  var attachToAncestor = (hostRef, ancestorComponent) => {
769
792
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
770
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
793
+ const index = ancestorComponent["s-p"].push(
794
+ new Promise(
795
+ (r) => hostRef.$onRenderResolve$ = () => {
796
+ ancestorComponent["s-p"].splice(index - 1, 1);
797
+ r();
798
+ }
799
+ )
800
+ );
771
801
  }
772
802
  };
773
803
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -796,12 +826,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
796
826
  {
797
827
  hostRef.$flags$ |= 256 /* isListenReady */;
798
828
  if (hostRef.$queuedListeners$) {
799
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
829
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
800
830
  hostRef.$queuedListeners$ = void 0;
801
831
  }
802
832
  }
803
833
  {
804
- maybePromise = safeCall(instance, "componentWillLoad");
834
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
805
835
  }
806
836
  }
807
837
  endSchedule();
@@ -870,7 +900,7 @@ var postUpdateComponent = (hostRef) => {
870
900
  const instance = hostRef.$lazyInstance$ ;
871
901
  const ancestorComponent = hostRef.$ancestorComponent$;
872
902
  {
873
- safeCall(instance, "componentDidRender");
903
+ safeCall(instance, "componentDidRender", void 0, elm);
874
904
  }
875
905
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
876
906
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -878,7 +908,7 @@ var postUpdateComponent = (hostRef) => {
878
908
  addHydratedFlag(elm);
879
909
  }
880
910
  {
881
- safeCall(instance, "componentDidLoad");
911
+ safeCall(instance, "componentDidLoad", void 0, elm);
882
912
  }
883
913
  endPostUpdate();
884
914
  {
@@ -902,17 +932,14 @@ var postUpdateComponent = (hostRef) => {
902
932
  }
903
933
  };
904
934
  var appDidLoad = (who) => {
905
- {
906
- addHydratedFlag(doc.documentElement);
907
- }
908
935
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
909
936
  };
910
- var safeCall = (instance, method, arg) => {
937
+ var safeCall = (instance, method, arg, elm) => {
911
938
  if (instance && instance[method]) {
912
939
  try {
913
940
  return instance[method](arg);
914
941
  } catch (e) {
915
- consoleError(e);
942
+ consoleError(e, elm);
916
943
  }
917
944
  }
918
945
  return void 0;
@@ -971,15 +998,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
971
998
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
972
999
  members.map(([memberName, [memberFlags]]) => {
973
1000
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1001
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1002
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1003
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1004
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1005
+ Object.defineProperty(prototype, memberName, {
1006
+ get() {
1007
+ {
1008
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1009
+ return getValue(this, memberName);
1010
+ }
1011
+ const ref = getHostRef(this);
1012
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1013
+ if (!instance) return;
1014
+ return instance[memberName];
1015
+ }
1016
+ },
1017
+ configurable: true,
1018
+ enumerable: true
1019
+ });
1020
+ }
974
1021
  Object.defineProperty(prototype, memberName, {
975
- get() {
976
- return getValue(this, memberName);
977
- },
978
1022
  set(newValue) {
979
- setValue(this, memberName, newValue, cmpMeta);
980
- },
981
- configurable: true,
982
- enumerable: true
1023
+ const ref = getHostRef(this);
1024
+ if (origSetter) {
1025
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1026
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1027
+ newValue = ref.$instanceValues$.get(memberName);
1028
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1029
+ ref.$instanceValues$.set(memberName, currentValue);
1030
+ }
1031
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1032
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1033
+ setValue(this, memberName, newValue, cmpMeta);
1034
+ return;
1035
+ }
1036
+ {
1037
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1038
+ setValue(this, memberName, newValue, cmpMeta);
1039
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1040
+ ref.$onReadyPromise$.then(() => {
1041
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1042
+ ref.$lazyInstance$[memberName] = newValue;
1043
+ }
1044
+ });
1045
+ }
1046
+ return;
1047
+ }
1048
+ const setterSetVal = () => {
1049
+ const currentValue = ref.$lazyInstance$[memberName];
1050
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1051
+ ref.$instanceValues$.set(memberName, currentValue);
1052
+ }
1053
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1054
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1055
+ };
1056
+ if (ref.$lazyInstance$) {
1057
+ setterSetVal();
1058
+ } else {
1059
+ ref.$onReadyPromise$.then(() => setterSetVal());
1060
+ }
1061
+ }
1062
+ }
983
1063
  });
984
1064
  }
985
1065
  });
@@ -989,7 +1069,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
989
1069
  plt.jmp(() => {
990
1070
  var _a2;
991
1071
  const propName = attrNameToPropName.get(attrName);
992
- if (this.hasOwnProperty(propName)) {
1072
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
993
1073
  newValue = this[propName];
994
1074
  delete this[propName];
995
1075
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1009,7 +1089,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1009
1089
  }
1010
1090
  return;
1011
1091
  }
1012
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1092
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1093
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1094
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1095
+ this[propName] = newValue;
1096
+ }
1013
1097
  });
1014
1098
  };
1015
1099
  Cstr.observedAttributes = Array.from(
@@ -1038,7 +1122,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1038
1122
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1039
1123
  const bundleId = cmpMeta.$lazyBundleId$;
1040
1124
  if (bundleId) {
1041
- const CstrImport = loadModule(cmpMeta);
1125
+ const CstrImport = loadModule(cmpMeta, hostRef);
1042
1126
  if (CstrImport && "then" in CstrImport) {
1043
1127
  const endLoad = uniqueTime();
1044
1128
  Cstr = await CstrImport;
@@ -1063,7 +1147,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1063
1147
  try {
1064
1148
  new Cstr(hostRef);
1065
1149
  } catch (e) {
1066
- consoleError(e);
1150
+ consoleError(e, elm);
1067
1151
  }
1068
1152
  {
1069
1153
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1072,7 +1156,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1072
1156
  hostRef.$flags$ |= 128 /* isWatchReady */;
1073
1157
  }
1074
1158
  endNewInstance();
1075
- fireConnectedCallback(hostRef.$lazyInstance$);
1159
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1076
1160
  } else {
1077
1161
  Cstr = elm.constructor;
1078
1162
  const cmpTag = elm.localName;
@@ -1099,9 +1183,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
1183
  schedule();
1100
1184
  }
1101
1185
  };
1102
- var fireConnectedCallback = (instance) => {
1186
+ var fireConnectedCallback = (instance, elm) => {
1103
1187
  {
1104
- safeCall(instance, "connectedCallback");
1188
+ safeCall(instance, "connectedCallback", void 0, elm);
1105
1189
  }
1106
1190
  };
1107
1191
 
@@ -1137,17 +1221,17 @@ var connectedCallback = (elm) => {
1137
1221
  } else {
1138
1222
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1139
1223
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1140
- fireConnectedCallback(hostRef.$lazyInstance$);
1224
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1141
1225
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1142
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1226
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1143
1227
  }
1144
1228
  }
1145
1229
  endConnected();
1146
1230
  }
1147
1231
  };
1148
- var disconnectInstance = (instance) => {
1232
+ var disconnectInstance = (instance, elm) => {
1149
1233
  {
1150
- safeCall(instance, "disconnectedCallback");
1234
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1151
1235
  }
1152
1236
  };
1153
1237
  var disconnectedCallback = async (elm) => {
@@ -1160,11 +1244,17 @@ var disconnectedCallback = async (elm) => {
1160
1244
  }
1161
1245
  }
1162
1246
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1163
- disconnectInstance(hostRef.$lazyInstance$);
1247
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1164
1248
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1165
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1249
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1166
1250
  }
1167
1251
  }
1252
+ if (rootAppliedStyles.has(elm)) {
1253
+ rootAppliedStyles.delete(elm);
1254
+ }
1255
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1256
+ rootAppliedStyles.delete(elm.shadowRoot);
1257
+ }
1168
1258
  };
1169
1259
 
1170
1260
  // src/runtime/bootstrap-lazy.ts
@@ -1249,6 +1339,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1249
1339
  }
1250
1340
  disconnectedCallback() {
1251
1341
  plt.jmp(() => disconnectedCallback(this));
1342
+ plt.raf(() => {
1343
+ var _a3;
1344
+ const hostRef = getHostRef(this);
1345
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1346
+ if (i2 > -1) {
1347
+ deferredConnectedCallbacks.splice(i2, 1);
1348
+ }
1349
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1350
+ delete hostRef.$vnode$.$elm$;
1351
+ }
1352
+ });
1252
1353
  }
1253
1354
  componentOnReady() {
1254
1355
  return getHostRef(this).$onReadyPromise$;
@@ -1312,7 +1413,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1312
1413
  }
1313
1414
  }
1314
1415
  } catch (e) {
1315
- consoleError(e);
1416
+ consoleError(e, hostRef.$hostElement$);
1316
1417
  }
1317
1418
  };
1318
1419
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-01420a64.js');
5
+ const index = require('./index-a91d7bcb.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-01420a64.js');
5
+ const index = require('./index-a91d7bcb.js');
6
6
  const locale_utils = require('./locale.utils-345d0792.js');
7
7
  const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
8
8
 
@@ -14,27 +14,23 @@ const ToggleCheckboxInput = class {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.sendValidityState = index.createEvent(this, "sendValidityState", 7);
16
16
  this.sendInputValue = index.createEvent(this, "sendInputValue", 7);
17
+ /**
18
+ * Default value for the input.
19
+ */
20
+ this.defaultValue = '';
21
+ /**
22
+ * Client custom styling via inline style
23
+ */
24
+ this.clientStyling = '';
25
+ this.limitStylingAppends = false;
26
+ this.showTooltip = false;
27
+ this.showFields = this.defaultValue === 'true';
17
28
  this.value = '';
18
29
  this.setClientStyling = () => {
19
30
  let sheet = document.createElement('style');
20
31
  sheet.innerHTML = this.clientStyling;
21
32
  this.stylingContainer.prepend(sheet);
22
33
  };
23
- this.name = undefined;
24
- this.displayName = undefined;
25
- this.defaultValue = '';
26
- this.options = undefined;
27
- this.autofilled = undefined;
28
- this.tooltip = undefined;
29
- this.validation = undefined;
30
- this.language = undefined;
31
- this.emitValue = undefined;
32
- this.clientStyling = '';
33
- this.errorMessage = undefined;
34
- this.isValid = undefined;
35
- this.limitStylingAppends = false;
36
- this.showTooltip = false;
37
- this.showFields = this.defaultValue === 'true';
38
34
  }
39
35
  validityStateHandler(inputStateEvent) {
40
36
  this.sendValidityState.emit(inputStateEvent);
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "compiler": {
17
17
  "name": "@stencil/core",
18
- "version": "4.22.3",
18
+ "version": "4.26.0",
19
19
  "typescriptVersion": "5.5.4"
20
20
  },
21
21
  "collections": [],