xv-webcomponents 0.1.46 → 0.1.50

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 (90) hide show
  1. package/dist/cjs/{index-MLh9SbX2.js → index-CjhPTfz8.js} +41 -14
  2. package/dist/cjs/index-CjhPTfz8.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +3 -4
  4. package/dist/cjs/loader.cjs.js.map +1 -1
  5. package/dist/cjs/xv-accordion-v2_38.cjs.entry.js +79193 -0
  6. package/dist/cjs/xv-accordion-v2_38.cjs.entry.js.map +1 -0
  7. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
  8. package/dist/cjs/xv-webcomponents.cjs.js +4 -5
  9. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
  10. package/dist/collection/collection-manifest.json +5 -1
  11. package/dist/collection/components/xv-datepicker/xv-datepicker.css +401 -0
  12. package/dist/collection/components/xv-datepicker/xv-datepicker.js +570 -0
  13. package/dist/collection/components/xv-datepicker/xv-datepicker.js.map +1 -0
  14. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
  15. package/dist/collection/components/xv-dropdown/xv-dropdown.js +2 -2
  16. package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
  17. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +2 -2
  18. package/dist/collection/components/xv-footer/xv-footer.js +1 -1
  19. package/dist/collection/components/xv-header/xv-header.css +109 -0
  20. package/dist/collection/components/xv-header/xv-header.js +131 -3
  21. package/dist/collection/components/xv-header/xv-header.js.map +1 -1
  22. package/dist/collection/components/xv-link/xv-link.js +1 -1
  23. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  24. package/dist/collection/components/xv-notification/xv-notification.css +1 -1
  25. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  26. package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
  27. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
  28. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +1 -1
  29. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  30. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  31. package/dist/collection/components/xv-slider/xv-slider.css +196 -0
  32. package/dist/collection/components/xv-slider/xv-slider.js +259 -0
  33. package/dist/collection/components/xv-slider/xv-slider.js.map +1 -0
  34. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  35. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  36. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  37. package/dist/collection/components/xv-table/xv-table.js +1 -1
  38. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  39. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  40. package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
  41. package/dist/collection/components/xv-textarea/xv-textarea.css +254 -0
  42. package/dist/collection/components/xv-textarea/xv-textarea.js +411 -0
  43. package/dist/collection/components/xv-textarea/xv-textarea.js.map +1 -0
  44. package/dist/collection/components/xv-tile/xv-tile.css +294 -0
  45. package/dist/collection/components/xv-tile/xv-tile.js +264 -0
  46. package/dist/collection/components/xv-tile/xv-tile.js.map +1 -0
  47. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
  48. package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
  49. package/dist/esm/{index-DLYJiP99.js → index-BQoQLd_U.js} +41 -15
  50. package/dist/esm/index-BQoQLd_U.js.map +1 -0
  51. package/dist/esm/loader.js +3 -4
  52. package/dist/esm/loader.js.map +1 -1
  53. package/dist/esm/xv-accordion-v2_38.entry.js +79154 -0
  54. package/dist/esm/xv-accordion-v2_38.entry.js.map +1 -0
  55. package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
  56. package/dist/esm/xv-webcomponents.js +4 -5
  57. package/dist/esm/xv-webcomponents.js.map +1 -1
  58. package/dist/types/components/xv-datepicker/xv-datepicker.d.ts +69 -0
  59. package/dist/types/components/xv-header/xv-header.d.ts +30 -0
  60. package/dist/types/components/xv-slider/xv-slider.d.ts +20 -0
  61. package/dist/types/components/xv-textarea/xv-textarea.d.ts +27 -0
  62. package/dist/types/components/xv-tile/xv-tile.d.ts +24 -0
  63. package/dist/types/components.d.ts +344 -0
  64. package/dist/types/stencil-public-runtime.d.ts +1 -1
  65. package/dist/xv-webcomponents/loader.esm.js.map +1 -1
  66. package/dist/xv-webcomponents/p-BQoQLd_U.js +3 -0
  67. package/dist/xv-webcomponents/p-BQoQLd_U.js.map +1 -0
  68. package/dist/xv-webcomponents/{p-851c4716.entry.js → p-a8d785da.entry.js} +2 -2
  69. package/dist/xv-webcomponents/p-f00c82ed.entry.js +2 -0
  70. package/dist/xv-webcomponents/p-f00c82ed.entry.js.map +1 -0
  71. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  72. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  73. package/package.json +7 -4
  74. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  75. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  76. package/dist/cjs/index-MLh9SbX2.js.map +0 -1
  77. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3542
  78. package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
  79. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  80. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  81. package/dist/esm/index-DLYJiP99.js.map +0 -1
  82. package/dist/esm/xv-accordion-v2_34.entry.js +0 -3507
  83. package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
  84. package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
  85. package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
  86. package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
  87. package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
  88. package/dist/xv-webcomponents/p-d96c1b6a.entry.js +0 -2
  89. package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +0 -1
  90. /package/dist/xv-webcomponents/{p-851c4716.entry.js.map → p-a8d785da.entry.js.map} +0 -0
