@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
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-table-row';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.2 | 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) => {
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,
@@ -41,12 +45,16 @@ var registerHost = (hostElement, cmpMeta) => {
41
45
  $cmpMeta$: cmpMeta,
42
46
  $instanceValues$: /* @__PURE__ */ new Map()
43
47
  };
48
+ {
49
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
50
+ }
44
51
  {
45
52
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
46
53
  hostElement["s-p"] = [];
47
54
  hostElement["s-rc"] = [];
48
55
  }
49
- return hostRefs.set(hostElement, hostRef);
56
+ const ref = hostRefs.set(hostElement, hostRef);
57
+ return ref;
50
58
  };
51
59
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
60
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +91,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
91
  /* webpackExclude: /\.system\.entry\.js$/ */
84
92
  /* webpackMode: "lazy" */
85
93
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
94
+ )); }).then(
95
+ (importedModule) => {
96
+ {
97
+ cmpModules.set(bundleId, importedModule);
98
+ }
99
+ return importedModule[exportName];
100
+ },
101
+ (e) => {
102
+ consoleError(e, hostRef.$hostElement$);
89
103
  }
90
- return importedModule[exportName];
91
- }, consoleError);
104
+ );
92
105
  };
93
106
 
94
107
  // src/client/client-style.ts
95
108
  var styles = /* @__PURE__ */ new Map();
109
+ var HYDRATED_STYLE_ID = "sty-id";
96
110
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
97
111
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
112
  var win = typeof window !== "undefined" ? window : {};
@@ -106,22 +120,6 @@ var plt = {
106
120
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
107
121
  ce: (eventName, opts) => new CustomEvent(eventName, opts)
108
122
  };
109
- var supportsListenerOptions = /* @__PURE__ */ (() => {
110
- let supportsListenerOptions2 = false;
111
- try {
112
- doc.addEventListener(
113
- "e",
114
- null,
115
- Object.defineProperty({}, "passive", {
116
- get() {
117
- supportsListenerOptions2 = true;
118
- }
119
- })
120
- );
121
- } catch (e) {
122
- }
123
- return supportsListenerOptions2;
124
- })();
125
123
  var promiseResolve = (v) => Promise.resolve(v);
126
124
  var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
