@maggioli-design-system/mds-table-row 4.8.1 → 5.0.1

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 (95) hide show
  1. package/dist/cjs/{index-19c36c53.js → index-cb928c36.js} +201 -136
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-table-row.cjs.entry.js +893 -10
  4. package/dist/cjs/mds-table-row.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/floating-controller.js +180 -0
  7. package/dist/collection/common/slot.js +19 -0
  8. package/dist/collection/components/mds-table-row/mds-table-row.css +31 -16
  9. package/dist/collection/components/mds-table-row/mds-table-row.js +118 -23
  10. package/dist/collection/dictionary/animation.js +5 -0
  11. package/dist/collection/dictionary/file-extensions.js +6 -59
  12. package/dist/collection/dictionary/tree.js +13 -0
  13. package/dist/collection/fixtures/filenames.js +62 -1
  14. package/dist/collection/type/animation.js +1 -0
  15. package/dist/collection/type/tree.js +1 -0
  16. package/dist/collection/type/variant-file-format.js +5 -0
  17. package/dist/components/mds-table-row.js +900 -12
  18. package/dist/documentation.d.ts +8 -0
  19. package/dist/documentation.json +121 -16
  20. package/dist/esm/{index-a948f479.js → index-8134a00a.js} +201 -136
  21. package/dist/esm/loader.js +3 -3
  22. package/dist/esm/mds-table-row.entry.js +893 -10
  23. package/dist/esm/mds-table-row.js +4 -4
  24. package/dist/esm-es5/index-8134a00a.js +1 -0
  25. package/dist/esm-es5/loader.js +1 -1
  26. package/dist/esm-es5/mds-table-row.entry.js +6 -1
  27. package/dist/esm-es5/mds-table-row.js +1 -1
  28. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  29. package/dist/mds-table-row/mds-table-row.js +1 -1
  30. package/dist/mds-table-row/p-11048c96.system.js +1 -0
  31. package/dist/mds-table-row/p-22d4881a.js +2 -0
  32. package/dist/mds-table-row/p-827e2f31.entry.js +6 -0
  33. package/dist/mds-table-row/p-88f814c9.system.js +2 -0
  34. package/dist/mds-table-row/p-ed03fa5e.system.entry.js +6 -0
  35. package/dist/stats.json +267 -70
  36. package/dist/types/common/floating-controller.d.ts +46 -0
  37. package/dist/types/common/slot.d.ts +3 -0
  38. package/dist/types/components/mds-table-row/mds-table-row.d.ts +9 -3
  39. package/dist/types/components.d.ts +8 -1
  40. package/dist/types/dictionary/animation.d.ts +2 -0
  41. package/dist/types/dictionary/tree.d.ts +4 -0
  42. package/dist/types/fixtures/filenames.d.ts +62 -1
  43. package/dist/types/type/animation.d.ts +1 -0
  44. package/dist/types/type/file-types.d.ts +1 -1
  45. package/dist/types/type/tree.d.ts +3 -0
  46. package/dist/types/type/variant-file-format.d.ts +1 -1
  47. package/documentation.json +170 -29
  48. package/package.json +4 -4
  49. package/readme.md +24 -4
  50. package/src/common/floating-controller.ts +263 -0
  51. package/src/common/slot.ts +24 -0
  52. package/src/components/mds-table-row/css/mds-table-row-actions.css +10 -3
  53. package/src/components/mds-table-row/css/mds-table-row-interactive.css +6 -0
  54. package/src/components/mds-table-row/css/mds-table-row-selected.css +5 -0
  55. package/src/components/mds-table-row/css/mds-table-row-sorted.css +11 -0
  56. package/src/components/mds-table-row/mds-table-row.css +11 -26
  57. package/src/components/mds-table-row/mds-table-row.tsx +38 -9
  58. package/src/components/mds-table-row/meta/locale.el.json +4 -0
  59. package/src/components/mds-table-row/meta/locale.en.json +4 -0
  60. package/src/components/mds-table-row/meta/locale.es.json +4 -0
  61. package/src/components/mds-table-row/meta/locale.it.json +4 -0
  62. package/src/components/mds-table-row/readme.md +20 -4
  63. package/src/components.d.ts +8 -1
  64. package/src/dictionary/animation.ts +8 -0
  65. package/src/dictionary/file-extensions.ts +6 -60
  66. package/src/dictionary/tree.ts +21 -0
  67. package/src/fixtures/filenames.ts +63 -0
  68. package/src/fixtures/icons.json +21 -0
  69. package/src/fixtures/iconsauce.json +6 -0
  70. package/src/meta/file-format/locale.el.json +26 -21
  71. package/src/meta/file-format/locale.en.json +26 -21
  72. package/src/meta/file-format/locale.es.json +26 -21
  73. package/src/meta/file-format/locale.it.json +26 -21
  74. package/src/type/animation.ts +3 -0
  75. package/src/type/file-types.ts +6 -0
  76. package/src/type/tree.ts +12 -0
  77. package/src/type/variant-file-format.ts +6 -0
  78. package/www/build/mds-table-row.esm.js +1 -1
  79. package/www/build/mds-table-row.js +1 -1
  80. package/www/build/p-11048c96.system.js +1 -0
  81. package/www/build/p-22d4881a.js +2 -0
  82. package/www/build/p-827e2f31.entry.js +6 -0
  83. package/www/build/p-88f814c9.system.js +2 -0
  84. package/www/build/p-ed03fa5e.system.entry.js +6 -0
  85. package/dist/esm-es5/index-a948f479.js +0 -1
  86. package/dist/mds-table-row/p-5ab8c209.system.entry.js +0 -1
  87. package/dist/mds-table-row/p-98955251.system.js +0 -1
  88. package/dist/mds-table-row/p-bfa177c6.system.js +0 -2
  89. package/dist/mds-table-row/p-d906e5c7.entry.js +0 -1
  90. package/dist/mds-table-row/p-faec61cc.js +0 -2
  91. package/www/build/p-5ab8c209.system.entry.js +0 -1
  92. package/www/build/p-98955251.system.js +0 -1
  93. package/www/build/p-bfa177c6.system.js +0 -2
  94. package/www/build/p-d906e5c7.entry.js +0 -1
  95. package/www/build/p-faec61cc.js +0 -2
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'mds-table-row';
2
- const BUILD = /* mds-table-row */ { 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: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, 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: false, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* mds-table-row */ { 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: false, 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: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: false, 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: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -19,12 +23,16 @@ var registerHost = (hostElement, cmpMeta) => {
19
23
  $cmpMeta$: cmpMeta,
20
24
  $instanceValues$: /* @__PURE__ */ new Map()
21
25
  };
26
+ {
27
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
28
+ }
22
29
  {
23
30
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
24
31
  hostElement["s-p"] = [];
25
32
  hostElement["s-rc"] = [];
26
33
  }
27
- return hostRefs.set(hostElement, hostRef);
34
+ const ref = hostRefs.set(hostElement, hostRef);
35
+ return ref;
28
36
  };
29
37
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
38
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +69,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
69
  /* webpackExclude: /\.system\.entry\.js$/ */
62
70
  /* webpackMode: "lazy" */
63
71
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
72
+ ).then(
73
+ (importedModule) => {
74
+ {
75
+ cmpModules.set(bundleId, importedModule);
76
+ }
77
+ return importedModule[exportName];
78
+ },
79
+ (e) => {
80
+ consoleError(e, hostRef.$hostElement$);
67
81
  }
68
- return importedModule[exportName];
69
- }, consoleError);
82
+ );
70
83
  };
