@everymatrix/helper-filters 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 (24) hide show
  1. package/dist/cjs/helper-filters.cjs.js +2 -2
  2. package/dist/cjs/helper-filters_2.cjs.entry.js +13618 -13652
  3. package/dist/cjs/{index-2f1b6083.js → index-f886624e.js} +169 -68
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/helper-filters/helper-filters.js +67 -16
  7. package/dist/esm/helper-filters.js +3 -3
  8. package/dist/esm/helper-filters_2.entry.js +13618 -13652
  9. package/dist/esm/{index-92f953e8.js → index-db278f52.js} +169 -68
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/helper-filters/helper-filters.esm.js +1 -1
  12. package/dist/helper-filters/p-01cd08da.js +2 -0
  13. package/dist/helper-filters/p-a7e051df.entry.js +3451 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/helper-filters/p-188cfbf7.js +0 -2
  18. package/dist/helper-filters/p-d692ab77.entry.js +0 -4046
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-filters';
24
- const BUILD = /* helper-filters */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, 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 };
24
+ const BUILD = /* helper-filters */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, 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 };
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);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -166,12 +177,6 @@ var flush = () => {
166
177
  };
167
178
  var nextTick = (cb) => promiseResolve().then(cb);
168
179
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
-
173
- // src/utils/helpers.ts
174
- var isDef = (v) => v != null;
175
180
  var isComplexType = (o) => {
176
181
  o = typeof o;
177
182
  return o === "object" || o === "function";
@@ -372,7 +377,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
372
377
  }
373
378
  if (!appliedStyles.has(scopeId2)) {
374
379
  {
375
- styleElm = doc.createElement("style");
380
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
376
381
  styleElm.innerHTML = style;
377
382
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
378
383
  if (nonce != null) {
@@ -382,7 +387,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
382
387
  if (styleContainerNode.nodeName === "HEAD") {
383
388
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
384
389
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
385
- styleContainerNode.insertBefore(styleElm, referenceNode2);
390
+ styleContainerNode.insertBefore(
391
+ styleElm,
392
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
393
+ );
386
394
  } else if ("host" in styleContainerNode) {
387
395
  if (supportsConstructableStylesheets) {
388
396
  const stylesheet = new CSSStyleSheet();
@@ -400,7 +408,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
400
408
  styleContainerNode.append(styleElm);
401
409
  }
402
410
  }
403
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
411
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
404
412
  styleContainerNode.insertBefore(styleElm, null);
405
413
  }
406
414
  }
@@ -425,23 +433,25 @@ var attachStyles = (hostRef) => {
425
433
  const scopeId2 = addStyle(
426
434
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
427
435
  cmpMeta);
428
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
436
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
429
437
  elm["s-sc"] = scopeId2;
430
438
  elm.classList.add(scopeId2 + "-h");
431
439
  }
432
440
  endAttachStyles();
433
441
  };
434
442
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
435
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
443
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
436
444
  if (oldValue !== newValue) {
437
445
  let isProp = isMemberInElement(elm, memberName);
438
446
  let ln = memberName.toLowerCase();
439
447
  if (memberName === "class") {
440
448
  const classList = elm.classList;
441
449
  const oldClasses = parseClassList(oldValue);
442
- const newClasses = parseClassList(newValue);
443
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
444
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
450
+ let newClasses = parseClassList(newValue);
451
+ {
452
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
453
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
+ }
445
455
  } else if (memberName === "key") ; else if (memberName === "ref") {
446
456
  if (newValue) {
447
457
  newValue(elm);
@@ -479,7 +489,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
479
489
  elm.setAttribute(memberName, n);
480
490
  }
481
491
  }
482
- } else {
492
+ } else if (elm[memberName] !== newValue) {
483
493
  elm[memberName] = newValue;
484
494
  }
485
495
  } catch (e) {
@@ -501,24 +511,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
501
511
  }
502
512
  };
503
513
  var parseClassListRegex = /\s/;
504
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
514
+ var parseClassList = (value) => {
515
+ if (typeof value === "object" && value && "baseVal" in value) {
516
+ value = value.baseVal;
517
+ }
518
+ if (!value || typeof value !== "string") {
519
+ return [];
520
+ }
521
+ return value.split(parseClassListRegex);
522
+ };
505
523
  var CAPTURE_EVENT_SUFFIX = "Capture";
