xv-webcomponents 1.16.4 → 1.16.6-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.
Files changed (58) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/xv-accordion-v2_45.cjs.entry.js +3021 -255
  3. package/dist/cjs/xv-header-next.cjs.entry.js +1 -1
  4. package/dist/cjs/xv-mega-menu-next.cjs.entry.js +2 -2
  5. package/dist/cjs/xv-webcomponents.cjs.js +1 -1
  6. package/dist/collection/components/xv-data-table/_vars.js +1 -0
  7. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +42 -0
  8. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +23 -10
  9. package/dist/collection/components/xv-data-table/xv-data-table.js +170 -1
  10. package/dist/collection/components/xv-datepicker/xv-datepicker.js +6 -4
  11. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
  12. package/dist/collection/components/xv-dropdown/xv-dropdown.js +1 -1
  13. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +1 -1
  14. package/dist/collection/components/xv-footer/xv-footer.js +1 -1
  15. package/dist/collection/components/xv-header/xv-header.js +1 -1
  16. package/dist/collection/components/xv-header-next/xv-header-next.js +1 -1
  17. package/dist/collection/components/xv-image-viewer/xv-image-viewer.js +1 -1
  18. package/dist/collection/components/xv-link/xv-link.js +1 -1
  19. package/dist/collection/components/xv-mega-menu/xv-mega-menu.js +2 -2
  20. package/dist/collection/components/xv-mega-menu-next/xv-mega-menu-next.js +2 -2
  21. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  22. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  23. package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
  24. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
  25. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +2 -2
  26. package/dist/collection/components/xv-pagination/xv-pagination.js +1 -1
  27. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  28. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  29. package/dist/collection/components/xv-radio/xv-radio.js +2 -2
  30. package/dist/collection/components/xv-slider/xv-slider.js +1 -1
  31. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  32. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  33. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  34. package/dist/collection/components/xv-table/xv-table.js +1 -1
  35. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  36. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  37. package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.js +2 -2
  38. package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
  39. package/dist/collection/components/xv-textarea/xv-textarea.js +2 -2
  40. package/dist/collection/components/xv-tile/xv-tile.js +2 -2
  41. package/dist/collection/components/xv-toggle/xv-toggle.js +1 -1
  42. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
  43. package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/xv-accordion-v2_45.entry.js +2823 -57
  46. package/dist/esm/xv-header-next.entry.js +1 -1
  47. package/dist/esm/xv-mega-menu-next.entry.js +2 -2
  48. package/dist/esm/xv-webcomponents.js +1 -1
  49. package/dist/types/components/xv-data-table/_vars.d.ts +5 -0
  50. package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +2 -0
  51. package/dist/types/components/xv-data-table/xv-data-table.d.ts +17 -0
  52. package/dist/types/components.d.ts +34 -2
  53. package/dist/xv-webcomponents/{p-c87b62cb.entry.js → p-1b5a4f4c.entry.js} +1 -1
  54. package/dist/xv-webcomponents/{p-877bab0c.entry.js → p-50f8cd72.entry.js} +1 -1
  55. package/dist/xv-webcomponents/p-c43cd74e.entry.js +8 -0
  56. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  57. package/package.json +4 -2
  58. package/dist/xv-webcomponents/p-d8f4b7d3.entry.js +0 -1
@@ -174,7 +174,7 @@ const XvHeaderNext = class {
174
174
  render() {
175
175
  var _a, _b, _c, _d, _e;
176
176
  const isXvBrand = (((_a = this.metaNav) === null || _a === void 0 ? void 0 : _a['WhitelabelName']) || 'Xv') === 'Xv';
177
- return (index.h("header", { key: 'f3a7fb2c54e76eb1c09a37cae5db8a57d9f6c2b3', class: "header" }, index.h("div", { key: 'c4ad04603780bbf1fda71dc46a7ec5a387702304', class: "header-wrapper" }, index.h("div", { key: '961b65c80452595d6b8f9e85c6e558a0db915172', class: "xv-container" }, index.h("div", { key: '0e765ec9cf66335ed71b4f946743504b3b94a9e7', class: "header-top" }, index.h("div", { key: '408a11943eaf3500ce2224912e70c0da67931b73', class: "header-top--left" }, index.h("xv-button-v2", { key: 'c97d3875491b38a31bc862faf3eac961228c26ff', class: "menu-btn", variant: "ghost", onClick: this.toggleMobMenu }, index.h("i", { key: 'eb3498a5e9b3e7d919e109d7c3891b95d1ebca72', slot: "icon-left", class: { 'fa': true, 'fa-times': this.mobMenuOpen, 'fa-bars': !this.mobMenuOpen } })), this.metaNav && (index.h("a", { key: '14d58623d7ae1e6fffeefc99ba793995c4dda82c', href: `${window.location.origin}/` }, index.h("picture", { key: 'b775cd2ff0d91ed7cfec2df38197afce166d7be8' }, index.h("source", { key: 'ac9b90be5654ac490321a67935d946f05090f6e5', srcSet: ((_b = this.metaNav) === null || _b === void 0 ? void 0 : _b.LogoUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg', media: "(min-width: 990px)" }), index.h("img", { key: 'bbe031b19ae7a8df30245044d3f55fca54270329', src: ((_c = this.metaNav) === null || _c === void 0 ? void 0 : _c.LogoSmallUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg', onError: this.logoFallback, loading: "lazy", alt: "Crossvertise" })))), this.orgUnit && (index.h("xv-link-v2", { key: '79d3bde2fa9d774302cf58fc1801c77c5773eb4c', class: "header-top--orgUnit", variant: "standalone", href: "/de-de/mycrossvertise" }, this.orgUnit))), index.h("ul", { key: '74e923f869931156bae23febcde879a9105e6e04', class: "header-top--right" }, this._renderSearch(), this._renderImpersonationInfo(), !((_d = this.metaNav) === null || _d === void 0 ? void 0 : _d.IsManager) && isXvBrand && (index.h("li", { key: '7aa622213c8e48f6b7513dae5b020553d243f209' }, index.h("xv-link-v2", { key: 'd7add033b914b87ca439b37301826f7a0dcd52c0', variant: "ghost", href: "https://www.crossvertise.com/ueber-uns/kontakt" }, index.h("xv-button-v2", { key: '3175fabc7ffd679ed2e5a2f17ec42a596f6f7e26', variant: "ghost", size: _vars.SIZE_VAR.MD }, index.h("i", { key: 'dcbb4af48fb4ef4a22ab868eedf1abf5009d9961', class: "header-icon far fa-envelope" }), index.h("span", { key: '488598237f34f1e6be906706b363e8dd92f0516b', class: "header-label xv-body-02" }, "Kontakt"))))), this._renderNotifications(), this._renderAccount(), !((_e = this.metaNav) === null || _e === void 0 ? void 0 : _e.IsManager) && isXvBrand && (index.h("li", { key: '03434ff9af60127d69ef645169c7addd706b7094' }, index.h("xv-link-v2", { key: 'ad277f7ee7e283377471e43ca27d003c43aa6bcd', variant: "ghost", href: "https://help.crossvertise.com" }, index.h("xv-button-v2", { key: '79455698d31242607448a9e7938802088595c747', variant: "ghost", size: _vars.SIZE_VAR.MD }, index.h("i", { key: '8f5af96fbd9f63c14a7a1b7d99efe827cd732266', class: "header-icon far fa-question-circle" }), index.h("span", { key: '80f5456149c4e70a822ad5a11546ca490a33b9ad', class: "header-label xv-body-02" }, "Hilfe"))))), this._renderShoppingCart()))), index.h("div", { key: 'c99aa3d08c7b70c3ac426faefbb69ffbd1c1d777', class: "header-wrapper--bg" }, index.h("div", { key: 'f5dad8911474aed6df24f09a5c360f0a0ee83740', class: "xv-container" }, index.h("xv-mega-menu-next", { key: 'c6da96b523a70c2bd0b4bf6f1361f65239475e1d', open: this.mobMenuOpen, onOpenChange: this.closeMobMenu, menuData: this.menuData })))), index.h("xv-login-modal", { key: 'b466a19ae56d9486e3e9fb0010c58749fcb14fe3', visible: this.showLoginModal, onClose: () => this.showLoginModal = false })));
177
+ return (index.h("header", { key: '3e5b036c8a87c64dedc188182055745dab593bdf', class: "header" }, index.h("div", { key: 'da3c6359eef47a0a9a6e326ea71eca15a127f005', class: "header-wrapper" }, index.h("div", { key: 'c403912d3ab0807ae51b3b98ddfd857144209459', class: "xv-container" }, index.h("div", { key: 'a15d117e3f95a8d65a1022f6a7efc48b68664da7', class: "header-top" }, index.h("div", { key: '1c3a412f45e5957c74cb6e18f3cdba61aec07129', class: "header-top--left" }, index.h("xv-button-v2", { key: '83f5c11eb91bec0a233c56aa50443909b2c937a9', class: "menu-btn", variant: "ghost", onClick: this.toggleMobMenu }, index.h("i", { key: 'cefac234defe108c971f2d6950fde258094d9e1b', slot: "icon-left", class: { 'fa': true, 'fa-times': this.mobMenuOpen, 'fa-bars': !this.mobMenuOpen } })), this.metaNav && (index.h("a", { key: '7da1e1a5fd6338cd11ec416f1bbd4e63b419001a', href: `${window.location.origin}/` }, index.h("picture", { key: '4a05e52e3acd6e60eb84441bd196fe5ccda0f48d' }, index.h("source", { key: '58c46c947df12f09c3719fcff0e53681b288d42b', srcSet: ((_b = this.metaNav) === null || _b === void 0 ? void 0 : _b.LogoUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg', media: "(min-width: 990px)" }), index.h("img", { key: '29597424f11f7aeff11df8399761dafc540745cd', src: ((_c = this.metaNav) === null || _c === void 0 ? void 0 : _c.LogoSmallUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg', onError: this.logoFallback, loading: "lazy", alt: "Crossvertise" })))), this.orgUnit && (index.h("xv-link-v2", { key: '293c00d8bc5ec56be893f24032eb38b1aa71d0c2', class: "header-top--orgUnit", variant: "standalone", href: "/de-de/mycrossvertise" }, this.orgUnit))), index.h("ul", { key: 'abbbf1eda6880fded2a7f9362cab61f09d084120', class: "header-top--right" }, this._renderSearch(), this._renderImpersonationInfo(), !((_d = this.metaNav) === null || _d === void 0 ? void 0 : _d.IsManager) && isXvBrand && (index.h("li", { key: '96e78e8b53c0667bf19a59b610623ecb231b20a9' }, index.h("xv-link-v2", { key: 'ebc9492d475d42b6dfdad65b017eb6ad14c2626e', variant: "ghost", href: "https://www.crossvertise.com/ueber-uns/kontakt" }, index.h("xv-button-v2", { key: '5c0f1e18eb09c0420a80540630fe8c855a1ae349', variant: "ghost", size: _vars.SIZE_VAR.MD }, index.h("i", { key: 'c5f72c0ccb60c50085785f6b2fc38656bd62df71', class: "header-icon far fa-envelope" }), index.h("span", { key: '62b3d1743b2cb925188360c7125a98d31683a6ea', class: "header-label xv-body-02" }, "Kontakt"))))), this._renderNotifications(), this._renderAccount(), !((_e = this.metaNav) === null || _e === void 0 ? void 0 : _e.IsManager) && isXvBrand && (index.h("li", { key: '407612a5a8e118133b30481c60ff777dea602d4d' }, index.h("xv-link-v2", { key: '27ea69272c9ba12d2d8dfb988ec55e513033cb04', variant: "ghost", href: "https://help.crossvertise.com" }, index.h("xv-button-v2", { key: '62b2c0f02784b55f4c0652dc2283635d519032f8', variant: "ghost", size: _vars.SIZE_VAR.MD }, index.h("i", { key: 'dfd071527c857854c1d038dcff41650ad974faab', class: "header-icon far fa-question-circle" }), index.h("span", { key: '2f0d80df52e1830946514382afcdca565ed5ec92', class: "header-label xv-body-02" }, "Hilfe"))))), this._renderShoppingCart()))), index.h("div", { key: 'd0f8a3d2367749e7a0b08b0de1ffe37bb53da138', class: "header-wrapper--bg" }, index.h("div", { key: '4a10adea98aab6f67214a00b3da0a41d9b4b16e8', class: "xv-container" }, index.h("xv-mega-menu-next", { key: 'b92a784f3481c17dff2c577a939e9e9c04cfb302', open: this.mobMenuOpen, onOpenChange: this.closeMobMenu, menuData: this.menuData })))), index.h("xv-login-modal", { key: '80eb3aa35bda06095228ff789c60e6470c47aab2', visible: this.showLoginModal, onClose: () => this.showLoginModal = false })));
178
178
  }
179
179
  get el() { return index.getElement(this); }
180
180
  };
@@ -90,7 +90,7 @@ const XvMegaMenuNext = class {
90
90
  void this.fetchMenuData();
91
91
  }
92
92
  render() {
93
- return (index.h(index.Host, { key: '8c0bae3ab6e8ed73d430d89ddfda62633ccb5b07' }, index.h("nav", { key: 'eff4d8e016c8acd5ba64ca5ed26eb1733455ada9', class: { 'xv-menu': true, open: this.open } }, this.menuLoading && (index.h("div", { key: '602d4f6d640f621fdeff8b0d42ff09baf4267b23', class: { 'xv-menu-loader': true, open: this.open } }, index.h("xv-loader-v2", { key: '7a8f473cbf769a5caa49060acdce448034068cd0' }))), index.h("ul", { key: '043cc45b8d82a0f5fa3af5f219d58267a15e8238', class: { menu: true, open: this.open } }, this.menuItems.map((menuItem) => {
93
+ return (index.h(index.Host, { key: '965990cf42dca77d9c87ea5d9f1af1765bd51305' }, index.h("nav", { key: '1effa8fd4a5a36e29735b5b705e4de153e742942', class: { 'xv-menu': true, open: this.open } }, this.menuLoading && (index.h("div", { key: 'f2777eb6501f5de71be497e02148ea0e9a226e25', class: { 'xv-menu-loader': true, open: this.open } }, index.h("xv-loader-v2", { key: '10a1559021022dcdf669ee7b1e4ac8bd4e6d2dad' }))), index.h("ul", { key: '5f61b88c3813b76ae9d4d49ec7b589666486ea6b', class: { menu: true, open: this.open } }, this.menuItems.map((menuItem) => {
94
94
  var _a, _b;
95
95
  return (index.h("li", { class: { 'menu-item': true, active: menuItem.id === ((_a = this.activeItem) === null || _a === void 0 ? void 0 : _a.id) } }, menuItem.route ? (index.h("xv-link-v2", { variant: "ghost", href: menuItem.route.route }, index.h("p", { class: "menu-item-label" }, (_b = menuItem.route) === null || _b === void 0 ? void 0 : _b.label))) : (index.h(index.Fragment, null, index.h("p", { class: "menu-item-label", onClick: () => this.setActiveItem(menuItem) }, menuItem === null || menuItem === void 0 ? void 0 : menuItem.label), index.h("ul", { class: "menu-item-groups" }, menuItem.groups.map((group) => {
96
96
  var _a;
@@ -100,7 +100,7 @@ const XvMegaMenuNext = class {
100
100
  } }, index.h("div", { class: "group-menus" }, index.h("ul", { class: { 'group-menus-categories': true, inline: group.layout === 'inline' } }, group.categories.map((category) => (index.h("li", { class: "category" }, index.h("p", { class: "category-label" }, category.label), index.h("ul", { class: "category-routes" }, category.routes.map((route) => (index.h("li", { class: "route" }, index.h("xv-link-v2", { size: "lg", variant: "ghost", href: route.route || '#' }, route.label), route.tag && (index.h("xv-tag-v2", { class: "route-tag", size: "sm", color: "#161616", bg: "#E0E0E0" }, route.tag)))))))))), index.h("ul", { class: "group-menus-actions" }, group.actions.map((action) => (index.h("li", { class: "action" }, action.type === 'link' && (index.h("xv-link-v2", { variant: "standalone", href: action === null || action === void 0 ? void 0 : action.url }, action.label, index.h("span", { class: "link-chevron", slot: "icon-right" }, "\u2192"))), action.type === 'button' &&
101
101
  index.h("xv-button-v2", { onClick: () => this.navActionClick(action), block: true, variant: "tertiary" }, action.label)))))), (group === null || group === void 0 ? void 0 : group.card) && (index.h("div", { class: "group-card" }, index.h("xv-card-v2", { media: this.applicationContext !== 'Komsa' ? group.card.image : undefined, variant: this.isMobile ? 'horizontal' : 'vertical' }, index.h("h5", { slot: "header", class: "group-card-title" }, group.card.title), index.h("p", { slot: "body", class: "group-card-desc" }, group.card.description), group.card.linkLabel && (index.h("xv-link-v2", { slot: "footer", variant: "standalone", href: group.card.linkUrl || '#' }, group.card.linkLabel, index.h("span", { class: "link-chevron", slot: "icon-right" }, "\u2192"))))))))));
102
102
  }))))));
103
- }), index.h("li", { key: '83b8a6d9b98d081e8a462269d3516c3cbb2842bb', class: "menu--right" }, index.h("slot", { key: 'eb8da8170f252ea1ce53777a0fab6dc5e0ee0c15', name: "menu-right" })), this.open && (index.h("li", { key: '2c4fbf2c7d92abc58ed125ddfa1e9b09f2429447', class: "menu--backdrop", onClick: () => this.handleClose() }))))));
103
+ }), index.h("li", { key: '9ca18d5cdfb37a82e050751542b18eba7b98b158', class: "menu--right" }, index.h("slot", { key: 'a82d9e4fb0a0d2e482f97a51b66e0e974db2c6f5', name: "menu-right" })), this.open && (index.h("li", { key: '0d4ef64ba1f80209cc3a77c602a52e39e5cde885', class: "menu--backdrop", onClick: () => this.handleClose() }))))));
104
104
  }