71
84
 
72
85
  // src/client/client-style.ts
73
86
  var styles = /* @__PURE__ */ new Map();
87
+ var HYDRATED_STYLE_ID = "sty-id";
74
88
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
75
89
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
90
  var win = typeof window !== "undefined" ? window : {};
@@ -84,22 +98,6 @@ var plt = {
84
98
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
85
99
  ce: (eventName, opts) => new CustomEvent(eventName, opts)
86
100
  };
87
- var supportsListenerOptions = /* @__PURE__ */ (() => {
88
- let supportsListenerOptions2 = false;
89
- try {
90
- doc.addEventListener(
91
- "e",
92
- null,
93
- Object.defineProperty({}, "passive", {
94
- get() {
95
- supportsListenerOptions2 = true;
96
- }
97
- })
98
- );
99
- } catch (e) {
100
- }
101
- return supportsListenerOptions2;
102
- })();
103
101
  var promiseResolve = (v) => Promise.resolve(v);
104
102
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
105
103
  try {
@@ -144,12 +142,6 @@ var flush = () => {
144
142
  };
145
143
  var nextTick = (cb) => promiseResolve().then(cb);
146
144
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
-
151
- // src/utils/helpers.ts
152
- var isDef = (v) => v != null;
153
145
  var isComplexType = (o) => {
154
146
  o = typeof o;
155
147
  return o === "object" || o === "function";
@@ -332,7 +324,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
332
324
  }
333
325
  if (!appliedStyles.has(scopeId2)) {
334
326
  {
335
- styleElm = doc.createElement("style");
327
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
336
328
  styleElm.innerHTML = style;
337
329
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
338
330
  if (nonce != null) {
@@ -342,7 +334,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
342
334
  if (styleContainerNode.nodeName === "HEAD") {
343
335
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
344
336
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
345
- styleContainerNode.insertBefore(styleElm, referenceNode2);
337
+ styleContainerNode.insertBefore(
338
+ styleElm,
339
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
340
+ );
346
341
  } else if ("host" in styleContainerNode) {
347
342
  if (supportsConstructableStylesheets) {
348
343
  const stylesheet = new CSSStyleSheet();
@@ -392,16 +387,18 @@ var attachStyles = (hostRef) => {
392
387
  endAttachStyles();
393
388
  };
394
389
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
395
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
390
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
396
391
  if (oldValue !== newValue) {
397
392
  let isProp = isMemberInElement(elm, memberName);
398
- memberName.toLowerCase();
393
+ let ln = memberName.toLowerCase();
399
394
  if (memberName === "class") {
400
395
  const classList = elm.classList;
401
396
  const oldClasses = parseClassList(oldValue);
402
- const newClasses = parseClassList(newValue);
403
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
404
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
397
+ let newClasses = parseClassList(newValue);
398
+ {
399
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
400
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
401
+ }
405
402
  } else if (memberName === "style") {
406
403
  {
407
404
  for (const prop in oldValue) {
@@ -423,7 +420,25 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
423
420
  }
424
421
  }
425
422
  }
426
- } else if (memberName === "key") ; else {
423
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
424
+ if (memberName[2] === "-") {
425
+ memberName = memberName.slice(3);
426
+ } else if (isMemberInElement(win, ln)) {
427
+ memberName = ln.slice(2);
428
+ } else {
429
+ memberName = ln[2] + memberName.slice(3);
430
+ }
431
+ if (oldValue || newValue) {
432
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
433
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
434
+ if (oldValue) {
435
+ plt.rel(elm, memberName, oldValue, capture);
436
+ }
437
+ if (newValue) {
438
+ plt.ael(elm, memberName, newValue, capture);
439
+ }
440
+ }
441
+ } else {
427
442
  const isComplex = isComplexType(newValue);
428
443
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
429
444
  try {
@@ -438,7 +453,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
438
453
  elm.setAttribute(memberName, n);
439
454
  }
440
455
  }
441
- } else {
456
+ } else if (elm[memberName] !== newValue) {
442
457
  elm[memberName] = newValue;
443
458
  }
444
459
  } catch (e) {
@@ -460,22 +475,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
460
475
  }
461
476
  };
462
477
  var parseClassListRegex = /\s/;
463
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
478
+ var parseClassList = (value) => {
479
+ if (typeof value === "object" && value && "baseVal" in value) {
480
+ value = value.baseVal;
481
+ }
482
+ if (!value || typeof value !== "string") {
483
+ return [];
484
+ }
485
+ return value.split(parseClassListRegex);
486
+ };
487
+ var CAPTURE_EVENT_SUFFIX = "Capture";
488
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
464
489
 
465
490
  // src/runtime/vdom/update-element.ts
466
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
491
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
467
492
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
468
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
469
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
493
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
494
+ const newVnodeAttrs = newVnode.$attrs$ || {};
470
495
  {
471
496
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
472
497
  if (!(memberName in newVnodeAttrs)) {
473
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
498
+ setAccessor(
499
+ elm,
500
+ memberName,
501
+ oldVnodeAttrs[memberName],
502
+ void 0,
503
+ isSvgMode2,
504
+ newVnode.$flags$);
474
505
  }
475
506
  }
476
507
  }
477
508
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
478
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
509
+ setAccessor(
510
+ elm,
511
+ memberName,
512
+ oldVnodeAttrs[memberName],
513
+ newVnodeAttrs[memberName],
514
+ isSvgMode2,
515
+ newVnode.$flags$);
479
516
  }
480
517
  };