127
125
  try {
@@ -166,12 +164,6 @@ var flush = () => {
166
164
  };
167
165
  var nextTick = (cb) => promiseResolve().then(cb);
168
166
  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
167
  var isComplexType = (o) => {
176
168
  o = typeof o;
177
169
  return o === "object" || o === "function";
@@ -354,7 +346,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
346
  }
355
347
  if (!appliedStyles.has(scopeId2)) {
356
348
  {
357
- styleElm = doc.createElement("style");
349
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
358
350
  styleElm.innerHTML = style;
359
351
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
360
352
  if (nonce != null) {
@@ -364,7 +356,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
356
  if (styleContainerNode.nodeName === "HEAD") {
365
357
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
366
358
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
367
- styleContainerNode.insertBefore(styleElm, referenceNode2);
359
+ styleContainerNode.insertBefore(
360
+ styleElm,
361
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
362
+ );
368
363
  } else if ("host" in styleContainerNode) {
369
364
  if (supportsConstructableStylesheets) {
370
365
  const stylesheet = new CSSStyleSheet();
@@ -414,16 +409,18 @@ var attachStyles = (hostRef) => {
414
409
  endAttachStyles();
415
410
  };
416
411
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
417
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
412
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
418
413
  if (oldValue !== newValue) {
419
414
  let isProp = isMemberInElement(elm, memberName);
420
- memberName.toLowerCase();
415
+ let ln = memberName.toLowerCase();
421
416
  if (memberName === "class") {
422
417
  const classList = elm.classList;
423
418
  const oldClasses = parseClassList(oldValue);
424
- const newClasses = parseClassList(newValue);
425
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
426
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
419
+ let newClasses = parseClassList(newValue);
420
+ {
421
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
423
+ }
427
424
  } else if (memberName === "style") {
428
425
  {
429
426
  for (const prop in oldValue) {
@@ -445,7 +442,25 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
445
442
  }
446
443
  }
447
444
  }
448
- } else if (memberName === "key") ; else {
445
+ } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
446
+ if (memberName[2] === "-") {
447
+ memberName = memberName.slice(3);
448
+ } else if (isMemberInElement(win, ln)) {
449
+ memberName = ln.slice(2);
450
+ } else {
451
+ memberName = ln[2] + memberName.slice(3);
452
+ }
453
+ if (oldValue || newValue) {
454
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
455
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
456
+ if (oldValue) {
457
+ plt.rel(elm, memberName, oldValue, capture);
458
+ }
459
+ if (newValue) {
460
+ plt.ael(elm, memberName, newValue, capture);
461
+ }
462
+ }
463
+ } else {
449
464
  const isComplex = isComplexType(newValue);
450
465
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
451
466
  try {
@@ -460,7 +475,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
460
475
  elm.setAttribute(memberName, n);
461
476
  }
462
477
  }
463
- } else {
478
+ } else if (elm[memberName] !== newValue) {
464
479
  elm[memberName] = newValue;
465
480
  }
466
481
  } catch (e) {
@@ -482,22 +497,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
482
497
  }
483
498
  };
484
499
  var parseClassListRegex = /\s/;
485
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
500
+ var parseClassList = (value) => {
501
+ if (typeof value === "object" && value && "baseVal" in value) {
502
+ value = value.baseVal;
503
+ }
504
+ if (!value || typeof value !== "string") {
505
+ return [];
506
+ }
507
+ return value.split(parseClassListRegex);
508
+ };
509
+ var CAPTURE_EVENT_SUFFIX = "Capture";
510
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
486
511
 
487
512
  // src/runtime/vdom/update-element.ts
488
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
513
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
489
514
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
490
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
491
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
515
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
516
+ const newVnodeAttrs = newVnode.$attrs$ || {};
492
517
  {
493
518
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
494
519
  if (!(memberName in newVnodeAttrs)) {
495
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
520
+ setAccessor(
521
+ elm,
522
+ memberName,
523
+ oldVnodeAttrs[memberName],
524
+ void 0,
525
+ isSvgMode2,
526
+ newVnode.$flags$);
496
527
  }
497
528
  }
498
529
  }
499
530
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
500
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
531
+ setAccessor(
532
+ elm,
533
+ memberName,
534
+ oldVnodeAttrs[memberName],
535
+ newVnodeAttrs[memberName],
536
+ isSvgMode2,
537
+ newVnode.$flags$);
501
538
  }
502
539
  };
503
540
  function sortedAttrNames(attrNames) {
@@ -509,13 +546,10 @@ function sortedAttrNames(attrNames) {
509
546
  attrNames
510
547
  );
511
548
  }
512
-
513
- // src/runtime/vdom/vdom-render.ts
514
- var scopeId;
515
549
  var hostTagName;
516
550
  var useNativeShadowDom = false;
517
551
  var isSvgMode = false;
518
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
552
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
519
553
  const newVNode2 = newParentVNode.$children$[childIndex];
520
554
  let i2 = 0;
521
555
  let elm;
@@ -529,11 +563,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
563
  {
530
564
  updateElement(null, newVNode2, isSvgMode);
531
565
  }
532
- const rootNode = elm.getRootNode();
533
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
534
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
535
- elm.classList.add(elm["s-si"] = scopeId);
536
- }
537
566
  if (newVNode2.$children$) {
538
567
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
539
568
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -662,6 +691,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
662
691
  if (!isInitialRender) {
663
692
  return leftVNode.$key$ === rightVNode.$key$;
664
693
  }
694
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
695
+ leftVNode.$key$ = rightVNode.$key$;
696
+ }
665
697
  return true;
666
698
  }
667
699
  return false;
@@ -696,8 +728,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
696
728
  }
697
729
  };