105
105
  get el() { return index.getElement(this); }
106
106
  static get watchers() { return {
@@ -18,7 +18,7 @@ var patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(async (options) => {
20
20
  await index.globalScripts();
21
- return index.bootstrapLazy([["xv-accordion-v2_45.cjs",[[0,"xv-header",{"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]],[257,"xv-dropdown-v2",{"search":[516],"disabled":[516],"multiple":[516],"required":[516],"loading":[516],"readonly":[516],"open":[1540],"error":[520],"label":[513],"helper":[513],"warning":[513],"placeholder":[513],"info":[1],"searchPlaceholder":[1,"search-placeholder"],"size":[1],"defaultValue":[8,"default-value"],"value":[1032],"variant":[1],"selected":[32],"selectedMap":[32],"searchQuery":[32]},[[0,"itemSelected","handleItemSelected"]],{"open":[{"openChangeHandle":0}],"multiple":[{"multipleChangeHandle":0}],"value":[{"valueChange":1}]}],[257,"xv-data-table-row",{"variant":[1],"name":[1025],"collapse":[1],"collapsable":[516],"checked":[1028],"partial":[1028],"hover":[1028],"group":[4],"header":[4],"footer":[4],"disabled":[4],"readonly":[4],"required":[4],"value":[8],"collapsed":[32],"close":[64]}],[65,"xv-datepicker",{"value":[1040],"variant":[1],"label":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[4],"size":[513],"min":[1],"max":[1],"month":[32],"days":[32],"open":[32],"localError":[32]},[[4,"click","handleClickOutside"]],{"open":[{"openChange":0}],"month":[{"getCalendarGrid":0}],"value":[{"handleValueChange":0}]}],[1,"xv-file-uploader",{"label":[1],"description":[1],"addText":[1,"add-text"],"variant":[1],"size":[1],"accept":[16],"buttonVariant":[1,"button-variant"],"maxFileSizeMB":[2,"max-file-size-mb"],"maxFiles":[2,"max-files"],"multiple":[4],"disabled":[516],"files":[1040],"loadingStates":[1040],"error":[1537],"errors":[1040],"dragActive":[32],"errorMessages":[32],"clearFiles":[64]}],[65,"xv-number-input-v2",{"label":[1],"placeholder":[513],"name":[513],"value":[1538],"helper":[1],"error":[8],"warning":[8],"step":[2],"max":[2],"min":[2],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513]}],[1,"xv-pagination",{"total":[2],"page":[1026],"size":[1],"block":[4],"variant":[1],"responsiveVariant":[16],"totalItems":[2,"total-items"],"itemsPerPage":[32],"currentVariant":[32]}],[257,"xv-table-v2-row",{"checked":[1540],"partial":[1540],"name":[1537],"value":[520],"hover":[1540],"readonly":[516],"required":[516],"disabled":[516],"header":[516],"variant":[1537]},null,{"checked":[{"checkedChangeHandle":0}]}],[65,"xv-textarea",{"value":[1025],"name":[1],"label":[1],"placeholder":[1],"helper":[1],"info":[1],"error":[8],"warning":[8],"disabled":[4],"readonly":[4],"block":[4],"counterHide":[4,"counter-hide"],"noResize":[4,"no-resize"],"loading":[4],"max":[2],"rows":[2],"size":[513]}],[257,"xv-data-table",{"size":[1],"block":[520],"loading":[4],"columnWidths":[16],"multiple":[516],"hover":[4]}],[257,"xv-dropdown-v2-item",{"disabled":[4],"value":[1544],"selected":[1540],"multiple":[516],"size":[513]},[[0,"click","handleClick"]]],[1,"xv-image-viewer",{"src":[1],"fullscreenSrc":[1,"fullscreen-src"],"alt":[1],"placeholder":[1],"lazy":[4],"isFullscreen":[32],"loaded":[32],"fullscreenLoaded":[32]}],[257,"xv-tab-v2",{"label":[513],"disabled":[516],"loading":[516],"name":[8]}],[257,"xv-table-v2",{"size":[513],"hover":[516],"loading":[516],"colsSize":[16],"selected":[32],"selectedCount":[32]},[[0,"checkedChange","handleCheckedChange"]],{"colsSize":[{"setColsSizeTemplate":0}]}],[257,"xv-tabs-v2",{"active":[1544],"loading":[516],"variant":[1],"emptyMessage":[1,"empty-message"],"hideSingleTab":[4,"hide-single-tab"],"tabElements":[32],"showArrows":[32]},[[9,"resize","updateArrowVisibility"]]],[1,"xv-tag-combobox",{"options":[16],"label":[1],"size":[1],"placeholder":[1],"allowCreate":[4,"allow-create"],"maxSuggestions":[2,"max-suggestions"],"disabled":[4],"readonly":[4],"error":[8],"warning":[8],"value":[16],"normalizedOptions":[32],"selected":[32],"inputValue":[32],"open":[32],"filtered":[32],"highlighted":[32],"focusInput":[64],"clear":[64]},null,{"options":[{"watchOptions":0}],"value":[{"watchValue":0}]}],[257,"xv-accordion-v2",{"multiple":[4],"xvId":[1,"xv-id"],"value":[1025],"opened":[32],"toggleItem":[64]}],[257,"xv-accordion-v2-item",{"disabled":[4],"label":[1],"value":[1],"isOpen":[32]},[[16,"accordionChange","handleAccordionChange"]]],[260,"xv-breadcrumbs-v2"],[257,"xv-data-table-collapse",{"collapsed":[1540],"setCollapsed":[64]}],[0,"xv-footer",{"data":[32]},[[8,"xv:metaNav-update","handleLoadData"]]],[257,"xv-progress-indicator-v2",{"progress":[514],"variant":[1],"size":[1]},null,{"progress":[{"updateChildItems":0}]}],[257,"xv-progress-indicator-v2-item",{"status":[1]}],[324,"xv-radio-v2",{"name":[1],"value":[1],"label":[1],"checked":[1028],"indeterminate":[4],"block":[4],"disabled":[4],"required":[4],"reverse":[4],"readonly":[4],"error":[8],"warning":[520],"size":[1]},null,{"checked":[{"onCheckedChange":0}]}],[65,"xv-slider-v2",{"label":[1],"name":[1],"min":[2],"max":[2],"value":[1026],"step":[2],"disabled":[4],"readonly":[4],"notEditable":[4,"not-editable"]}],[257,"xv-table-v2-expand",{"open":[1540],"disabled":[516]}],[260,"xv-tile",{"variant":[513],"label":[1],"error":[4],"multiple":[4],"disabled":[4],"block":[4],"name":[1],"message":[513],"value":[1025],"checked":[1028],"readonly":[1028]},[[4,"tileChange","tileChangeHandle"],[0,"click","handleClick"]]],[321,"xv-toggle",{"label":[1],"value":[1],"name":[1],"checked":[1540],"disabled":[4],"readonly":[4],"size":[513],"block":[4]}],[257,"xv-mega-menu",{"open":[1540],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]]],[257,"xv-data-table-cell",{"name":[1025],"sort":[1537],"multiline":[520],"width":[1],"align":[1],"tooltip":[1]},[[0,"click","handleSort"]]],[257,"xv-table-v2-cell",{"multiline":[516],"name":[1537],"align":[513],"sort":[1537]},[[0,"click","handleSort"]]],[2,"xv-login-modal",{"visible":[4],"urls":[32],"loading":[32],"errorMessage":[32]}],[257,"xv-overflow-menu-v2",{"open":[1540],"disabled":[516],"position":[1],"size":[1],"tooltip":[1]},[[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-overflow-menu-v2-item",{"disabled":[516],"value":[520],"variant":[513],"clickable":[4]},[[0,"click","handleClick"]]],[257,"xv-toggle-tip",{"open":[1540],"autoSize":[516,"auto-size"],"block":[4],"position":[1],"setPopover":[64]},[[4,"click","handleClickOutside"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-modal-v2",{"open":[1540],"permanent":[516],"size":[513],"overflow":[516],"loading":[4],"openModal":[64],"closeModal":[64]}],[257,"xv-notification-v2",{"variant":[513],"dismissible":[516]}],[65,"xv-text-input-v2",{"type":[1],"label":[1],"placeholder":[513],"name":[513],"value":[1025],"autocomplete":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513],"isPasswordVisible":[32]}],[257,"xv-card-v2",{"variant":[1],"media":[1],"header":[1],"body":[1],"footer":[1]}],[257,"xv-link-v2",{"href":[1],"target":[1],"disabled":[4],"size":[1],"variant":[1]}],[321,"xv-checkbox-v2",{"checked":[1540],"indeterminate":[516],"disabled":[516],"name":[513],"value":[513],"readonly":[516],"required":[516],"partial":[516],"label":[1],"size":[513],"error":[520],"align":[513],"hasFocus":[32]},null,{"checked":[{"onCheckedChange":0}]}],[257,"xv-tag-v2",{"size":[1],"color":[1],"bg":[1],"disabled":[4],"closeable":[4]}],[260,"xv-tooltip-v2",{"message":[1],"position":[1],"block":[4],"dashed":[4]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]],[321,"xv-button-v2",{"value":[1],"name":[1],"label":[513],"variant":[513],"size":[513],"disabled":[516],"loading":[516],"block":[516],"type":[513],"hasLeftIcon":[32],"hasRightIcon":[32],"hasContent":[32]}],[257,"xv-loader-v2",{"show":[4],"variant":[1],"size":[1]}]]],["xv-mega-menu-next.cjs",[[257,"xv-mega-menu-next",{"open":[1540],"menuData":[1,"menu-data"],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]],{"menuData":[{"onMenuDataChange":0}]}]]],["xv-header-next.cjs",[[0,"xv-header-next",{"menuData":[1,"menu-data"],"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]]]]], options);
21
+ return index.bootstrapLazy([["xv-accordion-v2_45.cjs",[[0,"xv-header",{"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]],[257,"xv-dropdown-v2",{"search":[516],"disabled":[516],"multiple":[516],"required":[516],"loading":[516],"readonly":[516],"open":[1540],"error":[520],"label":[513],"helper":[513],"warning":[513],"placeholder":[513],"info":[1],"searchPlaceholder":[1,"search-placeholder"],"size":[1],"defaultValue":[8,"default-value"],"value":[1032],"variant":[1],"selected":[32],"selectedMap":[32],"searchQuery":[32]},[[0,"itemSelected","handleItemSelected"]],{"open":[{"openChangeHandle":0}],"multiple":[{"multipleChangeHandle":0}],"value":[{"valueChange":1}]}],[257,"xv-data-table-row",{"variant":[1],"name":[1025],"collapse":[1],"collapsable":[516],"checked":[1028],"partial":[1028],"hover":[1028],"group":[4],"header":[4],"footer":[4],"disabled":[4],"readonly":[4],"required":[4],"value":[8],"collapsed":[32],"reorderable":[32],"reorderHandleMode":[32],"close":[64]}],[65,"xv-datepicker",{"value":[1040],"variant":[1],"label":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[4],"size":[513],"min":[1],"max":[1],"month":[32],"days":[32],"open":[32],"localError":[32]},[[4,"click","handleClickOutside"]],{"open":[{"openChange":0}],"month":[{"getCalendarGrid":0}],"value":[{"handleValueChange":0}]}],[1,"xv-file-uploader",{"label":[1],"description":[1],"addText":[1,"add-text"],"variant":[1],"size":[1],"accept":[16],"buttonVariant":[1,"button-variant"],"maxFileSizeMB":[2,"max-file-size-mb"],"maxFiles":[2,"max-files"],"multiple":[4],"disabled":[516],"files":[1040],"loadingStates":[1040],"error":[1537],"errors":[1040],"dragActive":[32],"errorMessages":[32],"clearFiles":[64]}],[65,"xv-number-input-v2",{"label":[1],"placeholder":[513],"name":[513],"value":[1538],"helper":[1],"error":[8],"warning":[8],"step":[2],"max":[2],"min":[2],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513]}],[1,"xv-pagination",{"total":[2],"page":[1026],"size":[1],"block":[4],"variant":[1],"responsiveVariant":[16],"totalItems":[2,"total-items"],"itemsPerPage":[32],"currentVariant":[32]}],[257,"xv-table-v2-row",{"checked":[1540],"partial":[1540],"name":[1537],"value":[520],"hover":[1540],"readonly":[516],"required":[516],"disabled":[516],"header":[516],"variant":[1537]},null,{"checked":[{"checkedChangeHandle":0}]}],[65,"xv-textarea",{"value":[1025],"name":[1],"label":[1],"placeholder":[1],"helper":[1],"info":[1],"error":[8],"warning":[8],"disabled":[4],"readonly":[4],"block":[4],"counterHide":[4,"counter-hide"],"noResize":[4,"no-resize"],"loading":[4],"max":[2],"rows":[2],"size":[513]}],[257,"xv-data-table",{"size":[1],"block":[520],"loading":[4],"columnWidths":[16],"multiple":[516],"hover":[4],"reorderable":[516],"reorderHandle":[513,"reorder-handle"]},null,{"reorderable":[{"reorderableChanged":0}],"reorderHandle":[{"reorderHandleChanged":0}]}],[257,"xv-dropdown-v2-item",{"disabled":[4],"value":[1544],"selected":[1540],"multiple":[516],"size":[513]},[[0,"click","handleClick"]]],[1,"xv-image-viewer",{"src":[1],"fullscreenSrc":[1,"fullscreen-src"],"alt":[1],"placeholder":[1],"lazy":[4],"isFullscreen":[32],"loaded":[32],"fullscreenLoaded":[32]}],[257,"xv-tab-v2",{"label":[513],"disabled":[516],"loading":[516],"name":[8]}],[257,"xv-table-v2",{"size":[513],"hover":[516],"loading":[516],"colsSize":[16],"selected":[32],"selectedCount":[32]},[[0,"checkedChange","handleCheckedChange"]],{"colsSize":[{"setColsSizeTemplate":0}]}],[257,"xv-tabs-v2",{"active":[1544],"loading":[516],"variant":[1],"emptyMessage":[1,"empty-message"],"hideSingleTab":[4,"hide-single-tab"],"tabElements":[32],"showArrows":[32]},[[9,"resize","updateArrowVisibility"]]],[1,"xv-tag-combobox",{"options":[16],"label":[1],"size":[1],"placeholder":[1],"allowCreate":[4,"allow-create"],"maxSuggestions":[2,"max-suggestions"],"disabled":[4],"readonly":[4],"error":[8],"warning":[8],"value":[16],"normalizedOptions":[32],"selected":[32],"inputValue":[32],"open":[32],"filtered":[32],"highlighted":[32],"focusInput":[64],"clear":[64]},null,{"options":[{"watchOptions":0}],"value":[{"watchValue":0}]}],[257,"xv-accordion-v2",{"multiple":[4],"xvId":[1,"xv-id"],"value":[1025],"opened":[32],"toggleItem":[64]}],[257,"xv-accordion-v2-item",{"disabled":[4],"label":[1],"value":[1],"isOpen":[32]},[[16,"accordionChange","handleAccordionChange"]]],[260,"xv-breadcrumbs-v2"],[257,"xv-data-table-collapse",{"collapsed":[1540],"setCollapsed":[64]}],[0,"xv-footer",{"data":[32]},[[8,"xv:metaNav-update","handleLoadData"]]],[257,"xv-progress-indicator-v2",{"progress":[514],"variant":[1],"size":[1]},null,{"progress":[{"updateChildItems":0}]}],[257,"xv-progress-indicator-v2-item",{"status":[1]}],[324,"xv-radio-v2",{"name":[1],"value":[1],"label":[1],"checked":[1028],"indeterminate":[4],"block":[4],"disabled":[4],"required":[4],"reverse":[4],"readonly":[4],"error":[8],"warning":[520],"size":[1]},null,{"checked":[{"onCheckedChange":0}]}],[65,"xv-slider-v2",{"label":[1],"name":[1],"min":[2],"max":[2],"value":[1026],"step":[2],"disabled":[4],"readonly":[4],"notEditable":[4,"not-editable"]}],[257,"xv-table-v2-expand",{"open":[1540],"disabled":[516]}],[260,"xv-tile",{"variant":[513],"label":[1],"error":[4],"multiple":[4],"disabled":[4],"block":[4],"name":[1],"message":[513],"value":[1025],"checked":[1028],"readonly":[1028]},[[4,"tileChange","tileChangeHandle"],[0,"click","handleClick"]]],[321,"xv-toggle",{"label":[1],"value":[1],"name":[1],"checked":[1540],"disabled":[4],"readonly":[4],"size":[513],"block":[4]}],[257,"xv-mega-menu",{"open":[1540],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]]],[257,"xv-data-table-cell",{"name":[1025],"sort":[1537],"multiline":[520],"width":[1],"align":[1],"tooltip":[1]},[[0,"click","handleSort"]]],[257,"xv-table-v2-cell",{"multiline":[516],"name":[1537],"align":[513],"sort":[1537]},[[0,"click","handleSort"]]],[2,"xv-login-modal",{"visible":[4],"urls":[32],"loading":[32],"errorMessage":[32]}],[257,"xv-overflow-menu-v2",{"open":[1540],"disabled":[516],"position":[1],"size":[1],"tooltip":[1]},[[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-overflow-menu-v2-item",{"disabled":[516],"value":[520],"variant":[513],"clickable":[4]},[[0,"click","handleClick"]]],[257,"xv-toggle-tip",{"open":[1540],"autoSize":[516,"auto-size"],"block":[4],"position":[1],"setPopover":[64]},[[4,"click","handleClickOutside"],[0,"keydown","handleKeyDown"]],{"open":[{"openChangeHandle":0}]}],[257,"xv-modal-v2",{"open":[1540],"permanent":[516],"size":[513],"overflow":[516],"loading":[4],"openModal":[64],"closeModal":[64]}],[257,"xv-notification-v2",{"variant":[513],"dismissible":[516]}],[65,"xv-text-input-v2",{"type":[1],"label":[1],"placeholder":[513],"name":[513],"value":[1025],"autocomplete":[1],"helper":[1],"error":[8],"warning":[8],"readonly":[4],"disabled":[4],"loading":[4],"block":[516],"size":[513],"isPasswordVisible":[32]}],[257,"xv-card-v2",{"variant":[1],"media":[1],"header":[1],"body":[1],"footer":[1]}],[257,"xv-link-v2",{"href":[1],"target":[1],"disabled":[4],"size":[1],"variant":[1]}],[321,"xv-checkbox-v2",{"checked":[1540],"indeterminate":[516],"disabled":[516],"name":[513],"value":[513],"readonly":[516],"required":[516],"partial":[516],"label":[1],"size":[513],"error":[520],"align":[513],"hasFocus":[32]},null,{"checked":[{"onCheckedChange":0}]}],[257,"xv-tag-v2",{"size":[1],"color":[1],"bg":[1],"disabled":[4],"closeable":[4]}],[260,"xv-tooltip-v2",{"message":[1],"position":[1],"block":[4],"dashed":[4]},[[1,"mouseenter","onMouseEnter"],[1,"mouseleave","onMouseLeave"]]],[321,"xv-button-v2",{"value":[1],"name":[1],"label":[513],"variant":[513],"size":[513],"disabled":[516],"loading":[516],"block":[516],"type":[513],"hasLeftIcon":[32],"hasRightIcon":[32],"hasContent":[32]}],[257,"xv-loader-v2",{"show":[4],"variant":[1],"size":[1]}]]],["xv-mega-menu-next.cjs",[[257,"xv-mega-menu-next",{"open":[1540],"menuData":[1,"menu-data"],"activeItem":[32],"activeGroup":[32],"menuItems":[32],"applicationContext":[32],"menuLoading":[32]},[[4,"click","handleClickOutside"]],{"menuData":[{"onMenuDataChange":0}]}]]],["xv-header-next.cjs",[[0,"xv-header-next",{"menuData":[1,"menu-data"],"metaNav":[32],"orgUnit":[32],"baseUrl":[32],"loading":[32],"mobMenuOpen":[32],"suggestions":[32],"suggestionsLoading":[32],"notifications":[32],"showLoginModal":[32]},[[8,"xv:orgUnitChange","handleOrgUnitChange"],[8,"xv:metaNav-update","metaNavUpdate"]]]]]], options);
22
22
  });
23
23
 
24
24
  exports.setNonce = index.setNonce;
@@ -1,2 +1,3 @@
1
1
  export const XV_DATA_TABLE_TAG = 'xv-data-table';
2
2
  export const XV_DATA_TABLE_ROW_TAG = 'xv-data-table-row';
3
+ export const XV_ROW_DRAG_HANDLE_CLASS = 'xv-row-drag-handle';
@@ -169,6 +169,48 @@
169
169
  :host .cell-control_checkbox {
170
170
  display: flex;
171
171
  }
172
+ :host .cell-control_drag {
173
+ position: absolute;
174
+ top: 50%;
175
+ left: var(--xv-data-table-padding-x);
176
+ transform: translateY(-50%);
177
+ display: inline-flex;
178
+ align-items: center;
179
+ justify-content: center;
180
+ padding: 4px;
181
+ line-height: 0;
182
+ color: var(--icon-secondary, #6f6f6f);
183
+ cursor: grab;
184
+ touch-action: none;
185
+ transition: 0.15s ease-in-out color;
186
+ }
187
+ :host .cell-control_drag:hover {
188
+ color: var(--icon-primary, #333);
189
+ }
190
+ :host .cell-control_drag:active {
191
+ cursor: grabbing;
192
+ }
193
+
194
+ :host(.reorder-row) {
195
+ cursor: grab;
196
+ }
197
+ :host(.reorder-row):active {
198
+ cursor: grabbing;
199
+ }
200
+
201
+ :host(.xv-row-ghost) {
202
+ opacity: 0.4;
203
+ background-color: var(--layer-accent-01, #F7F7F7);
204
+ }
205
+
206
+ :host(.xv-row-chosen) {
207
+ background-color: var(--layer-hover-01, #E9E9E9);
208
+ }
209
+
210
+ :host(.xv-row-drag) {
211
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
212
+ cursor: grabbing;
213
+ }
172
214
 
173
215
  :host(.hover:not(.header):hover) {
174
216
  background-color: var(--layer-hover-01, #E9E9E9);
@@ -1,6 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { uidGenerator } from "../../../utils/utils";
3
- import { XV_DATA_TABLE_ROW_TAG, XV_DATA_TABLE_TAG } from "../_vars";
3
+ import { XV_DATA_TABLE_ROW_TAG, XV_DATA_TABLE_TAG, XV_ROW_DRAG_HANDLE_CLASS } from "../_vars";
4
4
  export class XvDataTableRow {
5
5
  constructor() {
6
6
  this.checked = false;
@@ -13,6 +13,8 @@ export class XvDataTableRow {
13
13
  this.readonly = false;
14
14
  this.required = false;
15
15
  this.collapsed = false;
16
+ this.reorderable = false;
17
+ this.reorderHandleMode = 'icon';
16
18
  this.collapseClick = async () => {
17
19
  var _a;
18
20
  if (!this.collapse || !this.collapseEl)
@@ -31,15 +33,18 @@ export class XvDataTableRow {
31
33
  await ((_a = this.collapseEl) === null || _a === void 0 ? void 0 : _a.setCollapsed(this.collapsed));
32
34
  };
33
35
  this.setInitialState = () => {
34
- var _a;
36
+ var _a, _b, _c;
35
37
  if (this.collapse && !this.collapseEl) {
36
38
  this.collapseEl = this.el.parentElement.querySelector(`xv-data-table-collapse${this.collapse}`);
37
39
  this.collapsed = (_a = this.collapseEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('collapsed');
38
40
  }
41
+ const table = this.el.closest(XV_DATA_TABLE_TAG);
39
42
  if (!this.hover) {
40
- const table = this.el.closest(XV_DATA_TABLE_TAG);
41
- this.hover = table.hasAttribute('hover');
43
+ this.hover = (_b = table === null || table === void 0 ? void 0 : table.hasAttribute('hover')) !== null && _b !== void 0 ? _b : false;
42
44
  }
45
+ const isDirectChild = this.el.parentElement === table;
46
+ this.reorderable = isDirectChild && ((_c = table === null || table === void 0 ? void 0 : table.hasAttribute('reorderable')) !== null && _c !== void 0 ? _c : false);
47
+ this.reorderHandleMode = (table === null || table === void 0 ? void 0 : table.getAttribute('reorder-handle')) || 'icon';
43
48
  };
44
49
  this.checkedChangeHandle = ({ detail: checked }) => {
45
50
  if (!checked && this.partial)
@@ -64,14 +69,20 @@ export class XvDataTableRow {
64
69
  await this.collapseEl.setCollapsed(true);
65
70
  }
66
71
  render() {
67
- return (h(Host, { key: '8578e69bdc054bca3f39288080791fd9c2beaf33', role: "row", part: "xv-row", class: {
72
+ const isHeader = this.el.slot === 'header' || !!this.header;
73
+ const isFooter = this.el.slot === 'footer' || !!this.footer;
74
+ const isGroup = !!this.collapse || !!this.group;
75
+ const isDraggableRow = this.reorderable && !isHeader && !isFooter && !this.group;
76
+ const showHandleCell = this.reorderable && this.reorderHandleMode === 'icon';
77
+ return (h(Host, { key: '74ea5e91d4423b4f5751fcaf5bce50e11843805c', role: "row", part: "xv-row", class: {
68
78
  checked: this.checked,
69
79
  hover: this.hover,
70
80
  disabled: this.disabled,
71
- group: !!this.collapse || !!this.group,
72
- header: this.el.slot === 'header' || !!this.header,
73
- footer: this.el.slot === 'footer' || !!this.footer,
74
- } }, (!!this.variant || this.collapsable) && (h("xv-data-table-cell", { key: 'ce792009d4384261d4c0ab36af93eb4b5f5827b8', width: !!this.variant ? '16px' : '0', class: "cell-control" }, !!this.collapse && (h("button", { key: '0152864b991f3e4e4cadae636fc8f552df47baf6', class: { 'cell-control_collapse': true, open: !this.collapsed }, onClick: this.collapseClick })), this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: '7df93560b4a13db46ced4fcea421d077dc22ed4e', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, readonly: this.readonly, required: this.required, onEventChange: this.checkedChangeHandle, class: "cell-control_checkbox" })))), h("slot", { key: '4204c72c98b928e7fa277dcc6995a7e2a1b01750', onSlotchange: this.setInitialState })));
81
+ group: isGroup,
82
+ header: isHeader,
83
+ footer: isFooter,
84
+ 'reorder-row': isDraggableRow && this.reorderHandleMode === 'row',
85
+ } }, showHandleCell && (h("xv-data-table-cell", { key: '806087b882248f7f1317a3ad23c64f3e0d550d76', width: "16px", class: "cell-control cell-control--drag" }, isDraggableRow && (h("span", { key: 'ad6ab54599047674f535397f705bf78f5169e3fc', class: `cell-control_drag ${XV_ROW_DRAG_HANDLE_CLASS}`, "aria-label": "Drag to reorder" }, h("svg", { key: 'b6c038a701bf7b24f3639eca9c772c46485b6007', viewBox: "0 0 8 14", width: "8", height: "14", fill: "currentColor", "aria-hidden": "true" }, h("circle", { key: '6a036769cc49e19fb5cf53d41b03d9822c057857', cx: "2", cy: "2", r: "1.2" }), h("circle", { key: '20b8ee5561fe23f75db9b9d98e1c7211b43986dc', cx: "6", cy: "2", r: "1.2" }), h("circle", { key: '6f685e7cb62f3093d51b92be0519841aac132a41', cx: "2", cy: "7", r: "1.2" }), h("circle", { key: 'e93f642c885bb32dd68fd7ffe38c528b0f06f5e6', cx: "6", cy: "7", r: "1.2" }), h("circle", { key: '4ed95d06db9caff9b7f672be9faba43c62b5f10e', cx: "2", cy: "12", r: "1.2" }), h("circle", { key: 'ad4574700d5497d8dd2b050a438ebe45c9d0554a', cx: "6", cy: "12", r: "1.2" })))))), (!!this.variant || this.collapsable) && (h("xv-data-table-cell", { key: '96bc6bb3c9b05147940691f57b222e3b984d4597', width: !!this.variant ? '16px' : '0', class: "cell-control" }, !!this.collapse && (h("button", { key: '79c7b71873a2f07decb6fc71fb8842b8f94f7f4d', class: { 'cell-control_collapse': true, open: !this.collapsed }, onClick: this.collapseClick })), this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: '950ab4b841ea1c1f71ca968db8c3e88827a420e1', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, readonly: this.readonly, required: this.required, onEventChange: this.checkedChangeHandle, class: "cell-control_checkbox" })))), h("slot", { key: 'aa156d42a6c407d7fe213d165d8a4abab3b3aed8', onSlotchange: this.setInitialState })));
75
86
  }
76
87
  static get is() { return "xv-data-table-row"; }
77
88
  static get encapsulation() { return "shadow"; }
@@ -366,7 +377,9 @@ export class XvDataTableRow {
366
377
  }
367
378
  static get states() {
368
379
  return {
369
- "collapsed": {}
380
+ "collapsed": {},
381
+ "reorderable": {},
382
+ "reorderHandleMode": {}
370
383
  };
371
384
  }
372
385
  static get events() {
@@ -1,14 +1,110 @@
1
1
  import { h, Host } from "@stencil/core";
2
+ import Sortable from "sortablejs";
2
3
  import { SIZE_VAR } from "../../types/enum";
4
+ import { XV_DATA_TABLE_ROW_TAG, XV_ROW_DRAG_HANDLE_CLASS } from "./_vars";
3
5
  export class XvDataTable {
4
6
  constructor() {
5
7
  this.size = SIZE_VAR.MD;
6
8
  this.columnWidths = [];
7
9
  this.multiple = true;
8
10
  this.hover = false;
11
+ this.reorderable = false;
12
+ this.reorderHandle = 'icon';
13
+ this.dragPrevSibling = null;
14
+ this.dragStartBodyIndex = -1;
15
+ this.initSortable = () => {
16
+ if (this.sortable)
17
+ return;
18
+ const options = {
19
+ animation: 150,
20
+ easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
21
+ draggable: XV_DATA_TABLE_ROW_TAG,
22
+ filter: this.sortableFilter,
23
+ preventOnFilter: false,
24
+ ghostClass: 'xv-row-ghost',
25
+ chosenClass: 'xv-row-chosen',
26
+ dragClass: 'xv-row-drag',
27
+ fallbackOnBody: true,
28
+ onStart: (evt) => {
29
+ var _a;
30
+ const item = evt.item;
31
+ (_a = item.close) === null || _a === void 0 ? void 0 : _a.call(item);
32
+ this.dragPrevSibling = item.previousElementSibling;
33
+ this.dragStartBodyIndex = this.getBodyRowIndex(item);
34
+ },
35
+ onEnd: (evt) => {
36
+ const item = evt.item;
37
+ const to = this.getBodyRowIndex(item);
38
+ const from = this.dragStartBodyIndex;
39
+ this.revertDom(item);
40
+ this.dragPrevSibling = null;
41
+ this.dragStartBodyIndex = -1;
42
+ if (from < 0 || to < 0 || from === to)
43
+ return;
44
+ this.reorderChange.emit({ from, to });
45
+ },
46
+ };
47
+ this.sortable = new Sortable(this.el, options);
48
+ };
49
+ this.sortableFilter = (evt, target) => {
50
+ var _a, _b, _c, _d;
51
+ const slot = (_a = target === null || target === void 0 ? void 0 : target.getAttribute) === null || _a === void 0 ? void 0 : _a.call(target, 'slot');
52
+ if (slot === 'header' || slot === 'footer')
53
+ return true;
54
+ const row = target;
55
+ if ((row === null || row === void 0 ? void 0 : row.header) || (row === null || row === void 0 ? void 0 : row.footer) || (row === null || row === void 0 ? void 0 : row.group))
56
+ return true;
57
+ if (this.reorderHandle === 'icon') {
58
+ const path = (_d = (_c = (_b = evt).composedPath) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : [];
59
+ const onHandle = path.some((n) => {
60
+ var _a, _b;
61
+ const el = n;
62
+ return (_b = (_a = el === null || el === void 0 ? void 0 : el.classList) === null || _a === void 0 ? void 0 : _a.contains) === null || _b === void 0 ? void 0 : _b.call(_a, XV_ROW_DRAG_HANDLE_CLASS);
63
+ });
64
+ if (!onHandle)
65
+ return true;
66
+ }
67
+ return false;
68
+ };
69
+ this.destroySortable = () => {
70
+ var _a;
71
+ (_a = this.sortable) === null || _a === void 0 ? void 0 : _a.destroy();
72
+ this.sortable = undefined;
73
+ };
74
+ this.revertDom = (item) => {
75
+ if (this.dragPrevSibling && this.dragPrevSibling.parentNode === this.el) {
76
+ this.dragPrevSibling.after(item);
77
+ }
78
+ else {
79
+ this.el.insertBefore(item, this.el.firstChild);
80
+ }
81
+ };
82
+ this.getBodyRowIndex = (item) => {
83
+ const bodyRows = Array.from(this.el.children).filter((c) => c.tagName.toLowerCase() === XV_DATA_TABLE_ROW_TAG && !c.hasAttribute('slot'));
84
+ return bodyRows.indexOf(item);
85
+ };
86
+ }
87
+ componentDidLoad() {
88
+ if (this.reorderable)
89
+ this.initSortable();
90
+ }
91
+ disconnectedCallback() {
92
+ this.destroySortable();
93
+ }
94
+ reorderableChanged(newVal) {
95
+ if (newVal)
96
+ this.initSortable();
97
+ else
98
+ this.destroySortable();
99
+ }
100
+ reorderHandleChanged() {
101
+ if (!this.reorderable)
102
+ return;
103
+ this.destroySortable();
104
+ this.initSortable();
9
105
  }
10
106
  render() {
11
- return (h(Host, { key: 'b1372af08b743ed1aef81b68ab7bf700c8da70eb', class: "xv-data-table" }, h("caption", { key: '6c4e09f81583e922e0bb4178e18262f03cafd3aa' }, h("slot", { key: 'df8c239590ad10e861251072b0346f932079ce23', name: "title" })), h("div", { key: '29eceb5b420cf985a1356acf51e4febf90047177', class: "bar" }, h("div", { key: '0d5e4d8cf87c81f6c830b5b2cc8efb2e9ba1327b', class: "bar_batch" }, h("slot", { key: '625c7e3bfbc6f124a7a9060ae1a43a00ab6c435f', name: "batch" })), h("div", { key: '0664a4e32055a85372ba003081600eb2edf96e3a', class: "bar_toolbar" }, h("slot", { key: 'c011e2bdc922b1687f52d392349d587268f77908', name: "toolbar" }))), h("table", { key: 'ffd95819e13753b8a2e822a174d836846d2741cc', role: "table" }, this.columnWidths.length > 0 && (h("colgroup", { key: '74399d715e841396a5eb368b8d2cc572e25d20c5' }, this.columnWidths.map((width = 'auto') => h("col", { style: { width } })))), h("thead", { key: 'd3cc3762d226d808621ba27b900716701821baba' }, h("slot", { key: '9d3a7c6ae8cc84e30a8fc92de66feac1f4eaa39e', name: "header" })), h("tbody", { key: '78520a9c78ec76264274dad8416758f039638495' }, h("slot", { key: '6289031b2e4eaa3c582fcfc14d68fba118abaad6' })), h("tfoot", { key: '8f977a0d718ddf8bbe872f93b6e3a137c888fed5' }, h("slot", { key: '8d672262d5d585928bf67a9521541086773a1ccc', name: "footer" }))), !!this.loading && (h("div", { key: '70a18b675228bb4d12a6cd072db6d2a19afd128a', class: "loading" }, h("xv-loader-v2", { key: '0bd3f86d3ae592ee4f9284d59cc353bdeaf6006a', size: SIZE_VAR.LG })))));
107
+ return (h(Host, { key: '46b0c11ca4a13dbded5d7b5e3e44650f370a8711', class: "xv-data-table" }, h("caption", { key: 'aebf6cae0ea46563440ba971624635fa8cbadb72' }, h("slot", { key: 'af920f9c9705d1811c3980201c5bc4f9bb0bc84c', name: "title" })), h("div", { key: '89c886de25873e4d514e77572be7ca6de329f096', class: "bar" }, h("div", { key: '688b92cfc93878847e6925e3120ef3f59696cafd', class: "bar_batch" }, h("slot", { key: '8909114bda82194459f0338a23db76b527a1fe5a', name: "batch" })), h("div", { key: '555c3b65badfd9645767e89714a9d2c97dc9f7c1', class: "bar_toolbar" }, h("slot", { key: '9946f62bd101f59e3622321dfe86efaff2c0574b', name: "toolbar" }))), h("table", { key: 'a998f83af603ceef8b26667b117eeee99627ed54', role: "table" }, this.columnWidths.length > 0 && (h("colgroup", { key: '3e46d94f2ed815a4980928f65fefe724d39cd23c' }, this.columnWidths.map((width = 'auto') => h("col", { style: { width } })))), h("thead", { key: 'cb1a3b8db2ef9acbf1258e927612f092b8cf9a74' }, h("slot", { key: '9f18a1f0c2e08be4e6234f6b92184673afb6deb9', name: "header" })), h("tbody", { key: 'deb98974530349fb5d07edbc64e5d41de7a1ff64' }, h("slot", { key: 'a9c85de5cdcd0aee2685003775797ef70f0a08f9' })), h("tfoot", { key: '0e94add0841b8dfe2c47fc50c6ac0e517a8e55af' }, h("slot", { key: 'd7c33b811006d6b8bac137bded4a9c44a7ea0dc0', name: "footer" }))), !!this.loading && (h("div", { key: 'a699818d55901f79fabefbd33f5c97f9058fb348', class: "loading" }, h("xv-loader-v2", { key: 'e8a137029a7f418fe82a21aff761d9c737d05310', size: SIZE_VAR.LG })))));
12
108
  }
13
109
  static get is() { return "xv-data-table"; }
14
110
  static get encapsulation() { return "shadow"; }
@@ -145,8 +241,81 @@ export class XvDataTable {
145
241
  "reflect": false,
146
242
  "attribute": "hover",
147
243
  "defaultValue": "false"
244
+ },
245
+ "reorderable": {
246
+ "type": "boolean",
247
+ "mutable": false,
248
+ "complexType": {
249
+ "original": "boolean",
250
+ "resolved": "boolean",
251
+ "references": {}
252
+ },
253
+ "required": false,
254
+ "optional": false,
255
+ "docs": {
256
+ "tags": [],
257
+ "text": ""
258
+ },
259
+ "getter": false,
260
+ "setter": false,
261
+ "reflect": true,
262
+ "attribute": "reorderable",
263
+ "defaultValue": "false"
264
+ },
265
+ "reorderHandle": {
266
+ "type": "string",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "'icon' | 'row'",
270
+ "resolved": "\"icon\" | \"row\"",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": false,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": ""
278
+ },
279
+ "getter": false,
280
+ "setter": false,
281
+ "reflect": true,
282
+ "attribute": "reorder-handle",
283
+ "defaultValue": "'icon'"
148
284
  }
149
285
  };
150
286
  }
287
+ static get events() {
288
+ return [{
289
+ "method": "reorderChange",
290
+ "name": "reorderChange",
291
+ "bubbles": true,
292
+ "cancelable": true,
293
+ "composed": true,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": ""
297
+ },
298
+ "complexType": {
299
+ "original": "XvDataTableReorder",
300
+ "resolved": "XvDataTableReorder",
301
+ "references": {
302
+ "XvDataTableReorder": {
303
+ "location": "import",
304
+ "path": "./_vars",
305
+ "id": "src/components/xv-data-table/_vars.ts::XvDataTableReorder"
306
+ }
307
+ }
308
+ }
309
+ }];
310
+ }
151
311
  static get elementRef() { return "el"; }
312
+ static get watchers() {
313
+ return [{
314
+ "propName": "reorderable",
315
+ "methodName": "reorderableChanged"
316
+ }, {
317
+ "propName": "reorderHandle",
318
+ "methodName": "reorderHandleChanged"
319
+ }];
320
+ }
152
321
  }
@@ -133,8 +133,10 @@ export class XvDatepicker {
133
133
  get isPrevDisabled() {
134
134
  if (!this.minDate)
135
135
  return false;
136
- const prevMonth = dateFns.startOfMonth(dateFns.addMonths(this.month, -1));
137
- return dateFns.isBefore(prevMonth, this.minDate);
136
+ // disable only when the WHOLE previous month is before min — its end must
137
+ // be compared, otherwise a mid-month min blocks navigating to its own month
138
+ const prevMonthEnd = dateFns.endOfMonth(dateFns.addMonths(this.month, -1));
139
+ return dateFns.isBefore(prevMonthEnd, this.minDate);
138
140
  }
139
141
  get isNextDisabled() {
140
142
  if (!this.maxDate)
@@ -226,12 +228,12 @@ export class XvDatepicker {
226
228
  }
227
229
  render() {
228
230
  const [start, end] = this.value;
229
- return (h(Host, { key: 'd16b04b6b21f82ea42e475be85e775c1fe5eb958', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: '952d9189b9e629daeac892b42addf33bbfd766fc', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: 'ad2702fe016d7a2b84f7d95d244474134a57da68', class: "control_label" }, this.label), h("div", { key: '09b6749a2365c4f0329f11fccc7a6186c6cc2d22', class: {
231
+ return (h(Host, { key: '4e1b7968bb670a8fc361c929fcffb804622abcfd', class: { disabled: !!this.disabled }, tabindex: this.disabled ? '-1' : undefined }, h("div", { key: '9a9f2dc31c4d48f5a78ffe904ebbac1c47902c02', "aria-controls": "popover", class: "control" }, this.label && h("label", { key: 'e46e942c45de9d58f6bf131d8f9bf68edc9aeef2', class: "control_label" }, this.label), h("div", { key: '71eb87432754769fe562ed71137d6df64183772d', class: {
230
232
  'control_field': true,
231
233
  loading: this.loading,
232
234
  error: !!this.error || !!this.localError,
233
235
  warning: this.warning !== undefined,
234
- }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: '1d445454c2a3d877b34af5d349963c5f93b773ab', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: 'df9052c317f19f27d69a643a1bd3188bde31ac62', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '7879037a388a62d1b27f59cb948884f0eb1d3a21' }, this.helper && h("p", { key: '16e2131e39737924c723acb26951fdf59dc75cb0', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '954c5a64920396a19c4ef1c4b7909dc04eeb36ca', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: 'cb1bafede371ab13e39ba52709cf4ab4657e322c', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: '79cbc4d28936cb493d78bd8865c51001f434fa9e', class: "header" }, h("xv-button-v2", { key: '86a998f7e83bd1b5dc9d779c8008a74d08f128a5', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: '0aea8f242bd710cedddd1a7c36aee030338303fb', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '2f7e852525c524a74ae6dfc3bda351a28e86d5bc', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: de }), h("input", { key: 'ed96a0718e3f55d6f16fd9e5d8061e0368fe912f', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: 'abf390fcf998309595156df85476a62a3d4bc070', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: 'b96f43de944a0b8c33144717cf571dbdc25247d9', slot: "icon-left", class: "header_icon next" }))), h("div", { key: '8ed5e8aa18165b973e00ff36c083386449c1921c', class: "week" }, h("p", { key: 'e322478df74ad49dd3c8320a86077eb381b0ec4c', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '75425fd31de805849b06e54b267b34b93398c0e1', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
236
+ }, onClick: this.handleOpen, ref: (el) => (this.controlEl = el) }, h("input", { key: '0908d3af22f8aaf8c5407a8b66ac56c3a34b7d24', lang: "de", type: "date", name: "start", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: start ? dateFns.format(start, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'start'), onBlur: (e) => this.handleBlur(e, 'start'), onKeyDown: (e) => this.handleKeydown(e, 'start') }), this.variant === 'range' && (h("input", { key: '1841a2f65ddb657e0aeff38cc34e90c01019815b', lang: "de", type: "date", name: "end", disabled: this.loading || this.disabled, readonly: this.readonly || this.variant === 'range', min: this.min, max: this.max, value: end ? dateFns.format(end, DEF_FORMAT) : '', onChange: (e) => this.handleChange(e, 'end'), onBlur: (e) => this.handleBlur(e, 'end'), onKeyDown: (e) => this.handleKeydown(e, 'end') }))), (this.helper || this.error || this.warning || this.localError) && (h("div", { key: '13766133adfab4a2ce2c4e038871699d360f22ce' }, this.helper && h("p", { key: '274c7dfcc09ef35b9f0cdbba8454c2fc385370f7', class: "control_message helper" }, this.helper), (this.error || this.warning || this.localError) && (h("p", { key: '3ed6f0c1f53f15c22e60fabf5f476bb663b8d24c', class: { control_message: true, error: !!this.error || !!this.localError } }, this.error || this.localError || this.warning))))), h("div", { key: '5762ec14597d9418dfbd04a31db44d299aa88625', role: "dialog", class: { popover: true, open: this.open }, ref: (el) => (this.popoverEl = el) }, h("div", { key: '8ad3a1e6c31b982755f7b82b7cb16644c4f23f38', class: "header" }, h("xv-button-v2", { key: 'db4d454e82ca8ec26fcf4f291ac21146dcb14a3b', tabindex: this.open ? undefined : '-1', disabled: this.isPrevDisabled, variant: "ghost", onClick: this.prevMonth }, h("span", { key: 'e80d1efac41ea1e4aa7aa83a22cd5f7d9db40553', slot: "icon-left", class: "header_icon prev" })), h("p", { key: '37505645ea5e5181a0797560aeada8b0f22ef92e', class: "header_date" }, dateFns.format(this.month, 'LLLL', { locale: de }), h("input", { key: 'b3ccae4078f4ce61ec85a79abe16a4c406553f6f', tabindex: this.open ? undefined : '-1', type: "number", value: this.month.getFullYear(), onInput: this.handleYearChange, onBlur: this.handleYearBlur })), h("xv-button-v2", { key: '8ece0927ba0dc434765a7b2fea50ad1420913cbe', tabindex: this.open ? undefined : '-1', disabled: this.isNextDisabled, variant: "ghost", onClick: this.nextMonth }, h("span", { key: 'b471b2d6137c5c52f5089d821225d21c93cb1f4d', slot: "icon-left", class: "header_icon next" }))), h("div", { key: 'd7de53d7865a5c033fb0e5e2c416eee8dff3b60a', class: "week" }, h("p", { key: '8d4d8b3b9e42c040435d2e6813aa96bcaca2144d', class: "week_day" }), WEEK.map((day) => h("p", { class: "week_day" }, day, "."))), h("div", { key: '63b91609bc0e2709952f8b66b20997b16b960260', class: "week" }, this.days.map((day, idx) => (h(Fragment, null, idx % 7 === 0 && (h("button", { tabindex: this.open ? undefined : '-1', disabled: true, class: "week_day disabled" }, day.week)), h("button", { tabindex: this.open ? undefined : '-1', onClick: () => this.handleSetDate(day), disabled: day.disabled, class: {
235
237
  'week_day': true,
236
238
  inRange: this.variant === 'range' && dateFns.isWithinInterval(day.date, { start, end }),
237
239
  isToday: day.isToday,
@@ -24,7 +24,7 @@ export class XvDropdownItem {
24
24
  });
25
25
  }
26
26
  render() {
27
- return (h(Host, { key: '3df1015bc9b074c0fe3478128250244415045641', class: "xv-dropdown-item", value: this.value, role: "option", tabindex: this.disabled ? -1 : false }, this.multiple && (h("xv-checkbox-v2", { key: '739d03975964ea0fc28fdc32c6f739e3a2dc1290', class: "multiple-check", size: this.size, checked: this.selected, disabled: this.disabled })), h("slot", { key: '7876baa55c1c28bd4c0e894def60848963761d6d' }), (!this.multiple && this.selected) && h("span", { key: 'd8aebd6f163be95b95c6f6269eae5b3cce94e34c', class: "checkmark far fa-check" })));
27
+ return (h(Host, { key: '355cf1fe5be6d5fda5fd30f6a892b2591d94b36b', class: "xv-dropdown-item", value: this.value, role: "option", tabindex: this.disabled ? -1 : false }, this.multiple && (h("xv-checkbox-v2", { key: '957c7fe39439b9ce115176e5c4c609635f0aa482', class: "multiple-check", size: this.size, checked: this.selected, disabled: this.disabled })), h("slot", { key: '75a513ed8ca0e9e6bea629a9fb0c5673965a960a' }), (!this.multiple && this.selected) && h("span", { key: '3368c59f452b9cdcb5fdf8ccbd4ea918ba0bb45e', class: "checkmark far fa-check" })));
28
28
  }
29
29
  componentWillLoad() {
30
30
  if (!this.value)
@@ -149,7 +149,7 @@ export class XvDropdown {
149
149
  }
150
150
  /* endregion Search methods */
151
151
  render() {
152
- return (h(Host, { key: 'eecc73132cb30e15e7ed8b92f518e6759fd68115', class: { 'xv-dropdown': true, [this.variant]: !!this.variant }, role: "combobox", size: this.size, open: this.open, error: !!this.error, disabled: this.disabled, tabindex: (this.disabled || this.readonly) ? -1 : false }, (this.label || this.info) && (h("label", { key: '06de4ebd44e17c961529ad676b18064c716bf5cc', class: "label" }, h("slot", { key: 'b765429ef1c5ae627646137c5ba9407f486843cd', name: "label" }, this.label), this.info && h("xv-tooltip-v2", { key: '35e293ff0e3130fac6d4493bcd32f62afa78e584', class: "label_info", message: this.info }))), h("div", { key: '128a43df761f3cef5c5740825a68315332ff41d9', class: { "xv-dropdown-control control": true, readonly: !!this.readonly }, onClick: this.handleOpen }, (this.multiple && this.selectedMap.size > 0) && (h("xv-tag-v2", { key: 'f90e898ee70cf12a6eb2fd11e83809dc0f39a129', class: "control_count", onCloseClick: this.clearHandle, closeable: !this.required, bg: "var(--background-inverse)", color: "var(--icon-inverse)" }, this.selectedMap.size)), this.selected.length ? (h("p", { class: "control_value" }, this.selected.join(', '))) : (h("p", { class: "control_placeholder" }, this.placeholder || '')), this._renderIcon(), h("svg", { key: '80ce81bc67b06a7aecf88c4be207f3e63a1e9cad', class: "control_arrow", focusable: "false", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", "aria-hidden": "true", width: "16", height: "16", viewBox: "0 0 16 16" }, h("path", { key: '2eb2e82a44c9131ff99b4dc96087cdc05d4beac9', d: "M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z" }))), this.open && h("div", { key: 'c8d968006c6f01fda8f24ffb8d8f8bb2ceb19359', class: "options" }, this.search && (h("div", { key: '501bccb5b1f3c9900b2d1d36ee8bdc606ef73c38', class: "options_search" }, h("xv-text-input-v2", { key: 'e5eb069e999c00e53e4e2a5087b0bbb3d926dd7c', type: "search", block: true, autocomplete: "off", size: this.size, value: this.searchQuery, placeholder: this.searchPlaceholder, onValueChange: this.handleSearchInput }))), h("slot", { key: "xv-dropdown-options" })), (this.helper || typeof this.error === 'string' || this.warning) && (h("p", { key: '379472520222b0e338e377c3fd4432e16e9cc460', class: "helper" }, this.error || this.warning || this.helper))));
152
+ return (h(Host, { key: 'fd9278225b7c1e0499f11a43b447b792ffecbecf', class: { 'xv-dropdown': true, [this.variant]: !!this.variant }, role: "combobox", size: this.size, open: this.open, error: !!this.error, disabled: this.disabled, tabindex: (this.disabled || this.readonly) ? -1 : false }, (this.label || this.info) && (h("label", { key: '4e1e6dd506e7c0ca12f24717a4ac0c507ed77150', class: "label" }, h("slot", { key: '7a7f9d886c871616a0214264fc012495b77d48a8', name: "label" }, this.label), this.info && h("xv-tooltip-v2", { key: '97b64ef9259c2924fa9cc388e029775f22d67f77', class: "label_info", message: this.info }))), h("div", { key: '57aa25e912aa840bbe049fa30248315ad1962f79', class: { "xv-dropdown-control control": true, readonly: !!this.readonly }, onClick: this.handleOpen }, (this.multiple && this.selectedMap.size > 0) && (h("xv-tag-v2", { key: 'ccdd67146706bde7a0b1d68db1033700262db1ad', class: "control_count", onCloseClick: this.clearHandle, closeable: !this.required, bg: "var(--background-inverse)", color: "var(--icon-inverse)" }, this.selectedMap.size)), this.selected.length ? (h("p", { class: "control_value" }, this.selected.join(', '))) : (h("p", { class: "control_placeholder" }, this.placeholder || '')), this._renderIcon(), h("svg", { key: '2594b21e9b9150a1d50099603b964177d467fb7b', class: "control_arrow", focusable: "false", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", "aria-hidden": "true", width: "16", height: "16", viewBox: "0 0 16 16" }, h("path", { key: 'df82db7fb2c6a43e97484b5f8f987bd9f0aaae90', d: "M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z" }))), this.open && h("div", { key: '841b3935e0140289491a79711c5a81f3d838cb6e', class: "options" }, this.search && (h("div", { key: '836c860255c81b585525a7aa0a15ed4e9c4153b8', class: "options_search" }, h("xv-text-input-v2", { key: '24e362915e2b2137fe4b96073b4f358e757e68e1', type: "search", block: true, autocomplete: "off", size: this.size, value: this.searchQuery, placeholder: this.searchPlaceholder, onValueChange: this.handleSearchInput }))), h("slot", { key: "xv-dropdown-options" })), (this.helper || typeof this.error === 'string' || this.warning) && (h("p", { key: '4e2e576aaeb17740cf79c045edbe19c48eb4c346', class: "helper" }, this.error || this.warning || this.helper))));
153
153
  }
154
154
  componentDidLoad() {
155
155
  this.syncOpenState();
@@ -84,7 +84,7 @@ export class XvFileUploader {
84
84
  }
85
85
  }
86
86
  render() {
87
- return (h(Host, { key: '9a1183ca347110f62e87f645e6060f7b6c9a5644', class: { 'upload-wrapper': true, [`uploader-${this.size}`]: true, disabled: !!this.disabled, error: !!this.error } }, this.label && h("label", { key: '9eed21e075fabb1bbef283340dcfc2f99c312d55', class: "label" }, this.label), this.description && h("p", { key: '7db4851fc587ba47ade596a2a2e2f3724ea46073', class: "description" }, this.description), this.variant === 'button' ? (h("xv-button-v2", { class: "uploadBtn", variant: this.buttonVariant, disabled: this.disabled, onClick: () => this.fileInput.click() }, this.addText || 'Dateien auswählen')) : (h("div", { class: { 'drop-zone': true, active: this.dragActive }, onDrop: this.onDrop, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onClick: () => this.fileInput.click() }, this.addText || 'Dateien hierher ziehen oder darauf klicken, um eine Datei auszuwählen.')), h("input", { key: '0fabaa8893bb18cffb18484f843ca5c527b4831b', ref: el => (this.fileInput = el), type: "file", hidden: true, onChange: this.onFileSelect, multiple: this.multiple, accept: this.accept.join(',') }), this.error && h("p", { key: '49d1b1321fbc149d14e20e70d994230ecf4a0e00', class: "global-error" }, this.error), h("ul", { key: '2381e5658af574cd9ab1c2366cce41c30c527c81', class: "file-list" }, this.files.map((file, index) => {
87
+ return (h(Host, { key: '4dcf9f36c770aab56b19334a8cf8e71da5264195', class: { 'upload-wrapper': true, [`uploader-${this.size}`]: true, disabled: !!this.disabled, error: !!this.error } }, this.label && h("label", { key: 'bfce6e9fab5884fcaf6b221251caa5dd5f896f3a', class: "label" }, this.label), this.description && h("p", { key: '21fa2b5e9ca8aeb2be2c405878fba66bb012f825', class: "description" }, this.description), this.variant === 'button' ? (h("xv-button-v2", { class: "uploadBtn", variant: this.buttonVariant, disabled: this.disabled, onClick: () => this.fileInput.click() }, this.addText || 'Dateien auswählen')) : (h("div", { class: { 'drop-zone': true, active: this.dragActive }, onDrop: this.onDrop, onDragOver: this.onDragOver, onDragLeave: this.onDragLeave, onClick: () => this.fileInput.click() }, this.addText || 'Dateien hierher ziehen oder darauf klicken, um eine Datei auszuwählen.')), h("input", { key: '1a41f2dc19ab2176d63edaeb1973daf753ac28fb', ref: el => (this.fileInput = el), type: "file", hidden: true, onChange: this.onFileSelect, multiple: this.multiple, accept: this.accept.join(',') }), this.error && h("p", { key: '67b83e7841948fea6ec34ba51cd838561039e1ff', class: "global-error" }, this.error), h("ul", { key: 'fbdb04a04604f64a995d6c8044c04fcf566c7e01', class: "file-list" }, this.files.map((file, index) => {
88
88
  var _a, _b;
89
89
  return (h("li", { class: { file: true, withError: !!(((_a = this.errors) === null || _a === void 0 ? void 0 : _a[index]) || ((_b = this.errorMessages) === null || _b === void 0 ? void 0 : _b[index])) } }, h("div", { class: "file_container" }, h("span", { class: "file_container_name" }, file.name), this._renderLoaderState(index)), this._renderError(index)));
90
90
  }))));
@@ -34,7 +34,7 @@ export class Xvfooter {
34
34
  render() {
35
35
  const { categories, socials, logo, legalLinks, payments, partners, advantages } = this.data || {};
36
36
  const hasDataLength = ((categories === null || categories === void 0 ? void 0 : categories.length) || (partners === null || partners === void 0 ? void 0 : partners.length) || (payments === null || payments === void 0 ? void 0 : payments.length) || (socials === null || socials === void 0 ? void 0 : socials.length));
37
- return (h("footer", { key: '57a9ea285c3c2d1fb2392ad1a55a88c4871a87fd', class: "xv-footer" }, (advantages === null || advantages === void 0 ? void 0 : advantages.length) > 0 && (h("div", { key: 'c766d0e1f1014c2c5064cb7861152dce699d96c1', class: "xv-footer-advantages" }, h("div", { key: '0518769e9a8c0af63b0342e550b1d39527ac9f50', class: "xv-container" }, this._renderFooterList(advantages, { itemWithLabel: true })))), hasDataLength && (h("div", { key: '12e15eb5caf3de6a859e74126466bb7fa74d61bb', class: "xv-container" }, h("div", { key: 'f22c54fc63448fd9eeccef8ad76e4b710f153b7a', class: "xv-footer__grid xv-footer-y-spacing" }, h("div", { key: 'c42073c69c25b777bd2cfa471fc01d7a6b58a003', class: "xv-footer__col-main" }, h("ul", { key: '8d08fe27e968c1dd99ee55f4d565aa780cb4fc60', class: "xv-footer-categories" }, categories === null || categories === void 0 ? void 0 : categories.map((category) => (h("li", null, h("p", { class: "xv-label-02" }, category.label), h("ul", { class: "xv-footer-routes" }, category.routes.map((item) => (h("li", null, h("a", { class: "xv-body-compact-02", href: item.href, target: item.target }, item.label)))))))))), h("div", { key: 'a4ea7f44c1a95084e45402746b5b7fbe326e660b', class: "xv-footer__col-sidebar" }, this._renderFooterList(partners, { label: 'crossvertise Partner' }), this._renderFooterList(payments, { label: 'Bequem und sicher bezahlen' }), this._renderFooterList(socials, { label: 'Folgen Sie uns', isRow: true }))))), (legalLinks === null || legalLinks === void 0 ? void 0 : legalLinks.length) > 0 && (h("div", { key: 'd1486138fdd43eb3144ae38d833d08777877eefa', class: "xv-footer-legal" }, h("div", { key: '82cb58eb8130f924b4388341fc348c49677e922f', class: "xv-container" }, h("div", { key: '0b77936f4a2c74a634b4d82a8f0b394e4b2c85b4', class: "xv-footer-legal-row" }, logo && (h("a", { key: '067ea97aa8507bf352131dc55bf647b19950b643', class: "xv-footer-logo", href: logo.href, target: logo.target }, logo.label && h("span", { key: 'eacd38e11839eb78542905438f8332d0019b20f7', class: "xv-label-02" }, logo.label), h("img", { key: '949896cc209c9c5c3c3b3fdde25a2a82cb08b0cb', loading: "lazy", src: logo.image, alt: logo.label }))), h("ul", { key: '24fe8ce5237d0c3fffc325a8369a683a09057eac' }, legalLinks.map((item) => {
37
+ return (h("footer", { key: '31f496895b343c1b5a26cf04a73acd82df4c0305', class: "xv-footer" }, (advantages === null || advantages === void 0 ? void 0 : advantages.length) > 0 && (h("div", { key: 'd1203c0a5596c41106c1433b4b7c4ae5432250ef', class: "xv-footer-advantages" }, h("div", { key: '288c8cc9b0507063e260a40dc105723eb59f5f1a', class: "xv-container" }, this._renderFooterList(advantages, { itemWithLabel: true })))), hasDataLength && (h("div", { key: '188b4a11d3f1b9f713b866157d21ac70b130781b', class: "xv-container" }, h("div", { key: 'f8c737d868c94a9502cd106597ac9fb006ee2075', class: "xv-footer__grid xv-footer-y-spacing" }, h("div", { key: '78e68d0fb11fc0a3e5f75cef4caa24078f9768f4', class: "xv-footer__col-main" }, h("ul", { key: 'ce1b2c7b2c98e490d44f670f745c9d6ed1579c4b', class: "xv-footer-categories" }, categories === null || categories === void 0 ? void 0 : categories.map((category) => (h("li", null, h("p", { class: "xv-label-02" }, category.label), h("ul", { class: "xv-footer-routes" }, category.routes.map((item) => (h("li", null, h("a", { class: "xv-body-compact-02", href: item.href, target: item.target }, item.label)))))))))), h("div", { key: '0d2f0a95a3435e9817c21e1eddf7372da1566404', class: "xv-footer__col-sidebar" }, this._renderFooterList(partners, { label: 'crossvertise Partner' }), this._renderFooterList(payments, { label: 'Bequem und sicher bezahlen' }), this._renderFooterList(socials, { label: 'Folgen Sie uns', isRow: true }))))), (legalLinks === null || legalLinks === void 0 ? void 0 : legalLinks.length) > 0 && (h("div", { key: '771aabeac7888753cf561f9d6ef04561aeb1816c', class: "xv-footer-legal" }, h("div", { key: '31e92aa6c324e23d1f99b041360861741829e255', class: "xv-container" }, h("div", { key: '9e615547872c8a9fa75e76c0890430f82e8b5024', class: "xv-footer-legal-row" }, logo && (h("a", { key: 'f5c932dc0d29b25642f2da6fa74bd43a29359f3f', class: "xv-footer-logo", href: logo.href, target: logo.target }, logo.label && h("span", { key: '737eecddab96349fec709c4c5609d83e87d0e560', class: "xv-label-02" }, logo.label), h("img", { key: 'f5e64947742cfd5f9e79adffb14d5c7e7d0dc66e', loading: "lazy", src: logo.image, alt: logo.label }))), h("ul", { key: 'b05632d176a3a60f0c6b698d0958b8546ba0867f' }, legalLinks.map((item) => {
38
38
  if (item.label === 'Cookie Einstellungen') {
39
39
  return h("li", null, h("a", { class: "xv-helper-text-02", onClick: this.openCookieSettings }, item.label));
40
40
  }
@@ -167,7 +167,7 @@ export class XvHeader {
167
167
  render() {
168
168
  var _a, _b, _c, _d, _e;
169
169
  const isXvBrand = (((_a = this.metaNav) === null || _a === void 0 ? void 0 : _a['WhitelabelName']) || 'Xv') === 'Xv';
170
- return (h("header", { key: 'a5a3a7d2df27e858b7dad8ab8d6decd58dc62dbb', class: "header" }, h("div", { key: 'babe38a9e162f76ab1e0124379279c16b2947b25', class: "header-wrapper" }, h("div", { key: 'c3b263c2e4af26a51a255519e69717d944dfed5c', class: "xv-container" }, h("div", { key: '726de64f7962660f8470197f0becd495c4d9029a', class: "header-top" }, h("div", { key: 'e13f7017a2c7c45b3d25ceae8e7274f94e7f8e83', class: "header-top--left" }, h("xv-button-v2", { key: '1d8adabbe4ccd35f5b51d3faf0c6b47843aa286f', class: "menu-btn", variant: "ghost", onClick: this.toggleMobMenu }, h("i", { key: '08ab9b3dfba535d0a1b2b2c04f15a237a73ec4a9', slot: "icon-left", class: { 'fa': true, 'fa-times': this.mobMenuOpen, 'fa-bars': !this.mobMenuOpen } })), this.metaNav && (h("a", { key: '052204e11dd798185823615057103627a28cc6d5', href: `${window.location.origin}/` }, h("picture", { key: 'f1c9a184b72df025ab8acfd3cf9c6df98c3ff2c0' }, h("source", { key: '8bd06b8570606e990e169ce2e05d1fc279f9acbb', srcSet: ((_b = this.metaNav) === null || _b === void 0 ? void 0 : _b.LogoUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg', media: "(min-width: 990px)" }), h("img", { key: 'f2141af7718c2cddf617c241cecc797450743106', src: ((_c = this.metaNav) === null || _c === void 0 ? void 0 : _c.LogoSmallUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg', onError: this.logoFallback, loading: "lazy", alt: "Crossvertise" })))), this.orgUnit && (h("xv-link-v2", { key: '4e3f8507ac043cd0117d74a491fb256e90ec706f', class: "header-top--orgUnit", variant: "standalone", href: "/de-de/mycrossvertise" }, this.orgUnit))), h("ul", { key: '11912e2e2a3b7cc93e481460c4774eacc5312a29', class: "header-top--right" }, this._renderSearch(), this._renderImpersonationInfo(), !((_d = this.metaNav) === null || _d === void 0 ? void 0 : _d.IsManager) && isXvBrand && (h("li", { key: '1e0bb319218838bacf5efab79e19d8d0adadd8e0' }, h("xv-link-v2", { key: 'fe076444a1cac6104d8401d91e208d7566ff138f', variant: "ghost", href: "https://www.crossvertise.com/ueber-uns/kontakt" }, h("xv-button-v2", { key: 'ba10eca9ec41f03f5c57415b3239bd5afcb1acd7', variant: "ghost", size: SIZE_VAR.MD }, h("i", { key: '7aad50ae0cbb5cffd89666f538619ed1be10583e', class: "header-icon far fa-envelope" }), h("span", { key: '84bd180870bb4ccf982a0e2e18aa1a745cddfa0b', class: "header-label xv-body-02" }, "Kontakt"))))), this._renderNotifications(), this._renderAccount(), !((_e = this.metaNav) === null || _e === void 0 ? void 0 : _e.IsManager) && isXvBrand && (h("li", { key: '73a59576e63da63e3d532c271a4b54baa6094bf0' }, h("xv-link-v2", { key: '5efb5725a5336b35fd5192cf4e572709c3359ea1', variant: "ghost", href: "https://help.crossvertise.com" }, h("xv-button-v2", { key: '3537798c1a812ead699cb31e30a24c62f9809c74', variant: "ghost", size: SIZE_VAR.MD }, h("i", { key: 'e261dfb9c1a697df502096e7b33481624af6a771', class: "header-icon far fa-question-circle" }), h("span", { key: '24caff83d5e1c8868ffd985e2f22ce9c2f5a6ea1', class: "header-label xv-body-02" }, "Hilfe"))))), this._renderShoppingCart()))), h("div", { key: '3bcb3cf80a1b5a105710947be081c7b7ab8bcdca', class: "header-wrapper--bg" }, h("div", { key: 'a4f8f4674f2d01f1df8f63bbec238e79eeb0cc1b', class: "xv-container" }, h("xv-mega-menu", { key: '0c01cf23f334cb0662e2de0ccb5af5fdf15c0679', open: this.mobMenuOpen, onOpenChange: this.closeMobMenu })))), h("xv-login-modal", { key: '5108b87f464835b5c85e0427ab3b768109de57a7', visible: this.showLoginModal, onClose: () => this.showLoginModal = false })));
170
+ return (h("header", { key: '4e04b78a99212bc5fdfbda41aa2f2f6a88175c48', class: "header" }, h("div", { key: 'd9966301c1616fcaec060e50fa29f81a3198227b', class: "header-wrapper" }, h("div", { key: '9256f6a7b31da73fff32ac2d95bee384e64496d2', class: "xv-container" }, h("div", { key: 'f9927a5b1d283fecfc57014c35676c5a3cf47d9f', class: "header-top" }, h("div", { key: 'fbd79ec4e41e203b0c7d8e37085633a6ab3ee466', class: "header-top--left" }, h("xv-button-v2", { key: '8d4e4f298e2f708e06a90a7c9a21ab578a43a7a3', class: "menu-btn", variant: "ghost", onClick: this.toggleMobMenu }, h("i", { key: '33aa5177581c5f8b47ec0c435a896b25e2305316', slot: "icon-left", class: { 'fa': true, 'fa-times': this.mobMenuOpen, 'fa-bars': !this.mobMenuOpen } })), this.metaNav && (h("a", { key: '1fca5d3cd0638145f34f9bdc6c6446e75f1fffdc', href: `${window.location.origin}/` }, h("picture", { key: 'a51179dd4e7b0a60d5e9a458660d23501b4d152b' }, h("source", { key: 'faef9c5ca3f5e6355862eedcb447a4975b14463b', srcSet: ((_b = this.metaNav) === null || _b === void 0 ? void 0 : _b.LogoUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo.svg', media: "(min-width: 990px)" }), h("img", { key: '83c80fb99185fceb3d6559bcd59b44e3bbaeb689', src: ((_c = this.metaNav) === null || _c === void 0 ? void 0 : _c.LogoSmallUrl) || 'https://www.crossvertise.com/ResourcePackages/Bootstrap/assets/dist/images/logo-small.svg', onError: this.logoFallback, loading: "lazy", alt: "Crossvertise" })))), this.orgUnit && (h("xv-link-v2", { key: '32b8ca9c78c50df7fac9a5f816fb75db96af1df5', class: "header-top--orgUnit", variant: "standalone", href: "/de-de/mycrossvertise" }, this.orgUnit))), h("ul", { key: '67a88b216fff8353188ce1b684b2e644dbb5c34a', class: "header-top--right" }, this._renderSearch(), this._renderImpersonationInfo(), !((_d = this.metaNav) === null || _d === void 0 ? void 0 : _d.IsManager) && isXvBrand && (h("li", { key: '5895fae5c1da7e8ac325c03b07c55e8c522d5d76' }, h("xv-link-v2", { key: '3ed95ee7d3bb9d250cc80f51265a45cdcbc879ae', variant: "ghost", href: "https://www.crossvertise.com/ueber-uns/kontakt" }, h("xv-button-v2", { key: 'fd3201859e31efb6767110a648f79b571ba9412e', variant: "ghost", size: SIZE_VAR.MD }, h("i", { key: 'a357cf1fc11f5df20c06ba7bba688760e730795d', class: "header-icon far fa-envelope" }), h("span", { key: '2958ee2e9b503b5a9eda1db721474d452bfc14d9', class: "header-label xv-body-02" }, "Kontakt"))))), this._renderNotifications(), this._renderAccount(), !((_e = this.metaNav) === null || _e === void 0 ? void 0 : _e.IsManager) && isXvBrand && (h("li", { key: '8e0d0ade405003a63512d7c736f4dd2e3aa65a3a' }, h("xv-link-v2", { key: '152ab5e9e8e13a1261de664f95d1ed10a4572d01', variant: "ghost", href: "https://help.crossvertise.com" }, h("xv-button-v2", { key: '641f8fca24c2bef017ba11494e76063731df1c9b', variant: "ghost", size: SIZE_VAR.MD }, h("i", { key: '2dab2659e3010e1cca36be982c14bfafa27f2a69', class: "header-icon far fa-question-circle" }), h("span", { key: '4c919f58a513e136311a30ac6367f5134171c109', class: "header-label xv-body-02" }, "Hilfe"))))), this._renderShoppingCart()))), h("div", { key: '35dc7801ae8b2b21b14a2f6d54c72d21aa6da9d2', class: "header-wrapper--bg" }, h("div", { key: '058fcec87bf3e1b7a9263f5e8d108b9d6d82857a', class: "xv-container" }, h("xv-mega-menu", { key: '43293fa89e5e9629847c47cd582425cf53fbb875', open: this.mobMenuOpen, onOpenChange: this.closeMobMenu })))), h("xv-login-modal", { key: 'f21b968eba5252c0acfb1963482da8e2d31a3ab0', visible: this.showLoginModal, onClose: () => this.showLoginModal = false })));
171
171
  }
172
172
  static get is() { return "xv-header"; }
173
173
  static get originalStyleUrls() {