481
518
  function sortedAttrNames(attrNames) {
@@ -487,13 +524,10 @@ function sortedAttrNames(attrNames) {
487
524
  attrNames
488
525
  );
489
526
  }
490
-
491
- // src/runtime/vdom/vdom-render.ts
492
- var scopeId;
493
527
  var hostTagName;
494
528
  var useNativeShadowDom = false;
495
529
  var isSvgMode = false;
496
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
530
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
497
531
  const newVNode2 = newParentVNode.$children$[childIndex];
498
532
  let i2 = 0;
499
533
  let elm;
@@ -507,11 +541,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
507
541
  {
508
542
  updateElement(null, newVNode2, isSvgMode);
509
543
  }
510
- const rootNode = elm.getRootNode();
511
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
512
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
513
- elm.classList.add(elm["s-si"] = scopeId);
514
- }
515
544
  if (newVNode2.$children$) {
516
545
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
517
546
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -640,6 +669,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
640
669
  if (!isInitialRender) {
641
670
  return leftVNode.$key$ === rightVNode.$key$;
642
671
  }
672
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
673
+ leftVNode.$key$ = rightVNode.$key$;
674
+ }
643
675
  return true;
644
676
  }
645
677
  return false;
@@ -674,8 +706,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
674
706
  }
675
707
  };
