@everymatrix/general-registration 1.53.99 → 1.54.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 (22) hide show
  1. package/dist/cjs/checkbox-group-input_13.cjs.entry.js +21622 -26015
  2. package/dist/cjs/general-registration.cjs.js +2 -2
  3. package/dist/cjs/{index-cb325363.js → index-ed891a0d.js} +53 -46
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/general-registration/general-registration.js +1 -1
  7. package/dist/esm/checkbox-group-input_13.entry.js +21624 -26017
  8. package/dist/esm/general-registration.js +3 -3
  9. package/dist/esm/{index-10062eb9.js → index-d069ae9e.js} +53 -46
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/general-registration/general-registration.esm.js +1 -1
  12. package/dist/general-registration/p-30224c7b.js +2 -0
  13. package/dist/general-registration/p-a04c166c.entry.js +6896 -0
  14. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  15. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/general-registration/general-registration.d.ts +1 -1
  17. package/package.json +3 -3
  18. package/dist/general-registration/p-21895a4e.js +0 -2
  19. package/dist/general-registration/p-993c790c.entry.js +0 -4466
  20. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/{Users/raul.vasile/workspace/everymatrix → builds/emfe-widgets}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-cb325363.js');
5
+ const index = require('./index-ed891a0d.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.24.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | 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-registration.cjs.js', document.baseURI).href));
@@ -24,7 +24,7 @@ const NAMESPACE = 'general-registration';
24
24
  const BUILD = /* general-registration */ { 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: true, 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: true, 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.24.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -92,12 +92,17 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
92
  /* webpackExclude: /\.system\.entry\.js$/ */
93
93
  /* webpackMode: "lazy" */
94
94
  `./${bundleId}.entry.js${""}`
95
- )); }).then((importedModule) => {
96
- {
97
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
98
104
  }
99
- return importedModule[exportName];
100
- }, consoleError);
105
+ );
101
106
  };
102
107
 
103
108
  // src/client/client-style.ts