698
730
  var insertBefore = (parent, newNode, reference) => {
699
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
700
- return inserted;
731
+ {
732
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
733
+ }
701
734
  };
702
735
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
703
736
  const hostElm = hostRef.$hostElement$;
@@ -722,9 +755,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
722
755
  rootVnode.$flags$ |= 4 /* isHost */;
723
756
  hostRef.$vnode$ = rootVnode;
724
757
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
725
- {
726
- scopeId = hostElm["s-sc"];
727
- }
728
758
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
759
  patch(oldVNode, rootVnode, isInitialLoad);
730
760
  };
@@ -732,7 +762,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
732
762
  // src/runtime/update-component.ts
733
763
  var attachToAncestor = (hostRef, ancestorComponent) => {
734
764
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
735
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
765
+ const index = ancestorComponent["s-p"].push(
766
+ new Promise(
767
+ (r) => hostRef.$onRenderResolve$ = () => {
768
+ ancestorComponent["s-p"].splice(index - 1, 1);
769
+ r();
770
+ }
771
+ )
772
+ );
736
773
  }
737
774
  };
738
775
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -759,14 +796,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
759
796
  let maybePromise;
760
797
  if (isInitialLoad) {
761
798
  {
762
- hostRef.$flags$ |= 256 /* isListenReady */;
763
- if (hostRef.$queuedListeners$) {
764
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
765
- hostRef.$queuedListeners$ = void 0;
766
- }
767
- }
768
- {
769
- maybePromise = safeCall(instance, "componentWillLoad");
799
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
770
800
  }
771
801
  }
772
802
  endSchedule();
@@ -840,7 +870,7 @@ var postUpdateComponent = (hostRef) => {
840
870
  addHydratedFlag(elm);
841
871
  }
842
872
  {
843
- safeCall(instance, "componentDidLoad");
873
+ safeCall(instance, "componentDidLoad", void 0, elm);
844
874
  }
845
875
  endPostUpdate();
846
876
  {
@@ -852,6 +882,9 @@ var postUpdateComponent = (hostRef) => {
852
882
  } else {
853
883
  endPostUpdate();
854
884
  }
885
+ {
886
+ hostRef.$onInstanceResolve$(elm);
887
+ }
855
888
  {
856
889
  if (hostRef.$onRenderResolve$) {
857
890
  hostRef.$onRenderResolve$();
@@ -869,12 +902,12 @@ var appDidLoad = (who) => {
869
902
  }
870
903
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
871
904
  };
872
- var safeCall = (instance, method, arg) => {
905
+ var safeCall = (instance, method, arg, elm) => {
873
906
  if (instance && instance[method]) {
874
907
  try {
875
908
  return instance[method](arg);
876
909
  } catch (e) {
877
- consoleError(e);
910
+ consoleError(e, elm);
878
911
  }
879
912
  }
880
913
  return void 0;
@@ -917,15 +950,79 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
917
950
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
918
951
  members.map(([memberName, [memberFlags]]) => {
919
952
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
953
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
954
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
955
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
956
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
957
+ Object.defineProperty(prototype, memberName, {
958
+ get() {
959
+ {
960
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
961
+ return getValue(this, memberName);
962
+ }
963
+ const ref = getHostRef(this);
964
+ const instance = ref ? ref.$lazyInstance$ : prototype;
965
+ if (!instance) return;
966
+ return instance[memberName];
967
+ }
968
+ },
969
+ configurable: true,
970
+ enumerable: true
971
+ });
972
+ }
920
973
  Object.defineProperty(prototype, memberName, {
921
- get() {
922
- return getValue(this, memberName);
923
- },
924
974
  set(newValue) {
925
- setValue(this, memberName, newValue, cmpMeta);
926
- },
927
- configurable: true,
928
- enumerable: true
975
+ const ref = getHostRef(this);
976
+ if (origSetter) {
977
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
978
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
979
+ newValue = ref.$instanceValues$.get(memberName);
980
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
981
+ ref.$instanceValues$.set(memberName, currentValue);
982
+ }
983
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
984
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ return;
987
+ }
988
+ {
989
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
990
+ setValue(this, memberName, newValue, cmpMeta);
991
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
992
+ ref.$onReadyPromise$.then(() => {
993
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
994
+ ref.$lazyInstance$[memberName] = newValue;
995
+ }
996
+ });
997
+ }
998
+ return;
999
+ }
1000
+ const setterSetVal = () => {
1001
+ const currentValue = ref.$lazyInstance$[memberName];
1002
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
+ ref.$instanceValues$.set(memberName, currentValue);
1004
+ }
1005
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1006
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1007
+ };
1008
+ if (ref.$lazyInstance$) {
1009
+ setterSetVal();
1010
+ } else {
1011
+ ref.$onReadyPromise$.then(() => setterSetVal());
1012
+ }
1013
+ }
1014
+ }
1015
+ });
1016
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1017
+ Object.defineProperty(prototype, memberName, {
1018
+ value(...args) {
1019
+ var _a2;
1020
+ const ref = getHostRef(this);
1021
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
1022
+ var _a3;
1023
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
1024
+ });
1025
+ }
929
1026
  });
