xv-webcomponents 1.30.1-qa.0 → 1.30.3-qa.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/xv-accordion-v2_50.cjs.entry.js +37 -28
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +6 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +0 -3
- package/dist/collection/components/xv-pagination/xv-pagination.css +16 -0
- package/dist/collection/components/xv-pagination/xv-pagination.js +10 -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-radio/xv-radio.js +2 -2
- package/dist/collection/components/xv-slider/xv-slider.js +1 -1
- 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-tabs/xv-tabs.css +1 -0
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.js +2 -2
- package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
- package/dist/collection/components/xv-textarea/xv-textarea.js +2 -2
- package/dist/collection/components/xv-tile/xv-tile.js +2 -2
- package/dist/collection/components/xv-toggle/xv-toggle.js +1 -1
- 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/xv-accordion-v2_50.entry.js +37 -28
- package/dist/types/components/xv-pagination/xv-pagination.d.ts +1 -0
- package/dist/xv-webcomponents/{p-1292ef47.entry.js → p-b7580915.entry.js} +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/hydrate/index.js +37 -28
- package/hydrate/index.mjs +37 -28
- package/package.json +1 -1
|
@@ -83236,7 +83236,7 @@ const XvNumberInput = class {
|
|
|
83236
83236
|
};
|
|
83237
83237
|
XvNumberInput.style = xvNumberInputCss();
|
|
83238
83238
|
|
|
83239
|
-
const xvOverflowMenuCss = () => `:host{--overflow-menu-size:40px;--overflow-menu-item-padding:11px 16px;display:inline-flex;flex-direction:column;position:relative}:host .btn{display:inline-flex;align-items:center;justify-content:center;width:var(--overflow-menu-size);height:var(--overflow-menu-size);background-color:transparent;border:1px solid transparent;transition:300ms ease-in-out color, 300ms ease-in-out background-color, 200ms ease box-shadow;font-size:calc(var(--overflow-menu-size) / 2);color:var(--icon-primary);border-radius:5%;margin:0;padding:0}:host .btn:hover{cursor:pointer;color:var(--link-primary-hover);background-color:var(--background-hover)}:host .btn:active{background-color:var(--background-active);color:var(--icon-disabled)}:host .btn:focus-visible{outline:2px solid var(--focus, #273435);outline-offset:-2px}:host .btn:disabled{background-color:transparent;opacity:0.5;cursor:not-allowed}:host .list{z-index:99;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;background-color:var(--layer-01);position:absolute;top:100%;left:0;max-height:0;overflow:hidden;outline:none;border-radius:3px;transition:200ms ease-in-out max-height, 100ms ease box-shadow;min-width:160px;max-width:50vw;width:max-content}:host .list.open{overflow:visible}:host .list
|
|
83239
|
+
const xvOverflowMenuCss = () => `:host{--overflow-menu-size:40px;--overflow-menu-item-padding:11px 16px;display:inline-flex;flex-direction:column;position:relative}:host .btn{display:inline-flex;align-items:center;justify-content:center;width:var(--overflow-menu-size);height:var(--overflow-menu-size);background-color:transparent;border:1px solid transparent;transition:300ms ease-in-out color, 300ms ease-in-out background-color, 200ms ease box-shadow;font-size:calc(var(--overflow-menu-size) / 2);color:var(--icon-primary);border-radius:5%;margin:0;padding:0}:host .btn:hover{cursor:pointer;color:var(--link-primary-hover);background-color:var(--background-hover)}:host .btn:active{background-color:var(--background-active);color:var(--icon-disabled)}:host .btn:focus-visible{outline:2px solid var(--focus, #273435);outline-offset:-2px}:host .btn:disabled{background-color:transparent;opacity:0.5;cursor:not-allowed}:host .list{z-index:99;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;background-color:var(--layer-01);position:absolute;top:100%;left:0;max-height:0;overflow:hidden;outline:none;border-radius:3px;transition:200ms ease-in-out max-height, 100ms ease box-shadow;min-width:160px;max-width:50vw;width:max-content}:host .list.open{overflow:visible}:host .list.position-right{left:initial;right:0;border-top-right-radius:0}:host .list.position-left{border-top-left-radius:0}:host .list.position-center{transform:translateX(-50%)}:host([size=xs]){--overflow-menu-item-padding:4px 16px;--overflow-menu-size:24px}:host([size=sm]){--overflow-menu-size:32px;--overflow-menu-item-padding:7px 16px}:host([size=md]){--overflow-menu-size:40px;--overflow-menu-item-padding:11px 16px}:host([size=lg]){--overflow-menu-size:48px;--overflow-menu-item-padding:15px 16px}:host([size=xl]){--overflow-menu-size:56px;--overflow-menu-item-padding:16px}:host([open]) .btn{border-bottom-left-radius:0;border-bottom-right-radius:0;background-color:var(--layer-01);box-shadow:-2px 2px 2px 0 rgba(0, 0, 0, 0.1);z-index:1}:host([open]) .list{max-height:500px;box-shadow:-2px 2px 2px 0 rgba(0, 0, 0, 0.1)}:host(.anchored){display:contents}:host(.anchored) .list{position:fixed;top:0;left:0;max-height:none;overflow:visible}:host(.anchored) .list:not(.open){display:none}:host(.anchored) .list.open{box-shadow:0 2px 6px rgba(0, 0, 0, 0.3)}`;
|
|
83240
83240
|
|
|
83241
83241
|
let overflowMenuUid = 0;
|
|
83242
83242
|
const XvOverflowMenu = class {
|
|
@@ -83545,7 +83545,7 @@ const XvOverflowMenu = class {
|
|
|
83545
83545
|
};
|
|
83546
83546
|
XvOverflowMenu.style = xvOverflowMenuCss();
|
|
83547
83547
|
|
|
83548
|
-
const xvOverflowMenuItemCss = () => `@charset "UTF-8";:host{display:block;background-color:transparent;transition:200ms ease background-color;user-select:none;text-align:left;color:var(--text-secondary, #515151);font-family:var(--ff-body, Tahoma);font-size:var(--fz-md, 14px);line-height:128.571%;letter-spacing:0.16px}.item_inner{display:flex;align-items:center;gap:8px;width:100%;color:inherit;font:inherit;text-decoration:none}.item_icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:16px;line-height:0}.item_label{flex:1;min-width:0}:host(:not([disabled]):hover){cursor:pointer;background-color:var(--layer-hover-01, #E9E9E9)}:host(:not([disabled]):active){background-color:var(--layer-active-01, #D1D1D1)}:host(:not([disabled]):focus),:host(:not([disabled])[active]){outline:none;box-shadow:inset 0 0 0 2px var(--focus, #273435)}:host([variant=danger]){background-color:var(--text-error, #D62512);color:var(--text-on-color, #FFF)}:host([variant=danger]:not([disabled]):hover),:host([variant=danger]:not([disabled])[active]),:host([variant=danger]:not([disabled]):focus){background-color:var(--support-error, #F1290E)}:host([variant=danger]:not([disabled]):active){background-color:var(--text-error, #D62512)}:host([variant=ghost]),:host([variant=ghost]:hover),:host([variant=ghost]:active){cursor:default;background-color:var(--background);color:var(--text-primary)}:host([disabled]){background-color:var(--layer-01, #F7F7F7) !important;color:var(--text-disabled) !important;box-shadow:none !important;cursor:not-allowed}:host([divider]){border-top:1px solid var(--border-subtle-01, #E0E0E0)}`;
|
|
83548
|
+
const xvOverflowMenuItemCss = () => `@charset "UTF-8";:host{display:block;background-color:transparent;transition:200ms ease background-color;user-select:none;text-align:left;color:var(--text-secondary, #515151);font-family:var(--ff-body, Tahoma);font-size:var(--fz-md, 14px);line-height:128.571%;letter-spacing:0.16px}.item_inner{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;padding:var(--overflow-menu-item-padding);color:inherit;font:inherit;text-decoration:none}.item_icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:16px;line-height:0}.item_label{flex:1;min-width:0}:host(:not([disabled]):hover){cursor:pointer;background-color:var(--layer-hover-01, #E9E9E9)}:host(:not([disabled]):active){background-color:var(--layer-active-01, #D1D1D1)}:host(:not([disabled]):focus),:host(:not([disabled])[active]){outline:none;box-shadow:inset 0 0 0 2px var(--focus, #273435)}:host([variant=danger]){background-color:var(--text-error, #D62512);color:var(--text-on-color, #FFF)}:host([variant=danger]:not([disabled]):hover),:host([variant=danger]:not([disabled])[active]),:host([variant=danger]:not([disabled]):focus){background-color:var(--support-error, #F1290E)}:host([variant=danger]:not([disabled]):active){background-color:var(--text-error, #D62512)}:host([variant=ghost]){padding:var(--overflow-menu-item-padding)}:host([variant=ghost]),:host([variant=ghost]:hover),:host([variant=ghost]:active){cursor:default;background-color:var(--background);color:var(--text-primary)}:host([disabled]){background-color:var(--layer-01, #F7F7F7) !important;color:var(--text-disabled) !important;box-shadow:none !important;cursor:not-allowed}:host([divider]){border-top:1px solid var(--border-subtle-01, #E0E0E0)}`;
|
|
83549
83549
|
|
|
83550
83550
|
const XvOverflowMenuItem = class {
|
|
83551
83551
|
constructor(hostRef) {
|
|
@@ -83584,8 +83584,9 @@ const XvOverflowMenuItem = class {
|
|
|
83584
83584
|
};
|
|
83585
83585
|
XvOverflowMenuItem.style = xvOverflowMenuItemCss();
|
|
83586
83586
|
|
|
83587
|
-
const xvPaginationCss = () => `:host{display:inline-flex}:host .options-select{align-self:center;border:none;background-color:transparent;padding-block:var(--spacing-03);padding-inline-start:var(--spacing-02)}:host .block{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;margin:0 var(--spacing-03);column-gap:var(--spacing-03)}:host .block_full{flex:1}:host .icon{box-sizing:border-box;width:0;height:0;border:solid currentColor;border-width:0 2px 2px 0;display:inline-block;padding:0.25em}:host .icon_prev{transform:rotate(135deg);margin-left:5px}:host .icon_next{transform:rotate(-45deg);margin-right:5px}:host .list{display:flex;list-style:none;padding:0;margin:0}:host .list_options{display:flex;align-items:center;white-space:nowrap;column-gap:var(--spacing-04)}:host .list_options__middle{display:flex;flex:1}:host .list_page{user-select:none}:host .list .active .list_page{color:var(--text-on-color-active, #000);font-weight:700}:host .list .active .list_page:after{content:"";position:absolute;top:90%;left:25%;width:50%;height:2px;background-color:var(--text-on-color-active, #000)}:host .list_dots{position:relative;display:inline-block}:host .list_dots__icon{user-select:none;display:flex;width:auto;height:100%;align-items:center;justify-content:center}:host .list_dots select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:none;border:none;cursor:pointer;color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;padding-inline:var(--spacing-03)}:host .list_dots select option{background-color:white;color:var(--text-primary, #333)}:host(.block){display:flex}:host([variant=compact]){justify-content:flex-end}:host([size=xs]){column-gap:var(--spacing-04)}:host([size=xs]) .list{column-gap:var(--spacing-04)}`;
|
|
83587
|
+
const xvPaginationCss = () => `:host{display:inline-flex}:host .options-select{align-self:center;border:none;background-color:transparent;padding-block:var(--spacing-03);padding-inline-start:var(--spacing-02)}:host .page-input{align-self:center;box-sizing:content-box;font:inherit;color:inherit;text-align:center;background-color:transparent;border:1px solid var(--border-subtle-01);padding:var(--spacing-02) var(--spacing-03);appearance:textfield;-moz-appearance:textfield}:host .page-input::-webkit-inner-spin-button,:host .page-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host .block{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;margin:0 var(--spacing-03);column-gap:var(--spacing-03)}:host .block_full{flex:1}:host .icon{box-sizing:border-box;width:0;height:0;border:solid currentColor;border-width:0 2px 2px 0;display:inline-block;padding:0.25em}:host .icon_prev{transform:rotate(135deg);margin-left:5px}:host .icon_next{transform:rotate(-45deg);margin-right:5px}:host .list{display:flex;list-style:none;padding:0;margin:0}:host .list_options{display:flex;align-items:center;white-space:nowrap;column-gap:var(--spacing-04)}:host .list_options__middle{display:flex;flex:1}:host .list_page{user-select:none}:host .list .active .list_page{color:var(--text-on-color-active, #000);font-weight:700}:host .list .active .list_page:after{content:"";position:absolute;top:90%;left:25%;width:50%;height:2px;background-color:var(--text-on-color-active, #000)}:host .list_dots{position:relative;display:inline-block}:host .list_dots__icon{user-select:none;display:flex;width:auto;height:100%;align-items:center;justify-content:center}:host .list_dots select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:none;border:none;cursor:pointer;color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;padding-inline:var(--spacing-03)}:host .list_dots select option{background-color:white;color:var(--text-primary, #333)}:host(.block){display:flex}:host([variant=compact]){justify-content:flex-end}:host([size=xs]){column-gap:var(--spacing-04)}:host([size=xs]) .list{column-gap:var(--spacing-04)}`;
|
|
83588
83588
|
|
|
83589
|
+
const PAGE_SELECT_LIMIT = 100;
|
|
83589
83590
|
const XvPagination = class {
|
|
83590
83591
|
constructor(hostRef) {
|
|
83591
83592
|
index$1.registerInstance(this, hostRef);
|
|
@@ -83619,6 +83620,14 @@ const XvPagination = class {
|
|
|
83619
83620
|
return;
|
|
83620
83621
|
this.handlePageChange(value);
|
|
83621
83622
|
};
|
|
83623
|
+
this.handlePageInputChange = (e) => {
|
|
83624
|
+
const input = e.target;
|
|
83625
|
+
const value = Math.trunc(Number(input.value));
|
|
83626
|
+
const page = input.value === '' || isNaN(value) ? this.page : Math.min(Math.max(value, 1), this.total);
|
|
83627
|
+
input.value = `${page}`;
|
|
83628
|
+
if (page !== this.page)
|
|
83629
|
+
this.handlePageChange(page);
|
|
83630
|
+
};
|
|
83622
83631
|
this.handleItemsPerPageChange = (e) => {
|
|
83623
83632
|
const value = Number(e.target.value);
|
|
83624
83633
|
if (isNaN(value))
|
|
@@ -83694,7 +83703,7 @@ const XvPagination = class {
|
|
|
83694
83703
|
this.observer.disconnect();
|
|
83695
83704
|
}
|
|
83696
83705
|
render() {
|
|
83697
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83706
|
+
return (index$1.h(index$1.Host, { key: '223f480b119c7cf8889c5eadbaf76c922ef32a29', class: { block: !!this.block, [this.currentVariant]: true, [this.size]: !!this.size } }, this.currentVariant === 'full' && (index$1.h("div", { key: '392c73e7d447835de320252e8cb06f6701f47b7d', class: "block" }, index$1.h("select", { key: '510004c0a74f06930f75c573eaefa69dcb885e8b', class: "options-select", name: "options", onChange: this.handleItemsPerPageChange }, this.pageSizeOptions.map((v) => index$1.h("option", { selected: v === this.itemsPerPage, value: v }, v))))), this.currentVariant === 'full' && (index$1.h("span", { key: '396b19523f79318aceb3bd61e3c930dfe2fd24ec', class: "block block_full" }, `${(this.page - 1) * this.itemsPerPage + 1} – ${Math.min(this.page * this.itemsPerPage, this.totalItems)} von ${this.totalItems} Einträgen`)), this.currentVariant === 'full' && (index$1.h("div", { key: '568521165bfabaa38a2c7cec1eb5ed3b2712eb27', class: "block" }, this.total > PAGE_SELECT_LIMIT ? (index$1.h("input", { class: "page-input", type: "number", name: "pages", min: 1, max: this.total, value: this.page, style: { width: `${`${this.total}`.length + 2}ch` }, onChange: this.handlePageInputChange })) : (index$1.h("select", { class: "options-select", name: "pages", onChange: this.handlePageSelectChange }, Array.from({ length: this.total }, (_, i) => (index$1.h("option", { selected: this.page === i + 1, value: i + 1 }, i + 1))))), index$1.h("span", { key: '72815bb27828c594fe6f6bb8957cc7f3e0d0bea8' }, "von ", this.total, " Seiten"))), this.currentVariant === 'compact' && index$1.h("span", { key: '48bdb5f463c54b3b6c9f17b8a0153da9884f8912', class: "block" }, "Seite ", this.page), index$1.h("xv-button-v2", { key: '39c199a7fba71658310b713e7918bcbc297f9507', variant: "ghost", size: this.size, onClick: () => this.handlePageChange(this.page - 1), disabled: this.page <= 1 }, index$1.h("span", { key: 'e68f6615d3c287f5dd9371585d4d3fd8bb9a5098', slot: "icon-left", class: "icon icon_prev" })), this.currentVariant === 'regular' && (index$1.h("ul", { key: 'c0645a151fe3609991a050b4b6cae6de2515bdaf', class: "list" }, this.visiblePagesWithDots.map((page) => (index$1.h("li", { class: { active: this.page === page } }, page === 'dots-start' ? (index$1.h("div", { class: "list_dots" }, index$1.h("xv-button-v2", { variant: "ghost", size: this.size, tabindex: -1 }, index$1.h("span", { slot: "icon-left", class: "list_dots__icon" }, "...")), index$1.h("select", { name: "start", onChange: this.handlePageSelectChange }, Array.from({ length: this.page - 3 }, (_, i) => (index$1.h("option", { value: i + 2 }, i + 2)))))) : page === 'dots-end' ? (index$1.h("div", { class: "list_dots" }, index$1.h("xv-button-v2", { variant: "ghost", size: this.size, tabindex: -1 }, index$1.h("span", { slot: "icon-left", class: "list_dots__icon" }, "...")), index$1.h("select", { name: "end", onChange: this.handlePageSelectChange }, Array.from({ length: this.total - (this.page + 2) }, (_, i) => (index$1.h("option", { value: i + this.page + 2 }, i + this.page + 2)))))) : (index$1.h("xv-button-v2", { variant: "ghost", size: this.size, disabled: this.page === page, onClick: () => this.handlePageChange(page) }, index$1.h("span", { class: "list_page", slot: "icon-left" }, page)))))))), index$1.h("xv-button-v2", { key: '530752caee9627b253cb088f8be35ee7c4807e9b', variant: "ghost", size: this.size, onClick: () => this.handlePageChange(this.page + 1), disabled: this.page >= this.total }, index$1.h("span", { key: 'e0fe04195662ba15dd761136720b549c6453236f', slot: "icon-left", class: "icon icon_next" }))));
|
|
83698
83707
|
}
|
|
83699
83708
|
get el() { return index$1.getElement(this); }
|
|
83700
83709
|
};
|
|
@@ -83790,7 +83799,7 @@ const XvProgressIndicator = class {
|
|
|
83790
83799
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
83791
83800
|
}
|
|
83792
83801
|
render() {
|
|
83793
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83802
|
+
return (index$1.h(index$1.Host, { key: 'ba0b0a63b6056b0f52de42c3077ff30c824d2016', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, index$1.h("div", { key: '66aa5be8472d465335e38cd2897fb3d483189fba', class: "mobile-header" }, index$1.h("span", { key: 'af5255fd1962569f93b9af6d308fd3c602d80fdf', class: "mobile-label" }, this.currentLabel), index$1.h("span", { key: '8da6fbcddf1ca1988d6363d9d2fd394f45bdba62', class: "mobile-counter" }, this.currentStep, "/", this.total)), index$1.h("div", { key: '0c648a0083ef2efa2620e91f44b899744f356294', class: "items" }, index$1.h("slot", { key: 'c425ab2b1be79ab76aeeb1c6422738dec3a5a87a' }))));
|
|
83794
83803
|
}
|
|
83795
83804
|
get el() { return index$1.getElement(this); }
|
|
83796
83805
|
static get watchers() { return {
|
|
@@ -83809,7 +83818,7 @@ const XvProgressIndicatorItem = class {
|
|
|
83809
83818
|
this.status = PROGRESS_ITEM_STATUS.NO_STARTED;
|
|
83810
83819
|
}
|
|
83811
83820
|
render() {
|
|
83812
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83821
|
+
return (index$1.h(index$1.Host, { key: '6950cd3a200af0f88f77eab66b2d62c1d0fe0a45', status: this.status, class: { 'xv-progress-indicator-item': true } }, index$1.h("span", { key: '1780938006880addda04b02ff94c6dc149c51f95', class: "line" }), index$1.h("span", { key: 'c7f8dddf319a624f6b76cb4dbb6b7af396fad07e', class: "icon" }, index$1.h("svg", { key: '593c33a32cf50d57050cf65aef51204cc333f119', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, index$1.h("path", { key: '5278ea6e05dd7b2a1d683db83e7d1b1fa2a39eb1', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), index$1.h("p", { key: 'abec534270053908b6f5a637dc2340de47a2dfad', class: "label" }, index$1.h("slot", { key: 'f773c9a671737e379aed5c3975fe11d2f815a770' }))));
|
|
83813
83822
|
}
|
|
83814
83823
|
get el() { return index$1.getElement(this); }
|
|
83815
83824
|
};
|
|
@@ -83842,12 +83851,12 @@ const XvRadio = class {
|
|
|
83842
83851
|
}
|
|
83843
83852
|
render() {
|
|
83844
83853
|
const message = index$2.resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
83845
|
-
return (index$1.h("div", { key: '
|
|
83854
|
+
return (index$1.h("div", { key: '0cb1db2112f70bd71f8cd8d978537052e7013368', class: {
|
|
83846
83855
|
'xv-radio': true,
|
|
83847
83856
|
'xv-radio--reverse': this.reverse,
|
|
83848
83857
|
'xv-radio--block': this.block,
|
|
83849
83858
|
[`xv-radio--size-${this.size}`]: !!this.size,
|
|
83850
|
-
} }, this.label && index$1.h("p", { key: '
|
|
83859
|
+
} }, this.label && index$1.h("p", { key: 'a04b6987663bc35bed28c47c7cadcee1f26926fd', class: "xv-radio_label" }, this.label), index$1.h("label", { key: '6e54154c57d4e77f4315ba7bfc8c784bf143531b', class: { 'xv-radio_container': true, disabled: this.disabled } }, index$1.h("div", { key: 'fa8ba71aab04f520712995bf23dd0958eef437af', class: { 'xv-radio_input': true, 'xv-radio_input--error': !!this.error || this.error === '' } }, index$1.h("input", { key: '0e0e25dd52d545ad5bea62c023d014cc5d866ac2', ref: el => (this.inputEl = el), type: "radio", name: this.name, value: this.value, checked: this.checked, readonly: this.readonly, disabled: this.disabled }), index$1.h("span", { key: 'b6fae9d6d7520c42c5f2c1acf3b1ec235f3073b8', class: "xv-radio_input__mark" })), index$1.h("span", { key: '926c3cd8248b5346a5c72b0d1c2b7d206ea94a0d', class: "xv-radio_container__label" }, index$1.h("slot", { key: '74ccc7ec580d8cb4a9134143560f4bee1e0b2e9b' }))), message && (index$1.h("span", { key: 'd65ff574b22714d70fe5ffa639e2c30ee6421f6e', class: `xv-radio_msg xv-radio_msg--${message.level}` }, message.level !== 'helper' && (index$1.h("span", { key: '4fd74d962843f11a502a52a6c59265e98ca34f3f', class: "xv-radio_msg__status", "aria-hidden": "true" }, message.level === 'error' ? '!' : '⚠')), message.text)), index$1.h("slot", { key: '17d74fcbfce0e77823b830cc27c77b39af195a37', name: "info" })));
|
|
83851
83860
|
}
|
|
83852
83861
|
connectedCallback() {
|
|
83853
83862
|
var _a;
|
|
@@ -83931,7 +83940,7 @@ const XvSlider = class {
|
|
|
83931
83940
|
this.setValue(this.min);
|
|
83932
83941
|
}
|
|
83933
83942
|
render() {
|
|
83934
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83943
|
+
return (index$1.h(index$1.Host, { key: '2e43cf534f67477efd4db67dbca1ba2672f7a02b', class: { disabled: this.disabled, readonly: this.readonly } }, this.label && index$1.h("label", { key: '73240a7b31c6e8cb25b01b4365a3bb0ac314de04', class: "label" }, this.label), index$1.h("div", { key: 'ba82d622b88e96f71d0b42c82dbc6f6c5de9441b', class: "control" }, index$1.h("span", { key: '3c669e801b488294686a2c41651c90adf709040e', class: "control_label" }, this.min), index$1.h("input", { key: '46e56ec1136a8fc1b07866cd17e2145a949bf38a', type: "range", disabled: this.disabled || this.readonly, readonly: this.readonly, name: this.name, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, style: { backgroundSize: `${((this.value - this.min) * 100) / (this.max - this.min)}% 100%` } }), index$1.h("span", { key: 'c7c8270c572b3fa5ae9e78261e7b7c91df931c35', class: "control_label" }, this.max), !this.notEditable && (index$1.h("input", { key: '14a8fe399b1bb9a697748c50f925533205b54698', type: "number", disabled: this.disabled, readonly: this.readonly, name: `${this.name}-number-input`, step: this.step, min: this.min, max: this.max, value: this.value, onInput: this.handleNumberInput, onBlur: this.handleNumberBlur })))));
|
|
83935
83944
|
}
|
|
83936
83945
|
static get formAssociated() { return true; }
|
|
83937
83946
|
};
|
|
@@ -83946,7 +83955,7 @@ const XvTab = class {
|
|
|
83946
83955
|
this.loading = false;
|
|
83947
83956
|
}
|
|
83948
83957
|
render() {
|
|
83949
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83958
|
+
return (index$1.h(index$1.Host, { key: 'db1fe3d17ad9692539c3857757ed46c4e579775d', disabled: this.disabled, name: this.name }, this.loading ? index$1.h("xv-loader-v2", { size: _vars.SIZE_VAR.LG }) : index$1.h("slot", null)));
|
|
83950
83959
|
}
|
|
83951
83960
|
};
|
|
83952
83961
|
XvTab.style = xvTabCss();
|
|
@@ -83986,7 +83995,7 @@ const XvTable = class {
|
|
|
83986
83995
|
.join(' ') + ' repeat(auto-fit, minmax(0, 1fr))');
|
|
83987
83996
|
}
|
|
83988
83997
|
render() {
|
|
83989
|
-
return (index$1.h(index$1.Host, { key: '
|
|
83998
|
+
return (index$1.h(index$1.Host, { key: 'e25cec0297de32d95b43535e729d3acc6b90b8c1', class: { batchVisible: !!this.selectedCount } }, index$1.h("slot", { key: '23edca86b5a7cbfa431653c22c10e1042830d862', name: "title" }, !!this.el.title && index$1.h("h2", { key: 'ce116b0495c03bd7da6fa5518c1d135126c7c492', class: "xv-table-title" }, this.el.title)), index$1.h("slot", { key: '438196c0cc3422100f3a36476ccb295c1acc75c5', name: "toolbar" }), index$1.h("div", { key: '8bc13f6ae969472aa81ae38c824e9a217a27021e', class: "xv-table" }, index$1.h("div", { key: 'f556b8ab2c8ba7041bdf9c1d2b9e8d830dbc6fa2', class: "batch-actions" }, index$1.h(index$1.Fragment, { key: '5507bdef975f94c9066da5ea804b9595cdbf6a65' }, index$1.h("div", { key: '4c851dfbbc3490de6116ea9e6e4cdf6b08df1e70', class: "batch-actions_content" }, index$1.h("slot", { key: 'fb2cb2b78a77abcf4dca511053ce91e91051ceb8', name: "batch" })), index$1.h("p", { key: '352fd2d86f230fe3f9d1d4695765a8b7cef91e42', class: "batch-actions_count" }, !!this.selectedCount && `${this.selectedCount} ${this.selectedCount === 1 ? 'Position ausgewählt' : 'Positionen ausgewählt'}`))), index$1.h("div", { key: '996d6edf9dbc00cbff76fcad16bd5065427a79ff', class: "xv-table_wrapper" }, index$1.h("slot", { key: '12207c639e16d5a8856abcee029c541e48abdd3f' }), index$1.h("slot", { key: '3f4d36f35d88586213fcbcc30544e47d7fc7bdef', name: "footer" })), !!this.loading && (index$1.h("div", { key: '6de70b172b7a2aa1af366ae61718b00864915e42', class: "xv-table_loading" }, index$1.h("xv-loader-v2", { key: '127f728e1dab0dcbefafe9a4fb6ed34323a61d5a', size: _vars.SIZE_VAR.LG }))))));
|
|
83990
83999
|
}
|
|
83991
84000
|
componentWillLoad() {
|
|
83992
84001
|
this.setColsSizeTemplate();
|
|
@@ -84027,7 +84036,7 @@ const XvTableCell = class {
|
|
|
84027
84036
|
}
|
|
84028
84037
|
;
|
|
84029
84038
|
render() {
|
|
84030
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84039
|
+
return (index$1.h(index$1.Host, { key: 'd919bc550eb70a7d2bb3bdbde8e141b3ef9cb96a' }, index$1.h("slot", { key: 'e213a7eb508ed1e5f3cb6233020f0d42a485bfcd' })));
|
|
84031
84040
|
}
|
|
84032
84041
|
get el() { return index$1.getElement(this); }
|
|
84033
84042
|
};
|
|
@@ -84048,7 +84057,7 @@ const XvTableExpand = class {
|
|
|
84048
84057
|
};
|
|
84049
84058
|
}
|
|
84050
84059
|
render() {
|
|
84051
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84060
|
+
return (index$1.h(index$1.Host, { key: 'a07d8e8f48b6302ca4c061ccbdac3057ad04dc37' }, index$1.h("button", { key: '02af6adfacb5db524a7a929347059e5aaf930d00', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), index$1.h("slot", { key: 'cffc270cce13cdd1192d2a73b9cce71008050342', name: XV_EXPANDABLE_KEY }), index$1.h("div", { key: 'fa9c294ef6e1b48c09171b34ae7597a669f5c2f1', class: { expandableContent: true, open: this.open } }, index$1.h("slot", { key: '3fafd1e04e9b195f90d14598cd31fbb0f34a6c11' }))));
|
|
84052
84061
|
}
|
|
84053
84062
|
componentDidLoad() {
|
|
84054
84063
|
index$2.setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);
|
|
@@ -84103,7 +84112,7 @@ const XvTableRow = class {
|
|
|
84103
84112
|
}
|
|
84104
84113
|
}
|
|
84105
84114
|
render() {
|
|
84106
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84115
|
+
return (index$1.h(index$1.Host, { key: '0ffa4d4f19dbab06cc42a58418d630522fb744f2' }, this.variant !== undefined && (index$1.h("xv-table-v2-cell", { key: '790a54b1614078c4439da01ebdd166f9a76b7536', class: "cell-control" }, this.variant === 'checkbox' && (index$1.h("xv-checkbox-v2", { key: 'ee902d2a61576f1db3df071bdcf1eab04fb50502', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly, onEventChange: this.checkHandle })), this.variant === 'radio' && (index$1.h("input", { key: 'd6049bda45f8c9723bda4816b4ba59acd113ad6b', type: "radio", name: this.name, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly })))), index$1.h("slot", { key: '42a7e984c06e1ce67c9d410420831bbef22c0662' })));
|
|
84107
84116
|
}
|
|
84108
84117
|
componentWillLoad() {
|
|
84109
84118
|
this.setInitialAttrs();
|
|
@@ -84129,7 +84138,7 @@ var TABS_VATIANT;
|
|
|
84129
84138
|
// other variants will be here
|
|
84130
84139
|
})(TABS_VATIANT || (TABS_VATIANT = {}));
|
|
84131
84140
|
|
|
84132
|
-
const xvTabsCss = () => `:host(.xv-tabs){display:flex;flex-direction:column}:host(.xv-tabs) .tab-headers{position:relative;display:flex;flex-wrap:nowrap}:host(.xv-tabs) .tab-headers[hidden]{visibility:hidden}:host(.xv-tabs) .tab-headers_container{display:flex;flex:1 1 auto;white-space:nowrap;overflow-x:auto;scroll-behavior:smooth}:host(.xv-tabs) .tab-headers_container::-webkit-scrollbar{display:none}:host(.xv-tabs) .tab-headers_tab{background:none;padding:11px var(--gap-md, 16px);cursor:pointer;font:inherit;transition:border-color 0.3s ease, font-weight 0.3s ease, color 0.3s ease;position:relative;border:2px solid transparent;border-bottom-color:var(--border-border-subtle-01, #D1D1D1);background-blend-mode:multiply;color:var(--text-secondary, #515151);font-family:var(--ff-body, Work Sans), sans-serif;font-size:var(--fz-md, 14px);line-height:18px;letter-spacing:0.16px;height:40px;white-space:nowrap}:host(.xv-tabs) .tab-headers_tab:after{content:"";position:absolute;transition:background-color 0.3s ease, width 0.3s ease;top:100%;left:0;right:0;width:0;height:2px;background-color:var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:focus-visible{outline:none;border:2px solid var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:hover{border-bottom-color:var(--border-strong-01, #8B8B8B)}:host(.xv-tabs) .tab-headers_tab.active{color:var(--text-primary, #333);font-weight:700}:host(.xv-tabs) .tab-headers_tab.active:after{width:100%}:host(.xv-tabs) .tab-headers_tab.active:focus-visible{border-color:var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:disabled{color:var(--text-on-color-disabled, #8B8B8B);border-bottom-color:var(--border-disabled, #D1D1D1);cursor:not-allowed}:host(.xv-tabs) .tab-headers_tab:disabled:after{background-color:var(--border-disabled, #D1D1D1)}:host(.xv-tabs) .tab-headers_btn{outline:none;width:40px;height:40px;background:none;border:none;cursor:pointer;position:relative;transition:0.25s ease-in-out opacity}:host(.xv-tabs) .tab-headers_btn:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border:solid currentColor;border-width:0 2px 2px 0;display:inline-block;padding:4px;transform:translate(-50%, -50%) rotate(45deg)}:host(.xv-tabs) .tab-headers_btn:active{opacity:0.3}:host(.xv-tabs) .tab-headers_btn.prev:before{transform:translate(-50%, -50%) rotate(135deg)}:host(.xv-tabs) .tab-headers_btn.next:before{transform:translate(-50%, -50%) rotate(-45deg)}:host(.xv-tabs) .tab-content-wrapper{position:relative;overflow:hidden;padding:var(--gap-md, 16px) 0}:host(.xv-tabs) ::slotted(xv-tab-v2){display:none;width:100%;pointer-events:none}:host(.xv-tabs) ::slotted(xv-tab-v2.active){display:contents;pointer-events:auto}:host(.xv-tabs) .xv-tabs_empty{display:block;text-align:center;margin:20px auto;font-size:var(--fz-xl);color:var(--text-primary)}:host([variant=glued]) .tab-headers_tab{border:none;background-color:var(--layer-accent-01, #F7F7F7)}:host([variant=glued]) .tab-headers_tab:not(:last-of-type){border-right:1px solid var(--border-strong-01)}:host([variant=glued]) .tab-headers_tab:after{top:0}:host([variant=glued]) .tab-headers_tab.active{border-right:none;background-color:transparent}:host([loading]){display:flex;align-items:center;justify-content:center;min-height:300px}`;
|
|
84141
|
+
const xvTabsCss = () => `:host(.xv-tabs){display:flex;flex-direction:column}:host(.xv-tabs) .tab-headers{position:relative;display:flex;flex-wrap:nowrap}:host(.xv-tabs) .tab-headers[hidden]{visibility:hidden}:host(.xv-tabs) .tab-headers_container{display:flex;flex:1 1 auto;white-space:nowrap;overflow-x:auto;scroll-behavior:smooth}:host(.xv-tabs) .tab-headers_container::-webkit-scrollbar{display:none}:host(.xv-tabs) .tab-headers_tab{background:none;padding:11px var(--gap-md, 16px);cursor:pointer;font:inherit;transition:border-color 0.3s ease, font-weight 0.3s ease, color 0.3s ease;position:relative;border:2px solid transparent;border-bottom-color:var(--border-border-subtle-01, #D1D1D1);background-blend-mode:multiply;color:var(--text-secondary, #515151);font-family:var(--ff-body, Work Sans), sans-serif;font-size:var(--fz-md, 14px);line-height:18px;letter-spacing:0.16px;height:40px;white-space:nowrap}:host(.xv-tabs) .tab-headers_tab:after{content:"";position:absolute;transition:background-color 0.3s ease, width 0.3s ease;top:100%;left:0;right:0;width:0;height:2px;background-color:var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:focus-visible{outline:none;border:2px solid var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:hover{border-bottom-color:var(--border-strong-01, #8B8B8B)}:host(.xv-tabs) .tab-headers_tab.active{color:var(--text-primary, #333);font-weight:700}:host(.xv-tabs) .tab-headers_tab.active:after{width:100%}:host(.xv-tabs) .tab-headers_tab.active:focus-visible{border-color:var(--interactive-01, #273435)}:host(.xv-tabs) .tab-headers_tab:disabled{color:var(--text-on-color-disabled, #8B8B8B);border-bottom-color:var(--border-disabled, #D1D1D1);cursor:not-allowed}:host(.xv-tabs) .tab-headers_tab:disabled:after{background-color:var(--border-disabled, #D1D1D1)}:host(.xv-tabs) .tab-headers_btn{outline:none;width:40px;height:40px;background:none;border:none;cursor:pointer;position:relative;transition:0.25s ease-in-out opacity}:host(.xv-tabs) .tab-headers_btn:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border:solid currentColor;border-width:0 2px 2px 0;display:inline-block;padding:4px;transform:translate(-50%, -50%) rotate(45deg)}:host(.xv-tabs) .tab-headers_btn:active{opacity:0.3}:host(.xv-tabs) .tab-headers_btn.prev:before{transform:translate(-50%, -50%) rotate(135deg)}:host(.xv-tabs) .tab-headers_btn.next:before{transform:translate(-50%, -50%) rotate(-45deg)}:host(.xv-tabs) .tab-content-wrapper{position:relative;overflow:hidden;overflow:clip visible;padding:var(--gap-md, 16px) 0}:host(.xv-tabs) ::slotted(xv-tab-v2){display:none;width:100%;pointer-events:none}:host(.xv-tabs) ::slotted(xv-tab-v2.active){display:contents;pointer-events:auto}:host(.xv-tabs) .xv-tabs_empty{display:block;text-align:center;margin:20px auto;font-size:var(--fz-xl);color:var(--text-primary)}:host([variant=glued]) .tab-headers_tab{border:none;background-color:var(--layer-accent-01, #F7F7F7)}:host([variant=glued]) .tab-headers_tab:not(:last-of-type){border-right:1px solid var(--border-strong-01)}:host([variant=glued]) .tab-headers_tab:after{top:0}:host([variant=glued]) .tab-headers_tab.active{border-right:none;background-color:transparent}:host([loading]){display:flex;align-items:center;justify-content:center;min-height:300px}`;
|
|
84133
84142
|
|
|
84134
84143
|
const XvTabs = class {
|
|
84135
84144
|
constructor(hostRef) {
|
|
@@ -84470,12 +84479,12 @@ const XvTagCombobox = class {
|
|
|
84470
84479
|
const ariaOwns = suggestionsVisible ? `${this.uid}-listbox` : undefined;
|
|
84471
84480
|
const activedesc = this.highlighted >= 0 ? this.optionId(this.highlighted) : undefined;
|
|
84472
84481
|
const message = index$2.resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
84473
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84482
|
+
return (index$1.h(index$1.Host, { key: '6f16fcc6d7c8e5bfb62b3c99fd2879305d3b20f0', class: "xv-combobox", part: "root", size: this.size }, this.label && index$1.h("label", { key: '5b7815c506f5d18caff61108de1d2b1292150d2c', class: "label" }, this.label), index$1.h("div", { key: '1df84f66117078f5cde8b9ed36814066f15cbf18', class: {
|
|
84474
84483
|
'control': true,
|
|
84475
84484
|
'control--disabled': this.disabled,
|
|
84476
84485
|
'control--error': !!this.error,
|
|
84477
84486
|
'control--readonly': !!this.readonly,
|
|
84478
|
-
}, onClick: () => this.blockClick() }, index$1.h("div", { key: '
|
|
84487
|
+
}, onClick: () => this.blockClick() }, index$1.h("div", { key: '2475b5d208b268b4d1177e67d8017c050884b643', class: "control-chips", role: "list" }, this.selected.map((s, i) => (index$1.h("xv-tag-v2", { role: "listitem", part: "chip", "data-value": s.value, size: this.COMPARE_TAG_SIZE[this.size], disabled: this.disabled, bg: (s === null || s === void 0 ? void 0 : s.bg) || 'var(--layer-accent-01, #F7F7F7)', color: (s === null || s === void 0 ? void 0 : s.color) || 'var(--text-primary, #333)', closeable: !this.readonly, onCloseClick: ({ detail }) => this.removeTag(i, detail) }, s.label))), index$1.h("input", { key: '8bf2dfd2cf3a13a40ce8c872e792aabeae974275', ref: (el) => (this.inputEl = el), class: "control-input", readonly: this.readonly, placeholder: this.selected.length ? '' : this.placeholder, value: this.inputValue, onInput: (e) => this.onInput(e), onKeyDown: (e) => this.onKeyDown(e), onFocus: () => { this.onOpen(); this.recomputeFiltered(); }, "aria-autocomplete": "list", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": ariaOwns, "aria-activedescendant": activedesc, disabled: this.disabled })), this.loading && (index$1.h("span", { key: '9971a2126418a3cd0965e536ea970673477205e4', class: "control-loader", part: "loader", "aria-hidden": "true" }, index$1.h("xv-loader-v2", { key: '4916c34b4f3ea8e6d08d260fe796a12ba6f9f5e9', size: "sm", variant: "horizontal" })))), message && (index$1.h("p", { key: '8fd58d0996b872238f1c830e8252450cd0a966ef', class: { message: true, [message.level]: true } }, message.text)), suggestionsVisible && (index$1.h("ul", { key: 'f62c724966525f012e014605181fbcfee1c4bb99', id: `${this.uid}-listbox`, class: "suggestions", role: "listbox", part: "listbox" }, this.filtered.map((opt, idx) => (index$1.h("li", { id: this.optionId(idx), class: { 'suggestions-opt': true, 'suggestions-opt--highlight': idx === this.highlighted }, role: "option", "aria-selected": idx === this.highlighted, onMouseEnter: () => this.onOptionMouseEnter(idx), onMouseDown: (ev) => ev.preventDefault(), onClick: () => this.selectOption(opt) }, index$1.h("div", { class: "suggestions-opt-content" }, opt.bg ? index$1.h("span", { class: "suggestions-opt-content--color", style: { background: opt.bg } }) : null, index$1.h("span", { class: "suggestions-opt-content--label" }, this.highlightLabel(opt.label).map((seg, i) => typeof seg === 'string' ? index$1.h("span", { key: i }, seg) : index$1.h("strong", { key: i }, seg.match)))))))))));
|
|
84479
84488
|
}
|
|
84480
84489
|
get host() { return index$1.getElement(this); }
|
|
84481
84490
|
static get watchers() { return {
|
|
@@ -84507,7 +84516,7 @@ const XvTag = class {
|
|
|
84507
84516
|
this.closeClick.emit(e);
|
|
84508
84517
|
}
|
|
84509
84518
|
render() {
|
|
84510
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84519
|
+
return (index$1.h(index$1.Host, { key: '66c331ec827e9db8f4186173e7b483ce39a1e98a', style: { color: this.color, background: this.bg }, class: `xv-tag ${this.disabled ? 'disabled' : ''} ${this.size}` }, index$1.h("div", { key: 'e929cb0c8980278d0a04cf73be79ab42b91f8b9b', class: "xv-tag_content", part: "details-content" }, index$1.h("slot", { key: '4a3257c45cdd195b3021c9fc4ddb6dbed26b7ec7' })), this.closeable && (index$1.h("button", { key: 'b0f85ea8f862063698110e19d2e3724726a1053e', onClick: this.closeHandler.bind(this), class: "xv-tag_close" }))));
|
|
84511
84520
|
}
|
|
84512
84521
|
};
|
|
84513
84522
|
XvTag.style = xvTagCss();
|
|
@@ -84547,13 +84556,13 @@ const XvTextInput = class {
|
|
|
84547
84556
|
}
|
|
84548
84557
|
render() {
|
|
84549
84558
|
const message = index$2.resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
84550
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84559
|
+
return (index$1.h(index$1.Host, { key: '70c696d506fb2a9fda2998f2081a0bb9fc06f946', class: { disabled: !!this.disabled } }, index$1.h("label", { key: 'c4aeb38e4cf5af8160ca0fd1741aa800311857bb', class: "control" }, this.label && index$1.h("span", { key: 'ba2aa620344ea08ceefedc9c98f5554c23de70b4', class: "control_label" }, this.label), index$1.h("div", { key: '522fe88401a97f8fe64ec05f1ba85ca559486ebd', class: {
|
|
84551
84560
|
'control_input': true,
|
|
84552
84561
|
readonly: !!this.readonly,
|
|
84553
84562
|
[this.size]: true,
|
|
84554
84563
|
error: !!this.error,
|
|
84555
84564
|
warning: !!this.warning,
|
|
84556
|
-
} }, index$1.h("input", { key: '
|
|
84565
|
+
} }, index$1.h("input", { key: '571b9d5daf77647c0aa00cf8c68aa598c67e4d4e', autocomplete: this.autocomplete, type: (this.type === 'password' && this.isPasswordVisible && 'text') || this.type, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onInput: this.handleInput, name: this.name, value: this.value }), index$1.h("div", { key: '7d1a6f29876f24063ae4ee5284f025ab08add062', class: "control_input__icons" }, this.loading && index$1.h("xv-loader-v2", { key: 'c35c0e3d9e389758174f4cbcf5c59bad45e44bd8', size: _vars.SIZE_VAR.XS }), this.clearable && this.value && !this.loading && !this.disabled && !this.readonly && (index$1.h("button", { key: 'dbec0dd60c3f18519b1e2845562729c2aeaffc95', type: "button", class: "status-icon clear", "aria-label": "Clear", onClick: this.handleClear }, "\u00D7")), !!this.error ? (index$1.h("span", { class: "status-icon error", "aria-hidden": "true" }, "!")) : !!this.warning ? (index$1.h("span", { class: "status-icon warning", "aria-hidden": "true" }, "\u26A0")) : null, this.type === 'password' && (index$1.h("button", { key: 'cdc93b69246fb39818b8a92174fdb80a666742ca', onClick: this.togglePassword, disabled: this.disabled, class: "status-icon" }, index$1.h("svg", { key: '427c650f159d426504df2cca8c918617c52c8cdc', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512", width: 16, height: 16 }, this.isPasswordVisible ? (index$1.h("path", { fill: "currentColor", d: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z" })) : (index$1.h("path", { fill: "currentColor", d: "M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z" })))))))), message && (index$1.h("p", { key: '9fad502dd158e1183aa5d3a4af33a273177e39e9', class: { message: true, [message.level]: true } }, message.text))));
|
|
84557
84566
|
}
|
|
84558
84567
|
static get formAssociated() { return true; }
|
|
84559
84568
|
};
|
|
@@ -84591,12 +84600,12 @@ const XvTextarea = class {
|
|
|
84591
84600
|
}
|
|
84592
84601
|
render() {
|
|
84593
84602
|
const message = index$2.resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
84594
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84603
|
+
return (index$1.h(index$1.Host, { key: '1b34aa3fa759184b13a3765ee5d835ade1c9a5e5', class: { disabled: !!this.disabled } }, index$1.h("label", { key: 'fc00e4420e86ac6514a7c74a0aa3f8184072bd9d', class: "control" }, (this.label || this.max) && (index$1.h("p", { key: '9a1a28e073cda3db45e4eb690e1e789fda374a87', class: "control_label" }, index$1.h("span", { key: '118cd75213653b2e653291662daa164905d82ba7' }, this.label, this.info && index$1.h("xv-tooltip-v2", { key: '26c0c337fd455c42a6222b8e5f8e93e6554cf3e3', message: this.info })), this.max !== undefined && !this.counterHide && (index$1.h("span", { key: '83ddc6acf8b7131252226c13d05e645e7d4fa5dc', class: "control_label__count" }, this.value.length || 0, "/", this.max)))), index$1.h("div", { key: '21222ef24619058547adb104940b757656ebeae9', class: {
|
|
84595
84604
|
'control_input': true,
|
|
84596
84605
|
readonly: !!this.readonly,
|
|
84597
84606
|
error: !!this.error,
|
|
84598
84607
|
warning: this.warning !== undefined,
|
|
84599
|
-
} }, index$1.h("textarea", { key: '
|
|
84608
|
+
} }, index$1.h("textarea", { key: '730e25c3af0f5b3670fba8f5401577c473a31774', class: { 'no-resize': !!this.noResize }, name: this.name, rows: this.rows, value: this.value, maxLength: this.max, disabled: this.disabled, readOnly: this.readonly, placeholder: this.placeholder, onInput: this.onInput }), index$1.h("div", { key: '8b46543517eda0c0d04934278af5e755b43221d1', class: "control_input__icons" }, this._renderIcon()))), message && (index$1.h("p", { key: '56d77cb863e9b0e5303188915a3bbefa02369670', class: { message: true, [message.level]: true } }, message.text))));
|
|
84600
84609
|
}
|
|
84601
84610
|
_renderIcon() {
|
|
84602
84611
|
if (this.loading)
|
|
@@ -84649,7 +84658,7 @@ const XvTile = class {
|
|
|
84649
84658
|
this.checked = !this.checked;
|
|
84650
84659
|
}
|
|
84651
84660
|
render() {
|
|
84652
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84661
|
+
return (index$1.h(index$1.Host, { key: '3b55e3bf2dc276409ba12b48d9d56c623bcd8e6b', class: "xv-tile--host" }, index$1.h("label", { key: 'f40529e84f7787da7e8a4a03b30d132088e03a26', htmlFor: this.variant === 'selectable' ? this.inputId : undefined, class: {
|
|
84653
84662
|
[this.el.className]: !!this.el.className,
|
|
84654
84663
|
'xv-tile': true,
|
|
84655
84664
|
[`xv-tile--variant-${this.variant}`]: !!this.variant,
|
|
@@ -84657,7 +84666,7 @@ const XvTile = class {
|
|
|
84657
84666
|
'xv-tile--disabled': !!this.disabled,
|
|
84658
84667
|
'selected': !!this.checked,
|
|
84659
84668
|
'xv-tile--error': !!this.error,
|
|
84660
|
-
} }, index$1.h("div", { key: '
|
|
84669
|
+
} }, index$1.h("div", { key: 'e6dcc69a9f119bf1dbddd9160bc2609e1f64c4b8', class: "xv-tile_content" }, this.label && index$1.h("p", { key: '72d8fa5ee2264576fa7c22075c1e9e538088a1e9', class: "xv-tile_content__title" }, this.label), index$1.h("slot", { key: '79ee90785998bff7944eb8c23d79f781b4fe5667' })), this.variant === 'selectable' && (index$1.h("div", { key: '73608ba8e4b47b4851bae6988c035f6f35725231', class: "xv-tile_control" }, this.multiple ? (index$1.h("input", { type: "checkbox", id: this.inputId, disabled: this.disabled || this.readonly, readonly: this.readonly, onChange: this.handleChange, name: this.name, value: this.value, checked: this.checked })) : (index$1.h("input", { type: "radio", id: this.inputId, disabled: this.disabled || this.readonly, readonly: this.readonly, onChange: this.handleChange, name: this.name, value: this.value, checked: this.checked })))), (this.variant === 'clickable' || this.variant === 'expandable') && (index$1.h("div", { key: '3eac5df0d7ec9a4ef0bddfa72096544bbdfd8052', class: "xv-tile_footer" }, index$1.h("button", { key: 'bea298dd18c5c6eaf1706cba27871f391221345d', class: { 'xv-tile_footer__icon': true, [`icon--${this.variant}`]: true, open: this.checked } }))), index$1.h("div", { key: '77f67ca201073d03e4ef4f3c8430de38e7a1751e', class: { 'xv-tile_expandable': true, open: this.checked } }, index$1.h("slot", { key: 'c9c91da2e3ce592cbb49b81df4df56742cfe735e', name: "expandable" })))));
|
|
84661
84670
|
}
|
|
84662
84671
|
get el() { return index$1.getElement(this); }
|
|
84663
84672
|
};
|
|
@@ -84689,7 +84698,7 @@ const XvToggle = class {
|
|
|
84689
84698
|
};
|
|
84690
84699
|
}
|
|
84691
84700
|
render() {
|
|
84692
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84701
|
+
return (index$1.h(index$1.Host, { key: '8a134c4ed256720b3011a3dfb780ecdad4c1159a', class: { 'xv-toggle': true, disabled: this.disabled, readonly: !!this.readonly, block: !!this.block } }, this.label && index$1.h("span", { key: '455b79385f231f33d6a83672f6b0bbcff16ac1af', class: "label" }, this.label), index$1.h("label", { key: 'dcada733ff15eee1a7fe92910d63d7c17a80ce97', class: "control" }, index$1.h("slot", { key: 'adbb4c69bb26fd5f6a8317e452fa343018a08085', name: "before" }), index$1.h("div", { key: '976d6a3a50beee346150400d3159bd14e0b121a8', class: "control_input" }, index$1.h("input", { key: '2e241ca7a9e5153b0ac8bd5bb9267eb0ce13dc71', type: "checkbox", readonly: this.readonly, name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.readonly, onChange: this.onChange }), index$1.h("span", { key: 'cd873d475bd31a8c8dac4c69168fcaf5cf2a205a', class: "toggle" })), index$1.h("slot", { key: '6cd60b34ffe68bce197252d6d641dbb71e18f033', name: "after" }))));
|
|
84693
84702
|
}
|
|
84694
84703
|
static get formAssociated() { return true; }
|
|
84695
84704
|
};
|
|
@@ -84766,7 +84775,7 @@ const XvToggleTip = class {
|
|
|
84766
84775
|
}
|
|
84767
84776
|
;
|
|
84768
84777
|
render() {
|
|
84769
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84778
|
+
return (index$1.h(index$1.Host, { key: '2266af11ac22a3e63f32eb0cf0e075f8355dbe7e', class: "xv-toggle-tip" }, index$1.h("div", { key: '874847aaedc050bb1a8d463e446698d945fddd3b', class: { 'trigger': true, 'trigger--block': this.block }, role: "button", tabindex: "0", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": "popover", onClick: () => this.setPopover(!this.open), ref: (el) => (this.triggerEl = el) }, index$1.h("slot", { key: '34135c6404fab2869e5a6b0dfe4b7c8284adfd0c', name: "trigger" }, index$1.h("svg", { key: '8f9effc3c0596d691f3783e83d3fc37b37a24830', class: "trigger_icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, index$1.h("path", { key: '8069d1ca8c78eaa1cd0b20deba7a73f5a9bd45fe', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))), index$1.h("div", { key: 'a8df2504cb43bb72da950e576d990a337a78b641', class: { popover: true, autoSize: !!this.autoSize }, role: "tooltip", tabindex: "-1", ref: (el) => (this.popoverEl = el) }, index$1.h("div", { key: '8f0e2a7c8cdcaff22d26be7b9c6668c0049fb9e9', class: "popover-tip", part: "tip", "data-popper-arrow": "" }), index$1.h("div", { key: 'c07c82994f213a29dea66830270601362eaec466', class: "popover-content" }, index$1.h("slot", { key: '6532515036f0c9cd95d3c3b79e248bb733d8225b', name: "header" }), index$1.h("slot", { key: 'fa35bed4fcf2b854d222c15e21447bb26318f3fa', name: "body" }), index$1.h("slot", { key: 'db47b9a5d40ee89c75e1bc5c339521d9f8c6ce0f', name: "footer" })))));
|
|
84770
84779
|
}
|
|
84771
84780
|
disconnectedCallback() {
|
|
84772
84781
|
this.destroyPopper();
|
|
@@ -84821,11 +84830,11 @@ const XvTooltip = class {
|
|
|
84821
84830
|
this.destroyTooltip();
|
|
84822
84831
|
}
|
|
84823
84832
|
render() {
|
|
84824
|
-
return (index$1.h(index$1.Host, { key: '
|
|
84833
|
+
return (index$1.h(index$1.Host, { key: '0ca86b28135c245b27a900cdace4f34079d3a774', role: "tooltip", class: {
|
|
84825
84834
|
'xv-tooltip-wrapper': true,
|
|
84826
84835
|
[`xv-tooltip-wrapper__block`]: !!this.block,
|
|
84827
84836
|
[`xv-tooltip-wrapper__dashed`]: !!this.dashed,
|
|
84828
|
-
} }, index$1.h("slot", { key: '
|
|
84837
|
+
} }, index$1.h("slot", { key: '07d9353bcbe52917d308a79e1d73a09ecf395756' }, index$1.h("svg", { key: '34f86692bccfaa0ba2ac48804f4e3d33535ac425', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, index$1.h("path", { key: 'c4ea0208a300a5d21333e405419337e99c11c669', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))));
|
|
84829
84838
|
}
|
|
84830
84839
|
get el() { return index$1.getElement(this); }
|
|
84831
84840
|
};
|
package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css
CHANGED
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
gap: 8px;
|
|
19
|
+
box-sizing: border-box;
|
|
19
20
|
width: 100%;
|
|
21
|
+
padding: var(--overflow-menu-item-padding);
|
|
20
22
|
color: inherit;
|
|
21
23
|
font: inherit;
|
|
22
24
|
text-decoration: none;
|
|
@@ -71,6 +73,10 @@
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
/* Ghost (non-interactive content, e.g. notifications) */
|
|
76
|
+
:host([variant=ghost]) {
|
|
77
|
+
padding: var(--overflow-menu-item-padding);
|
|
78
|
+
}
|
|
79
|
+
|
|
74
80
|
:host([variant=ghost]),
|
|
75
81
|
:host([variant=ghost]:hover),
|
|
76
82
|
:host([variant=ghost]:active) {
|
|
@@ -8,6 +8,22 @@
|
|
|
8
8
|
padding-block: var(--spacing-03);
|
|
9
9
|
padding-inline-start: var(--spacing-02);
|
|
10
10
|
}
|
|
11
|
+
:host .page-input {
|
|
12
|
+
align-self: center;
|
|
13
|
+
box-sizing: content-box;
|
|
14
|
+
font: inherit;
|
|
15
|
+
color: inherit;
|
|
16
|
+
text-align: center;
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
border: 1px solid var(--border-subtle-01);
|
|
19
|
+
padding: var(--spacing-02) var(--spacing-03);
|
|
20
|
+
appearance: textfield;
|
|
21
|
+
-moz-appearance: textfield;
|
|
22
|
+
}
|
|
23
|
+
:host .page-input::-webkit-inner-spin-button, :host .page-input::-webkit-outer-spin-button {
|
|
24
|
+
-webkit-appearance: none;
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
11
27
|
:host .block {
|
|
12
28
|
display: inline-flex;
|
|
13
29
|
align-items: center;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { SIZE_VAR } from "../../types/enum";
|
|
3
|
+
const PAGE_SELECT_LIMIT = 100;
|
|
3
4
|
export class XvPagination {
|
|
4
5
|
constructor() {
|
|
5
6
|
/*
|
|
@@ -31,6 +32,14 @@ export class XvPagination {
|
|
|
31
32
|
return;
|
|
32
33
|
this.handlePageChange(value);
|
|
33
34
|
};
|
|
35
|
+
this.handlePageInputChange = (e) => {
|
|
36
|
+
const input = e.target;
|
|
37
|
+
const value = Math.trunc(Number(input.value));
|
|
38
|
+
const page = input.value === '' || isNaN(value) ? this.page : Math.min(Math.max(value, 1), this.total);
|
|
39
|
+
input.value = `${page}`;
|
|
40
|
+
if (page !== this.page)
|
|
41
|
+
this.handlePageChange(page);
|
|
42
|
+
};
|
|
34
43
|
this.handleItemsPerPageChange = (e) => {
|
|
35
44
|
const value = Number(e.target.value);
|
|
36
45
|
if (isNaN(value))
|
|
@@ -106,7 +115,7 @@ export class XvPagination {
|
|
|
106
115
|
this.observer.disconnect();
|
|
107
116
|
}
|
|
108
117
|
render() {
|
|
109
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: '223f480b119c7cf8889c5eadbaf76c922ef32a29', class: { block: !!this.block, [this.currentVariant]: true, [this.size]: !!this.size } }, this.currentVariant === 'full' && (h("div", { key: '392c73e7d447835de320252e8cb06f6701f47b7d', class: "block" }, h("select", { key: '510004c0a74f06930f75c573eaefa69dcb885e8b', class: "options-select", name: "options", onChange: this.handleItemsPerPageChange }, this.pageSizeOptions.map((v) => h("option", { selected: v === this.itemsPerPage, value: v }, v))))), this.currentVariant === 'full' && (h("span", { key: '396b19523f79318aceb3bd61e3c930dfe2fd24ec', class: "block block_full" }, `${(this.page - 1) * this.itemsPerPage + 1} – ${Math.min(this.page * this.itemsPerPage, this.totalItems)} von ${this.totalItems} Einträgen`)), this.currentVariant === 'full' && (h("div", { key: '568521165bfabaa38a2c7cec1eb5ed3b2712eb27', class: "block" }, this.total > PAGE_SELECT_LIMIT ? (h("input", { class: "page-input", type: "number", name: "pages", min: 1, max: this.total, value: this.page, style: { width: `${`${this.total}`.length + 2}ch` }, onChange: this.handlePageInputChange })) : (h("select", { class: "options-select", name: "pages", onChange: this.handlePageSelectChange }, Array.from({ length: this.total }, (_, i) => (h("option", { selected: this.page === i + 1, value: i + 1 }, i + 1))))), h("span", { key: '72815bb27828c594fe6f6bb8957cc7f3e0d0bea8' }, "von ", this.total, " Seiten"))), this.currentVariant === 'compact' && h("span", { key: '48bdb5f463c54b3b6c9f17b8a0153da9884f8912', class: "block" }, "Seite ", this.page), h("xv-button-v2", { key: '39c199a7fba71658310b713e7918bcbc297f9507', variant: "ghost", size: this.size, onClick: () => this.handlePageChange(this.page - 1), disabled: this.page <= 1 }, h("span", { key: 'e68f6615d3c287f5dd9371585d4d3fd8bb9a5098', slot: "icon-left", class: "icon icon_prev" })), this.currentVariant === 'regular' && (h("ul", { key: 'c0645a151fe3609991a050b4b6cae6de2515bdaf', class: "list" }, this.visiblePagesWithDots.map((page) => (h("li", { class: { active: this.page === page } }, page === 'dots-start' ? (h("div", { class: "list_dots" }, h("xv-button-v2", { variant: "ghost", size: this.size, tabindex: -1 }, h("span", { slot: "icon-left", class: "list_dots__icon" }, "...")), h("select", { name: "start", onChange: this.handlePageSelectChange }, Array.from({ length: this.page - 3 }, (_, i) => (h("option", { value: i + 2 }, i + 2)))))) : page === 'dots-end' ? (h("div", { class: "list_dots" }, h("xv-button-v2", { variant: "ghost", size: this.size, tabindex: -1 }, h("span", { slot: "icon-left", class: "list_dots__icon" }, "...")), h("select", { name: "end", onChange: this.handlePageSelectChange }, Array.from({ length: this.total - (this.page + 2) }, (_, i) => (h("option", { value: i + this.page + 2 }, i + this.page + 2)))))) : (h("xv-button-v2", { variant: "ghost", size: this.size, disabled: this.page === page, onClick: () => this.handlePageChange(page) }, h("span", { class: "list_page", slot: "icon-left" }, page)))))))), h("xv-button-v2", { key: '530752caee9627b253cb088f8be35ee7c4807e9b', variant: "ghost", size: this.size, onClick: () => this.handlePageChange(this.page + 1), disabled: this.page >= this.total }, h("span", { key: 'e0fe04195662ba15dd761136720b549c6453236f', slot: "icon-left", class: "icon icon_next" }))));
|
|
110
119
|
}
|
|
111
120
|
static get is() { return "xv-pagination"; }
|
|
112
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class XvProgressIndicatorItem {
|
|
|
5
5
|
this.status = PROGRESS_ITEM_STATUS.NO_STARTED;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '6950cd3a200af0f88f77eab66b2d62c1d0fe0a45', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: '1780938006880addda04b02ff94c6dc149c51f95', class: "line" }), h("span", { key: 'c7f8dddf319a624f6b76cb4dbb6b7af396fad07e', class: "icon" }, h("svg", { key: '593c33a32cf50d57050cf65aef51204cc333f119', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: '5278ea6e05dd7b2a1d683db83e7d1b1fa2a39eb1', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: 'abec534270053908b6f5a637dc2340de47a2dfad', class: "label" }, h("slot", { key: 'f773c9a671737e379aed5c3975fe11d2f815a770' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "xv-progress-indicator-v2-item"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,7 +82,7 @@ export class XvProgressIndicator {
|
|
|
82
82
|
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'ba0b0a63b6056b0f52de42c3077ff30c824d2016', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("div", { key: '66aa5be8472d465335e38cd2897fb3d483189fba', class: "mobile-header" }, h("span", { key: 'af5255fd1962569f93b9af6d308fd3c602d80fdf', class: "mobile-label" }, this.currentLabel), h("span", { key: '8da6fbcddf1ca1988d6363d9d2fd394f45bdba62', class: "mobile-counter" }, this.currentStep, "/", this.total)), h("div", { key: '0c648a0083ef2efa2620e91f44b899744f356294', class: "items" }, h("slot", { key: 'c425ab2b1be79ab76aeeb1c6422738dec3a5a87a' }))));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "xv-progress-indicator-v2"; }
|
|
88
88
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,12 +25,12 @@ export class XvRadio {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const message = resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
28
|
-
return (h("div", { key: '
|
|
28
|
+
return (h("div", { key: '0cb1db2112f70bd71f8cd8d978537052e7013368', class: {
|
|
29
29
|
'xv-radio': true,
|
|
30
30
|
'xv-radio--reverse': this.reverse,
|
|
31
31
|
'xv-radio--block': this.block,
|
|
32
32
|
[`xv-radio--size-${this.size}`]: !!this.size,
|
|
33
|
-
} }, this.label && h("p", { key: '
|
|
33
|
+
} }, this.label && h("p", { key: 'a04b6987663bc35bed28c47c7cadcee1f26926fd', class: "xv-radio_label" }, this.label), h("label", { key: '6e54154c57d4e77f4315ba7bfc8c784bf143531b', class: { 'xv-radio_container': true, disabled: this.disabled } }, h("div", { key: 'fa8ba71aab04f520712995bf23dd0958eef437af', class: { 'xv-radio_input': true, 'xv-radio_input--error': !!this.error || this.error === '' } }, h("input", { key: '0e0e25dd52d545ad5bea62c023d014cc5d866ac2', ref: el => (this.inputEl = el), type: "radio", name: this.name, value: this.value, checked: this.checked, readonly: this.readonly, disabled: this.disabled }), h("span", { key: 'b6fae9d6d7520c42c5f2c1acf3b1ec235f3073b8', class: "xv-radio_input__mark" })), h("span", { key: '926c3cd8248b5346a5c72b0d1c2b7d206ea94a0d', class: "xv-radio_container__label" }, h("slot", { key: '74ccc7ec580d8cb4a9134143560f4bee1e0b2e9b' }))), message && (h("span", { key: 'd65ff574b22714d70fe5ffa639e2c30ee6421f6e', class: `xv-radio_msg xv-radio_msg--${message.level}` }, message.level !== 'helper' && (h("span", { key: '4fd74d962843f11a502a52a6c59265e98ca34f3f', class: "xv-radio_msg__status", "aria-hidden": "true" }, message.level === 'error' ? '!' : '⚠')), message.text)), h("slot", { key: '17d74fcbfce0e77823b830cc27c77b39af195a37', name: "info" })));
|
|
34
34
|
}
|
|
35
35
|
connectedCallback() {
|
|
36
36
|
var _a;
|
|
@@ -38,7 +38,7 @@ export class XvSlider {
|
|
|
38
38
|
this.setValue(this.min);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '2e43cf534f67477efd4db67dbca1ba2672f7a02b', class: { disabled: this.disabled, readonly: this.readonly } }, this.label && h("label", { key: '73240a7b31c6e8cb25b01b4365a3bb0ac314de04', class: "label" }, this.label), h("div", { key: 'ba82d622b88e96f71d0b42c82dbc6f6c5de9441b', class: "control" }, h("span", { key: '3c669e801b488294686a2c41651c90adf709040e', class: "control_label" }, this.min), h("input", { key: '46e56ec1136a8fc1b07866cd17e2145a949bf38a', type: "range", disabled: this.disabled || this.readonly, readonly: this.readonly, name: this.name, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, style: { backgroundSize: `${((this.value - this.min) * 100) / (this.max - this.min)}% 100%` } }), h("span", { key: 'c7c8270c572b3fa5ae9e78261e7b7c91df931c35', class: "control_label" }, this.max), !this.notEditable && (h("input", { key: '14a8fe399b1bb9a697748c50f925533205b54698', type: "number", disabled: this.disabled, readonly: this.readonly, name: `${this.name}-number-input`, step: this.step, min: this.min, max: this.max, value: this.value, onInput: this.handleNumberInput, onBlur: this.handleNumberBlur })))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "xv-slider-v2"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,7 +22,7 @@ export class XvTableCell {
|
|
|
22
22
|
}
|
|
23
23
|
;
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'd919bc550eb70a7d2bb3bdbde8e141b3ef9cb96a' }, h("slot", { key: 'e213a7eb508ed1e5f3cb6233020f0d42a485bfcd' })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "xv-table-v2-cell"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class XvTableExpand {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'a07d8e8f48b6302ca4c061ccbdac3057ad04dc37' }, h("button", { key: '02af6adfacb5db524a7a929347059e5aaf930d00', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: 'cffc270cce13cdd1192d2a73b9cce71008050342', name: XV_EXPANDABLE_KEY }), h("div", { key: 'fa9c294ef6e1b48c09171b34ae7597a669f5c2f1', class: { expandableContent: true, open: this.open } }, h("slot", { key: '3fafd1e04e9b195f90d14598cd31fbb0f34a6c11' }))));
|
|
14
14
|
}
|
|
15
15
|
componentDidLoad() {
|
|
16
16
|
setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);
|
|
@@ -42,7 +42,7 @@ export class XvTableRow {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '0ffa4d4f19dbab06cc42a58418d630522fb744f2' }, this.variant !== undefined && (h("xv-table-v2-cell", { key: '790a54b1614078c4439da01ebdd166f9a76b7536', class: "cell-control" }, this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: 'ee902d2a61576f1db3df071bdcf1eab04fb50502', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly, onEventChange: this.checkHandle })), this.variant === 'radio' && (h("input", { key: 'd6049bda45f8c9723bda4816b4ba59acd113ad6b', type: "radio", name: this.name, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly })))), h("slot", { key: '42a7e984c06e1ce67c9d410420831bbef22c0662' })));
|
|
46
46
|
}
|
|
47
47
|
componentWillLoad() {
|
|
48
48
|
this.setInitialAttrs();
|