@@ -386,7 +391,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
386
391
  if (styleContainerNode.nodeName === "HEAD") {
387
392
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
388
393
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
389
- styleContainerNode.insertBefore(styleElm, referenceNode2);
394
+ styleContainerNode.insertBefore(
395
+ styleElm,
396
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
397
+ );
390
398
  } else if ("host" in styleContainerNode) {
391
399
  if (supportsConstructableStylesheets) {
392
400
  const stylesheet = new CSSStyleSheet();
@@ -436,7 +444,7 @@ var attachStyles = (hostRef) => {
436
444
  endAttachStyles();
437
445
  };
438
446
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
439
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
440
448
  if (oldValue !== newValue) {
441
449
  let isProp = isMemberInElement(elm, memberName);
442
450
  let ln = memberName.toLowerCase();
@@ -444,15 +452,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
452
  const classList = elm.classList;
445
453
  const oldClasses = parseClassList(oldValue);
446
454
  let newClasses = parseClassList(newValue);
447
- if (elm["s-si"]) {
448
- newClasses.push(elm["s-si"]);
449
- oldClasses.forEach((c) => {
450
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
451
- });
452
- newClasses = [...new Set(newClasses)];
453
- classList.add(...newClasses);
454
- delete elm["s-si"];
455
- } else {
455
+ {
456
456
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
457
457
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
458
  }
@@ -516,10 +516,10 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
516
516
  };
517
517
  var parseClassListRegex = /\s/;
518
518
  var parseClassList = (value) => {
519
- if (typeof value === "object" && "baseVal" in value) {
519
+ if (typeof value === "object" && value && "baseVal" in value) {
520
520
  value = value.baseVal;
521
521
  }
522
- if (!value) {
522
+ if (!value || typeof value !== "string") {
523
523
  return [];
524
524
  }
525
525
  return value.split(parseClassListRegex);
@@ -528,19 +528,31 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
528
528
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
529
529
 
530
530
  // src/runtime/vdom/update-element.ts
531
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
531
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
532
532
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
533
533
  const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
534
534
  const newVnodeAttrs = newVnode.$attrs$ || {};
535
535
  {
536
536
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
537
537
  if (!(memberName in newVnodeAttrs)) {
538
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
538
+ setAccessor(
539
+ elm,
540
+ memberName,
541
+ oldVnodeAttrs[memberName],
542
+ void 0,
543
+ isSvgMode2,
544
+ newVnode.$flags$);
539
545
  }
540
546
  }
541
547
  }
542
548
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
543
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
549
+ setAccessor(
550
+ elm,
551
+ memberName,
552
+ oldVnodeAttrs[memberName],
553
+ newVnodeAttrs[memberName],
554
+ isSvgMode2,
555
+ newVnode.$flags$);
544
556
  }
545
557
  };
546
558
  function sortedAttrNames(attrNames) {
@@ -831,12 +843,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
831
843
  {
832
844
  hostRef.$flags$ |= 256 /* isListenReady */;
833
845
  if (hostRef.$queuedListeners$) {
834
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
846
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
835
847
  hostRef.$queuedListeners$ = void 0;
836
848
  }
837
849
  }
838
850
  {
839
- maybePromise = safeCall(instance, "componentWillLoad");
851
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
840
852
  }
841
853
  }
842
854
  endSchedule();
@@ -905,7 +917,7 @@ var postUpdateComponent = (hostRef) => {
905
917
  const instance = hostRef.$lazyInstance$ ;
906
918
  const ancestorComponent = hostRef.$ancestorComponent$;
907
919
  {
908
- safeCall(instance, "componentDidRender");
920
+ safeCall(instance, "componentDidRender", void 0, elm);
909
921
  }
910
922
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
911
923
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -913,7 +925,7 @@ var postUpdateComponent = (hostRef) => {
913
925
  addHydratedFlag(elm);
914
926
  }
915
927
  {
916
- safeCall(instance, "componentDidLoad");
928
+ safeCall(instance, "componentDidLoad", void 0, elm);
917
929
  }
918
930
  endPostUpdate();
919
931
  {
@@ -942,12 +954,12 @@ var appDidLoad = (who) => {
942
954
  }
943
955
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
944
956
  };
945
- var safeCall = (instance, method, arg) => {
957
+ var safeCall = (instance, method, arg, elm) => {
946
958
  if (instance && instance[method]) {
947
959
  try {
948
960
  return instance[method](arg);
949
961
  } catch (e) {
950
- consoleError(e);
962
+ consoleError(e, elm);
951
963
  }
952
964
  }
953
965
  return void 0;
@@ -1128,9 +1140,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1128
1140
  let Cstr;
1129
1141
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1130
1142
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1131
- const bundleId = cmpMeta.$lazyBundleId$;
1132
- if (bundleId) {
1133
- const CstrImport = loadModule(cmpMeta);
1143
+ {
1144
+ const CstrImport = loadModule(cmpMeta, hostRef);
1134
1145
  if (CstrImport && "then" in CstrImport) {
1135
1146
  const endLoad = uniqueTime();
1136
1147
  Cstr = await CstrImport;
@@ -1155,7 +1166,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1155
1166
  try {
1156
1167
  new Cstr(hostRef);
1157
1168
  } catch (e) {
1158
- consoleError(e);
1169
+ consoleError(e, elm);
1159
1170
  }
1160
1171
  {
1161
1172
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1164,11 +1175,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1164
1175
  hostRef.$flags$ |= 128 /* isWatchReady */;
1165
1176
  }
1166
1177
  endNewInstance();
1167
- fireConnectedCallback(hostRef.$lazyInstance$);
1168
- } else {
1169
- Cstr = elm.constructor;
1170
- const cmpTag = elm.localName;
1171
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1178
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1172
1179
  }
1173
1180
  if (Cstr && Cstr.style) {
1174
1181
  let style;
@@ -1191,9 +1198,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1191
1198
  schedule();
1192
1199
  }
1193
1200
  };
1194
- var fireConnectedCallback = (instance) => {
1201
+ var fireConnectedCallback = (instance, elm) => {
1195
1202
  {
1196
- safeCall(instance, "connectedCallback");
1203
+ safeCall(instance, "connectedCallback", void 0, elm);
1197
1204
  }
1198
1205
  };
1199
1206
 
@@ -1229,17 +1236,17 @@ var connectedCallback = (elm) => {
1229
1236
  } else {
1230
1237
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1231
1238
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1232
- fireConnectedCallback(hostRef.$lazyInstance$);
1239
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1233
1240
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1234
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1241
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1235
1242
  }
1236
1243
  }
1237
1244
  endConnected();
1238
1245
  }
1239
1246
  };
1240
- var disconnectInstance = (instance) => {
1247
+ var disconnectInstance = (instance, elm) => {
1241
1248
  {
1242
- safeCall(instance, "disconnectedCallback");
1249
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1243
1250
  }
1244
1251
  };
1245
1252
  var disconnectedCallback = async (elm) => {
@@ -1252,9 +1259,9 @@ var disconnectedCallback = async (elm) => {
1252
1259
  }
1253
1260
  }
1254
1261
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1255
- disconnectInstance(hostRef.$lazyInstance$);
1262
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1256
1263
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1257
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1264
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1258
1265
  }
1259
1266
  }
1260
1267
  if (rootAppliedStyles.has(elm)) {
@@ -1417,7 +1424,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1417
1424
  }
1418
1425
  }
1419
1426
  } catch (e) {
1420
- consoleError(e);
1427
+ consoleError(e, hostRef.$hostElement$);
1421
1428
  }
1422
1429
  };
1423
1430
  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-cb325363.js');
5
+ const index = require('./index-ed891a0d.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.24.0",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -1,7 +1,7 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { getTranslations, translate, TRANSLATIONS, DEFAULT_LANGUAGE } from "../../utils/locale.utils";
3
3
  import "../../../../../general-input/dist/types/index";
4
- import "../../../../../../svelte/player-consents/esnext/player-consents";
4
+ import "@everymatrix/player-consents/dist";
5
5
  export class GeneralRegistration {
6
6
  constructor() {
7
7
  /**