676
708
  var insertBefore = (parent, newNode, reference) => {
677
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
678
- return inserted;
709
+ {
710
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
711
+ }
679
712
  };
680
713
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
681
714
  const hostElm = hostRef.$hostElement$;
@@ -700,9 +733,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
700
733
  rootVnode.$flags$ |= 4 /* isHost */;
701
734
  hostRef.$vnode$ = rootVnode;
702
735
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
703
- {
704
- scopeId = hostElm["s-sc"];
705
- }
706
736
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
707
737
  patch(oldVNode, rootVnode, isInitialLoad);
708
738
  };
@@ -710,7 +740,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
710
740
  // src/runtime/update-component.ts
711
741
  var attachToAncestor = (hostRef, ancestorComponent) => {
712
742
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
713
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
743
+ const index = ancestorComponent["s-p"].push(
744
+ new Promise(
745
+ (r) => hostRef.$onRenderResolve$ = () => {
746
+ ancestorComponent["s-p"].splice(index - 1, 1);
747
+ r();
748
+ }
749
+ )
750
+ );
714
751
  }
715
752
  };
716
753
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -737,14 +774,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
737
774
  let maybePromise;
738
775
  if (isInitialLoad) {
739
776
  {
740
- hostRef.$flags$ |= 256 /* isListenReady */;
741
- if (hostRef.$queuedListeners$) {
742
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
743
- hostRef.$queuedListeners$ = void 0;
744
- }
745
- }
746
- {
747
- maybePromise = safeCall(instance, "componentWillLoad");
777
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
748
778
  }
749
779
  }
750
780
  endSchedule();
@@ -818,7 +848,7 @@ var postUpdateComponent = (hostRef) => {
818
848
  addHydratedFlag(elm);
819
849
  }
820
850
  {
821
- safeCall(instance, "componentDidLoad");
851
+ safeCall(instance, "componentDidLoad", void 0, elm);
822
852
  }
823
853
  endPostUpdate();
