@everymatrix/lottery-subscription 0.11.8 → 0.11.10

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 (29) hide show
  1. package/dist/cjs/{index-a7f3c31f.js → index-ff6dc9b8.js} +31 -5
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{lottery-subscription-caef58b0.js → lottery-subscription-4100c9a1.js} +231 -165
  5. package/dist/cjs/lottery-subscription.cjs.entry.js +2 -2
  6. package/dist/cjs/lottery-subscription.cjs.js +2 -2
  7. package/dist/collection/components/lottery-subscription/lottery-subscription.js +60 -27
  8. package/dist/esm/{index-0cefb8d0.js → index-f4067a90.js} +31 -5
  9. package/dist/esm/index.js +2 -2
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/esm/{lottery-subscription-a9ef0899.js → lottery-subscription-92931f7d.js} +231 -165
  12. package/dist/esm/lottery-subscription.entry.js +2 -2
  13. package/dist/esm/lottery-subscription.js +3 -3
  14. package/dist/lottery-subscription/{index-0cefb8d0.js → index-f4067a90.js} +2 -2
  15. package/dist/lottery-subscription/index.esm.js +1 -1
  16. package/dist/lottery-subscription/{lottery-subscription-a9ef0899.js → lottery-subscription-92931f7d.js} +241 -241
  17. package/dist/lottery-subscription/lottery-subscription.entry.js +1 -1
  18. package/dist/lottery-subscription/lottery-subscription.esm.js +1 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.d.ts +2 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.dev.d.ts +2 -0
  21. package/dist/types/components/lottery-subscription/lottery-subscription.d.ts +10 -5
  22. package/dist/types/components.d.ts +10 -2
  23. package/package.json +1 -1
  24. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.d.ts +0 -2
  25. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.dev.d.ts +0 -2
  26. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  27. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/main.d.ts +0 -0
  28. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/preview.d.ts +0 -0
  29. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/utils/utils.d.ts +0 -0
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-subscription';
24
- const BUILD = /* lottery-subscription */ { 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: 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: false, 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: true, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* lottery-subscription */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, 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: 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: false, 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -823,14 +823,14 @@ var postUpdateComponent = (hostRef) => {
823
823
  const endPostUpdate = createTime("postUpdate", tagName);
824
824
  const instance = hostRef.$lazyInstance$ ;
825
825
  const ancestorComponent = hostRef.$ancestorComponent$;
826
- {
827
- safeCall(instance, "componentDidRender");
828
- }
829
826
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
830
827
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
831
828
  {
832
829
  addHydratedFlag(elm);
833
830
  }
831
+ {
832
+ safeCall(instance, "componentDidLoad");
833
+ }
834
834
  endPostUpdate();
835
835
  {
836
836
  hostRef.$onReadyResolve$(elm);
@@ -882,6 +882,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
882
882
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
883
883
  );
884
884
  }
885
+ const elm = hostRef.$hostElement$ ;
885
886
  const oldVal = hostRef.$instanceValues$.get(propName);
886
887
  const flags = hostRef.$flags$;
887
888
  const instance = hostRef.$lazyInstance$ ;
@@ -891,6 +892,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
891
892
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
892
893
  hostRef.$instanceValues$.set(propName, newVal);
893
894
  if (instance) {
895
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
896
+ const watchMethods = cmpMeta.$watchers$[propName];
897
+ if (watchMethods) {
898
+ watchMethods.map((watchMethodName) => {
899
+ try {
900
+ instance[watchMethodName](newVal, oldVal, propName);
901
+ } catch (e) {
902
+ consoleError(e, elm);
903
+ }
904
+ });
905
+ }
906
+ }
894
907
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
895
908
  scheduleUpdate(hostRef, false);
896
909
  }
@@ -902,7 +915,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
902
915
  var proxyComponent = (Cstr, cmpMeta, flags) => {
903
916
  var _a, _b;
904
917
  const prototype = Cstr.prototype;
905
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
918
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
919
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
920
+ cmpMeta.$watchers$ = Cstr.watchers;
921
+ }
906
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
907
923
  members.map(([memberName, [memberFlags]]) => {
908
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -984,6 +1000,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1000
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
985
1001
  }
986
1002
  if (!Cstr.isProxied) {
1003
+ {
1004
+ cmpMeta.$watchers$ = Cstr.watchers;
1005
+ }
987
1006
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
988
1007
  Cstr.isProxied = true;
989
1008
  }
@@ -999,6 +1018,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
999
1018
  {
1000
1019
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1001
1020
  }
1021
+ {
1022
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1023
+ }
1002
1024
  endNewInstance();
1003
1025
  } else {
1004
1026
  Cstr = elm.constructor;
@@ -1095,6 +1117,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1095
1117
  let hasSlotRelocation = false;
1096
1118
  lazyBundles.map((lazyBundle) => {
1097
1119
  lazyBundle[1].map((compactMeta) => {
1120
+ var _a2;
1098
1121
  const cmpMeta = {
1099
1122
  $flags$: compactMeta[0],
1100
1123
  $tagName$: compactMeta[1],
@@ -1110,6 +1133,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1110
1133
  {
1111
1134
  cmpMeta.$attrsToReflect$ = [];
1112
1135
  }
1136
+ {
1137
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1138
+ }
1113
1139
  const tagName = cmpMeta.$tagName$;
1114
1140
  const HostElement = class extends HTMLElement {
1115
1141
  // StencilLazyHost
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotterySubscription = require('./lottery-subscription-caef58b0.js');
6
- require('./index-a7f3c31f.js');
5
+ const lotterySubscription = require('./lottery-subscription-4100c9a1.js');
6
+ require('./index-ff6dc9b8.js');
7
7
 
8
8
 
9
9
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a7f3c31f.js');
5
+ const index = require('./index-ff6dc9b8.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["lottery-subscription.cjs",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32],"limitStylingAppends":[32]}]]]], options);
11
+ return index.bootstrapLazy([["lottery-subscription.cjs",[[1,"lottery-subscription",{"translationUrl":[520,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointSubscription":[513,"endpoint-subscription"],"language":[513],"gameName":[513,"game-name"],"isSubscribed":[32],"frequenceList":[32],"frequenceState":[32],"filterData":[32],"subscriptionCode":[32],"conditionId":[32],"paramId":[32],"conditionRule":[32],"paramRule":[32],"peroidRule":[32],"startDateRule":[32],"endDateRule":[32],"gameNameRule":[32],"ruleType":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;