506
524
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
507
525
 
508
526
  // src/runtime/vdom/update-element.ts
509
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
527
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
510
528
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
511
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
512
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
529
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
530
+ const newVnodeAttrs = newVnode.$attrs$ || {};
513
531
  {
514
532
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
515
533
  if (!(memberName in newVnodeAttrs)) {
516
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
534
+ setAccessor(
535
+ elm,
536
+ memberName,
537
+ oldVnodeAttrs[memberName],
538
+ void 0,
539
+ isSvgMode2,
540
+ newVnode.$flags$);
517
541
  }
518
542
  }
519
543
  }
520
544
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
521
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
545
+ setAccessor(
546
+ elm,
547
+ memberName,
548
+ oldVnodeAttrs[memberName],
549
+ newVnodeAttrs[memberName],
550
+ isSvgMode2,
551
+ newVnode.$flags$);
522
552
  }
523
553
  };
524
554
  function sortedAttrNames(attrNames) {
@@ -530,13 +560,10 @@ function sortedAttrNames(attrNames) {
530
560
  attrNames
531
561
  );
532
562
  }
533
-
534
- // src/runtime/vdom/vdom-render.ts
535
- var scopeId;
536
563
  var hostTagName;
537
564
  var useNativeShadowDom = false;
538
565
  var isSvgMode = false;
539
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
566
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
540
567
  const newVNode2 = newParentVNode.$children$[childIndex];
541
568
  let i2 = 0;
542
569
  let elm;
@@ -550,11 +577,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
550
577
  {
551
578
  updateElement(null, newVNode2, isSvgMode);
552
579
  }
553
- const rootNode = elm.getRootNode();
554
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
555
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
556
- elm.classList.add(elm["s-si"] = scopeId);
557
- }
558
580
  if (newVNode2.$children$) {
559
581
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
560
582
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -684,6 +706,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
684
706
  if (!isInitialRender) {
685
707
  return leftVNode.$key$ === rightVNode.$key$;
686
708
  }
709
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
710
+ leftVNode.$key$ = rightVNode.$key$;
711
+ }
687
712
  return true;
688
713
  }
689
714
  return false;
@@ -724,8 +749,9 @@ var nullifyVNodeRefs = (vNode) => {
724
749
  }
725
750
  };
726
751
  var insertBefore = (parent, newNode, reference) => {
727
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
728
- return inserted;
752
+ {
753
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
754
+ }
729
755
  };
730
756
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
731
757
  const hostElm = hostRef.$hostElement$;
@@ -750,17 +776,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
750
776
  rootVnode.$flags$ |= 4 /* isHost */;
751
777
  hostRef.$vnode$ = rootVnode;
752
778
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
753
- {
754
- scopeId = hostElm["s-sc"];
755
- }
756
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
779
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
757
780
  patch(oldVNode, rootVnode, isInitialLoad);
758
781
  };
759
782
 
760
783
  // src/runtime/update-component.ts
761
784
  var attachToAncestor = (hostRef, ancestorComponent) => {
762
785
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
763
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
786
+ const index = ancestorComponent["s-p"].push(
787
+ new Promise(
788
+ (r) => hostRef.$onRenderResolve$ = () => {
789
+ ancestorComponent["s-p"].splice(index - 1, 1);
790
+ r();
791
+ }
792
+ )
793
+ );
764
794
  }
765
795
  };
766
796
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -789,12 +819,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
789
819
  {
790
820
  hostRef.$flags$ |= 256 /* isListenReady */;
791
821
  if (hostRef.$queuedListeners$) {
792
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
822
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
793
823
  hostRef.$queuedListeners$ = void 0;
794
824
  }
795
825
  }
796
826
  {
797
- maybePromise = safeCall(instance, "componentWillLoad");
827
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
798
828
  }
799
829
  }
800
830
  endSchedule();
@@ -863,7 +893,7 @@ var postUpdateComponent = (hostRef) => {
863
893
  const instance = hostRef.$lazyInstance$ ;
864
894
  const ancestorComponent = hostRef.$ancestorComponent$;
865
895
  {
866
- safeCall(instance, "componentDidRender");
896
+ safeCall(instance, "componentDidRender", void 0, elm);
867
897
  }
868
898
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
869
899
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -892,17 +922,14 @@ var postUpdateComponent = (hostRef) => {
892
922
  }
893
923
  };
