@everymatrix/helper-filters 0.1.7 → 0.1.21

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.
@@ -241,6 +241,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
241
241
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
242
242
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
243
243
  }
244
+ else if (memberName === 'ref') {
245
+ // minifier will clean this up
246
+ if (newValue) {
247
+ newValue(elm);
248
+ }
249
+ }
244
250
  else if ((!isProp ) &&
245
251
  memberName[0] === 'o' &&
246
252
  memberName[1] === 'n') {
@@ -397,6 +403,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
397
403
  for (; startIdx <= endIdx; ++startIdx) {
398
404
  if ((vnode = vnodes[startIdx])) {
399
405
  elm = vnode.$elm$;
406
+ callNodeRefs(vnode);
400
407
  // remove the vnode's element from the dom
401
408
  elm.remove();
402
409
  }
@@ -518,6 +525,12 @@ const patch = (oldVNode, newVNode) => {
518
525
  elm.data = text;
519
526
  }
520
527
  };
528
+ const callNodeRefs = (vNode) => {
529
+ {
530
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
531
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
532
+ }
533
+ };
521
534
  const renderVdom = (hostRef, renderFnResults) => {
522
535
  const hostElm = hostRef.$hostElement$;
523
536
  const cmpMeta = hostRef.$cmpMeta$;
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-1b3528e3.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5f4ed338.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["helper-filters_2",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540]}]]]], options);
13
+ return bootstrapLazy([["helper-filters_2",[[1,"helper-filters",{"showFilterId":[4,"show-filter-id"],"activateTicketSearch":[4,"activate-ticket-search"],"gameId":[1,"game-id"],"playerId":[1,"player-id"],"session":[1],"postMessage":[4,"post-message"],"language":[1],"quickFiltersActive":[4,"quick-filters-active"],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{"titleModal":[1,"title-modal"],"visible":[1540],"clientStyling":[1,"client-styling"],"clientStylingUrlContent":[1,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-2cd626f1.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-43dedb1d",[[1,"helper-filters",{showFilterId:[4,"show-filter-id"],activateTicketSearch:[4,"activate-ticket-search"],gameId:[1,"game-id"],playerId:[1,"player-id"],session:[1],postMessage:[4,"post-message"],language:[1],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[1,"title-modal"],visible:[1540]}]]]],e)));
1
+ import{p as t,b as e}from"./p-6a46b66a.js";(()=>{const e=import.meta.url,l={};return""!==e&&(l.resourcesUrl=new URL(".",e).href),t(l)})().then((t=>e([["p-13c0b3c4",[[1,"helper-filters",{showFilterId:[4,"show-filter-id"],activateTicketSearch:[4,"activate-ticket-search"],gameId:[1,"game-id"],playerId:[1,"player-id"],session:[1],postMessage:[4,"post-message"],language:[1],quickFiltersActive:[4,"quick-filters-active"],clientStyling:[1,"client-styling"],clientStylingUrlContent:[1,"client-styling-url-content"],showFilterModal:[32],showClearButton:[32],filterData:[32],filterDataReset:[32],limitStylingAppends:[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-modal",{titleModal:[1,"title-modal"],visible:[1540],clientStyling:[1,"client-styling"],clientStylingUrlContent:[1,"client-styling-url-content"],limitStylingAppends:[32]}]]]],t)));