930
1027
  }
931
1028
  });
@@ -935,7 +1032,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
935
1032
  plt.jmp(() => {
936
1033
  var _a2;
937
1034
  const propName = attrNameToPropName.get(attrName);
938
- if (this.hasOwnProperty(propName)) {
1035
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
939
1036
  newValue = this[propName];
940
1037
  delete this[propName];
941
1038
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -955,7 +1052,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
955
1052
  }
956
1053
  return;
957
1054
  }
958
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1055
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1056
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1057
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1058
+ this[propName] = newValue;
1059
+ }
959
1060
  });
960
1061
  };
961
1062
  Cstr.observedAttributes = Array.from(
@@ -982,9 +1083,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
982
1083
  let Cstr;
983
1084
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
984
1085
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
985
- const bundleId = cmpMeta.$lazyBundleId$;
986
- if (bundleId) {
987
- const CstrImport = loadModule(cmpMeta);
1086
+ {
1087
+ const CstrImport = loadModule(cmpMeta, hostRef);
988
1088
  if (CstrImport && "then" in CstrImport) {
989
1089
  const endLoad = uniqueTime();
990
1090
  Cstr = await CstrImport;
@@ -1006,16 +1106,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1006
1106
  try {
1007
1107
  new Cstr(hostRef);
1008
1108
  } catch (e) {
1009
- consoleError(e);
1109
+ consoleError(e, elm);
1010
1110
  }
1011
1111
  {
1012
1112
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1013
1113
  }
1014
1114
  endNewInstance();
1015
- } else {
1016
- Cstr = elm.constructor;
1017
- const cmpTag = elm.localName;
1018
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1019
1115
  }
1020
1116
  if (Cstr && Cstr.style) {
1021
1117
  let style;
@@ -1038,7 +1134,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1038
1134
  schedule();
1039
1135
  }
1040
1136
  };
1041
- var fireConnectedCallback = (instance) => {
1137
+ var fireConnectedCallback = (instance, elm) => {
1042
1138
  };
1043
1139
 
1044
1140
  // src/runtime/connected-callback.ts
@@ -1071,7 +1167,6 @@ var connectedCallback = (elm) => {
1071
1167
  initializeComponent(elm, hostRef, cmpMeta);
1072
1168
  }
1073
1169
  } else {
1074
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1075
1170
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1076
1171
  hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1077
1172
  }
@@ -1079,21 +1174,21 @@ var connectedCallback = (elm) => {
1079
1174
  endConnected();
1080
1175
  }
1081
1176
  };
1082
- var disconnectInstance = (instance) => {
1177
+ var disconnectInstance = (instance, elm) => {
1083
1178
  };
1084
1179
  var disconnectedCallback = async (elm) => {
1085
1180
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1086
1181
  const hostRef = getHostRef(elm);
1087
- {
1088
- if (hostRef.$rmListeners$) {
1089
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1090
- hostRef.$rmListeners$ = void 0;
1091
- }
1092
- }
1093
1182
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1094
1183
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1095
1184
  }
1096
1185
  }
1186
+ if (rootAppliedStyles.has(elm)) {
1187
+ rootAppliedStyles.delete(elm);
1188
+ }
1189
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1190
+ rootAppliedStyles.delete(elm.shadowRoot);
1191
+ }
1097
1192
  };