894
924
  var appDidLoad = (who) => {
895
- {
896
- addHydratedFlag(doc.documentElement);
897
- }
898
925
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
899
926
  };
900
- var safeCall = (instance, method, arg) => {
927
+ var safeCall = (instance, method, arg, elm) => {
901
928
  if (instance && instance[method]) {
902
929
  try {
903
930
  return instance[method](arg);
904
931
  } catch (e) {
905
- consoleError(e);
932
+ consoleError(e, elm);
906
933
  }
907
934
  }
908
935
  return void 0;
@@ -945,15 +972,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
945
972
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
946
973
  members.map(([memberName, [memberFlags]]) => {
947
974
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
975
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
976
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
977
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
978
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
979
+ Object.defineProperty(prototype, memberName, {
980
+ get() {
981
+ {
982
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
983
+ return getValue(this, memberName);
984
+ }
985
+ const ref = getHostRef(this);
986
+ const instance = ref ? ref.$lazyInstance$ : prototype;
987
+ if (!instance) return;
988
+ return instance[memberName];
989
+ }
990
+ },
991
+ configurable: true,
992
+ enumerable: true
993
+ });
994
+ }
948
995
  Object.defineProperty(prototype, memberName, {
949
- get() {
950
- return getValue(this, memberName);
951
- },
952
996
  set(newValue) {
953
- setValue(this, memberName, newValue, cmpMeta);
954
- },
955
- configurable: true,
956
- enumerable: true
997
+ const ref = getHostRef(this);
998
+ if (origSetter) {
999
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1000
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1001
+ newValue = ref.$instanceValues$.get(memberName);
1002
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
+ ref.$instanceValues$.set(memberName, currentValue);
1004
+ }
1005
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1006
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1007
+ setValue(this, memberName, newValue, cmpMeta);
1008
+ return;
1009
+ }
1010
+ {
1011
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1012
+ setValue(this, memberName, newValue, cmpMeta);
1013
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1014
+ ref.$onReadyPromise$.then(() => {
1015
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1016
+ ref.$lazyInstance$[memberName] = newValue;
1017
+ }
1018
+ });
1019
+ }
1020
+ return;
1021
+ }
1022
+ const setterSetVal = () => {
1023
+ const currentValue = ref.$lazyInstance$[memberName];
1024
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1025
+ ref.$instanceValues$.set(memberName, currentValue);
1026
+ }
1027
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1028
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1029
+ };
1030
+ if (ref.$lazyInstance$) {
1031
+ setterSetVal();
1032
+ } else {
1033
+ ref.$onReadyPromise$.then(() => setterSetVal());
1034
+ }
1035
+ }
1036
+ }
957
1037
  });
958
1038
  }
959
1039
  });
@@ -963,7 +1043,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
963
1043
  plt.jmp(() => {
964
1044
  var _a2;
965
1045
  const propName = attrNameToPropName.get(attrName);
966
- if (this.hasOwnProperty(propName)) {
1046
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
967
1047
  newValue = this[propName];
968
1048
  delete this[propName];
969
1049
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -983,7 +1063,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
983
1063
  }
984
1064
  return;
985
1065
  }
986
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1066
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1067
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1068
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1069
+ this[propName] = newValue;
1070
+ }
987
1071
  });
988
1072
  };
