xv-webcomponents 0.1.43 → 0.1.46
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 +129 -129
- package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/index-BE3kw7I4.js +36 -0
- package/dist/cjs/index-BE3kw7I4.js.map +1 -0
- package/dist/cjs/index-MLh9SbX2.js +1917 -0
- package/dist/cjs/index-MLh9SbX2.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +16 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +3542 -0
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +20 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +1 -0
- package/dist/cjs/xv-webcomponents.cjs.js +28 -0
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +3717 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +15326 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +12420 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +11323 -0
- package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +9653 -0
- package/dist/collection/collection-manifest.json +46 -0
- package/dist/collection/components/xv-accordion/xv-accordion.css +98 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js +163 -0
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +1 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +163 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +132 -0
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +1 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +98 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +19 -0
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +1 -0
- package/dist/collection/components/xv-button/xv-button-v2.css +268 -0
- package/dist/collection/components/xv-button/xv-button.js +229 -0
- package/dist/collection/components/xv-button/xv-button.js.map +1 -0
- package/dist/collection/components/xv-card/xv-card.css +158 -0
- package/dist/collection/components/xv-card/xv-card.js +122 -0
- package/dist/collection/components/xv-card/xv-card.js.map +1 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +233 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +402 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
- package/dist/collection/components/xv-data-table/_vars.js +3 -0
- package/dist/collection/components/xv-data-table/_vars.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +185 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +206 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +102 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +101 -0
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +168 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +360 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table.css +214 -0
- package/dist/collection/components/xv-data-table/xv-data-table.js +133 -0
- package/dist/collection/components/xv-data-table/xv-data-table.js.map +1 -0
- package/dist/collection/components/xv-dropdown/_vars.js +2 -0
- package/dist/collection/components/xv-dropdown/_vars.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +109 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +153 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.css +327 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +443 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -0
- package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
- package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +233 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +514 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
- package/dist/collection/components/xv-footer/xv-footer.css +325 -0
- package/dist/collection/components/xv-footer/xv-footer.js +37 -0
- package/dist/collection/components/xv-footer/xv-footer.js.map +1 -0
- package/dist/collection/components/xv-header/xv-header.css +22682 -0
- package/dist/collection/components/xv-header/xv-header.js +54 -0
- package/dist/collection/components/xv-header/xv-header.js.map +1 -0
- package/dist/collection/components/xv-link/xv-link.css +162 -0
- package/dist/collection/components/xv-link/xv-link.js +132 -0
- package/dist/collection/components/xv-link/xv-link.js.map +1 -0
- package/dist/collection/components/xv-loader/xv-loader.css +160 -0
- package/dist/collection/components/xv-loader/xv-loader.js +106 -0
- package/dist/collection/components/xv-loader/xv-loader.js.map +1 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +22670 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +146 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -0
- package/dist/collection/components/xv-modal/xv-modal.css +210 -0
- package/dist/collection/components/xv-modal/xv-modal.js +245 -0
- package/dist/collection/components/xv-modal/xv-modal.js.map +1 -0
- package/dist/collection/components/xv-notification/_vars.js +8 -0
- package/dist/collection/components/xv-notification/_vars.js.map +1 -0
- package/dist/collection/components/xv-notification/xv-notification.css +208 -0
- package/dist/collection/components/xv-notification/xv-notification.js +118 -0
- package/dist/collection/components/xv-notification/xv-notification.js.map +1 -0
- package/dist/collection/components/xv-number-input/xv-number-input.css +223 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/_vars.js +6 -0
- package/dist/collection/components/xv-overflow-menu/_vars.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +140 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +137 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +1 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +200 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +202 -0
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +1 -0
- package/dist/{xv-webcomponents/_vars-IZ3lIQzL.js → collection/components/xv-progress-indicator/_vars.js} +3 -7
- package/dist/collection/components/xv-progress-indicator/_vars.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +191 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +54 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +1 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +140 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +157 -0
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +1 -0
- package/dist/collection/components/xv-table/_vars.js +3 -0
- package/dist/collection/components/xv-table/_vars.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +188 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +160 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +153 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +76 -0
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +134 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +333 -0
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table.css +232 -0
- package/dist/collection/components/xv-table/xv-table.js +159 -0
- package/dist/collection/components/xv-table/xv-table.js.map +1 -0
- package/dist/collection/components/xv-tabs/_vars.js +11 -0
- package/dist/collection/components/xv-tabs/_vars.js.map +1 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +105 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +106 -0
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +1 -0
- package/dist/collection/components/xv-tabs/xv-tabs.css +228 -0
- package/dist/collection/components/xv-tabs/xv-tabs.js +221 -0
- package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -0
- package/dist/collection/components/xv-tag/xv-tag.css +192 -0
- package/dist/collection/components/xv-tag/xv-tag.js +158 -0
- package/dist/collection/components/xv-tag/xv-tag.js.map +1 -0
- package/dist/collection/components/xv-text-input/xv-text-input.css +242 -0
- package/dist/collection/components/xv-text-input/xv-text-input.js +343 -0
- package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +190 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +107 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +162 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/scss/xv/images/xv-sprite.svg +1 -0
- package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +1 -0
- package/dist/collection/types/enum.js +15 -0
- package/dist/collection/types/enum.js.map +1 -0
- package/dist/{xv-webcomponents/utils-1tk8kwKx.js → collection/utils/utils.js} +7 -11
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/index-DLYJiP99.js +1907 -0
- package/dist/esm/index-DLYJiP99.js.map +1 -0
- package/dist/esm/index-NvoCloOY.js +31 -0
- package/dist/esm/index-NvoCloOY.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +14 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/xv-accordion-v2_34.entry.js +3507 -0
- package/dist/esm/xv-accordion-v2_34.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +18 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +1 -0
- package/dist/esm/xv-webcomponents.js +24 -0
- package/dist/esm/xv-webcomponents.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/xv-button/xv-button.d.ts +21 -12
- package/dist/types/components/xv-data-table/_vars.d.ts +11 -0
- package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +15 -0
- package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +9 -0
- package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +25 -0
- package/dist/types/components/xv-data-table/xv-data-table.d.ts +10 -0
- package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
- package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
- package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +39 -0
- package/dist/types/components/xv-header/xv-header.d.ts +0 -2
- package/dist/types/components/xv-modal/xv-modal.d.ts +4 -0
- package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
- package/dist/types/components/xv-table/_vars.d.ts +1 -5
- package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +2 -1
- package/dist/types/components/xv-text-input/xv-text-input.d.ts +11 -11
- package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +12 -8
- package/dist/types/components.d.ts +537 -105
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/types/enum.d.ts +5 -0
- package/dist/xv-webcomponents/index.esm.js +1 -13
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-851c4716.entry.js +2 -0
- package/dist/xv-webcomponents/p-851c4716.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
- package/dist/xv-webcomponents/p-NvoCloOY.js +2 -0
- package/dist/xv-webcomponents/p-NvoCloOY.js.map +1 -0
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js +2 -0
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -49
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +53 -53
- package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
- package/dist/types/components/xv-user-menu/interfaces/MenuItem.d.ts +0 -0
- package/dist/types/components/xv-user-menu/xv-user-menu.d.ts +0 -41
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js +0 -13
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +0 -1
- package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +0 -1
- package/dist/xv-webcomponents/enum-DTBL51oP.js +0 -13
- package/dist/xv-webcomponents/enum-DTBL51oP.js.map +0 -1
- package/dist/xv-webcomponents/index-rZAC0WRb.js +0 -4238
- package/dist/xv-webcomponents/index-rZAC0WRb.js.map +0 -1
- package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +0 -36
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js +0 -41
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +0 -18
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -35
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-card-v2.entry.js +0 -19
- package/dist/xv-webcomponents/xv-card-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +0 -106
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +0 -36
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +0 -136
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-footer.entry.js +0 -30
- package/dist/xv-webcomponents/xv-footer.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-header.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-header.entry.js +0 -81
- package/dist/xv-webcomponents/xv-header.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-link-v2.entry.js +0 -27
- package/dist/xv-webcomponents/xv-link-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-loader-v2.entry.js +0 -33
- package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-login-modal.entry.js +0 -89
- package/dist/xv-webcomponents/xv-login-modal.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-modal-v2.entry.js +0 -78
- package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-notification-v2.entry.js +0 -50
- package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +0 -32
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +0 -74
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +0 -21
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +0 -75
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tab-v2.entry.js +0 -21
- package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +0 -41
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +0 -29
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js +0 -66
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-table-v2.entry.js +0 -53
- package/dist/xv-webcomponents/xv-table-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js +0 -109
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tag-v2.entry.js +0 -29
- package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js +0 -65
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +0 -24
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +0 -1
- package/dist/xv-webcomponents/xv-user-menu.entry.js +0 -43
- package/dist/xv-webcomponents/xv-user-menu.entry.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-progress-indicator-item.js","sourceRoot":"","sources":["../../../../src/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD,MAAM,OAAO,uBAAuB;IALpC;QAO4B,WAAM,GAAyB,oBAAoB,CAAC,UAAU,CAAC;KAqB1F;IAnBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,EAAC,4BAA4B,EAAE,IAAI,EAAC;YAE3C,6DAAM,KAAK,EAAC,MAAM,GAAE;YACpB,6DAAM,KAAK,EAAC,MAAM;gBAChB,4DAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;oBACvD,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sLAAsL,GACxL,CACF,CACD;YACP,0DAAG,KAAK,EAAC,OAAO;gBAAC,8DAAO,CAAI,CACvB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\nimport { PROGRESS_ITEM_STATUS } from '../_vars';\n\n@Component({\n tag: 'xv-progress-indicator-v2-item',\n styleUrl: 'xv-progress-indicator-item.scss',\n shadow: true,\n})\nexport class XvProgressIndicatorItem {\n @Element() el: HTMLElement;\n @Prop({ reflect: false }) status: PROGRESS_ITEM_STATUS = PROGRESS_ITEM_STATUS.NO_STARTED;\n\n render() {\n return (\n <Host\n status={this.status}\n class={{'xv-progress-indicator-item': true}}\n >\n <span class=\"line\"/>\n <span class=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\">\n <path\n fill=\"currentColor\"\n 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\"\n />\n </svg>\n </span>\n <p class=\"label\"><slot/></p>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
.xv-tooltip[role=tooltip] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background-color: var(--background-inverse, #333333);
|
|
4
|
+
color: var(--text-on-color);
|
|
5
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
font-size: var(--fz-sm);
|
|
8
|
+
z-index: 999;
|
|
9
|
+
min-width: min(150px, 90vw);
|
|
10
|
+
max-width: min(400px, 90vw);
|
|
11
|
+
}
|
|
12
|
+
.xv-tooltip[role=tooltip]::after {
|
|
13
|
+
content: "";
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
border-style: solid;
|
|
18
|
+
}
|
|
19
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
20
|
+
bottom: -5px;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translateX(-50%);
|
|
23
|
+
border-width: 5px 5px 0 5px;
|
|
24
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
25
|
+
}
|
|
26
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
27
|
+
bottom: -5px;
|
|
28
|
+
left: 12px;
|
|
29
|
+
border-width: 5px 5px 0 5px;
|
|
30
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
31
|
+
}
|
|
32
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
33
|
+
bottom: -5px;
|
|
34
|
+
right: 12px;
|
|
35
|
+
border-width: 5px 5px 0 5px;
|
|
36
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
37
|
+
}
|
|
38
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
39
|
+
top: -5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
border-width: 0 5px 5px 5px;
|
|
43
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
44
|
+
}
|
|
45
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
46
|
+
top: -5px;
|
|
47
|
+
left: 12px;
|
|
48
|
+
border-width: 0 5px 5px 5px;
|
|
49
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
50
|
+
}
|
|
51
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
52
|
+
top: -5px;
|
|
53
|
+
right: 12px;
|
|
54
|
+
border-width: 0 5px 5px 5px;
|
|
55
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
56
|
+
}
|
|
57
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
58
|
+
top: 50%;
|
|
59
|
+
right: -5px;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
border-width: 5px 0 5px 5px;
|
|
62
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
63
|
+
}
|
|
64
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
65
|
+
top: 12px;
|
|
66
|
+
right: -5px;
|
|
67
|
+
border-width: 5px 0 5px 5px;
|
|
68
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
69
|
+
}
|
|
70
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
71
|
+
bottom: 12px;
|
|
72
|
+
right: -5px;
|
|
73
|
+
border-width: 5px 0 5px 5px;
|
|
74
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
75
|
+
}
|
|
76
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
77
|
+
top: 50%;
|
|
78
|
+
left: -5px;
|
|
79
|
+
transform: translateY(-50%);
|
|
80
|
+
border-width: 5px 5px 5px 0;
|
|
81
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
82
|
+
}
|
|
83
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
84
|
+
top: 12px;
|
|
85
|
+
left: -5px;
|
|
86
|
+
border-width: 5px 5px 5px 0;
|
|
87
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
88
|
+
}
|
|
89
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
90
|
+
bottom: 12px;
|
|
91
|
+
left: -5px;
|
|
92
|
+
border-width: 5px 5px 5px 0;
|
|
93
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host {
|
|
97
|
+
--progress-indicator-icon-size: 22px;
|
|
98
|
+
--progress-indicator-font-size: var(--fz-md, 14px);
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
font-family: var(--ff-body, inherit);
|
|
103
|
+
overflow-x: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([variant=horizontal]) ::slotted(xv-progress-indicator-v2-item) {
|
|
107
|
+
flex-direction: row;
|
|
108
|
+
column-gap: var(--gap-xs, 8px);
|
|
109
|
+
justify-content: flex-start;
|
|
110
|
+
padding-left: 0;
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
text-align: left;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([size=xs]) {
|
|
118
|
+
--progress-indicator-icon-size: 14px;
|
|
119
|
+
--progress-indicator-font-size: var(--fz-md, 14px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([size=sm]) {
|
|
123
|
+
--progress-indicator-icon-size: 16px;
|
|
124
|
+
--progress-indicator-font-size: var(--fz-md, 14px);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([size=md]) {
|
|
128
|
+
--progress-indicator-icon-size: 22px;
|
|
129
|
+
--progress-indicator-font-size: var(--fz-md, 14px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([size=lg]) {
|
|
133
|
+
--progress-indicator-icon-size: 24px;
|
|
134
|
+
--progress-indicator-font-size: var(--fz-lg, 18px);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([size=xl]) {
|
|
138
|
+
--progress-indicator-icon-size: 32px;
|
|
139
|
+
--progress-indicator-font-size: var(--fz-xl, 20px);
|
|
140
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { PROGRESS_ITEM_STATUS, PROGRESS_VARIANTS } from "./_vars";
|
|
3
|
+
import { SIZE_VAR } from "../../types/enum";
|
|
4
|
+
import { forEach } from "../../utils/utils";
|
|
5
|
+
export class XvProgressIndicator {
|
|
6
|
+
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Current progress
|
|
9
|
+
* from 0 to 100
|
|
10
|
+
*/
|
|
11
|
+
this.progress = 0;
|
|
12
|
+
/**
|
|
13
|
+
* Progress variant
|
|
14
|
+
* enum PROGRESS_VARIANTS
|
|
15
|
+
* possible option `horizontal`
|
|
16
|
+
*/
|
|
17
|
+
this.variant = PROGRESS_VARIANTS.DEFAULT;
|
|
18
|
+
/**
|
|
19
|
+
* Size of progress
|
|
20
|
+
* enum SIZE_VAR
|
|
21
|
+
* possible options `XS | SM | MD | LG | XL`
|
|
22
|
+
*/
|
|
23
|
+
this.size = SIZE_VAR.MD;
|
|
24
|
+
}
|
|
25
|
+
// Update 'xv-progress-indicator-item' done status
|
|
26
|
+
updateChildItems() {
|
|
27
|
+
const items = this.el.children;
|
|
28
|
+
const itemsCount = this.el.childElementCount;
|
|
29
|
+
const progressPerItem = 100 / itemsCount;
|
|
30
|
+
if (!items.length || !itemsCount)
|
|
31
|
+
return;
|
|
32
|
+
forEach(items, (item, index) => {
|
|
33
|
+
var _a;
|
|
34
|
+
const itemProgressStart = index * progressPerItem;
|
|
35
|
+
let status;
|
|
36
|
+
const localProgress = Math.min(Math.max((this.progress - itemProgressStart) / progressPerItem, 0), 1) * 100;
|
|
37
|
+
if (localProgress >= 100) {
|
|
38
|
+
status = PROGRESS_ITEM_STATUS.DONE;
|
|
39
|
+
}
|
|
40
|
+
else if (localProgress > 0) {
|
|
41
|
+
status = PROGRESS_ITEM_STATUS.IN_PROGRESS;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
status = PROGRESS_ITEM_STATUS.NO_STARTED;
|
|
45
|
+
}
|
|
46
|
+
// Set item current status
|
|
47
|
+
item.setAttribute('status', status);
|
|
48
|
+
// Update progress line
|
|
49
|
+
const line = (_a = item === null || item === void 0 ? void 0 : item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.line');
|
|
50
|
+
if (line)
|
|
51
|
+
line.style.width = `${localProgress}%`;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
// Load initial done status
|
|
55
|
+
componentDidLoad() {
|
|
56
|
+
this.updateChildItems();
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
return (h(Host, { key: 'fc816b1afeb4de29bde2e4bf40c31ef96a84e54e', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: 'dfd0ddfbbf99fa1ce8a2ae922d8bdf9707af48c4' })));
|
|
60
|
+
}
|
|
61
|
+
static get is() { return "xv-progress-indicator-v2"; }
|
|
62
|
+
static get encapsulation() { return "shadow"; }
|
|
63
|
+
static get originalStyleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["xv-progress-indicator.scss"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get styleUrls() {
|
|
69
|
+
return {
|
|
70
|
+
"$": ["xv-progress-indicator.css"]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
static get properties() {
|
|
74
|
+
return {
|
|
75
|
+
"progress": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"attribute": "progress",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "number",
|
|
81
|
+
"resolved": "number",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": false,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": "Current progress\nfrom 0 to 100"
|
|
89
|
+
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
92
|
+
"reflect": true,
|
|
93
|
+
"defaultValue": "0"
|
|
94
|
+
},
|
|
95
|
+
"variant": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"attribute": "variant",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "PROGRESS_VARIANTS",
|
|
101
|
+
"resolved": "PROGRESS_VARIANTS.DEFAULT | PROGRESS_VARIANTS.HORIZONTAL",
|
|
102
|
+
"references": {
|
|
103
|
+
"PROGRESS_VARIANTS": {
|
|
104
|
+
"location": "import",
|
|
105
|
+
"path": "./_vars",
|
|
106
|
+
"id": "src/components/xv-progress-indicator/_vars.ts::PROGRESS_VARIANTS"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "Progress variant\nenum PROGRESS_VARIANTS\npossible option `horizontal`"
|
|
115
|
+
},
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"defaultValue": "PROGRESS_VARIANTS.DEFAULT"
|
|
120
|
+
},
|
|
121
|
+
"size": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"attribute": "size",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "SIZE_VAR",
|
|
127
|
+
"resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
|
|
128
|
+
"references": {
|
|
129
|
+
"SIZE_VAR": {
|
|
130
|
+
"location": "import",
|
|
131
|
+
"path": "../../types/enum",
|
|
132
|
+
"id": "src/types/enum.ts::SIZE_VAR"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "Size of progress\nenum SIZE_VAR\npossible options `XS | SM | MD | LG | XL`"
|
|
141
|
+
},
|
|
142
|
+
"getter": false,
|
|
143
|
+
"setter": false,
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"defaultValue": "SIZE_VAR.MD"
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get elementRef() { return "el"; }
|
|
150
|
+
static get watchers() {
|
|
151
|
+
return [{
|
|
152
|
+
"propName": "progress",
|
|
153
|
+
"methodName": "updateChildItems"
|
|
154
|
+
}];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=xv-progress-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-progress-indicator.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator/xv-progress-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,OAAO,mBAAmB;IALhC;QAOE;;;WAGG;QACsB,aAAQ,GAAW,CAAC,CAAC;QAC9C;;;;WAIG;QACK,YAAO,GAAsB,iBAAiB,CAAC,OAAO,CAAC;QAC/D;;;;WAIG;QACK,SAAI,GAAa,QAAQ,CAAC,EAAE,CAAC;KA+CtC;IA7CC,kDAAkD;IAElD,gBAAgB;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC;QAC7C,MAAM,eAAe,GAAG,GAAG,GAAG,UAAU,CAAC;QAEzC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,UAAU;YAAE,OAAO;QAEzC,OAAO,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;;YAC7B,MAAM,iBAAiB,GAAG,KAAK,GAAG,eAAe,CAAC;YAClD,IAAI,MAA4B,CAAC;YACjC,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAC5B,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC,GAAG,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,CACtE,GAAG,GAAG,CAAC;YAER,IAAI,aAAa,IAAI,GAAG,EAAE,CAAC;gBACzB,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC;YACrC,CAAC;iBAAM,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;gBAC7B,MAAM,GAAG,oBAAoB,CAAC,WAAW,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,oBAAoB,CAAC,UAAU,CAAC;YAC3C,CAAC;YAED,0BAA0B;YACzB,IAAoB,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAErD,uBAAuB;YACvB,MAAM,IAAI,GAAG,MAAC,IAAoB,aAApB,IAAI,uBAAJ,IAAI,CAAkB,UAAU,0CAAE,aAAa,CAAC,OAAO,CAAgB,CAAC;YACtF,IAAI,IAAI;gBAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,aAAa,GAAG,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,gBAAgB;QACd,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE;YACpF,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Watch, Element } from '@stencil/core';\nimport { PROGRESS_ITEM_STATUS, PROGRESS_VARIANTS } from './_vars';\nimport { SIZE_VAR } from '../../types/enum';\nimport { forEach } from '../../utils/utils';\n\n@Component({\n tag: 'xv-progress-indicator-v2',\n styleUrl: 'xv-progress-indicator.scss',\n shadow: true,\n})\nexport class XvProgressIndicator {\n @Element() el: HTMLElement;\n /**\n * Current progress\n * from 0 to 100\n */\n @Prop({ reflect: true }) progress: number = 0;\n /**\n * Progress variant\n * enum PROGRESS_VARIANTS\n * possible option `horizontal`\n */\n @Prop() variant: PROGRESS_VARIANTS = PROGRESS_VARIANTS.DEFAULT;\n /**\n * Size of progress\n * enum SIZE_VAR\n * possible options `XS | SM | MD | LG | XL`\n */\n @Prop() size: SIZE_VAR = SIZE_VAR.MD;\n\n // Update 'xv-progress-indicator-item' done status\n @Watch('progress')\n updateChildItems() {\n const items = this.el.children;\n const itemsCount = this.el.childElementCount;\n const progressPerItem = 100 / itemsCount;\n\n if (!items.length || !itemsCount) return;\n\n forEach(items, (item, index) => {\n const itemProgressStart = index * progressPerItem;\n let status: PROGRESS_ITEM_STATUS;\n const localProgress = Math.min(\n Math.max((this.progress - itemProgressStart) / progressPerItem, 0), 1\n ) * 100;\n\n if (localProgress >= 100) {\n status = PROGRESS_ITEM_STATUS.DONE;\n } else if (localProgress > 0) {\n status = PROGRESS_ITEM_STATUS.IN_PROGRESS;\n } else {\n status = PROGRESS_ITEM_STATUS.NO_STARTED;\n }\n\n // Set item current status\n (item as HTMLElement).setAttribute('status', status);\n\n // Update progress line\n const line = (item as HTMLElement)?.shadowRoot?.querySelector('.line') as HTMLElement;\n if (line) line.style.width = `${localProgress}%`;\n });\n }\n\n // Load initial done status\n componentDidLoad() {\n this.updateChildItems()\n }\n\n render() {\n return (\n <Host variant={this.variant} size={this.size} class={{ 'xv-progress-indicator': true }}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_vars.js","sourceRoot":"","sources":["../../../src/components/xv-table/_vars.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC9C,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC","sourcesContent":["import { XV_SORT_DIR } from '../../types/enum';\n\nexport interface SelectRowDto {\n name: string;\n checked: boolean;\n value?: string | number | object;\n partial?: boolean;\n header?: boolean;\n expandable?: boolean;\n}\n\nexport const XV_EXPANDABLE_KEY = 'expandable';\nexport const XV_TABLE_TAG = 'xv-table-v2';\n\nexport interface XVTableSortDto {\n name?: string;\n value: XV_SORT_DIR;\n}\n"]}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.xv-tooltip[role=tooltip] {
|
|
3
|
+
position: absolute;
|
|
4
|
+
background-color: var(--background-inverse, #333333);
|
|
5
|
+
color: var(--text-on-color);
|
|
6
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
7
|
+
border-radius: 3px;
|
|
8
|
+
font-size: var(--fz-sm);
|
|
9
|
+
z-index: 999;
|
|
10
|
+
min-width: min(150px, 90vw);
|
|
11
|
+
max-width: min(400px, 90vw);
|
|
12
|
+
}
|
|
13
|
+
.xv-tooltip[role=tooltip]::after {
|
|
14
|
+
content: "";
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 0;
|
|
17
|
+
height: 0;
|
|
18
|
+
border-style: solid;
|
|
19
|
+
}
|
|
20
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
21
|
+
bottom: -5px;
|
|
22
|
+
left: 50%;
|
|
23
|
+
transform: translateX(-50%);
|
|
24
|
+
border-width: 5px 5px 0 5px;
|
|
25
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
26
|
+
}
|
|
27
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
28
|
+
bottom: -5px;
|
|
29
|
+
left: 12px;
|
|
30
|
+
border-width: 5px 5px 0 5px;
|
|
31
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
32
|
+
}
|
|
33
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
34
|
+
bottom: -5px;
|
|
35
|
+
right: 12px;
|
|
36
|
+
border-width: 5px 5px 0 5px;
|
|
37
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
38
|
+
}
|
|
39
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
40
|
+
top: -5px;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
border-width: 0 5px 5px 5px;
|
|
44
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
45
|
+
}
|
|
46
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
47
|
+
top: -5px;
|
|
48
|
+
left: 12px;
|
|
49
|
+
border-width: 0 5px 5px 5px;
|
|
50
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
51
|
+
}
|
|
52
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
53
|
+
top: -5px;
|
|
54
|
+
right: 12px;
|
|
55
|
+
border-width: 0 5px 5px 5px;
|
|
56
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
57
|
+
}
|
|
58
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
59
|
+
top: 50%;
|
|
60
|
+
right: -5px;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
border-width: 5px 0 5px 5px;
|
|
63
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
64
|
+
}
|
|
65
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
66
|
+
top: 12px;
|
|
67
|
+
right: -5px;
|
|
68
|
+
border-width: 5px 0 5px 5px;
|
|
69
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
70
|
+
}
|
|
71
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
72
|
+
bottom: 12px;
|
|
73
|
+
right: -5px;
|
|
74
|
+
border-width: 5px 0 5px 5px;
|
|
75
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
76
|
+
}
|
|
77
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
78
|
+
top: 50%;
|
|
79
|
+
left: -5px;
|
|
80
|
+
transform: translateY(-50%);
|
|
81
|
+
border-width: 5px 5px 5px 0;
|
|
82
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
83
|
+
}
|
|
84
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
85
|
+
top: 12px;
|
|
86
|
+
left: -5px;
|
|
87
|
+
border-width: 5px 5px 5px 0;
|
|
88
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
89
|
+
}
|
|
90
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
91
|
+
bottom: 12px;
|
|
92
|
+
left: -5px;
|
|
93
|
+
border-width: 5px 5px 5px 0;
|
|
94
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host {
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
text-overflow: ellipsis;
|
|
101
|
+
padding: var(--xv-table-padding-y) var(--xv-table-padding-x);
|
|
102
|
+
color: var(--text-primary, #333);
|
|
103
|
+
font-family: var(--ff-body, Tahoma);
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
font-style: normal;
|
|
106
|
+
font-weight: 400;
|
|
107
|
+
line-height: 1.2;
|
|
108
|
+
letter-spacing: 0.16px;
|
|
109
|
+
transition: 0.25s ease-in-out background-color;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([multiline]) {
|
|
113
|
+
display: -webkit-box;
|
|
114
|
+
-webkit-line-clamp: 2;
|
|
115
|
+
-webkit-box-orient: vertical;
|
|
116
|
+
white-space: initial;
|
|
117
|
+
padding-bottom: 1px;
|
|
118
|
+
padding-top: 0;
|
|
119
|
+
line-height: 1.2;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([align=left]) {
|
|
123
|
+
text-align: left;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([align=right]) {
|
|
127
|
+
text-align: right;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([align=center]) {
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host([sort]) {
|
|
135
|
+
position: relative;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
user-select: none;
|
|
138
|
+
}
|
|
139
|
+
:host([sort]):before, :host([sort]):after {
|
|
140
|
+
font-size: 12px;
|
|
141
|
+
line-height: 10px;
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
position: absolute;
|
|
147
|
+
right: 8px;
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
transition: 350ms ease-in-out opacity;
|
|
150
|
+
opacity: 0;
|
|
151
|
+
}
|
|
152
|
+
:host([sort]):before {
|
|
153
|
+
content: "▲";
|
|
154
|
+
top: 50%;
|
|
155
|
+
transform: translateY(calc(-50% - 5px));
|
|
156
|
+
}
|
|
157
|
+
:host([sort])::after {
|
|
158
|
+
content: "▼";
|
|
159
|
+
top: 50%;
|
|
160
|
+
transform: translateY(calc(-50% + 5px));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:host([sort]:hover) {
|
|
164
|
+
background-color: var(--layer-accent-hover-01, #E3E3E3);
|
|
165
|
+
}
|
|
166
|
+
:host([sort]:hover)::before, :host([sort]:hover)::after {
|
|
167
|
+
opacity: 1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host([sort=asc]) {
|
|
171
|
+
background-color: var(--layer-accent-active-01, #D1D1D1);
|
|
172
|
+
}
|
|
173
|
+
:host([sort=asc])::before {
|
|
174
|
+
opacity: 1;
|
|
175
|
+
}
|
|
176
|
+
:host([sort=asc])::after {
|
|
177
|
+
display: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([sort=desc]) {
|
|
181
|
+
background-color: var(--layer-accent-active-01, #D1D1D1);
|
|
182
|
+
}
|
|
183
|
+
:host([sort=desc])::before {
|
|
184
|
+
display: none;
|
|
185
|
+
}
|
|
186
|
+
:host([sort=desc])::after {
|
|
187
|
+
opacity: 1;
|
|
188
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { forEach, uidGenerator } from "../../../utils/utils";
|
|
3
|
+
import { XV_SORT_DIR } from "../../../types/enum";
|
|
4
|
+
export class XvTableCell {
|
|
5
|
+
handleSort() {
|
|
6
|
+
if (this.sort === undefined)
|
|
7
|
+
return;
|
|
8
|
+
let sort = this.sort;
|
|
9
|
+
if (this.sort === '')
|
|
10
|
+
sort = XV_SORT_DIR.NONE;
|
|
11
|
+
this.sort = sort === XV_SORT_DIR.NONE ?
|
|
12
|
+
XV_SORT_DIR.ASC : sort === XV_SORT_DIR.ASC ?
|
|
13
|
+
XV_SORT_DIR.DESC : XV_SORT_DIR.NONE;
|
|
14
|
+
forEach(this.el.parentElement.children, (cell) => {
|
|
15
|
+
if (cell !== this.el && cell.hasAttribute('sort')) {
|
|
16
|
+
cell.setAttribute('sort', 'none');
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
if (!this.name)
|
|
20
|
+
this.name = uidGenerator();
|
|
21
|
+
this.sortChange.emit({ name: this.name, value: this.sort });
|
|
22
|
+
}
|
|
23
|
+
;
|
|
24
|
+
render() {
|
|
25
|
+
return (h(Host, { key: 'f7132aec590cd675f3597372846e5f2bc748938b' }, h("slot", { key: 'ba008253d0c52036b8e2e2f772c962da0be84255' })));
|
|
26
|
+
}
|
|
27
|
+
static get is() { return "xv-table-v2-cell"; }
|
|
28
|
+
static get encapsulation() { return "shadow"; }
|
|
29
|
+
static get originalStyleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["xv-table-cell.scss"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get styleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["xv-table-cell.css"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get properties() {
|
|
40
|
+
return {
|
|
41
|
+
"multiline": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"attribute": "multiline",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "boolean",
|
|
47
|
+
"resolved": "boolean",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": true,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"getter": false,
|
|
57
|
+
"setter": false,
|
|
58
|
+
"reflect": true
|
|
59
|
+
},
|
|
60
|
+
"name": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"attribute": "name",
|
|
63
|
+
"mutable": true,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "string",
|
|
66
|
+
"resolved": "string",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": true,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"getter": false,
|
|
76
|
+
"setter": false,
|
|
77
|
+
"reflect": true
|
|
78
|
+
},
|
|
79
|
+
"align": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"attribute": "align",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "'left' | 'right' | 'center'",
|
|
85
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
|
86
|
+
"references": {}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": true,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": ""
|
|
93
|
+
},
|
|
94
|
+
"getter": false,
|
|
95
|
+
"setter": false,
|
|
96
|
+
"reflect": true
|
|
97
|
+
},
|
|
98
|
+
"sort": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"attribute": "sort",
|
|
101
|
+
"mutable": true,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "XV_SORT_DIR | ''",
|
|
104
|
+
"resolved": "\"\" | XV_SORT_DIR.ASC | XV_SORT_DIR.DESC | XV_SORT_DIR.NONE",
|
|
105
|
+
"references": {
|
|
106
|
+
"XV_SORT_DIR": {
|
|
107
|
+
"location": "import",
|
|
108
|
+
"path": "../../../types/enum",
|
|
109
|
+
"id": "src/types/enum.ts::XV_SORT_DIR"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": true,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": true
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
static get events() {
|
|
126
|
+
return [{
|
|
127
|
+
"method": "sortChange",
|
|
128
|
+
"name": "sortChange",
|
|
129
|
+
"bubbles": true,
|
|
130
|
+
"cancelable": true,
|
|
131
|
+
"composed": true,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": ""
|
|
135
|
+
},
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "XVTableSortDto",
|
|
138
|
+
"resolved": "XVTableSortDto",
|
|
139
|
+
"references": {
|
|
140
|
+
"XVTableSortDto": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "../_vars",
|
|
143
|
+
"id": "src/components/xv-table/_vars.ts::XVTableSortDto"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}];
|
|
148
|
+
}
|
|
149
|
+
static get elementRef() { return "el"; }
|
|
150
|
+
static get listeners() {
|
|
151
|
+
return [{
|
|
152
|
+
"name": "click",
|
|
153
|
+
"method": "handleSort",
|
|
154
|
+
"target": undefined,
|
|
155
|
+
"capture": false,
|
|
156
|
+
"passive": false
|
|
157
|
+
}];
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=xv-table-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-table-cell.js","sourceRoot":"","sources":["../../../../src/components/xv-table/xv-table-cell/xv-table-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,OAAO,WAAW;IAStB,UAAU;QACR,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,OAAO;QACpC,IAAI,IAAI,GAAqB,IAAI,CAAC,IAAI,CAAC;QACvC,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE;YAAE,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;QAE9C,IAAI,CAAC,IAAI,GAAG,IAAI,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC;YACrC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,GAAG,CAAC,CAAC;YAC1C,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/C,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClD,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACpC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,YAAY,EAAE,CAAC;QAC3C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;IAAA,CAAC;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YAAC,8DAAQ,CAAO,CACtB,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop, Event, EventEmitter, Listen } from '@stencil/core';\nimport { XVTableSortDto } from '../_vars';\nimport { forEach, uidGenerator } from '../../../utils/utils';\nimport { XV_SORT_DIR } from '../../../types/enum';\n\n@Component({\n tag: 'xv-table-v2-cell',\n styleUrl: 'xv-table-cell.scss',\n shadow: true,\n})\nexport class XvTableCell {\n @Element() el: HTMLElement;\n @Prop({ reflect: true }) multiline?: boolean;\n @Prop({ reflect: true, mutable: true }) name?: string;\n @Prop({ reflect: true }) align?: 'left' | 'right' | 'center';\n @Prop({ reflect: true, mutable: true }) sort?: XV_SORT_DIR | '';\n @Event({ eventName: 'sortChange' }) sortChange: EventEmitter<XVTableSortDto>;\n\n @Listen('click')\n handleSort() {\n if (this.sort === undefined) return;\n let sort: XV_SORT_DIR | '' = this.sort;\n if (this.sort === '') sort = XV_SORT_DIR.NONE;\n\n this.sort = sort === XV_SORT_DIR.NONE ?\n XV_SORT_DIR.ASC : sort === XV_SORT_DIR.ASC ?\n XV_SORT_DIR.DESC : XV_SORT_DIR.NONE;\n\n forEach(this.el.parentElement.children, (cell) => {\n if (cell !== this.el && cell.hasAttribute('sort')) {\n cell.setAttribute('sort', 'none');\n }\n });\n\n if (!this.name) this.name = uidGenerator();\n this.sortChange.emit({ name: this.name, value: this.sort });\n };\n\n render() {\n return (\n <Host><slot /></Host>\n );\n }\n}\n"]}
|