xv-webcomponents 1.24.11-qa.0 → 2.0.0-beta.2
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/LICENSE +21 -21
- package/README.md +248 -129
- package/dist/angular/angular-component-lib/utils.d.ts +9 -0
- package/dist/angular/angular-component-lib/utils.js +58 -0
- package/dist/angular/index.d.ts +4 -0
- package/dist/angular/index.js +57 -0
- package/dist/angular/proxies.d.ts +670 -0
- package/dist/angular/proxies.js +1658 -0
- package/dist/angular/web-components.module.d.ts +7 -0
- package/dist/angular/web-components.module.js +171 -0
- package/dist/cjs/_vars-DMytunQw.js +26 -0
- package/dist/cjs/{index-Cb30DBqk.js → index-Cfa6bBQW.js} +2 -0
- package/dist/cjs/{index-DpLAFt0R.js → index-Cixkr3sz.js} +387 -1796
- package/dist/cjs/index.cjs.js +4 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/maplibre-gl-BIvnXGyX.js +884 -0
- package/dist/cjs/xv-accordion-v2_50.cjs.entry.js +533 -482
- package/dist/cjs/xv-header-next.cjs.entry.js +10 -8
- package/dist/cjs/xv-mega-menu-next.cjs.entry.js +4 -4
- package/dist/cjs/xv-webcomponents.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/xv-accordion/xv-accordion.js +1 -1
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +1 -1
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +1 -1
- package/dist/collection/components/xv-button/xv-button.js +2 -1
- package/dist/collection/components/xv-button-group/xv-button-group.js +3 -3
- package/dist/collection/components/xv-card/xv-card.js +1 -1
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +4 -3
- package/dist/collection/components/xv-content-switcher/xv-content-switcher-item/xv-content-switcher-item.js +1 -1
- package/dist/collection/components/xv-content-switcher/xv-content-switcher.js +7 -6
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +5 -3
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +4 -3
- package/dist/collection/components/xv-data-table/xv-data-table.js +5 -3
- package/dist/collection/components/xv-date-picker/xv-date-picker.js +16 -8
- package/dist/collection/components/xv-datepicker/xv-datepicker.js +5 -4
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +9 -5
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +9 -5
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +3 -3
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +6 -4
- package/dist/collection/components/xv-footer/xv-footer.js +1 -1
- package/dist/collection/components/xv-geo-map/xv-geo-map.css +43 -67
- package/dist/collection/components/xv-geo-map/xv-geo-map.js +10 -10
- package/dist/collection/components/xv-header/xv-header.js +7 -6
- package/dist/collection/components/xv-header-next/xv-header-next.js +10 -9
- package/dist/collection/components/xv-link/xv-link.js +1 -1
- package/dist/collection/components/xv-loader/xv-loader.js +2 -1
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +7 -7
- package/dist/collection/components/xv-mega-menu/xv-mega-menu.js +2 -2
- package/dist/collection/components/xv-mega-menu-next/xv-mega-menu-next.js +5 -4
- package/dist/collection/components/xv-modal/xv-modal.js +3 -2
- package/dist/collection/components/xv-notification/xv-notification.js +3 -2
- package/dist/collection/components/xv-number-input/xv-number-input.js +4 -3
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +7 -4
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +5 -3
- package/dist/collection/components/xv-pagination/xv-pagination.css +2 -2
- package/dist/collection/components/xv-pagination/xv-pagination.js +7 -4
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +3 -2
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +6 -5
- package/dist/collection/components/xv-radio/xv-radio.js +4 -3
- package/dist/collection/components/xv-slider/xv-slider.js +1 -1
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +4 -2
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +12 -6
- package/dist/collection/components/xv-table/xv-table.js +3 -2
- package/dist/collection/components/xv-tabs/xv-tabs.js +2 -1
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.js +6 -4
- package/dist/collection/components/xv-text-input/xv-text-input.js +4 -3
- package/dist/collection/components/xv-textarea/xv-textarea.js +4 -3
- package/dist/collection/components/xv-tile/xv-tile.css +1 -1
- package/dist/collection/components/xv-tile/xv-tile.js +2 -2
- package/dist/collection/components/xv-toggle/xv-toggle.js +3 -2
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +3 -2
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +4 -3
- package/dist/collection/index.js +3 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-A3B7AR96.js +9 -0
- package/dist/components/p-B9zHwwFm.js +1 -0
- package/dist/components/p-BNP2Lw34.js +1 -0
- package/dist/components/p-BRYrLHiz.js +1 -0
- package/dist/components/p-BRZwUlfE.js +1 -0
- package/dist/components/p-BXB4D7j4.js +1 -0
- package/dist/components/p-BfP9ezJQ.js +1 -0
- package/dist/components/p-BiiqsbVQ.js +1 -0
- package/dist/components/p-CEjlxnKY.js +1 -0
- package/dist/components/p-CHtssNO9.js +1 -0
- package/dist/components/p-CILNPUHH.js +1 -0
- package/dist/components/p-CMAJWZsP.js +1 -0
- package/dist/components/p-COoj5JkZ.js +1 -0
- package/dist/components/p-CbVZCn2p.js +1 -0
- package/dist/components/p-DTwz9Fsh.js +1 -0
- package/dist/components/p-DVZ2BlIP.js +1 -0
- package/dist/components/p-Ddx5DwV5.js +1 -0
- package/dist/components/p-DlLBjhuH.js +1 -0
- package/dist/components/p-DtUNYh73.js +1 -0
- package/dist/components/p-DyGMZIub.js +1 -0
- package/dist/components/p-Dzz9jxLm.js +1 -0
- package/dist/components/p-HjYAjHna.js +1 -0
- package/dist/components/p-SvgdO2VS.js +1 -0
- package/dist/components/p-ZYJfCCwX.js +1 -0
- package/dist/components/p-bdaoJ1tx.js +1 -0
- package/dist/components/p-e0i0f6QA.js +1 -0
- package/dist/components/p-kQVUwJXZ.js +1 -0
- package/dist/components/xv-accordion-v2-item.d.ts +11 -0
- package/dist/components/xv-accordion-v2-item.js +1 -0
- package/dist/components/xv-accordion-v2.d.ts +11 -0
- package/dist/components/xv-accordion-v2.js +1 -0
- package/dist/components/xv-breadcrumbs-v2.d.ts +11 -0
- package/dist/components/xv-breadcrumbs-v2.js +1 -0
- package/dist/components/xv-button-group-v2.d.ts +11 -0
- package/dist/components/xv-button-group-v2.js +1 -0
- package/dist/components/xv-button-v2.d.ts +11 -0
- package/dist/components/xv-button-v2.js +1 -0
- package/dist/components/xv-card-v2.d.ts +11 -0
- package/dist/components/xv-card-v2.js +1 -0
- package/dist/components/xv-checkbox-v2.d.ts +11 -0
- package/dist/components/xv-checkbox-v2.js +1 -0
- package/dist/components/xv-content-switcher-item-v2.d.ts +11 -0
- package/dist/components/xv-content-switcher-item-v2.js +1 -0
- package/dist/components/xv-content-switcher-v2.d.ts +11 -0
- package/dist/components/xv-content-switcher-v2.js +1 -0
- package/dist/components/xv-data-table-cell.d.ts +11 -0
- package/dist/components/xv-data-table-cell.js +1 -0
- package/dist/components/xv-data-table-collapse.d.ts +11 -0
- package/dist/components/xv-data-table-collapse.js +1 -0
- package/dist/components/xv-data-table-row.d.ts +11 -0
- package/dist/components/xv-data-table-row.js +1 -0
- package/dist/components/xv-data-table.d.ts +11 -0
- package/dist/components/xv-data-table.js +7 -0
- package/dist/components/xv-date-picker.d.ts +11 -0
- package/dist/components/xv-date-picker.js +1 -0
- package/dist/components/xv-datepicker.d.ts +11 -0
- package/dist/components/xv-datepicker.js +1 -0
- package/dist/components/xv-dropdown-v2-item.d.ts +11 -0
- package/dist/components/xv-dropdown-v2-item.js +1 -0
- package/dist/components/xv-dropdown-v2.d.ts +11 -0
- package/dist/components/xv-dropdown-v2.js +1 -0
- package/dist/components/xv-file-uploader.d.ts +11 -0
- package/dist/components/xv-file-uploader.js +1 -0
- package/dist/components/xv-footer.d.ts +11 -0
- package/dist/components/xv-footer.js +1 -0
- package/dist/components/xv-geo-map-v2.d.ts +11 -0
- package/dist/components/xv-geo-map-v2.js +1 -0
- package/dist/components/xv-header-next.d.ts +11 -0
- package/dist/components/xv-header-next.js +1 -0
- package/dist/components/xv-header.d.ts +11 -0
- package/dist/components/xv-header.js +1 -0
- package/dist/components/xv-image-viewer.d.ts +11 -0
- package/dist/components/xv-image-viewer.js +1 -0
- package/dist/components/xv-link-v2.d.ts +11 -0
- package/dist/components/xv-link-v2.js +1 -0
- package/dist/components/xv-loader-v2.d.ts +11 -0
- package/dist/components/xv-loader-v2.js +1 -0
- package/dist/components/xv-login-modal.d.ts +11 -0
- package/dist/components/xv-login-modal.js +1 -0
- package/dist/components/xv-mega-menu-next.d.ts +11 -0
- package/dist/components/xv-mega-menu-next.js +1 -0
- package/dist/components/xv-mega-menu.d.ts +11 -0
- package/dist/components/xv-mega-menu.js +1 -0
- package/dist/components/xv-modal-v2.d.ts +11 -0
- package/dist/components/xv-modal-v2.js +1 -0
- package/dist/components/xv-notification-v2.d.ts +11 -0
- package/dist/components/xv-notification-v2.js +1 -0
- package/dist/components/xv-number-input-v2.d.ts +11 -0
- package/dist/components/xv-number-input-v2.js +1 -0
- package/dist/components/xv-overflow-menu-v2-item.d.ts +11 -0
- package/dist/components/xv-overflow-menu-v2-item.js +1 -0
- package/dist/components/xv-overflow-menu-v2.d.ts +11 -0
- package/dist/components/xv-overflow-menu-v2.js +1 -0
- package/dist/components/xv-pagination.d.ts +11 -0
- package/dist/components/xv-pagination.js +1 -0
- package/dist/components/xv-progress-indicator-v2-item.d.ts +11 -0
- package/dist/components/xv-progress-indicator-v2-item.js +1 -0
- package/dist/components/xv-progress-indicator-v2.d.ts +11 -0
- package/dist/components/xv-progress-indicator-v2.js +1 -0
- package/dist/components/xv-radio-v2.d.ts +11 -0
- package/dist/components/xv-radio-v2.js +1 -0
- package/dist/components/xv-slider-v2.d.ts +11 -0
- package/dist/components/xv-slider-v2.js +1 -0
- package/dist/components/xv-tab-v2.d.ts +11 -0
- package/dist/components/xv-tab-v2.js +1 -0
- package/dist/components/xv-table-v2-cell.d.ts +11 -0
- package/dist/components/xv-table-v2-cell.js +1 -0
- package/dist/components/xv-table-v2-expand.d.ts +11 -0
- package/dist/components/xv-table-v2-expand.js +1 -0
- package/dist/components/xv-table-v2-row.d.ts +11 -0
- package/dist/components/xv-table-v2-row.js +1 -0
- package/dist/components/xv-table-v2.d.ts +11 -0
- package/dist/components/xv-table-v2.js +1 -0
- package/dist/components/xv-tabs-v2.d.ts +11 -0
- package/dist/components/xv-tabs-v2.js +1 -0
- package/dist/components/xv-tag-combobox.d.ts +11 -0
- package/dist/components/xv-tag-combobox.js +1 -0
- package/dist/components/xv-tag-v2.d.ts +11 -0
- package/dist/components/xv-tag-v2.js +1 -0
- package/dist/components/xv-text-input-v2.d.ts +11 -0
- package/dist/components/xv-text-input-v2.js +1 -0
- package/dist/components/xv-textarea.d.ts +11 -0
- package/dist/components/xv-textarea.js +1 -0
- package/dist/components/xv-tile.d.ts +11 -0
- package/dist/components/xv-tile.js +1 -0
- package/dist/components/xv-toggle-tip.d.ts +11 -0
- package/dist/components/xv-toggle-tip.js +1 -0
- package/dist/components/xv-toggle.d.ts +11 -0
- package/dist/components/xv-toggle.js +1 -0
- package/dist/components/xv-tooltip-v2.d.ts +11 -0
- package/dist/components/xv-tooltip-v2.js +1 -0
- package/dist/custom-elements.json +10090 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +14875 -0
- package/dist/esm/_vars-CDEU4jkD.js +23 -0
- package/dist/esm/{index-CQm2sRKT.js → index-B6cY-_U1.js} +2 -0
- package/dist/esm/{index-DmxA2ysB.js → index-Bu8SrOeR.js} +386 -1797
- package/dist/esm/index.js +2 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/maplibre-gl-A3B7AR96.js +826 -0
- package/dist/esm/maplibre-gl-shared.mjs +2 -2
- package/dist/esm/maplibre-gl-worker.mjs +2 -2
- package/dist/esm/xv-accordion-v2_50.entry.js +533 -482
- package/dist/esm/xv-header-next.entry.js +10 -8
- package/dist/esm/xv-mega-menu-next.entry.js +4 -4
- package/dist/esm/xv-webcomponents.js +3 -3
- package/dist/react/components.d.ts +56 -0
- package/dist/react/components.js +57 -0
- package/dist/react/create-component.d.ts +24 -0
- package/dist/react/runtime.d.ts +2 -0
- package/dist/react/runtime.js +43 -0
- package/dist/react/tag-transformer.d.ts +3 -0
- package/dist/react/tag-transformer.js +12 -0
- package/dist/react/xv-accordion-v2-item.d.ts +12 -0
- package/dist/react/xv-accordion-v2-item.js +14 -0
- package/dist/react/xv-accordion-v2.d.ts +15 -0
- package/dist/react/xv-accordion-v2.js +14 -0
- package/dist/react/xv-breadcrumbs-v2.d.ts +9 -0
- package/dist/react/xv-breadcrumbs-v2.js +14 -0
- package/dist/react/xv-button-group-v2.d.ts +12 -0
- package/dist/react/xv-button-group-v2.js +14 -0
- package/dist/react/xv-button-v2.d.ts +9 -0
- package/dist/react/xv-button-v2.js +14 -0
- package/dist/react/xv-card-v2.d.ts +9 -0
- package/dist/react/xv-card-v2.js +14 -0
- package/dist/react/xv-checkbox-v2.d.ts +15 -0
- package/dist/react/xv-checkbox-v2.js +19 -0
- package/dist/react/xv-content-switcher-item-v2.d.ts +9 -0
- package/dist/react/xv-content-switcher-item-v2.js +14 -0
- package/dist/react/xv-content-switcher-v2.d.ts +12 -0
- package/dist/react/xv-content-switcher-v2.js +14 -0
- package/dist/react/xv-data-table-cell.d.ts +12 -0
- package/dist/react/xv-data-table-cell.js +14 -0
- package/dist/react/xv-data-table-collapse.d.ts +12 -0
- package/dist/react/xv-data-table-collapse.js +14 -0
- package/dist/react/xv-data-table-row.d.ts +12 -0
- package/dist/react/xv-data-table-row.js +14 -0
- package/dist/react/xv-data-table.d.ts +12 -0
- package/dist/react/xv-data-table.js +14 -0
- package/dist/react/xv-date-picker.d.ts +14 -0
- package/dist/react/xv-date-picker.js +18 -0
- package/dist/react/xv-datepicker.d.ts +13 -0
- package/dist/react/xv-datepicker.js +17 -0
- package/dist/react/xv-dropdown-v2-item.d.ts +12 -0
- package/dist/react/xv-dropdown-v2-item.js +14 -0
- package/dist/react/xv-dropdown-v2.d.ts +13 -0
- package/dist/react/xv-dropdown-v2.js +17 -0
- package/dist/react/xv-file-uploader.d.ts +13 -0
- package/dist/react/xv-file-uploader.js +17 -0
- package/dist/react/xv-footer.d.ts +9 -0
- package/dist/react/xv-footer.js +14 -0
- package/dist/react/xv-geo-map-v2.d.ts +13 -0
- package/dist/react/xv-geo-map-v2.js +17 -0
- package/dist/react/xv-header-next.d.ts +12 -0
- package/dist/react/xv-header-next.js +14 -0
- package/dist/react/xv-header.d.ts +12 -0
- package/dist/react/xv-header.js +14 -0
- package/dist/react/xv-image-viewer.d.ts +12 -0
- package/dist/react/xv-image-viewer.js +14 -0
- package/dist/react/xv-link-v2.d.ts +9 -0
- package/dist/react/xv-link-v2.js +14 -0
- package/dist/react/xv-loader-v2.d.ts +9 -0
- package/dist/react/xv-loader-v2.js +14 -0
- package/dist/react/xv-login-modal.d.ts +12 -0
- package/dist/react/xv-login-modal.js +14 -0
- package/dist/react/xv-mega-menu-next.d.ts +12 -0
- package/dist/react/xv-mega-menu-next.js +14 -0
- package/dist/react/xv-mega-menu.d.ts +12 -0
- package/dist/react/xv-mega-menu.js +14 -0
- package/dist/react/xv-modal-v2.d.ts +12 -0
- package/dist/react/xv-modal-v2.js +14 -0
- package/dist/react/xv-notification-v2.d.ts +12 -0
- package/dist/react/xv-notification-v2.js +14 -0
- package/dist/react/xv-number-input-v2.d.ts +12 -0
- package/dist/react/xv-number-input-v2.js +14 -0
- package/dist/react/xv-overflow-menu-v2-item.d.ts +12 -0
- package/dist/react/xv-overflow-menu-v2-item.js +14 -0
- package/dist/react/xv-overflow-menu-v2.d.ts +13 -0
- package/dist/react/xv-overflow-menu-v2.js +17 -0
- package/dist/react/xv-pagination.d.ts +15 -0
- package/dist/react/xv-pagination.js +14 -0
- package/dist/react/xv-progress-indicator-v2-item.d.ts +9 -0
- package/dist/react/xv-progress-indicator-v2-item.js +14 -0
- package/dist/react/xv-progress-indicator-v2.d.ts +9 -0
- package/dist/react/xv-progress-indicator-v2.js +14 -0
- package/dist/react/xv-radio-v2.d.ts +9 -0
- package/dist/react/xv-radio-v2.js +14 -0
- package/dist/react/xv-slider-v2.d.ts +12 -0
- package/dist/react/xv-slider-v2.js +14 -0
- package/dist/react/xv-tab-v2.d.ts +9 -0
- package/dist/react/xv-tab-v2.js +14 -0
- package/dist/react/xv-table-v2-cell.d.ts +12 -0
- package/dist/react/xv-table-v2-cell.js +14 -0
- package/dist/react/xv-table-v2-expand.d.ts +9 -0
- package/dist/react/xv-table-v2-expand.js +14 -0
- package/dist/react/xv-table-v2-row.d.ts +13 -0
- package/dist/react/xv-table-v2-row.js +17 -0
- package/dist/react/xv-table-v2.d.ts +9 -0
- package/dist/react/xv-table-v2.js +14 -0
- package/dist/react/xv-tabs-v2.d.ts +12 -0
- package/dist/react/xv-tabs-v2.js +14 -0
- package/dist/react/xv-tag-combobox.d.ts +13 -0
- package/dist/react/xv-tag-combobox.js +17 -0
- package/dist/react/xv-tag-v2.d.ts +12 -0
- package/dist/react/xv-tag-v2.js +14 -0
- package/dist/react/xv-text-input-v2.d.ts +12 -0
- package/dist/react/xv-text-input-v2.js +14 -0
- package/dist/react/xv-textarea.d.ts +12 -0
- package/dist/react/xv-textarea.js +14 -0
- package/dist/react/xv-tile.d.ts +15 -0
- package/dist/react/xv-tile.js +14 -0
- package/dist/react/xv-toggle-tip.d.ts +12 -0
- package/dist/react/xv-toggle-tip.js +14 -0
- package/dist/react/xv-toggle.d.ts +12 -0
- package/dist/react/xv-toggle.js +14 -0
- package/dist/react/xv-tooltip-v2.d.ts +9 -0
- package/dist/react/xv-tooltip-v2.js +14 -0
- package/dist/types/components.d.ts +611 -103
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +65 -2
- package/dist/vscode-data.json +3002 -0
- package/dist/xv-webcomponents/index.esm.js +1 -1
- package/dist/xv-webcomponents/{p-fe9b38f8.entry.js → p-1ffb0b4f.entry.js} +1 -1
- package/dist/xv-webcomponents/p-A3B7AR96.js +9 -0
- package/dist/xv-webcomponents/p-Bu8SrOeR.js +3 -0
- package/dist/xv-webcomponents/p-CDEU4jkD.js +1 -0
- package/dist/xv-webcomponents/p-DB4KqDJz.js +1 -0
- package/dist/xv-webcomponents/p-d4d26ff2.entry.js +1 -0
- package/dist/xv-webcomponents/p-eb9d7750.entry.js +8 -0
- package/dist/xv-webcomponents/xv-webcomponents.css +6 -6
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +97 -18
- package/dist/cjs/_vars-FOITtI6f.js +0 -71
- package/dist/cjs/maplibre-gl-CCZS3Rg5.js +0 -900
- package/dist/collection/components/xv-header/_vars.js +0 -41
- package/dist/esm/_vars-CS4ouQ2K.js +0 -65
- package/dist/esm/maplibre-gl-CS4Eagm9.js +0 -813
- package/dist/types/components/xv-header/_vars.d.ts +0 -23
- package/dist/xv-webcomponents/p-0002421f.entry.js +0 -1
- package/dist/xv-webcomponents/p-01d6444c.entry.js +0 -8
- package/dist/xv-webcomponents/p-CQm2sRKT.js +0 -1
- package/dist/xv-webcomponents/p-CS4Eagm9.js +0 -10
- package/dist/xv-webcomponents/p-CS4ouQ2K.js +0 -1
- package/dist/xv-webcomponents/p-DmxA2ysB.js +0 -2
|
@@ -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: '095d2a3ab584938764e1ce056f8f4a4e03838b88', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: '77ac13565ced65dbc52eda61d15bff0bfe8253b2', class: "line" }), h("span", { key: '104664fce3e8512edaf71c76d5bf76cce7c397e4', class: "icon" }, h("svg", { key: '3d81d279fa5ef3e50ee4a3b315097986ffb57546', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: 'e109447615213d59eb17539fc0c0d649360c2d64', 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: 'd7120219126685f42ab267b60a5397bd69b5d61c', class: "label" }, h("slot", { key: 'f8e873bfa1b913c74e1971fe4445fdd2473b9262' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "xv-progress-indicator-v2-item"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,8 @@ export class XvProgressIndicatorItem {
|
|
|
31
31
|
"PROGRESS_ITEM_STATUS": {
|
|
32
32
|
"location": "import",
|
|
33
33
|
"path": "../_vars",
|
|
34
|
-
"id": "src/components/xv-progress-indicator/_vars.ts::PROGRESS_ITEM_STATUS"
|
|
34
|
+
"id": "src/components/xv-progress-indicator/_vars.ts::PROGRESS_ITEM_STATUS",
|
|
35
|
+
"referenceLocation": "PROGRESS_ITEM_STATUS"
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
},
|
|
@@ -55,7 +55,7 @@ export class XvProgressIndicator {
|
|
|
55
55
|
this.updateChildItems();
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '48d7968fc2b8d205171b1bd111b04de7c7939979', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: '740f57cea4b36e53d02c42527504003fd188fa45' })));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "xv-progress-indicator-v2"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -83,7 +83,7 @@ export class XvProgressIndicator {
|
|
|
83
83
|
"optional": false,
|
|
84
84
|
"docs": {
|
|
85
85
|
"tags": [],
|
|
86
|
-
"text": "Current progress\nfrom 0 to 100"
|
|
86
|
+
"text": "Current progress\r\nfrom 0 to 100"
|
|
87
87
|
},
|
|
88
88
|
"getter": false,
|
|
89
89
|
"setter": false,
|
|
@@ -103,7 +103,7 @@ export class XvProgressIndicator {
|
|
|
103
103
|
"optional": false,
|
|
104
104
|
"docs": {
|
|
105
105
|
"tags": [],
|
|
106
|
-
"text": "Progress variant\npossible option `horizontal`"
|
|
106
|
+
"text": "Progress variant\r\npossible option `horizontal`"
|
|
107
107
|
},
|
|
108
108
|
"getter": false,
|
|
109
109
|
"setter": false,
|
|
@@ -121,7 +121,8 @@ export class XvProgressIndicator {
|
|
|
121
121
|
"SIZE_VAR_STR": {
|
|
122
122
|
"location": "import",
|
|
123
123
|
"path": "../../types/enum",
|
|
124
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
124
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
125
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
},
|
|
@@ -129,7 +130,7 @@ export class XvProgressIndicator {
|
|
|
129
130
|
"optional": false,
|
|
130
131
|
"docs": {
|
|
131
132
|
"tags": [],
|
|
132
|
-
"text": "Size of progress\nenum SIZE_VAR\npossible options `XS | SM | MD | LG | XL`"
|
|
133
|
+
"text": "Size of progress\r\nenum SIZE_VAR\r\npossible options `XS | SM | MD | LG | XL`"
|
|
133
134
|
},
|
|
134
135
|
"getter": false,
|
|
135
136
|
"setter": false,
|
|
@@ -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: '78a696124ace0194164abfdd9b9cf0dae5663c25', 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: '895d292b60056c47d085942204bda2172f1cb1f9', class: "xv-radio_label" }, this.label), h("label", { key: 'ad104662e82e4e49c79e1c1059f67b9a1dc1b4d0', class: { 'xv-radio_container': true, disabled: this.disabled } }, h("div", { key: '982c57a82e6346926571843e0d82014572eb4f55', class: { 'xv-radio_input': true, 'xv-radio_input--error': !!this.error || this.error === '' } }, h("input", { key: 'd9f0ec401a8d960446d175f9c716125e9a76d23c', 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: '065508427f0788c19fa8ce0b380e6f04c9f3f2d6', class: "xv-radio_input__mark" })), h("span", { key: '3edaf56714cc54403e99f14ad82d9bd65106b4ff', class: "xv-radio_container__label" }, h("slot", { key: '6e4f98fd856b503516870e457b326ba4e592c3e2' }))), message && (h("span", { key: '683f26fc4c9f77e2aef9c716fe7b010276cf911a', class: `xv-radio_msg xv-radio_msg--${message.level}` }, message.level !== 'helper' && (h("span", { key: '77c8e8c5e63f1b99ae92dc9f1b2743f95fd9fecd', class: "xv-radio_msg__status", "aria-hidden": "true" }, message.level === 'error' ? '!' : '⚠')), message.text)), h("slot", { key: '446f5d0c261b225cf86ab53c17b8e80e995237e0', name: "info" })));
|
|
34
34
|
}
|
|
35
35
|
connectedCallback() {
|
|
36
36
|
var _a;
|
|
@@ -334,7 +334,8 @@ export class XvRadio {
|
|
|
334
334
|
"SIZE_VAR_STR": {
|
|
335
335
|
"location": "import",
|
|
336
336
|
"path": "../../types/enum",
|
|
337
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
337
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
338
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
},
|
|
@@ -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: 'ed2b742de5bb3b3dc72776e18df4c06a7322acf4', class: { disabled: this.disabled, readonly: this.readonly } }, this.label && h("label", { key: 'b01428e20fc4034f8bf4597ec1b0a05f7c0e3724', class: "label" }, this.label), h("div", { key: 'ea74b08ac9ba4870f8ab1faa6c4ae9bf766967df', class: "control" }, h("span", { key: 'cede2155f4e93ec8ef3ea2fb53e14a26ca7d2ed0', class: "control_label" }, this.min), h("input", { key: 'dc456088e17cde56d99139155f596e7a5587b75c', 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: '04a125979c07e8c83d897ff43ea682a209156c00', class: "control_label" }, this.max), !this.notEditable && (h("input", { key: '3fa69300100cf1784e0e9938d15633d014fab66c', 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"; }
|
|
@@ -105,7 +105,8 @@ export class XvTableCell {
|
|
|
105
105
|
"XV_SORT_DIR": {
|
|
106
106
|
"location": "import",
|
|
107
107
|
"path": "../../../types/enum",
|
|
108
|
-
"id": "src/types/enum.ts::XV_SORT_DIR"
|
|
108
|
+
"id": "src/types/enum.ts::XV_SORT_DIR",
|
|
109
|
+
"referenceLocation": "XV_SORT_DIR"
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
112
|
},
|
|
@@ -140,7 +141,8 @@ export class XvTableCell {
|
|
|
140
141
|
"XVTableSortDto": {
|
|
141
142
|
"location": "import",
|
|
142
143
|
"path": "../_vars",
|
|
143
|
-
"id": "src/components/xv-table/_vars.ts::XVTableSortDto"
|
|
144
|
+
"id": "src/components/xv-table/_vars.ts::XVTableSortDto",
|
|
145
|
+
"referenceLocation": "XVTableSortDto"
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
}
|
|
@@ -71,7 +71,8 @@ export class XvTableRow {
|
|
|
71
71
|
"SelectRowDto": {
|
|
72
72
|
"location": "import",
|
|
73
73
|
"path": "../_vars",
|
|
74
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
74
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
75
|
+
"referenceLocation": "SelectRowDto"
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
},
|
|
@@ -96,7 +97,8 @@ export class XvTableRow {
|
|
|
96
97
|
"SelectRowDto": {
|
|
97
98
|
"location": "import",
|
|
98
99
|
"path": "../_vars",
|
|
99
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
100
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
101
|
+
"referenceLocation": "SelectRowDto"
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
},
|
|
@@ -121,7 +123,8 @@ export class XvTableRow {
|
|
|
121
123
|
"SelectRowDto": {
|
|
122
124
|
"location": "import",
|
|
123
125
|
"path": "../_vars",
|
|
124
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
126
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
127
|
+
"referenceLocation": "SelectRowDto"
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
},
|
|
@@ -146,7 +149,8 @@ export class XvTableRow {
|
|
|
146
149
|
"SelectRowDto": {
|
|
147
150
|
"location": "import",
|
|
148
151
|
"path": "../_vars",
|
|
149
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
152
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
153
|
+
"referenceLocation": "SelectRowDto"
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
},
|
|
@@ -295,7 +299,8 @@ export class XvTableRow {
|
|
|
295
299
|
"SelectRowDto": {
|
|
296
300
|
"location": "import",
|
|
297
301
|
"path": "../_vars",
|
|
298
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
302
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
303
|
+
"referenceLocation": "SelectRowDto"
|
|
299
304
|
}
|
|
300
305
|
}
|
|
301
306
|
}
|
|
@@ -316,7 +321,8 @@ export class XvTableRow {
|
|
|
316
321
|
"SelectRowDto": {
|
|
317
322
|
"location": "import",
|
|
318
323
|
"path": "../_vars",
|
|
319
|
-
"id": "src/components/xv-table/_vars.ts::SelectRowDto"
|
|
324
|
+
"id": "src/components/xv-table/_vars.ts::SelectRowDto",
|
|
325
|
+
"referenceLocation": "SelectRowDto"
|
|
320
326
|
}
|
|
321
327
|
}
|
|
322
328
|
}
|
|
@@ -32,7 +32,7 @@ export class XvTable {
|
|
|
32
32
|
.join(' ') + ' repeat(auto-fit, minmax(0, 1fr))');
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '1f954a0f71091fec58ed541ab9b71e07e756acf2', class: { batchVisible: !!this.selectedCount } }, h("slot", { key: 'cc4af9285051a8ce0eda8df5d306b9834815513c', name: "title" }, !!this.el.title && h("h2", { key: 'd74ca7c913d6b5239acce4a6e154dae57a325dd4', class: "xv-table-title" }, this.el.title)), h("slot", { key: '00df66a0aae78ac291ed818f123fa508e7437b91', name: "toolbar" }), h("div", { key: 'b5d81c782aa533dc591ec77ffe4fc71cffeafc86', class: "xv-table" }, h("div", { key: 'efa26ad85d880de121d53ecae616f0b0468b8c74', class: "batch-actions" }, h(Fragment, { key: '4a808f4de6683dd524057c6199c2e80b11860d8d' }, h("div", { key: 'ae5cce54e37780f32724e7ff9ef2549e5020b7f7', class: "batch-actions_content" }, h("slot", { key: 'f5b19fc73ca2e7cb1af08fcf23d42c817d531870', name: "batch" })), h("p", { key: '2f445105146d1d2ebb080f76c5bb81848e3e2a43', class: "batch-actions_count" }, !!this.selectedCount && `${this.selectedCount} ${this.selectedCount === 1 ? 'Position ausgewählt' : 'Positionen ausgewählt'}`))), h("div", { key: '6f41e51583e6d2a5dc076999fee3e573b062ad1f', class: "xv-table_wrapper" }, h("slot", { key: 'acccd9efedf38d59bde44f2f9d6ac2aec0ffa948' }), h("slot", { key: 'db6b9a957e4bc4e670f5c082c999c1931e36b6c1', name: "footer" })), !!this.loading && (h("div", { key: '3096c66919118c66992dd13e7b868c588876974c', class: "xv-table_loading" }, h("xv-loader-v2", { key: 'f469390775597fcfb9787749a915098eb0567d64', size: SIZE_VAR.LG }))))));
|
|
36
36
|
}
|
|
37
37
|
componentWillLoad() {
|
|
38
38
|
this.setColsSizeTemplate();
|
|
@@ -61,7 +61,8 @@ export class XvTable {
|
|
|
61
61
|
"SIZE_VAR_STR": {
|
|
62
62
|
"location": "import",
|
|
63
63
|
"path": "../../types/enum",
|
|
64
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
64
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
65
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
},
|
|
@@ -151,7 +151,8 @@ export class XvTabs {
|
|
|
151
151
|
"TABS_VATIANT_STR": {
|
|
152
152
|
"location": "import",
|
|
153
153
|
"path": "./_vars",
|
|
154
|
-
"id": "src/components/xv-tabs/_vars.ts::TABS_VATIANT_STR"
|
|
154
|
+
"id": "src/components/xv-tabs/_vars.ts::TABS_VATIANT_STR",
|
|
155
|
+
"referenceLocation": "TABS_VATIANT_STR"
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
},
|
|
@@ -13,7 +13,7 @@ export class XvTag {
|
|
|
13
13
|
this.closeClick.emit(e);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'cd0cab01aba5ad627de9cc282c57032b83280c92', style: { color: this.color, background: this.bg }, class: `xv-tag ${this.disabled ? 'disabled' : ''} ${this.size}` }, h("div", { key: '094a98000cf24d32d8fc47821f0aa704ab61419e', class: "xv-tag_content", part: "details-content" }, h("slot", { key: 'c19eeb245989563c381268b0ffdaf6d228c9bc04' })), this.closeable && (h("button", { key: '38df038e4ec7ebcf387ba1008f7bb3e66fe93cfa', onClick: this.closeHandler.bind(this), class: "xv-tag_close" }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xv-tag-v2"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,12 +242,12 @@ export class XvTagCombobox {
|
|
|
242
242
|
const ariaOwns = suggestionsVisible ? `${this.uid}-listbox` : undefined;
|
|
243
243
|
const activedesc = this.highlighted >= 0 ? this.optionId(this.highlighted) : undefined;
|
|
244
244
|
const message = resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
245
|
-
return (h(Host, { key: '
|
|
245
|
+
return (h(Host, { key: '5b78581d7d76f3f8548a8879831c1774b0f6e3ba', class: "xv-combobox", part: "root", size: this.size }, this.label && h("label", { key: 'd2d7249c6b2c65018ab203ce71b72df3e19aa2d8', class: "label" }, this.label), h("div", { key: '5d5782acb42a47e6b61151eeb3a2b20bb440b335', class: {
|
|
246
246
|
'control': true,
|
|
247
247
|
'control--disabled': this.disabled,
|
|
248
248
|
'control--error': !!this.error,
|
|
249
249
|
'control--readonly': !!this.readonly,
|
|
250
|
-
}, onClick: () => this.blockClick() }, h("div", { key: '
|
|
250
|
+
}, onClick: () => this.blockClick() }, h("div", { key: 'bcebbb940ffacac018068926ff3f714d60848d31', class: "control-chips", role: "list" }, this.selected.map((s, i) => (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))), h("input", { key: '231998800b3984fc5d8f98e3b387c856aefe2c3f', 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 && (h("span", { key: '06553869f491586642f501cb5fcfc14e2ba6f1f4', class: "control-loader", part: "loader", "aria-hidden": "true" }, h("xv-loader-v2", { key: 'db81d3335f20e26a0049508340da8cb3f59c24d9', size: "sm", variant: "horizontal" })))), message && (h("p", { key: '912315e151754bf4f8c63fbec64f3433bdbfac9d', class: { message: true, [message.level]: true } }, message.text)), suggestionsVisible && (h("ul", { key: 'c68bdb4c63e330440a038be034c1edefee84015c', id: `${this.uid}-listbox`, class: "suggestions", role: "listbox", part: "listbox" }, this.filtered.map((opt, idx) => (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) }, h("div", { class: "suggestions-opt-content" }, opt.bg ? h("span", { class: "suggestions-opt-content--color", style: { background: opt.bg } }) : null, h("span", { class: "suggestions-opt-content--label" }, this.highlightLabel(opt.label).map((seg, i) => typeof seg === 'string' ? h("span", { key: i }, seg) : h("strong", { key: i }, seg.match)))))))))));
|
|
251
251
|
}
|
|
252
252
|
static get is() { return "xv-tag-combobox"; }
|
|
253
253
|
static get encapsulation() { return "shadow"; }
|
|
@@ -273,7 +273,8 @@ export class XvTagCombobox {
|
|
|
273
273
|
"TagComboboxOptIn": {
|
|
274
274
|
"location": "import",
|
|
275
275
|
"path": "./xv-tag-combobox.config",
|
|
276
|
-
"id": "src/components/xv-tag-combobox/xv-tag-combobox.config.ts::TagComboboxOptIn"
|
|
276
|
+
"id": "src/components/xv-tag-combobox/xv-tag-combobox.config.ts::TagComboboxOptIn",
|
|
277
|
+
"referenceLocation": "TagComboboxOptIn"
|
|
277
278
|
}
|
|
278
279
|
}
|
|
279
280
|
},
|
|
@@ -317,7 +318,8 @@ export class XvTagCombobox {
|
|
|
317
318
|
"SIZE_VAR_STR": {
|
|
318
319
|
"location": "import",
|
|
319
320
|
"path": "../../types/enum",
|
|
320
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
321
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
322
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
325
|
},
|
|
@@ -30,13 +30,13 @@ export class XvTextInput {
|
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
32
|
const message = resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'bb73bf066f367a9062cebeb186bce1310929d6ac', class: { disabled: !!this.disabled } }, h("label", { key: 'c6051d9ecac23444845e61345631aede0c5a14c2', class: "control" }, this.label && h("span", { key: '921f096a485031eeb34b3385200270a29f1d61d1', class: "control_label" }, this.label), h("div", { key: '2e8a94946100504e6a5d820f4a2c67c03557fe1f', class: {
|
|
34
34
|
'control_input': true,
|
|
35
35
|
readonly: !!this.readonly,
|
|
36
36
|
[this.size]: true,
|
|
37
37
|
error: !!this.error,
|
|
38
38
|
warning: !!this.warning,
|
|
39
|
-
} }, h("input", { key: '
|
|
39
|
+
} }, h("input", { key: '2f458206c2ba1960611e57e14167d2d40b34c433', 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 }), h("div", { key: '1028060cff07974a58f87e6ee097e0f7eeaf00ee', class: "control_input__icons" }, this.loading && h("xv-loader-v2", { key: '478195557f75714c67a98020229c4c1591ab015e', size: SIZE_VAR.XS }), this.clearable && this.value && !this.loading && !this.disabled && !this.readonly && (h("button", { key: '4019006c7b199a3f2014d36284d20e1a17d122ae', type: "button", class: "status-icon clear", "aria-label": "Clear", onClick: this.handleClear }, "\u00D7")), !!this.error ? (h("span", { class: "status-icon error", "aria-hidden": "true" }, "!")) : !!this.warning ? (h("span", { class: "status-icon warning", "aria-hidden": "true" }, "\u26A0")) : null, this.type === 'password' && (h("button", { key: 'b3405a4b94e72b0e577c36448cae2afdea3e6b7a', onClick: this.togglePassword, disabled: this.disabled, class: "status-icon" }, h("svg", { key: '39cbc33366ff94fc0893f3ccff1716b862d232bd', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512", width: 16, height: 16 }, this.isPasswordVisible ? (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" })) : (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 && (h("p", { key: '13bdeb70bde027cd09a66645298efe8b0d98b9a6', class: { message: true, [message.level]: true } }, message.text))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "xv-text-input-v2"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -332,7 +332,8 @@ export class XvTextInput {
|
|
|
332
332
|
"SIZE_VAR_STR": {
|
|
333
333
|
"location": "import",
|
|
334
334
|
"path": "../../types/enum",
|
|
335
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
335
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
336
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
336
337
|
}
|
|
337
338
|
}
|
|
338
339
|
},
|
|
@@ -22,12 +22,12 @@ export class XvTextarea {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
const message = resolveFieldMessage({ error: this.error, warning: this.warning, helper: this.helper });
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '658e393a65602e686906bd2ad9eca9efd0d185fc', class: { disabled: !!this.disabled } }, h("label", { key: '93ad9edea381b99bcb7bcf1f692db00800776bf3', class: "control" }, (this.label || this.max) && (h("p", { key: 'fa5d19c60d4d528fe1fb7e7d5505d9927e69b1ec', class: "control_label" }, h("span", { key: '4bf48eb50474b3b74417a5ad3c01d09f6b485034' }, this.label, this.info && h("xv-tooltip-v2", { key: 'd7f1d420fbb2fa18d598b83e75a5218e4de1bfd4', message: this.info })), this.max !== undefined && !this.counterHide && (h("span", { key: '5053f5fa4902e4079d6163db7c13ff659bb656e5', class: "control_label__count" }, this.value.length || 0, "/", this.max)))), h("div", { key: '52762934c658eb768e494963ece43228dfa5926e', class: {
|
|
26
26
|
'control_input': true,
|
|
27
27
|
readonly: !!this.readonly,
|
|
28
28
|
error: !!this.error,
|
|
29
29
|
warning: this.warning !== undefined,
|
|
30
|
-
} }, h("textarea", { key: '
|
|
30
|
+
} }, h("textarea", { key: '7b2e78e20deaf989e72df9ff44a78d3111b775ac', 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 }), h("div", { key: '9cea8ecb9db775ce6aaa7573a140d5d308ff0d30', class: "control_input__icons" }, this._renderIcon()))), message && (h("p", { key: '7ddc85f57fca259024f1060ec85265f5c661e4e8', class: { message: true, [message.level]: true } }, message.text))));
|
|
31
31
|
}
|
|
32
32
|
_renderIcon() {
|
|
33
33
|
if (this.loading)
|
|
@@ -372,7 +372,8 @@ export class XvTextarea {
|
|
|
372
372
|
"SIZE_VAR_STR": {
|
|
373
373
|
"location": "import",
|
|
374
374
|
"path": "../../types/enum",
|
|
375
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
375
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
376
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
376
377
|
}
|
|
377
378
|
}
|
|
378
379
|
},
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
background-color: transparent;
|
|
162
162
|
}
|
|
163
163
|
.xv-tile--host .xv-tile_control input[type=checkbox]:checked[readonly]:before, .xv-tile--host .xv-tile_control input[type=checkbox]:checked[readonly]:after {
|
|
164
|
-
border-color: var(--text-disabled,
|
|
164
|
+
border-color: var(--text-disabled, hsla(0, 0%, 7%, 0.25));
|
|
165
165
|
}
|
|
166
166
|
.xv-tile--host .xv-tile_control input[type=radio] {
|
|
167
167
|
border-radius: 50%;
|
|
@@ -29,7 +29,7 @@ export class XvTile {
|
|
|
29
29
|
this.checked = !this.checked;
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'a2c476c09c531b51f71f991e1880b2a47204491a', class: "xv-tile--host" }, h("label", { key: '3e2a54ab149f6043179bb7d1cc9e37496482cde4', class: {
|
|
33
33
|
[this.el.className]: !!this.el.className,
|
|
34
34
|
'xv-tile': true,
|
|
35
35
|
[`xv-tile--variant-${this.variant}`]: !!this.variant,
|
|
@@ -37,7 +37,7 @@ export class XvTile {
|
|
|
37
37
|
'xv-tile--disabled': !!this.disabled,
|
|
38
38
|
'selected': !!this.checked,
|
|
39
39
|
'xv-tile--error': !!this.error,
|
|
40
|
-
} }, h("div", { key: '
|
|
40
|
+
} }, h("div", { key: 'fc25a98acbca605f9dc1184d60303e8114e2e43b', class: "xv-tile_content" }, this.label && h("p", { key: '0f466d3aa936261cdc54a0b7492b5f5737b2a778', class: "xv-tile_content__title" }, this.label), h("slot", { key: '8e6c17221070c8c5bde4049b55943155ba2e7c17' })), this.variant === 'selectable' && (h("div", { key: '98a511f78a1dfbbcc65e971a0dad71510a6830c5', class: "xv-tile_control" }, this.multiple ? (h("input", { type: "checkbox", disabled: this.disabled || this.readonly, readonly: this.readonly, onChange: this.handleChange, name: this.name, value: this.value, checked: this.checked })) : (h("input", { type: "radio", 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') && (h("div", { key: '0bcfa73c1f2fb1b2d6d2740258cde9483dbdcd87', class: "xv-tile_footer" }, h("button", { key: 'e6a2b02d5b4596596ba216c300c954fbb08268ee', class: { 'xv-tile_footer__icon': true, [`icon--${this.variant}`]: true, open: this.checked } }))), h("div", { key: '700535d5440bb57fd31382a2c0d0803f7cbdf239', class: { 'xv-tile_expandable': true, open: this.checked } }, h("slot", { key: '3888e0d07a757ef7e9f8d9a16ca04c9cce814b06', name: "expandable" })))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "xv-tile"; }
|
|
43
43
|
static get originalStyleUrls() {
|
|
@@ -15,7 +15,7 @@ export class XvToggle {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '37a5b9544456493cc34c79b2b7f5b00e23e287c2', class: { 'xv-toggle': true, disabled: this.disabled, readonly: !!this.readonly, block: !!this.block } }, this.label && h("span", { key: '0a25845f45dafed5e868dc09443c45d566dc9c3f', class: "label" }, this.label), h("label", { key: '5d1da814a7de2b5965d51fe2eb1f17cfa30f6a0d', class: "control" }, h("slot", { key: 'c739617e825bf2ed051175cbeb5eb83d1fc298f3', name: "before" }), h("div", { key: '32bd77c1ca5f8e58892cf41d9004f3f38a63bb10', class: "control_input" }, h("input", { key: '9447c95ba00b07b288f650ac169f816607d624b9', type: "checkbox", readonly: this.readonly, name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.readonly, onChange: this.onChange }), h("span", { key: 'ce5ae18fa782dda6a28e45e297cc9e04ace9c7cd', class: "toggle" })), h("slot", { key: 'e4005eee0f127a0a1a59c1930aae06fac534ae77', name: "after" }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "xv-toggle"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -159,7 +159,8 @@ export class XvToggle {
|
|
|
159
159
|
"SIZE_VAR_STR": {
|
|
160
160
|
"location": "import",
|
|
161
161
|
"path": "../../types/enum",
|
|
162
|
-
"id": "src/types/enum.ts::SIZE_VAR_STR"
|
|
162
|
+
"id": "src/types/enum.ts::SIZE_VAR_STR",
|
|
163
|
+
"referenceLocation": "SIZE_VAR_STR"
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
166
|
},
|
|
@@ -67,7 +67,7 @@ export class XvToggleTip {
|
|
|
67
67
|
}
|
|
68
68
|
;
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'fd081052d0ce9e3c3505e99914eb765e2c708144', class: "xv-toggle-tip" }, h("div", { key: '7820225106348327e96a5620a64e2c13c15e7129', 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) }, h("slot", { key: 'daa48bf90a6b283a361414047b9f5cc194d6969c', name: "trigger" }, h("svg", { key: '37abc5de519c6b48bff301a48ddc11edffc23008', class: "trigger_icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: '120b7659351f0dacc52c818803dc735fe4e4dfc8', 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" })))), h("div", { key: 'edc6f66c90815a764e884bbb3adea6687a9148a8', class: { popover: true, autoSize: !!this.autoSize }, role: "tooltip", tabindex: "-1", ref: (el) => (this.popoverEl = el) }, h("div", { key: '592926c0f4c6534bfcf5d01b6ca6b4bfe63f1337', class: "popover-tip", part: "tip", "data-popper-arrow": "" }), h("div", { key: 'e91dc73a6c6acf68173a05a932615fcf3e3dfe27', class: "popover-content" }, h("slot", { key: 'afaac527e6f4853075417b598795a37322612888', name: "header" }), h("slot", { key: 'cc047953642b7c4b686c1f7af1a0647cf84e6001', name: "body" }), h("slot", { key: 'b4b8a501b0fc655fb2151726121ab5b882af0ce7', name: "footer" })))));
|
|
71
71
|
}
|
|
72
72
|
disconnectedCallback() {
|
|
73
73
|
this.destroyPopper();
|
|
@@ -156,7 +156,8 @@ export class XvToggleTip {
|
|
|
156
156
|
"Placement": {
|
|
157
157
|
"location": "import",
|
|
158
158
|
"path": "@popperjs/core",
|
|
159
|
-
"id": "node_modules::Placement"
|
|
159
|
+
"id": "node_modules::Placement",
|
|
160
|
+
"referenceLocation": "Placement"
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
},
|
|
@@ -38,11 +38,11 @@ export class XvTooltip {
|
|
|
38
38
|
this.destroyTooltip();
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: 'a435539ec69538a238bd35c6d4867c18da9a7a40', role: "tooltip", class: {
|
|
42
42
|
'xv-tooltip-wrapper': true,
|
|
43
43
|
[`xv-tooltip-wrapper__block`]: !!this.block,
|
|
44
44
|
[`xv-tooltip-wrapper__dashed`]: !!this.dashed,
|
|
45
|
-
} }, h("slot", { key: '
|
|
45
|
+
} }, h("slot", { key: 'd766446f98777a9e680867a372ed4df0843b77b0' }, h("svg", { key: '9b2c7d9ed60fb6b4b82c034feef022468df3bf5c', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: '526be5c67ca24171376da19d7dd1c1f7c09d8edc', 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" })))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "xv-tooltip-v2"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -86,7 +86,8 @@ export class XvTooltip {
|
|
|
86
86
|
"Placement": {
|
|
87
87
|
"location": "import",
|
|
88
88
|
"path": "@popperjs/core",
|
|
89
|
-
"id": "node_modules::Placement"
|
|
89
|
+
"id": "node_modules::Placement",
|
|
90
|
+
"referenceLocation": "Placement"
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
},
|
package/dist/collection/index.js
CHANGED
|
@@ -8,3 +8,6 @@
|
|
|
8
8
|
* to consume components of this package as outlined in the `README.md`.
|
|
9
9
|
*/
|
|
10
10
|
export { format } from './utils/utils';
|
|
11
|
+
// Re-exported from this package because the transformer is module state inside the
|
|
12
|
+
// Stencil runtime bundled here — a consumer's own @stencil/core would set a different one.
|
|
13
|
+
export { setTagTransformer, transformTag } from '@stencil/core';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
|
+
* if the path needs to be customized.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAssetPath: (path: string) => string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Used to manually set the base path where assets can be found.
|
|
9
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
10
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
11
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
12
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
13
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
14
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
15
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
16
|
+
*/
|
|
17
|
+
export declare const setAssetPath: (path: string) => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
21
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
22
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
23
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
24
|
+
* will result in the same behavior.
|
|
25
|
+
*/
|
|
26
|
+
export declare const setNonce: (nonce: string) => void
|
|
27
|
+
|
|
28
|
+
export interface SetPlatformOptions {
|
|
29
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
30
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
31
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
34
|
+
|
|
35
|
+
export * from '../types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,b as setNonce,d as setPlatformOptions,e as setTagTransformer,t as transformTag}from"./p-BNP2Lw34.js";function o(t,e,o){return(t||"")+(e?" "+e:"")+(o?" "+o:"")}const n=t=>{const{error:e,warning:o,helper:r}=t;return"string"==typeof e&&e?{level:"error",text:e}:"string"==typeof o&&o?{level:"warning",text:o}:"string"==typeof r&&r?{level:"helper",text:r}:null};function a(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4).toString(16)))}const i=(t,e,o)=>Array.prototype.forEach.call(t,e,o),c=(t,e=500)=>{let o;return function(...r){clearTimeout(o),o=setTimeout((()=>{t.apply(this,r)}),e)}},l=(t,e,o)=>"string"==typeof o?(!t.hasAttribute(e)&&t.setAttribute(e,o),t):(o?!t.hasAttribute(e)&&t.setAttribute(e,""):t.hasAttribute(e)&&t.removeAttribute(e),t),u=()=>{try{const t=localStorage.getItem("metaNav");return t?JSON.parse(t):{}}catch(t){return console.warn("Could not parse metaNav from localStorage:",t),{}}},v=()=>{var t;return window.__xvWhitelabelOverride||(()=>{var t;if("undefined"==typeof document)return;const e="ApplicationContext=";return null===(t=document.cookie.split(";").map((t=>t.trim())).find((t=>t.startsWith(e))))||void 0===t?void 0:t.slice(19)})()||(null===(t=u())||void 0===t?void 0:t.WhitelabelName)||void 0},p=(t="")=>{var e;return`${null!==(e={"sitefinity-qa.crossvertise.com":"https://qa.crossvertise.com","www.crossvertise.com":"https://market.crossvertise.com","sitefinity-staging.crossvertise.com":"https://staging.crossvertise.com",localhost:"https://qa.crossvertise.com"}[window.location.hostname])&&void 0!==e?e:window.location.origin}${t}`},m=async(t,e)=>{const o=e||{},{awaitWl:r,raw:s}=o,n=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(o[r[s]]=t[r[s]])}return o}(o,["awaitWl","raw"]),a=r?await((t=2e3,e=100)=>{const o=v();return o?Promise.resolve(o):new Promise((o=>{const r=Date.now(),s=()=>{const n=v();return n?o(n):Date.now()-r>=t?o("Xv"):void setTimeout(s,e)};s()}))})():v()||"Xv",i=/^https?:\/\//i.test(t)?t:`${p()}/${t.replace(/^\//,"")}`,c=Object.assign(Object.assign({},s?{}:{"Content-Type":"application/json","Application-Context":a}),null==n?void 0:n.headers);return fetch(i,Object.assign(Object.assign({},n),{headers:c})).then((t=>{var e;if(!t.ok)throw Error(`${t.status} ${t.statusText}`);return(null!==(e=t.headers.get("Content-Type"))&&void 0!==e?e:"").includes("application/json")?t.json():t.text()}))},f={get:(t,e)=>m(t,Object.assign(Object.assign({},e),{method:"GET"})),post:(t,e,o)=>m(t,Object.assign(Object.assign({},o),{method:"POST",body:void 0!==e?JSON.stringify(e):void 0})),put:(t,e,o)=>m(t,Object.assign(Object.assign({},o),{method:"PUT",body:void 0!==e?JSON.stringify(e):void 0})),patch:(t,e,o)=>m(t,Object.assign(Object.assign({},o),{method:"PATCH",body:void 0!==e?JSON.stringify(e):void 0})),delete:(t,e)=>m(t,Object.assign(Object.assign({},e),{method:"DELETE"}))};export{u as a,f as b,v as c,c as d,i as f,o as format,p as g,n as r,l as s,a as u}
|