989
1073
  Cstr.observedAttributes = Array.from(
@@ -1012,7 +1096,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1012
1096
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1013
1097
  const bundleId = cmpMeta.$lazyBundleId$;
1014
1098
  if (bundleId) {
1015
- const CstrImport = loadModule(cmpMeta);
1099
+ const CstrImport = loadModule(cmpMeta, hostRef);
1016
1100
  if (CstrImport && "then" in CstrImport) {
1017
1101
  const endLoad = uniqueTime();
1018
1102
  Cstr = await CstrImport;
@@ -1034,7 +1118,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1034
1118
  try {
1035
1119
  new Cstr(hostRef);
1036
1120
  } catch (e) {
1037
- consoleError(e);
1121
+ consoleError(e, elm);
1038
1122
  }
1039
1123
  {
1040
1124
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1066,7 +1150,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1066
1150
  schedule();
1067
1151
  }
1068
1152
  };
1069
- var fireConnectedCallback = (instance) => {
1153
+ var fireConnectedCallback = (instance, elm) => {
1070
1154
  };
1071
1155
 
1072
1156
  // src/runtime/connected-callback.ts
@@ -1107,7 +1191,7 @@ var connectedCallback = (elm) => {
1107
1191
  endConnected();
1108
1192
  }
1109
1193
  };
1110
- var disconnectInstance = (instance) => {
1194
+ var disconnectInstance = (instance, elm) => {
1111
1195
  };
1112
1196
  var disconnectedCallback = async (elm) => {
1113
1197
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1122,6 +1206,12 @@ var disconnectedCallback = async (elm) => {
1122
1206
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1123
1207
  }
1124
1208
  }
1209
+ if (rootAppliedStyles.has(elm)) {
1210
+ rootAppliedStyles.delete(elm);
1211
+ }
1212
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1213
+ rootAppliedStyles.delete(elm.shadowRoot);
1214
+ }
1125
1215
  };
1126
1216
 
1127
1217
  // src/runtime/bootstrap-lazy.ts
@@ -1202,6 +1292,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1202
1292
  }
1203
1293
  disconnectedCallback() {
1204
1294
  plt.jmp(() => disconnectedCallback(this));
1295
+ plt.raf(() => {
1296
+ var _a3;
1297
+ const hostRef = getHostRef(this);
1298
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1299
+ if (i2 > -1) {
1300
+ deferredConnectedCallbacks.splice(i2, 1);
1301
+ }
1302
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1303
+ delete hostRef.$vnode$.$elm$;
1304
+ }
1305
+ });
1205
1306
  }
1206
1307
  componentOnReady() {
1207
1308
  return getHostRef(this).$onReadyPromise$;
@@ -1265,7 +1366,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1265
1366
  }
1266
1367
  }
1267
1368
  } catch (e) {
1268
- consoleError(e);
1369
+ consoleError(e, hostRef.$hostElement$);
1269
1370
  }
1270
1371
  };
