xv-webcomponents 0.1.46 → 0.1.48
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.
- package/dist/cjs/{index-MLh9SbX2.js → index-CjhPTfz8.js} +41 -14
- package/dist/cjs/index-CjhPTfz8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js +79072 -0
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
- package/dist/cjs/xv-webcomponents.cjs.js +4 -5
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/xv-datepicker/xv-datepicker.css +401 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js +570 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +2 -2
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +2 -2
- package/dist/collection/components/xv-footer/xv-footer.js +1 -1
- package/dist/collection/components/xv-header/xv-header.js +1 -1
- package/dist/collection/components/xv-link/xv-link.js +1 -1
- package/dist/collection/components/xv-modal/xv-modal.js +1 -1
- package/dist/collection/components/xv-notification/xv-notification.css +1 -1
- package/dist/collection/components/xv-notification/xv-notification.js +1 -1
- package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
- package/dist/collection/components/xv-slider/xv-slider.css +196 -0
- package/dist/collection/components/xv-slider/xv-slider.js +259 -0
- package/dist/collection/components/xv-slider/xv-slider.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
- package/dist/collection/components/xv-table/xv-table.js +1 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
- package/dist/collection/components/xv-textarea/xv-textarea.css +254 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js +411 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js.map +1 -0
- package/dist/collection/components/xv-tile/xv-tile.css +294 -0
- package/dist/collection/components/xv-tile/xv-tile.js +264 -0
- package/dist/collection/components/xv-tile/xv-tile.js.map +1 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
- package/dist/esm/{index-DLYJiP99.js → index-BQoQLd_U.js} +41 -15
- package/dist/esm/index-BQoQLd_U.js.map +1 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/xv-accordion-v2_38.entry.js +79033 -0
- package/dist/esm/xv-accordion-v2_38.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
- package/dist/esm/xv-webcomponents.js +4 -5
- package/dist/esm/xv-webcomponents.js.map +1 -1
- package/dist/types/components/xv-datepicker/xv-datepicker.d.ts +69 -0
- package/dist/types/components/xv-slider/xv-slider.d.ts +20 -0
- package/dist/types/components/xv-textarea/xv-textarea.d.ts +27 -0
- package/dist/types/components/xv-tile/xv-tile.d.ts +24 -0
- package/dist/types/components.d.ts +344 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-50fb934d.entry.js +2 -0
- package/dist/xv-webcomponents/p-50fb934d.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-BQoQLd_U.js +3 -0
- package/dist/xv-webcomponents/p-BQoQLd_U.js.map +1 -0
- package/dist/xv-webcomponents/{p-851c4716.entry.js → p-a8d785da.entry.js} +2 -2
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +7 -4
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-MLh9SbX2.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3542
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-DLYJiP99.js.map +0 -1
- package/dist/esm/xv-accordion-v2_34.entry.js +0 -3507
- package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
- package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js +0 -2
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +0 -1
- /package/dist/xv-webcomponents/{p-851c4716.entry.js.map → p-a8d785da.entry.js.map} +0 -0
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
const NAMESPACE = 'xv-webcomponents';
|
|
4
4
|
const BUILD = /* xv-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
|
|
5
5
|
|
|
6
|
+
const globalScripts = () => {};
|
|
7
|
+
const globalStyles = "";
|
|
8
|
+
|
|
6
9
|
/*
|
|
7
|
-
Stencil Client Platform v4.
|
|
10
|
+
Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
|
|
8
11
|
*/
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __export = (target, all) => {
|
|
@@ -83,7 +86,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
86
|
|
|
84
87
|
// src/client/client-style.ts
|
|
85
88
|
var styles = /* @__PURE__ */ new Map();
|
|
86
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
87
89
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
88
90
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
89
91
|
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
@@ -227,6 +229,14 @@ var unwrapErr = (result) => {
|
|
|
227
229
|
throw result.value;
|
|
228
230
|
}
|
|
229
231
|
};
|
|
232
|
+
function createShadowRoot(cmpMeta) {
|
|
233
|
+
const shadowRoot = this.attachShadow({ mode: "open" });
|
|
234
|
+
if (supportsConstructableStylesheets) {
|
|
235
|
+
const sheet = new CSSStyleSheet();
|
|
236
|
+
sheet.replaceSync(globalStyles);
|
|
237
|
+
shadowRoot.adoptedStyleSheets.push(sheet);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
230
240
|
var updateFallbackSlotVisibility = (elm) => {
|
|
231
241
|
const childNodes = internalCall(elm, "childNodes");
|
|
232
242
|
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
@@ -303,7 +313,7 @@ function patchSlotNode(node) {
|
|
|
303
313
|
const slotName = this["s-sn"];
|
|
304
314
|
if (opts == null ? void 0 : opts.flatten) {
|
|
305
315
|
console.error(`
|
|
306
|
-
Flattening is not supported for Stencil non-shadow slots.
|
|
316
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
307
317
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
308
318
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
309
319
|
`);
|
|
@@ -470,10 +480,14 @@ var createSupportsRuleRe = (selector) => {
|
|
|
470
480
|
createSupportsRuleRe("::slotted");
|
|
471
481
|
createSupportsRuleRe(":host");
|
|
472
482
|
createSupportsRuleRe(":host-context");
|
|
473
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
483
|
+
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
474
484
|
if (propValue != null && !isComplexType(propValue)) {
|
|
475
485
|
if (propType & 4 /* Boolean */) {
|
|
476
|
-
|
|
486
|
+
if (isFormAssociated && typeof propValue === "string") {
|
|
487
|
+
return propValue === "" || !!propValue;
|
|
488
|
+
} else {
|
|
489
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
490
|
+
}
|
|
477
491
|
}
|
|
478
492
|
if (propType & 2 /* Number */) {
|
|
479
493
|
return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
|
|
@@ -539,7 +553,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
539
553
|
}
|
|
540
554
|
if (!appliedStyles.has(scopeId2)) {
|
|
541
555
|
{
|
|
542
|
-
styleElm =
|
|
556
|
+
styleElm = win.document.createElement("style");
|
|
543
557
|
styleElm.innerHTML = style;
|
|
544
558
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
545
559
|
if (nonce != null) {
|
|
@@ -1368,7 +1382,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1368
1382
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1369
1383
|
const flags = hostRef.$flags$;
|
|
1370
1384
|
const instance = hostRef.$lazyInstance$ ;
|
|
1371
|
-
newVal = parsePropertyValue(
|
|
1385
|
+
newVal = parsePropertyValue(
|
|
1386
|
+
newVal,
|
|
1387
|
+
cmpMeta.$members$[propName][0],
|
|
1388
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
1389
|
+
);
|
|
1372
1390
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1373
1391
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1374
1392
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
@@ -1458,7 +1476,13 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1458
1476
|
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1459
1477
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1460
1478
|
}
|
|
1461
|
-
origSetter.apply(this, [
|
|
1479
|
+
origSetter.apply(this, [
|
|
1480
|
+
parsePropertyValue(
|
|
1481
|
+
newValue,
|
|
1482
|
+
memberFlags,
|
|
1483
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
1484
|
+
)
|
|
1485
|
+
]);
|
|
1462
1486
|
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1463
1487
|
setValue(this, memberName, newValue, cmpMeta);
|
|
1464
1488
|
return;
|
|
@@ -1480,7 +1504,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1480
1504
|
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1481
1505
|
ref.$instanceValues$.set(memberName, currentValue);
|
|
1482
1506
|
}
|
|
1483
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1507
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
1508
|
+
newValue,
|
|
1509
|
+
memberFlags,
|
|
1510
|
+
!!(cmpMeta.$flags$ & 64 /* formAssociated */)
|
|
1511
|
+
);
|
|
1484
1512
|
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1485
1513
|
};
|
|
1486
1514
|
if (ref.$lazyInstance$) {
|
|
@@ -1769,9 +1797,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1769
1797
|
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1770
1798
|
{
|
|
1771
1799
|
if (!self.shadowRoot) {
|
|
1772
|
-
|
|
1773
|
-
self.attachShadow({ mode: "open" });
|
|
1774
|
-
}
|
|
1800
|
+
createShadowRoot.call(self, cmpMeta);
|
|
1775
1801
|
} else {
|
|
1776
1802
|
if (self.shadowRoot.mode !== "open") {
|
|
1777
1803
|
throw new Error(
|
|
@@ -1908,10 +1934,11 @@ exports.Host = Host;
|
|
|
1908
1934
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1909
1935
|
exports.createEvent = createEvent;
|
|
1910
1936
|
exports.getElement = getElement;
|
|
1937
|
+
exports.globalScripts = globalScripts;
|
|
1911
1938
|
exports.h = h;
|
|
1912
1939
|
exports.promiseResolve = promiseResolve;
|
|
1913
1940
|
exports.registerInstance = registerInstance;
|
|
1914
1941
|
exports.setNonce = setNonce;
|
|
1915
|
-
//# sourceMappingURL=index-
|
|
1942
|
+
//# sourceMappingURL=index-CjhPTfz8.js.map
|
|
1916
1943
|
|
|
1917
|
-
//# sourceMappingURL=index-
|
|
1944
|
+
//# sourceMappingURL=index-CjhPTfz8.js.map
|