1098
1193
 
1099
1194
  // src/runtime/bootstrap-lazy.ts
@@ -1126,9 +1221,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1126
1221
  {
1127
1222
  cmpMeta.$members$ = compactMeta[2];
1128
1223
  }
1129
- {
1130
- cmpMeta.$listeners$ = compactMeta[3];
1131
- }
1132
1224
  {
1133
1225
  cmpMeta.$attrsToReflect$ = [];
1134
1226
  }
@@ -1157,10 +1249,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1157
1249
  }
1158
1250
  }
1159
1251
  connectedCallback() {
1160
- const hostRef = getHostRef(this);
1252
+ getHostRef(this);
1161
1253
  if (!this.hasRegisteredEventListeners) {
1162
1254
  this.hasRegisteredEventListeners = true;
1163
- addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
1164
1255
  }
1165
1256
  if (appLoadFallback) {
1166
1257
  clearTimeout(appLoadFallback);
@@ -1174,6 +1265,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1174
1265
  }
1175
1266
  disconnectedCallback() {
1176
1267
  plt.jmp(() => disconnectedCallback(this));
1268
+ plt.raf(() => {
1269
+ var _a3;
1270
+ const hostRef = getHostRef(this);
1271
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1272
+ delete hostRef.$vnode$.$elm$;
1273
+ }
1274
+ });
1177
1275
  }
1178
1276
  componentOnReady() {
1179
1277
  return getHostRef(this).$onReadyPromise$;
@@ -1215,39 +1313,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1215
1313
  }
1216
1314
  endBootstrap();
1217
1315
  };
1218
- var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1219
- if (listeners) {
1220
- listeners.map(([flags, name, method]) => {
1221
- const target = getHostListenerTarget(elm, flags) ;
1222
- const handler = hostListenerProxy(hostRef, method);
1223
- const opts = hostListenerOpts(flags);
1224
- plt.ael(target, name, handler, opts);
1225
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1226
- });
1227
- }
1228
- };
1229
- var hostListenerProxy = (hostRef, methodName) => (ev) => {
1230
- var _a;
1231
- try {
1232
- {
1233
- if (hostRef.$flags$ & 256 /* isListenReady */) {
1234
- (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1235
- } else {
1236
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1237
- }
1238
- }
1239
- } catch (e) {
1240
- consoleError(e);
1241
- }
1242
- };
1243
- var getHostListenerTarget = (elm, flags) => {
1244
- if (flags & 4 /* TargetDocument */) return doc;
1245
- return elm;
1246
- };
1247
- var hostListenerOpts = (flags) => supportsListenerOptions ? {
1248
- passive: (flags & 1 /* Passive */) !== 0,
1249
- capture: (flags & 2 /* Capture */) !== 0
1250
- } : (flags & 2 /* Capture */) !== 0;
1251
1316
 
1252
1317
  // src/runtime/nonce.ts
1253
1318
  var setNonce = (nonce) => plt.$nonce$ = nonce;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-19c36c53.js');
5
+ const index = require('./index-cb928c36.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([["mds-table-row.cjs",[[1,"mds-table-row",{"interactive":[1540],"overlayActions":[1540,"overlay-actions"]},[[4,"mdsTableInteractiveChange","tableInteractiveHandler"]]]]]], options);
11
+ return index.bootstrapLazy([["mds-table-row.cjs",[[1,"mds-table-row",{"interactive":[516],"overlayActions":[516,"overlay-actions"],"selectable":[516],"selected":[1540],"value":[520],"language":[32],"updateLang":[64]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;