@@ -1,8 +1,11 @@
1
1
  const NAMESPACE = 'xv-webcomponents';
2
2
  const BUILD = /* xv-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
3
3
 
4
+ const globalScripts = () => {};
5
+ const globalStyles = "";
6
+
4
7
  /*
5
- Stencil Client Platform v4.32.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
6
9
  */
7
10
  var __defProp = Object.defineProperty;
8
11
  var __export = (target, all) => {
@@ -81,7 +84,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
81
84
 
82
85
  // src/client/client-style.ts
83
86
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
87
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
88
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
89
  var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
@@ -225,6 +227,14 @@ var unwrapErr = (result) => {
225
227
  throw result.value;
226
228
  }
227
229
  };
230
+ function createShadowRoot(cmpMeta) {
231
+ const shadowRoot = this.attachShadow({ mode: "open" });
232
+ if (supportsConstructableStylesheets) {
233
+ const sheet = new CSSStyleSheet();
234
+ sheet.replaceSync(globalStyles);
235
+ shadowRoot.adoptedStyleSheets.push(sheet);
236
+ }
237
+ }
228
238
  var updateFallbackSlotVisibility = (elm) => {
229
239
  const childNodes = internalCall(elm, "childNodes");
230
240
  if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
@@ -301,7 +311,7 @@ function patchSlotNode(node) {
301
311
  const slotName = this["s-sn"];
302
312
  if (opts == null ? void 0 : opts.flatten) {
303
313
  console.error(`
304
- Flattening is not supported for Stencil non-shadow slots.
314
+ Flattening is not supported for Stencil non-shadow slots.
305
315
  You can use \`.childNodes\` to nested slot fallback content.
306
316
  If you have a particular use case, please open an issue on the Stencil repo.
307
317
  `);
@@ -468,10 +478,14 @@ var createSupportsRuleRe = (selector) => {
468
478
  createSupportsRuleRe("::slotted");
469
479
  createSupportsRuleRe(":host");
470
480
  createSupportsRuleRe(":host-context");
471
- var parsePropertyValue = (propValue, propType) => {
481
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
472
482
  if (propValue != null && !isComplexType(propValue)) {
473
483
  if (propType & 4 /* Boolean */) {
474
- return propValue === "false" ? false : propValue === "" || !!propValue;
484
+ if (isFormAssociated && typeof propValue === "string") {
485
+ return propValue === "" || !!propValue;
486
+ } else {
487
+ return propValue === "false" ? false : propValue === "" || !!propValue;
488
+ }
475
489
  }
476
490
  if (propType & 2 /* Number */) {
477
491
  return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
@@ -537,7 +551,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
537
551
  }
538
552
  if (!appliedStyles.has(scopeId2)) {
539
553
  {
540
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
554
+ styleElm = win.document.createElement("style");
541
555
  styleElm.innerHTML = style;
542
556
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
543
557
  if (nonce != null) {
@@ -1366,7 +1380,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1366
1380
  const oldVal = hostRef.$instanceValues$.get(propName);
1367
1381
  const flags = hostRef.$flags$;
1368
1382
  const instance = hostRef.$lazyInstance$ ;
1369
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1383
+ newVal = parsePropertyValue(
1384
+ newVal,
1385
+ cmpMeta.$members$[propName][0],
1386
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1387
+ );
1370
1388
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1371
1389
  const didValueChange = newVal !== oldVal && !areBothNaN;
1372
1390
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1456,7 +1474,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1456
1474
  } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1457
1475
  ref.$instanceValues$.set(memberName, currentValue);
1458
1476
  }
1459
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1477
+ origSetter.apply(this, [
1478
+ parsePropertyValue(
1479
+ newValue,
1480
+ memberFlags,
1481
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1482
+ )
1483
+ ]);
1460
1484
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1461
1485
  setValue(this, memberName, newValue, cmpMeta);
1462
1486
  return;
@@ -1478,7 +1502,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1478
1502
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1479
1503
  ref.$instanceValues$.set(memberName, currentValue);
1480
1504
  }
1481
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1505
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
1506
+ newValue,
1507
+ memberFlags,
1508
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
1509
+ );
1482
1510
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1483
1511
  };
1484
1512
  if (ref.$lazyInstance$) {
@@ -1767,9 +1795,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1767
1795
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1768
1796
  {
1769
1797
  if (!self.shadowRoot) {
1770
- {
1771
- self.attachShadow({ mode: "open" });
1772
- }
1798
+ createShadowRoot.call(self, cmpMeta);
1773
1799
  } else {
1774
1800
  if (self.shadowRoot.mode !== "open") {
1775
1801
  throw new Error(
@@ -1901,7 +1927,7 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
1901
1927
  // src/runtime/nonce.ts
1902
1928
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1903
1929
 
1904
- export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1905
- //# sourceMappingURL=index-DLYJiP99.js.map
1930
+ export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1931
+ //# sourceMappingURL=index-BQoQLd_U.js.map
1906
1932
 
1907
- //# sourceMappingURL=index-DLYJiP99.js.map
1933
+ //# sourceMappingURL=index-BQoQLd_U.js.map