824
854
  {
@@ -830,6 +860,9 @@ var postUpdateComponent = (hostRef) => {
830
860
  } else {
831
861
  endPostUpdate();
832
862
  }
863
+ {
864
+ hostRef.$onInstanceResolve$(elm);
865
+ }
833
866
  {
834
867
  if (hostRef.$onRenderResolve$) {
835
868
  hostRef.$onRenderResolve$();
@@ -847,12 +880,12 @@ var appDidLoad = (who) => {
847
880
  }
848
881
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
849
882
  };
850
- var safeCall = (instance, method, arg) => {
883
+ var safeCall = (instance, method, arg, elm) => {
851
884
  if (instance && instance[method]) {
852
885
  try {
853
886
  return instance[method](arg);
854
887
  } catch (e) {
855
- consoleError(e);
888
+ consoleError(e, elm);
856
889
  }
857
890
  }
858
891
  return void 0;
@@ -895,15 +928,79 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
895
928
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
896
929
  members.map(([memberName, [memberFlags]]) => {
897
930
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
931
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
932
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
933
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
934
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
935
+ Object.defineProperty(prototype, memberName, {
936
+ get() {
937
+ {
938
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
939
+ return getValue(this, memberName);
940
+ }
941
+ const ref = getHostRef(this);
942
+ const instance = ref ? ref.$lazyInstance$ : prototype;
943
+ if (!instance) return;
944
+ return instance[memberName];
945
+ }
946
+ },
947
+ configurable: true,
948
+ enumerable: true
949
+ });
950
+ }
898
951
  Object.defineProperty(prototype, memberName, {
899
- get() {
900
- return getValue(this, memberName);
901
- },
902
952
  set(newValue) {
903
- setValue(this, memberName, newValue, cmpMeta);
904
- },
905
- configurable: true,
906
- enumerable: true
953
+ const ref = getHostRef(this);
954
+ if (origSetter) {
955
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
956
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
957
+ newValue = ref.$instanceValues$.get(memberName);
958
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
959
+ ref.$instanceValues$.set(memberName, currentValue);
960
+ }
961
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
962
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
963
+ setValue(this, memberName, newValue, cmpMeta);
964
+ return;
965
+ }
966
+ {
967
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
968
+ setValue(this, memberName, newValue, cmpMeta);
969
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
970
+ ref.$onReadyPromise$.then(() => {
971
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
972
+ ref.$lazyInstance$[memberName] = newValue;
973
+ }
974
+ });
975
+ }
976
+ return;
977
+ }
978
+ const setterSetVal = () => {
979
+ const currentValue = ref.$lazyInstance$[memberName];
980
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
981
+ ref.$instanceValues$.set(memberName, currentValue);
982
+ }
983
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
984
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
985
+ };
986
+ if (ref.$lazyInstance$) {
987
+ setterSetVal();
988
+ } else {
989
+ ref.$onReadyPromise$.then(() => setterSetVal());
990
+ }
991
+ }
992
+ }
993
+ });
994
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
995
+ Object.defineProperty(prototype, memberName, {
996
+ value(...args) {
997
+ var _a2;
998
+ const ref = getHostRef(this);
999
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1000
+ var _a3;
1001
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1002
+ });
1003
+ }
907
1004
  });
908
1005
  }
909
1006
  });
@@ -913,7 +1010,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
913
1010
  plt.jmp(() => {
914
1011
  var _a2;
915
1012
  const propName = attrNameToPropName.get(attrName);
916
- if (this.hasOwnProperty(propName)) {
1013
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
917
1014
  newValue = this[propName];
918
1015
  delete this[propName];
919
1016
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -933,7 +1030,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
933
1030
  }
934
1031
  return;
935
1032
  }
936
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1033
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1034
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1036
+ this[propName] = newValue;
1037
+ }
937
1038
  });
938
1039
  };
939
1040
  Cstr.observedAttributes = Array.from(
@@ -960,9 +1061,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
960
1061
  let Cstr;
961
1062
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
962
1063
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
963
- const bundleId = cmpMeta.$lazyBundleId$;
964
- if (bundleId) {
965
- const CstrImport = loadModule(cmpMeta);
1064
+ {
1065
+ const CstrImport = loadModule(cmpMeta, hostRef);
966
1066
  if (CstrImport && "then" in CstrImport) {
967
1067
  const endLoad = uniqueTime();
968
1068
  Cstr = await CstrImport;
@@ -984,16 +1084,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1084
  try {
985
1085
  new Cstr(hostRef);
986
1086
  } catch (e) {
987
- consoleError(e);
1087
+ consoleError(e, elm);
988
1088
  }
989
1089
  {
990
1090
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
991
1091
  }
992
1092
  endNewInstance();
993
- } else {
994
- Cstr = elm.constructor;
995
- const cmpTag = elm.localName;
996
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
997
1093
  }
998
1094
  if (Cstr && Cstr.style) {
999
1095
  let style;
@@ -1016,7 +1112,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1016
1112
  schedule();
1017
1113
  }
1018
1114
  };
1019
- var fireConnectedCallback = (instance) => {
1115
+ var fireConnectedCallback = (instance, elm) => {
1020
1116
  };
1021
1117
 
1022
1118
  // src/runtime/connected-callback.ts
@@ -1049,7 +1145,6 @@ var connectedCallback = (elm) => {
1049
1145
  initializeComponent(elm, hostRef, cmpMeta);
1050
1146
  }
1051
1147
  } else {
1052
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1053
1148
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1054
1149
  hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1055
1150
  }
@@ -1057,21 +1152,21 @@ var connectedCallback = (elm) => {
1057
1152
  endConnected();
1058
1153
  }
1059
1154
  };
1060
- var disconnectInstance = (instance) => {
1155
+ var disconnectInstance = (instance, elm) => {
1061
1156
  };
1062
1157
  var disconnectedCallback = async (elm) => {
1063
1158
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1064
1159
  const hostRef = getHostRef(elm);
1065
- {
1066
- if (hostRef.$rmListeners$) {
1067
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1068
- hostRef.$rmListeners$ = void 0;
1069
- }
1070
- }
1071
1160
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1072
1161
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1073
1162
  }
1074
1163
  }
1164
+ if (rootAppliedStyles.has(elm)) {
1165
+ rootAppliedStyles.delete(elm);
1166
+ }
1167
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1168
+ rootAppliedStyles.delete(elm.shadowRoot);
1169
+ }
1075
1170
  };