1271
1372
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f1b6083.js');
5
+ const index = require('./index-f886624e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -4,6 +4,51 @@ import "@vaadin/date-picker";
4
4
  import "../../../../../helper-modal/dist/types/index";
5
5
  export class HelperFilters {
6
6
  constructor() {
7
+ /**
8
+ * Check if show the filter option by id
9
+ */
10
+ this.showFilterId = true;
11
+ /**
12
+ * Choose if filter by draw ID or ticket ID. By default is draw ID.
13
+ */
14
+ this.activateTicketSearch = false;
15
+ /**
16
+ * Game ID
17
+ */
18
+ this.gameId = '';
19
+ /**
20
+ * Player ID
21
+ */
22
+ this.playerId = '';
23
+ /**
24
+ * Session ID
25
+ */
26
+ this.session = '';
27
+ /**
28
+ * Instead of customEvents the widget triggers postMessages
29
+ */
30
+ this.postMessage = false;
31
+ /**
32
+ * Language
33
+ */
34
+ this.language = 'en';
35
+ /**
36
+ * Notifies if the quick filters from tickets are active
37
+ */
38
+ this.quickFiltersActive = false;
39
+ /**
40
+ * Client custom styling via string
41
+ */
42
+ this.clientStyling = '';
43
+ /**
44
+ * Client custom styling via url content
45
+ */
46
+ this.clientStylingUrlContent = '';
47
+ this.showFilterModal = false;
48
+ this.showClearButton = false;
49
+ this.filterData = {};
50
+ this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
51
+ this.limitStylingAppends = false;
7
52
  this.handleTicketDrawId = (event) => {
8
53
  const inputElement = event.target;
9
54
  this.filterData.ticketDrawId = inputElement.value;
@@ -30,22 +75,6 @@ export class HelperFilters {
30
75
  this.stylingContainer.prepend(cssFile);
31
76
  }, 1);
32
77
  };
33
- this.showFilterId = true;
34
- this.activateTicketSearch = false;
35
- this.gameId = '';
36
- this.playerId = '';
37
- this.session = '';
38
- this.postMessage = false;
39
- this.language = 'en';
40
- this.quickFiltersActive = false;
41
- this.clientStyling = '';
42
- this.clientStylingUrlContent = '';
43
- this.translationUrl = undefined;
44
- this.showFilterModal = false;
45
- this.showClearButton = false;
46
- this.filterData = {};
47
- this.filterDataReset = { ticketDrawId: '', filterFromCalendar: '', filterToCalendar: '' };
48
- this.limitStylingAppends = false;
49
78
  }
50
79
  componentWillLoad() {
51
80
  if (this.translationUrl) {
@@ -130,6 +159,8 @@ export class HelperFilters {
130
159
  "tags": [],
131
160
  "text": "Check if show the filter option by id"
132
161
  },
162
+ "getter": false,
163
+ "setter": false,
133
164
  "attribute": "show-filter-id",
134
165
  "reflect": true,
135
166
  "defaultValue": "true"
@@ -148,6 +179,8 @@ export class HelperFilters {
148
179
  "tags": [],
149
180
  "text": "Choose if filter by draw ID or ticket ID. By default is draw ID."
150
181
  },
182
+ "getter": false,
183
+ "setter": false,
151
184
  "attribute": "activate-ticket-search",
152
185
  "reflect": true,
153
186
  "defaultValue": "false"
@@ -166,6 +199,8 @@ export class HelperFilters {
166
199
  "tags": [],
167
200
  "text": "Game ID"
168
201
  },
202
+ "getter": false,
203
+ "setter": false,
169
204
  "attribute": "game-id",
170
205
  "reflect": true,
171
206
  "defaultValue": "''"
@@ -184,6 +219,8 @@ export class HelperFilters {
184
219
  "tags": [],
185
220
  "text": "Player ID"
186
221
  },
222
+ "getter": false,
223
+ "setter": false,
187
224
  "attribute": "player-id",
188
225
  "reflect": true,
189
226
  "defaultValue": "''"
@@ -202,6 +239,8 @@ export class HelperFilters {
202
239
  "tags": [],
203
240
  "text": "Session ID"
204
241
  },
242
+ "getter": false,
243
+ "setter": false,
205
244
  "attribute": "session",
206
245
  "reflect": true,
207
246
  "defaultValue": "''"
@@ -220,6 +259,8 @@ export class HelperFilters {
220
259
  "tags": [],
221
260
  "text": "Instead of customEvents the widget triggers postMessages"
222
261
  },
262
+ "getter": false,
263
+ "setter": false,
223
264
  "attribute": "post-message",
224
265
  "reflect": true,
225
266
  "defaultValue": "false"
@@ -238,6 +279,8 @@ export class HelperFilters {
238
279
  "tags": [],
239
280
  "text": "Language"
240
281
  },
282
+ "getter": false,
283
+ "setter": false,
241
284
  "attribute": "language",
242
285
  "reflect": true,
243
286
  "defaultValue": "'en'"
@@ -256,6 +299,8 @@ export class HelperFilters {
256
299
  "tags": [],
257
300
  "text": "Notifies if the quick filters from tickets are active"
258
301
  },
302
+ "getter": false,
303
+ "setter": false,
259
304
  "attribute": "quick-filters-active",
260
305
  "reflect": true,
261
306
  "defaultValue": "false"
@@ -274,6 +319,8 @@ export class HelperFilters {
274
319
  "tags": [],
275
320
  "text": "Client custom styling via string"
276
321
  },
322
+ "getter": false,
323
+ "setter": false,
277
324
  "attribute": "client-styling",
278
325
  "reflect": true,
279
326
  "defaultValue": "''"
@@ -292,6 +339,8 @@ export class HelperFilters {
292
339
  "tags": [],
293
340
  "text": "Client custom styling via url content"
294
341
  },
342
+ "getter": false,
343
+ "setter": false,
295
344
  "attribute": "client-styling-url-content",
296
345
  "reflect": true,
297
346
  "defaultValue": "''"
@@ -310,6 +359,8 @@ export class HelperFilters {
310
359
  "tags": [],
311
360
  "text": "Translations via parent component"
312
361
  },
362
+ "getter": false,
363
+ "setter": false,
313
364
  "attribute": "translation-url",
314
365
  "reflect": true
315
366
  }