1076
1171
 
1077
1172
  // src/runtime/bootstrap-lazy.ts
@@ -1104,9 +1199,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1104
1199
  {
1105
1200
  cmpMeta.$members$ = compactMeta[2];
1106
1201
  }
1107
- {
1108
- cmpMeta.$listeners$ = compactMeta[3];
1109
- }
1110
1202
  {
1111
1203
  cmpMeta.$attrsToReflect$ = [];
1112
1204
  }
@@ -1135,10 +1227,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1135
1227
  }
1136
1228
  }
1137
1229
  connectedCallback() {
1138
- const hostRef = getHostRef(this);
1230
+ getHostRef(this);
1139
1231
  if (!this.hasRegisteredEventListeners) {
1140
1232
  this.hasRegisteredEventListeners = true;
1141
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1142
1233
  }
1143
1234
  if (appLoadFallback) {
1144
1235
  clearTimeout(appLoadFallback);
@@ -1152,6 +1243,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1152
1243
  }
1153
1244
  disconnectedCallback() {
1154
1245
  plt.jmp(() => disconnectedCallback(this));
1246
+ plt.raf(() => {
1247
+ var _a3;
1248
+ const hostRef = getHostRef(this);
1249
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1250
+ delete hostRef.$vnode$.$elm$;
1251
+ }
1252
+ });
1155
1253
  }
1156
1254
  componentOnReady() {
1157
1255
  return getHostRef(this).$onReadyPromise$;
@@ -1193,39 +1291,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1193
1291
  }
1194
1292
  endBootstrap();
1195
1293
  };
1196
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1197
- if (listeners) {
1198
- listeners.map(([flags, name, method]) => {
1199
- const target = getHostListenerTarget(elm, flags) ;
1200
- const handler = hostListenerProxy(hostRef, method);
1201
- const opts = hostListenerOpts(flags);
1202
- plt.ael(target, name, handler, opts);
1203
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1204
- });
1205
- }
1206
- };
1207
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
1208
- var _a;
1209
- try {
1210
- {
1211
- if (hostRef.$flags$ & 256 /* isListenReady */) {
1212
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1213
- } else {
1214
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1215
- }
1216
- }
1217
- } catch (e) {
1218
- consoleError(e);
1219
- }
1220
- };
1221
- var getHostListenerTarget = (elm, flags) => {
1222
- if (flags & 4 /* TargetDocument */) return doc;
1223
- return elm;
1224
- };
1225
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
1226
- passive: (flags & 1 /* Passive */) !== 0,
1227
- capture: (flags & 2 /* Capture */) !== 0
1228
- } : (flags & 2 /* Capture */) !== 0;
1229
1294
 
1230
1295
  // src/runtime/nonce.ts
1231
1296
  var setNonce = (nonce) => plt.$nonce$ = nonce;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-a948f479.js';
2
- export { s as setNonce } from './index-a948f479.js';
1
+ import { b as bootstrapLazy } from './index-8134a00a.js';
2
+ export { s as setNonce } from './index-8134a00a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[1540],"overlayActions":[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
8
+ return bootstrapLazy([["mds-table-row",[[1,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"value":[520],"language":[32],"updateLang":[64]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };