xv-webcomponents 0.1.42 → 0.1.43
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/types/components/xv-button/xv-button.d.ts +12 -21
- package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +0 -1
- package/dist/types/components/xv-header/xv-header.d.ts +2 -0
- package/dist/types/components/xv-table/_vars.d.ts +5 -1
- package/dist/types/components/xv-table/xv-table-cell/xv-table-cell.d.ts +1 -2
- package/dist/types/components/xv-text-input/_vars.d.ts +5 -0
- package/dist/types/components/xv-text-input/xv-text-input.d.ts +11 -10
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +8 -10
- 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 +41 -0
- package/dist/types/components.d.ts +105 -508
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/types/types/enum.d.ts +0 -5
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js +13 -0
- package/dist/xv-webcomponents/_vars-FbbDWn6g.js.map +1 -0
- package/dist/{collection/components/xv-progress-indicator/_vars.js → xv-webcomponents/_vars-IZ3lIQzL.js} +7 -3
- package/dist/xv-webcomponents/_vars-IZ3lIQzL.js.map +1 -0
- package/dist/xv-webcomponents/enum-DTBL51oP.js +13 -0
- package/dist/xv-webcomponents/enum-DTBL51oP.js.map +1 -0
- package/dist/xv-webcomponents/index-rZAC0WRb.js +4238 -0
- package/dist/xv-webcomponents/index-rZAC0WRb.js.map +1 -0
- package/dist/xv-webcomponents/index.esm.js +13 -1
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/{collection/utils/utils.js → xv-webcomponents/utils-1tk8kwKx.js} +11 -7
- package/dist/xv-webcomponents/utils-1tk8kwKx.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +36 -0
- package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js +41 -0
- package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -1
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +18 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js +35 -0
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js +19 -0
- package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +106 -0
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js +36 -0
- package/dist/xv-webcomponents/xv-dropdown-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js +136 -0
- package/dist/xv-webcomponents/xv-dropdown-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-footer.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-footer.entry.js +30 -0
- package/dist/xv-webcomponents/xv-footer.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-header.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-header.entry.js +81 -0
- package/dist/xv-webcomponents/xv-header.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js +27 -0
- package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.js +33 -0
- package/dist/xv-webcomponents/xv-loader-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.js +89 -0
- package/dist/xv-webcomponents/xv-login-modal.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.js +78 -0
- package/dist/xv-webcomponents/xv-modal-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.js +50 -0
- package/dist/xv-webcomponents/xv-notification-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js +32 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js +74 -0
- package/dist/xv-webcomponents/xv-overflow-menu-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +21 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +75 -0
- package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.js +21 -0
- package/dist/xv-webcomponents/xv-tab-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js +41 -0
- package/dist/xv-webcomponents/xv-table-v2-cell.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js +29 -0
- package/dist/xv-webcomponents/xv-table-v2-expand.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js +66 -0
- package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js +53 -0
- package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js +109 -0
- package/dist/xv-webcomponents/xv-tabs-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js +29 -0
- package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js +65 -0
- package/dist/xv-webcomponents/xv-text-input-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +24 -0
- package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.js +43 -0
- package/dist/xv-webcomponents/xv-user-menu.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +49 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +53 -53
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-BE3kw7I4.js +0 -36
- package/dist/cjs/index-BE3kw7I4.js.map +0 -1
- package/dist/cjs/index-MLh9SbX2.js +0 -1917
- package/dist/cjs/index-MLh9SbX2.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -10
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3510
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -20
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
- package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +0 -1
- package/dist/cjs/xv-webcomponents.cjs.js +0 -28
- package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
- package/dist/collection/assets/fonts/fontawesome5/fa-brands-400.svg +0 -3717
- package/dist/collection/assets/fonts/fontawesome5/fa-duotone-900.svg +0 -15326
- package/dist/collection/assets/fonts/fontawesome5/fa-light-300.svg +0 -12420
- package/dist/collection/assets/fonts/fontawesome5/fa-regular-400.svg +0 -11323
- package/dist/collection/assets/fonts/fontawesome5/fa-solid-900.svg +0 -9653
- package/dist/collection/collection-manifest.json +0 -46
- package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
- package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
- package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
- package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/xv-button/xv-button-v2.css +0 -173
- package/dist/collection/components/xv-button/xv-button.js +0 -229
- package/dist/collection/components/xv-button/xv-button.js.map +0 -1
- package/dist/collection/components/xv-card/xv-card.css +0 -63
- package/dist/collection/components/xv-card/xv-card.js +0 -122
- package/dist/collection/components/xv-card/xv-card.js.map +0 -1
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -138
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -402
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
- package/dist/collection/components/xv-data-table/_vars.js +0 -3
- package/dist/collection/components/xv-data-table/_vars.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +0 -90
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +0 -182
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.css +0 -7
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js +0 -101
- package/dist/collection/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +0 -71
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +0 -354
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +0 -1
- package/dist/collection/components/xv-data-table/xv-data-table.css +0 -104
- package/dist/collection/components/xv-data-table/xv-data-table.js +0 -114
- package/dist/collection/components/xv-data-table/xv-data-table.js.map +0 -1
- package/dist/collection/components/xv-dropdown/_vars.js +0 -2
- package/dist/collection/components/xv-dropdown/_vars.js.map +0 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.css +0 -14
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +0 -153
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js.map +0 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.css +0 -232
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +0 -443
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +0 -1
- package/dist/collection/components/xv-file-uploader/_vars.js +0 -6
- package/dist/collection/components/xv-file-uploader/_vars.js.map +0 -1
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +0 -136
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +0 -448
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +0 -1
- package/dist/collection/components/xv-footer/xv-footer.css +0 -230
- package/dist/collection/components/xv-footer/xv-footer.js +0 -37
- package/dist/collection/components/xv-footer/xv-footer.js.map +0 -1
- package/dist/collection/components/xv-header/xv-header.css +0 -22587
- package/dist/collection/components/xv-header/xv-header.js +0 -54
- package/dist/collection/components/xv-header/xv-header.js.map +0 -1
- package/dist/collection/components/xv-link/xv-link.css +0 -67
- package/dist/collection/components/xv-link/xv-link.js +0 -132
- package/dist/collection/components/xv-link/xv-link.js.map +0 -1
- package/dist/collection/components/xv-loader/xv-loader.css +0 -65
- package/dist/collection/components/xv-loader/xv-loader.js +0 -106
- package/dist/collection/components/xv-loader/xv-loader.js.map +0 -1
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +0 -22575
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +0 -146
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +0 -1
- package/dist/collection/components/xv-modal/xv-modal.css +0 -102
- package/dist/collection/components/xv-modal/xv-modal.js +0 -226
- package/dist/collection/components/xv-modal/xv-modal.js.map +0 -1
- package/dist/collection/components/xv-notification/_vars.js +0 -8
- package/dist/collection/components/xv-notification/_vars.js.map +0 -1
- package/dist/collection/components/xv-notification/xv-notification.css +0 -113
- package/dist/collection/components/xv-notification/xv-notification.js +0 -118
- package/dist/collection/components/xv-notification/xv-notification.js.map +0 -1
- package/dist/collection/components/xv-number-input/xv-number-input.css +0 -128
- package/dist/collection/components/xv-number-input/xv-number-input.js +0 -373
- package/dist/collection/components/xv-number-input/xv-number-input.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/_vars.js +0 -6
- package/dist/collection/components/xv-overflow-menu/_vars.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.css +0 -45
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +0 -137
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js.map +0 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.css +0 -105
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +0 -202
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/_vars.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -96
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -54
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -45
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -157
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
- package/dist/collection/components/xv-table/_vars.js +0 -3
- package/dist/collection/components/xv-table/_vars.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.css +0 -93
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +0 -160
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.css +0 -58
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +0 -76
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -39
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -333
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
- package/dist/collection/components/xv-table/xv-table.css +0 -137
- package/dist/collection/components/xv-table/xv-table.js +0 -159
- package/dist/collection/components/xv-table/xv-table.js.map +0 -1
- package/dist/collection/components/xv-tabs/_vars.js +0 -11
- package/dist/collection/components/xv-tabs/_vars.js.map +0 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.css +0 -10
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +0 -106
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js.map +0 -1
- package/dist/collection/components/xv-tabs/xv-tabs.css +0 -139
- package/dist/collection/components/xv-tabs/xv-tabs.js +0 -221
- package/dist/collection/components/xv-tabs/xv-tabs.js.map +0 -1
- package/dist/collection/components/xv-tag/xv-tag.css +0 -97
- package/dist/collection/components/xv-tag/xv-tag.js +0 -158
- package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
- package/dist/collection/components/xv-text-input/xv-text-input.css +0 -144
- package/dist/collection/components/xv-text-input/xv-text-input.js +0 -324
- package/dist/collection/components/xv-text-input/xv-text-input.js.map +0 -1
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +0 -95
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +0 -201
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +0 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -43
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -114
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
- package/dist/collection/index.js +0 -11
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/scss/xv/images/xv-sprite.svg +0 -1
- package/dist/collection/scss/xv/sprite/images/xv-sprite.svg +0 -1
- package/dist/collection/types/enum.js +0 -15
- package/dist/collection/types/enum.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-DLYJiP99.js +0 -1907
- package/dist/esm/index-DLYJiP99.js.map +0 -1
- package/dist/esm/index-NvoCloOY.js +0 -31
- package/dist/esm/index-NvoCloOY.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/xv-accordion-v2_34.entry.js +0 -3475
- package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
- package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
- package/dist/esm/xv-webcomponents.js +0 -24
- package/dist/esm/xv-webcomponents.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/xv-data-table/_vars.d.ts +0 -11
- package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +0 -13
- package/dist/types/components/xv-data-table/xv-data-table-collapse/xv-data-table-collapse.d.ts +0 -9
- package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +0 -25
- package/dist/types/components/xv-data-table/xv-data-table.d.ts +0 -9
- package/dist/types/components/xv-file-uploader/_vars.d.ts +0 -4
- package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +0 -36
- package/dist/types/components/xv-number-input/xv-number-input.d.ts +0 -26
- package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +0 -19
- package/dist/xv-webcomponents/p-5b63a259.entry.js +0 -2
- package/dist/xv-webcomponents/p-5b63a259.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-9c06f44c.entry.js +0 -2
- package/dist/xv-webcomponents/p-9c06f44c.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
- package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
- package/dist/xv-webcomponents/p-NvoCloOY.js +0 -2
- package/dist/xv-webcomponents/p-NvoCloOY.js.map +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { NOTIFICATION_VARIANTS } from "./_vars";
|
|
3
|
-
export class XvNotification {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.variant = NOTIFICATION_VARIANTS.INFO;
|
|
6
|
-
this.dismissible = false;
|
|
7
|
-
this.closeHandle = (e) => this.close.emit(e);
|
|
8
|
-
this.renderIcon = (variant, cls = 'icon') => {
|
|
9
|
-
switch (variant) {
|
|
10
|
-
case NOTIFICATION_VARIANTS.ERROR: {
|
|
11
|
-
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" })));
|
|
12
|
-
}
|
|
13
|
-
case NOTIFICATION_VARIANTS.INFO: {
|
|
14
|
-
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z" })));
|
|
15
|
-
}
|
|
16
|
-
case NOTIFICATION_VARIANTS.SUCCESS: {
|
|
17
|
-
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })));
|
|
18
|
-
}
|
|
19
|
-
case NOTIFICATION_VARIANTS.WARNING: {
|
|
20
|
-
return (h("svg", { class: cls, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z" })));
|
|
21
|
-
}
|
|
22
|
-
default:
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h(Host, { key: '828674420130a41adc1c21b7dac6ba7795142871', class: "xv-notification", type: this.variant }, this.renderIcon(this.variant), h("div", { key: '2f863367c6952b1974607f577d33d69a572b83ac', class: "content" }, h("div", { key: 'df968f2dc944bf7b8cad543fb64a3c9d124a11ff', class: "content_wrapper" }, this.el.title && h("h5", { key: '200f8de5f706f7b4318cb94b9966a6171d56e2f5', class: "content_title" }, this.el.title), h("slot", { key: '76e93f53912a25d9240b82434e05466bf16902b3' })), h("slot", { key: '0403b90c0e139d214356519a33c0c546e03953a0', name: "footer" })), this.dismissible && h("button", { key: '70f8219f0b7c2dc897d0bb36ea5c7c7fb7aa3288', class: "close", onClick: this.closeHandle })));
|
|
29
|
-
}
|
|
30
|
-
static get is() { return "xv-notification-v2"; }
|
|
31
|
-
static get encapsulation() { return "shadow"; }
|
|
32
|
-
static get originalStyleUrls() {
|
|
33
|
-
return {
|
|
34
|
-
"$": ["xv-notification.scss"]
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
static get styleUrls() {
|
|
38
|
-
return {
|
|
39
|
-
"$": ["xv-notification.css"]
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
static get assetsDirs() { return ["xv-notification/icons"]; }
|
|
43
|
-
static get properties() {
|
|
44
|
-
return {
|
|
45
|
-
"variant": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"attribute": "variant",
|
|
48
|
-
"mutable": false,
|
|
49
|
-
"complexType": {
|
|
50
|
-
"original": "NOTIFICATION_VARIANTS",
|
|
51
|
-
"resolved": "NOTIFICATION_VARIANTS.ERROR | NOTIFICATION_VARIANTS.INFO | NOTIFICATION_VARIANTS.SUCCESS | NOTIFICATION_VARIANTS.WARNING",
|
|
52
|
-
"references": {
|
|
53
|
-
"NOTIFICATION_VARIANTS": {
|
|
54
|
-
"location": "import",
|
|
55
|
-
"path": "./_vars",
|
|
56
|
-
"id": "src/components/xv-notification/_vars.ts::NOTIFICATION_VARIANTS"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"required": false,
|
|
61
|
-
"optional": false,
|
|
62
|
-
"docs": {
|
|
63
|
-
"tags": [],
|
|
64
|
-
"text": ""
|
|
65
|
-
},
|
|
66
|
-
"getter": false,
|
|
67
|
-
"setter": false,
|
|
68
|
-
"reflect": true,
|
|
69
|
-
"defaultValue": "NOTIFICATION_VARIANTS.INFO"
|
|
70
|
-
},
|
|
71
|
-
"dismissible": {
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"attribute": "dismissible",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "boolean",
|
|
77
|
-
"resolved": "boolean",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": false,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": ""
|
|
85
|
-
},
|
|
86
|
-
"getter": false,
|
|
87
|
-
"setter": false,
|
|
88
|
-
"reflect": true,
|
|
89
|
-
"defaultValue": "false"
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
static get events() {
|
|
94
|
-
return [{
|
|
95
|
-
"method": "close",
|
|
96
|
-
"name": "close",
|
|
97
|
-
"bubbles": true,
|
|
98
|
-
"cancelable": true,
|
|
99
|
-
"composed": true,
|
|
100
|
-
"docs": {
|
|
101
|
-
"tags": [],
|
|
102
|
-
"text": ""
|
|
103
|
-
},
|
|
104
|
-
"complexType": {
|
|
105
|
-
"original": "MouseEvent",
|
|
106
|
-
"resolved": "MouseEvent",
|
|
107
|
-
"references": {
|
|
108
|
-
"MouseEvent": {
|
|
109
|
-
"location": "global",
|
|
110
|
-
"id": "global::MouseEvent"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}];
|
|
115
|
-
}
|
|
116
|
-
static get elementRef() { return "el"; }
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=xv-notification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-notification.js","sourceRoot":"","sources":["../../../src/components/xv-notification/xv-notification.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQhD,MAAM,OAAO,cAAc;IAN3B;QAQ2B,YAAO,GAA0B,qBAAqB,CAAC,IAAI,CAAC;QAC5D,gBAAW,GAAY,KAAK,CAAC;QAG9C,gBAAW,GAAG,CAAC,CAAa,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAoBpD,eAAU,GAAG,CAAC,OAA8B,EAAE,MAAc,MAAM,EAAE,EAAE;YAC5E,QAAQ,OAAO,EAAE,CAAC;gBAChB,KAAK,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;oBACjC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,0RAA0R,GAAG,CAC7R,CACP,CAAC;gBACJ,CAAC;gBACD,KAAK,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC;oBAChC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,0QAA0Q,GAAG,CAC7Q,CACP,CAAC;gBACJ,CAAC;gBACD,KAAK,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;oBACnC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,mMAAmM,GAAG,CACtM,CACP,CAAA;gBACH,CAAC;gBACD,KAAK,qBAAqB,CAAC,OAAO,CAAC,CAAC,CAAC;oBACnC,OAAO,CACL,WAAK,KAAK,EAAE,GAAG,EAAE,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,aAAa;wBACvE,YACE,CAAC,EAAC,yTAAyT,GAAG,CAC5T,CACP,CAAC;gBACJ,CAAC;gBACD;oBACE,OAAO,IAAI,CAAC;YAChB,CAAC;QACH,CAAC,CAAC;KACH;IAxDC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAE,IAAI,CAAC,OAAO;YAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC;YAE9B,4DAAK,KAAK,EAAC,SAAS;gBAClB,4DAAK,KAAK,EAAC,iBAAiB;oBACzB,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,2DAAI,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAM;oBAChE,8DAAa,CACT;gBACN,6DAAM,IAAI,EAAC,QAAQ,GAAQ,CACvB;YAEL,IAAI,CAAC,WAAW,IAAI,+DAAQ,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,GAAI,CACnE,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCF","sourcesContent":["import { Component, Host, h, Prop, Element, Event, EventEmitter } from '@stencil/core';\nimport { NOTIFICATION_VARIANTS } from './_vars';\n\n@Component({\n tag: 'xv-notification-v2',\n styleUrl: 'xv-notification.scss',\n shadow: true,\n assetsDirs: ['xv-notification/icons']\n})\nexport class XvNotification {\n @Element() el: HTMLElement;\n @Prop({ reflect: true }) variant: NOTIFICATION_VARIANTS = NOTIFICATION_VARIANTS.INFO;\n @Prop({ reflect: true }) dismissible: boolean = false;\n @Event() close: EventEmitter<MouseEvent>;\n\n private closeHandle = (e: MouseEvent) => this.close.emit(e);\n\n render() {\n return (\n <Host class=\"xv-notification\" type={this.variant}>\n {this.renderIcon(this.variant)}\n\n <div class=\"content\">\n <div class=\"content_wrapper\">\n {this.el.title && <h5 class=\"content_title\">{this.el.title}</h5>}\n <slot></slot>\n </div>\n <slot name=\"footer\"></slot>\n </div>\n\n {this.dismissible && <button class=\"close\" onClick={this.closeHandle} />}\n </Host>\n );\n }\n\n private renderIcon = (variant: NOTIFICATION_VARIANTS, cls: string = 'icon') => {\n switch (variant) {\n case NOTIFICATION_VARIANTS.ERROR: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z\" />\n </svg>\n );\n }\n case NOTIFICATION_VARIANTS.INFO: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\" />\n </svg>\n );\n }\n case NOTIFICATION_VARIANTS.SUCCESS: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z\" />\n </svg>\n )\n }\n case NOTIFICATION_VARIANTS.WARNING: {\n return (\n <svg class={cls} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\">\n <path\n d=\"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z\" />\n </svg>\n );\n }\n default:\n return null;\n }\n };\n}\n"]}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
text-align: left;
|
|
4
|
-
}
|
|
5
|
-
:host .control_label {
|
|
6
|
-
display: block;
|
|
7
|
-
margin-bottom: var(--spacing-03);
|
|
8
|
-
color: var(--text-secondary, #515151);
|
|
9
|
-
font-family: var(--ff-body, Tahoma);
|
|
10
|
-
font-size: var(--fz-sm, 12px);
|
|
11
|
-
font-style: normal;
|
|
12
|
-
font-weight: 700;
|
|
13
|
-
line-height: var(--fz-md);
|
|
14
|
-
letter-spacing: 0.32px;
|
|
15
|
-
}
|
|
16
|
-
:host .control_input {
|
|
17
|
-
display: flex;
|
|
18
|
-
border: 1px solid var(--border-subtle-01);
|
|
19
|
-
outline: 2px solid transparent;
|
|
20
|
-
background-color: transparent;
|
|
21
|
-
border-radius: 3px;
|
|
22
|
-
transition: 250ms ease-in-out border-color, 250ms ease-in-out outline-color;
|
|
23
|
-
}
|
|
24
|
-
:host .control_input:hover {
|
|
25
|
-
border-color: var(--border-subtle-selected-01);
|
|
26
|
-
}
|
|
27
|
-
:host .control_input:focus-within {
|
|
28
|
-
outline-color: var(--focus);
|
|
29
|
-
}
|
|
30
|
-
:host .control_input.error {
|
|
31
|
-
outline-color: var(--support-error);
|
|
32
|
-
}
|
|
33
|
-
:host .control_input.readonly {
|
|
34
|
-
border-radius: 0;
|
|
35
|
-
border-top-width: 0;
|
|
36
|
-
border-left-width: 0;
|
|
37
|
-
border-right-width: 0;
|
|
38
|
-
outline-color: transparent;
|
|
39
|
-
}
|
|
40
|
-
:host .control_input input[type=number] {
|
|
41
|
-
flex: 1;
|
|
42
|
-
border: none;
|
|
43
|
-
outline: none;
|
|
44
|
-
-moz-appearance: textfield;
|
|
45
|
-
background-color: transparent;
|
|
46
|
-
margin: 0;
|
|
47
|
-
padding-block: 0;
|
|
48
|
-
padding-inline: var(--spacing-05);
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
color: var(--text-primary);
|
|
51
|
-
min-width: 20px;
|
|
52
|
-
font-style: normal;
|
|
53
|
-
font-weight: 400;
|
|
54
|
-
letter-spacing: 0.16px;
|
|
55
|
-
}
|
|
56
|
-
:host .control_input input[type=number]::-webkit-inner-spin-button, :host .control_input input[type=number]::-webkit-outer-spin-button {
|
|
57
|
-
-webkit-appearance: none;
|
|
58
|
-
margin: 0;
|
|
59
|
-
}
|
|
60
|
-
:host .control_input__icons {
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
align-items: stretch;
|
|
63
|
-
column-gap: 2px;
|
|
64
|
-
}
|
|
65
|
-
:host .control_input__icons .status-icon {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
align-self: center;
|
|
69
|
-
font-size: 1.35em;
|
|
70
|
-
}
|
|
71
|
-
:host .control_input__icons .status-icon.error {
|
|
72
|
-
background-color: var(--support-error);
|
|
73
|
-
color: white;
|
|
74
|
-
width: 16px;
|
|
75
|
-
height: 16px;
|
|
76
|
-
border-radius: 8px;
|
|
77
|
-
font-size: 12px;
|
|
78
|
-
font-weight: bold;
|
|
79
|
-
align-items: center;
|
|
80
|
-
justify-content: center;
|
|
81
|
-
}
|
|
82
|
-
:host .control_input__icons .status-icon.warning {
|
|
83
|
-
color: var(--support-warning);
|
|
84
|
-
}
|
|
85
|
-
:host .control_input__icons hr {
|
|
86
|
-
border: none;
|
|
87
|
-
outline: none;
|
|
88
|
-
width: 2px;
|
|
89
|
-
height: 60%;
|
|
90
|
-
align-self: center;
|
|
91
|
-
background-color: var(--border-subtle-01);
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
}
|
|
94
|
-
:host .message {
|
|
95
|
-
margin: var(--spacing-02) 0 0;
|
|
96
|
-
color: var(--text-helper, #646464);
|
|
97
|
-
font-size: var(--fz-sm, 12px);
|
|
98
|
-
font-style: normal;
|
|
99
|
-
font-weight: 400;
|
|
100
|
-
line-height: var(--fz-md, 16px);
|
|
101
|
-
letter-spacing: 0.32px;
|
|
102
|
-
}
|
|
103
|
-
:host .message.error {
|
|
104
|
-
color: var(--text-error);
|
|
105
|
-
}
|
|
106
|
-
:host .message.warning {
|
|
107
|
-
color: var(--text-secondary, #515151);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host(.disabled) {
|
|
111
|
-
cursor: not-allowed;
|
|
112
|
-
}
|
|
113
|
-
:host(.disabled) .control_label,
|
|
114
|
-
:host(.disabled) .control_input input[type=number],
|
|
115
|
-
:host(.disabled) .control_input input[type=number]::placeholder,
|
|
116
|
-
:host(.disabled) .message:not(.error) {
|
|
117
|
-
color: var(--text-disabled);
|
|
118
|
-
cursor: not-allowed;
|
|
119
|
-
}
|
|
120
|
-
:host(.disabled) .control_input__icons,
|
|
121
|
-
:host(.disabled) .message.error {
|
|
122
|
-
opacity: 0.5;
|
|
123
|
-
cursor: not-allowed;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
:host([block]) {
|
|
127
|
-
display: block;
|
|
128
|
-
}
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { SIZE_VAR } from "../../types/enum";
|
|
3
|
-
export class XvNumberInput {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.step = 10;
|
|
6
|
-
this.loading = false;
|
|
7
|
-
this.size = SIZE_VAR.MD;
|
|
8
|
-
this.increment = () => {
|
|
9
|
-
const newValue = (this.value || 0) + this.step;
|
|
10
|
-
if (this.max !== undefined && newValue > this.max)
|
|
11
|
-
return;
|
|
12
|
-
this.setValue(newValue);
|
|
13
|
-
};
|
|
14
|
-
this.decrement = () => {
|
|
15
|
-
const newValue = (this.value || 0) - this.step;
|
|
16
|
-
if (this.min !== undefined && newValue < this.min)
|
|
17
|
-
return;
|
|
18
|
-
this.setValue(newValue);
|
|
19
|
-
};
|
|
20
|
-
this.handleInput = (event) => {
|
|
21
|
-
const input = event.target;
|
|
22
|
-
const num = parseFloat(input.value) || 0;
|
|
23
|
-
if (isNaN(num))
|
|
24
|
-
return;
|
|
25
|
-
this.setValue(num);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
setValue(value) {
|
|
29
|
-
var _a;
|
|
30
|
-
this.value = value;
|
|
31
|
-
this.internals.setFormValue((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString());
|
|
32
|
-
this.valueChange.emit(this.value);
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (h(Host, { key: '9e9d338c9ff5f2191a7b93d75473455fcd0595e3', class: { disabled: !!this.disabled } }, h("label", { key: '94743e62549da23b3c63280d9a228bb7bab4dc86', class: "control" }, this.label && h("span", { key: 'a7feadfdb33ac4305a58b0634fafdfab56293a1e', class: "control_label" }, this.label), h("div", { key: '7e87334966533108284fad892e219c3d6e320da0', class: {
|
|
36
|
-
'control_input': true,
|
|
37
|
-
readonly: !!this.readonly,
|
|
38
|
-
error: !!this.error,
|
|
39
|
-
warning: !!this.warning
|
|
40
|
-
} }, h("input", { key: 'b241be77f4f61110fc00911bacf58f493a6dc648', type: "number", placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onInput: this.handleInput, name: this.name, min: this.min, max: this.max, step: this.step, value: this.value }), h("div", { key: '4c13d73fa8ad210f1561ca9d924dc37b5d25f058', class: "control_input__icons" }, this.loading ? (h("xv-loader-v2", { size: SIZE_VAR.XS })) : !!this.error ? (h("span", { class: "status-icon error", "aria-hidden": "true" }, "!")) : !!this.warning ? (h("span", { class: "status-icon warning", "aria-hidden": "true" }, "\u26A0")) : null, h("xv-button-v2", { key: 'ded5d2e74f4ff8544d025ce2862422ac69f54f9b', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.decrement, "aria-label": "Decrease" }, h("span", { key: '84bebcdd58a31c59d52685c589361532033074ba', slot: "icon-left", class: "status-icon" }, "\u2212")), h("hr", { key: 'ec34eb763fd84994fd3dde49dbb53c5472ff46ed' }), h("xv-button-v2", { key: '2275bbefc228ab1147c002c204b93da04d2b001e', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.increment, "aria-label": "Increase" }, h("span", { key: 'c64d970edf867832d6ee74354df55aa1cf151007', slot: "icon-left", class: "status-icon" }, "+"))))), this.helper && h("p", { key: 'b463bea86f2fa93c89072898796d03a9cd6c03bd', class: "message" }, this.helper), typeof this.error === 'string' ? (h("p", { class: "message error" }, this.error)) : typeof this.warning === 'string' ? (h("p", { class: "message warning" }, this.warning)) : null));
|
|
41
|
-
}
|
|
42
|
-
static get is() { return "xv-number-input-v2"; }
|
|
43
|
-
static get encapsulation() { return "shadow"; }
|
|
44
|
-
static get formAssociated() { return true; }
|
|
45
|
-
static get originalStyleUrls() {
|
|
46
|
-
return {
|
|
47
|
-
"$": ["xv-number-input.scss"]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get styleUrls() {
|
|
51
|
-
return {
|
|
52
|
-
"$": ["xv-number-input.css"]
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
static get properties() {
|
|
56
|
-
return {
|
|
57
|
-
"label": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"attribute": "label",
|
|
60
|
-
"mutable": false,
|
|
61
|
-
"complexType": {
|
|
62
|
-
"original": "string",
|
|
63
|
-
"resolved": "string",
|
|
64
|
-
"references": {}
|
|
65
|
-
},
|
|
66
|
-
"required": false,
|
|
67
|
-
"optional": false,
|
|
68
|
-
"docs": {
|
|
69
|
-
"tags": [],
|
|
70
|
-
"text": ""
|
|
71
|
-
},
|
|
72
|
-
"getter": false,
|
|
73
|
-
"setter": false,
|
|
74
|
-
"reflect": false
|
|
75
|
-
},
|
|
76
|
-
"placeholder": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"attribute": "placeholder",
|
|
79
|
-
"mutable": false,
|
|
80
|
-
"complexType": {
|
|
81
|
-
"original": "string",
|
|
82
|
-
"resolved": "string",
|
|
83
|
-
"references": {}
|
|
84
|
-
},
|
|
85
|
-
"required": false,
|
|
86
|
-
"optional": true,
|
|
87
|
-
"docs": {
|
|
88
|
-
"tags": [],
|
|
89
|
-
"text": ""
|
|
90
|
-
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
|
-
"reflect": true
|
|
94
|
-
},
|
|
95
|
-
"name": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"attribute": "name",
|
|
98
|
-
"mutable": false,
|
|
99
|
-
"complexType": {
|
|
100
|
-
"original": "string",
|
|
101
|
-
"resolved": "string",
|
|
102
|
-
"references": {}
|
|
103
|
-
},
|
|
104
|
-
"required": false,
|
|
105
|
-
"optional": false,
|
|
106
|
-
"docs": {
|
|
107
|
-
"tags": [],
|
|
108
|
-
"text": ""
|
|
109
|
-
},
|
|
110
|
-
"getter": false,
|
|
111
|
-
"setter": false,
|
|
112
|
-
"reflect": true
|
|
113
|
-
},
|
|
114
|
-
"value": {
|
|
115
|
-
"type": "number",
|
|
116
|
-
"attribute": "value",
|
|
117
|
-
"mutable": true,
|
|
118
|
-
"complexType": {
|
|
119
|
-
"original": "number",
|
|
120
|
-
"resolved": "number",
|
|
121
|
-
"references": {}
|
|
122
|
-
},
|
|
123
|
-
"required": false,
|
|
124
|
-
"optional": false,
|
|
125
|
-
"docs": {
|
|
126
|
-
"tags": [],
|
|
127
|
-
"text": ""
|
|
128
|
-
},
|
|
129
|
-
"getter": false,
|
|
130
|
-
"setter": false,
|
|
131
|
-
"reflect": true
|
|
132
|
-
},
|
|
133
|
-
"helper": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"attribute": "helper",
|
|
136
|
-
"mutable": false,
|
|
137
|
-
"complexType": {
|
|
138
|
-
"original": "string",
|
|
139
|
-
"resolved": "string",
|
|
140
|
-
"references": {}
|
|
141
|
-
},
|
|
142
|
-
"required": false,
|
|
143
|
-
"optional": true,
|
|
144
|
-
"docs": {
|
|
145
|
-
"tags": [],
|
|
146
|
-
"text": ""
|
|
147
|
-
},
|
|
148
|
-
"getter": false,
|
|
149
|
-
"setter": false,
|
|
150
|
-
"reflect": false
|
|
151
|
-
},
|
|
152
|
-
"error": {
|
|
153
|
-
"type": "any",
|
|
154
|
-
"attribute": "error",
|
|
155
|
-
"mutable": false,
|
|
156
|
-
"complexType": {
|
|
157
|
-
"original": "string | boolean",
|
|
158
|
-
"resolved": "boolean | string",
|
|
159
|
-
"references": {}
|
|
160
|
-
},
|
|
161
|
-
"required": false,
|
|
162
|
-
"optional": true,
|
|
163
|
-
"docs": {
|
|
164
|
-
"tags": [],
|
|
165
|
-
"text": ""
|
|
166
|
-
},
|
|
167
|
-
"getter": false,
|
|
168
|
-
"setter": false,
|
|
169
|
-
"reflect": false
|
|
170
|
-
},
|
|
171
|
-
"warning": {
|
|
172
|
-
"type": "any",
|
|
173
|
-
"attribute": "warning",
|
|
174
|
-
"mutable": false,
|
|
175
|
-
"complexType": {
|
|
176
|
-
"original": "string | boolean",
|
|
177
|
-
"resolved": "boolean | string",
|
|
178
|
-
"references": {}
|
|
179
|
-
},
|
|
180
|
-
"required": false,
|
|
181
|
-
"optional": true,
|
|
182
|
-
"docs": {
|
|
183
|
-
"tags": [],
|
|
184
|
-
"text": ""
|
|
185
|
-
},
|
|
186
|
-
"getter": false,
|
|
187
|
-
"setter": false,
|
|
188
|
-
"reflect": false
|
|
189
|
-
},
|
|
190
|
-
"step": {
|
|
191
|
-
"type": "number",
|
|
192
|
-
"attribute": "step",
|
|
193
|
-
"mutable": false,
|
|
194
|
-
"complexType": {
|
|
195
|
-
"original": "number",
|
|
196
|
-
"resolved": "number",
|
|
197
|
-
"references": {}
|
|
198
|
-
},
|
|
199
|
-
"required": false,
|
|
200
|
-
"optional": false,
|
|
201
|
-
"docs": {
|
|
202
|
-
"tags": [],
|
|
203
|
-
"text": ""
|
|
204
|
-
},
|
|
205
|
-
"getter": false,
|
|
206
|
-
"setter": false,
|
|
207
|
-
"reflect": false,
|
|
208
|
-
"defaultValue": "10"
|
|
209
|
-
},
|
|
210
|
-
"max": {
|
|
211
|
-
"type": "number",
|
|
212
|
-
"attribute": "max",
|
|
213
|
-
"mutable": false,
|
|
214
|
-
"complexType": {
|
|
215
|
-
"original": "number",
|
|
216
|
-
"resolved": "number",
|
|
217
|
-
"references": {}
|
|
218
|
-
},
|
|
219
|
-
"required": false,
|
|
220
|
-
"optional": true,
|
|
221
|
-
"docs": {
|
|
222
|
-
"tags": [],
|
|
223
|
-
"text": ""
|
|
224
|
-
},
|
|
225
|
-
"getter": false,
|
|
226
|
-
"setter": false,
|
|
227
|
-
"reflect": false
|
|
228
|
-
},
|
|
229
|
-
"min": {
|
|
230
|
-
"type": "number",
|
|
231
|
-
"attribute": "min",
|
|
232
|
-
"mutable": false,
|
|
233
|
-
"complexType": {
|
|
234
|
-
"original": "number",
|
|
235
|
-
"resolved": "number",
|
|
236
|
-
"references": {}
|
|
237
|
-
},
|
|
238
|
-
"required": false,
|
|
239
|
-
"optional": true,
|
|
240
|
-
"docs": {
|
|
241
|
-
"tags": [],
|
|
242
|
-
"text": ""
|
|
243
|
-
},
|
|
244
|
-
"getter": false,
|
|
245
|
-
"setter": false,
|
|
246
|
-
"reflect": false
|
|
247
|
-
},
|
|
248
|
-
"readonly": {
|
|
249
|
-
"type": "boolean",
|
|
250
|
-
"attribute": "readonly",
|
|
251
|
-
"mutable": false,
|
|
252
|
-
"complexType": {
|
|
253
|
-
"original": "boolean",
|
|
254
|
-
"resolved": "boolean",
|
|
255
|
-
"references": {}
|
|
256
|
-
},
|
|
257
|
-
"required": false,
|
|
258
|
-
"optional": true,
|
|
259
|
-
"docs": {
|
|
260
|
-
"tags": [],
|
|
261
|
-
"text": ""
|
|
262
|
-
},
|
|
263
|
-
"getter": false,
|
|
264
|
-
"setter": false,
|
|
265
|
-
"reflect": false
|
|
266
|
-
},
|
|
267
|
-
"disabled": {
|
|
268
|
-
"type": "boolean",
|
|
269
|
-
"attribute": "disabled",
|
|
270
|
-
"mutable": false,
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "boolean",
|
|
273
|
-
"resolved": "boolean",
|
|
274
|
-
"references": {}
|
|
275
|
-
},
|
|
276
|
-
"required": false,
|
|
277
|
-
"optional": true,
|
|
278
|
-
"docs": {
|
|
279
|
-
"tags": [],
|
|
280
|
-
"text": ""
|
|
281
|
-
},
|
|
282
|
-
"getter": false,
|
|
283
|
-
"setter": false,
|
|
284
|
-
"reflect": false
|
|
285
|
-
},
|
|
286
|
-
"loading": {
|
|
287
|
-
"type": "boolean",
|
|
288
|
-
"attribute": "loading",
|
|
289
|
-
"mutable": false,
|
|
290
|
-
"complexType": {
|
|
291
|
-
"original": "boolean",
|
|
292
|
-
"resolved": "boolean",
|
|
293
|
-
"references": {}
|
|
294
|
-
},
|
|
295
|
-
"required": false,
|
|
296
|
-
"optional": false,
|
|
297
|
-
"docs": {
|
|
298
|
-
"tags": [],
|
|
299
|
-
"text": ""
|
|
300
|
-
},
|
|
301
|
-
"getter": false,
|
|
302
|
-
"setter": false,
|
|
303
|
-
"reflect": false,
|
|
304
|
-
"defaultValue": "false"
|
|
305
|
-
},
|
|
306
|
-
"block": {
|
|
307
|
-
"type": "boolean",
|
|
308
|
-
"attribute": "block",
|
|
309
|
-
"mutable": false,
|
|
310
|
-
"complexType": {
|
|
311
|
-
"original": "boolean",
|
|
312
|
-
"resolved": "boolean",
|
|
313
|
-
"references": {}
|
|
314
|
-
},
|
|
315
|
-
"required": false,
|
|
316
|
-
"optional": true,
|
|
317
|
-
"docs": {
|
|
318
|
-
"tags": [],
|
|
319
|
-
"text": ""
|
|
320
|
-
},
|
|
321
|
-
"getter": false,
|
|
322
|
-
"setter": false,
|
|
323
|
-
"reflect": false
|
|
324
|
-
},
|
|
325
|
-
"size": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"attribute": "size",
|
|
328
|
-
"mutable": false,
|
|
329
|
-
"complexType": {
|
|
330
|
-
"original": "SIZE_VAR",
|
|
331
|
-
"resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
|
|
332
|
-
"references": {
|
|
333
|
-
"SIZE_VAR": {
|
|
334
|
-
"location": "import",
|
|
335
|
-
"path": "../../types/enum",
|
|
336
|
-
"id": "src/types/enum.ts::SIZE_VAR"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"required": false,
|
|
341
|
-
"optional": false,
|
|
342
|
-
"docs": {
|
|
343
|
-
"tags": [],
|
|
344
|
-
"text": ""
|
|
345
|
-
},
|
|
346
|
-
"getter": false,
|
|
347
|
-
"setter": false,
|
|
348
|
-
"reflect": true,
|
|
349
|
-
"defaultValue": "SIZE_VAR.MD"
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
static get events() {
|
|
354
|
-
return [{
|
|
355
|
-
"method": "valueChange",
|
|
356
|
-
"name": "valueChange",
|
|
357
|
-
"bubbles": true,
|
|
358
|
-
"cancelable": true,
|
|
359
|
-
"composed": true,
|
|
360
|
-
"docs": {
|
|
361
|
-
"tags": [],
|
|
362
|
-
"text": ""
|
|
363
|
-
},
|
|
364
|
-
"complexType": {
|
|
365
|
-
"original": "number",
|
|
366
|
-
"resolved": "number",
|
|
367
|
-
"references": {}
|
|
368
|
-
}
|
|
369
|
-
}];
|
|
370
|
-
}
|
|
371
|
-
static get attachInternalsMemberName() { return "internals"; }
|
|
372
|
-
}
|
|
373
|
-
//# sourceMappingURL=xv-number-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xv-number-input.js","sourceRoot":"","sources":["../../../src/components/xv-number-input/xv-number-input.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, AttachInternals } from '@stencil/core';\nimport { SIZE_VAR } from '../../types/enum';\n\n@Component({\n tag: 'xv-number-input-v2',\n styleUrl: 'xv-number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class XvNumberInput {\n @Prop() label: string;\n @Prop({ reflect: true }) placeholder?: string;\n @Prop({ reflect: true }) name: string;\n @Prop({ reflect: true, mutable: true }) value: number;\n @Event({ eventName: 'valueChange' }) valueChange: EventEmitter<number>;\n @Prop() helper?: string;\n @Prop() error?: string | boolean;\n @Prop() warning?: string | boolean;\n @Prop() step: number = 10;\n @Prop() max?: number;\n @Prop() min?: number;\n @Prop() readonly?: boolean;\n @Prop() disabled?: boolean;\n @Prop() loading: boolean = false;\n @Prop() block?: boolean;\n @Prop({ reflect: true }) size: SIZE_VAR = SIZE_VAR.MD;\n\n @AttachInternals() internals: ElementInternals;\n\n private increment = () => {\n const newValue = (this.value || 0) + this.step;\n if (this.max !== undefined && newValue > this.max) return;\n this.setValue(newValue)\n };\n\n private decrement = () => {\n const newValue = (this.value || 0) - this.step;\n if (this.min !== undefined && newValue < this.min) return;\n this.setValue(newValue)\n };\n\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n const num = parseFloat(input.value) || 0;\n\n if (isNaN(num)) return;\n\n this.setValue(num);\n };\n\n private setValue(value: number) {\n this.value = value;\n this.internals.setFormValue(this.value?.toString());\n this.valueChange.emit(this.value);\n }\n\n render() {\n return (\n <Host class={{ disabled: !!this.disabled }}>\n <label class=\"control\">\n {this.label && <span class=\"control_label\">{this.label}</span>}\n\n <div class={{\n 'control_input': true,\n readonly: !!this.readonly,\n error: !!this.error,\n warning: !!this.warning\n }}>\n <input\n type=\"number\"\n placeholder={this.placeholder}\n disabled={this.disabled}\n readonly={this.readonly}\n onInput={this.handleInput}\n name={this.name}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.value}\n />\n\n <div class=\"control_input__icons\">\n {this.loading ? (\n <xv-loader-v2 size={SIZE_VAR.XS} />\n ) : !!this.error ? (\n <span class=\"status-icon error\" aria-hidden=\"true\">!</span>\n ) : !!this.warning ? (\n <span class=\"status-icon warning\" aria-hidden=\"true\">⚠</span>\n ) : null}\n <xv-button-v2\n size={this.size}\n variant=\"ghost\"\n disabled={this.disabled || this.readonly}\n onClick={this.decrement}\n aria-label=\"Decrease\"\n ><span slot=\"icon-left\" class=\"status-icon\">−</span></xv-button-v2>\n <hr />\n <xv-button-v2\n size={this.size}\n variant=\"ghost\"\n disabled={this.disabled || this.readonly}\n onClick={this.increment}\n aria-label=\"Increase\"\n ><span slot=\"icon-left\" class=\"status-icon\">+</span></xv-button-v2>\n </div>\n </div>\n </label>\n\n\n {this.helper && <p class=\"message\">{this.helper}</p>}\n {typeof this.error === 'string' ? (\n <p class=\"message error\">{this.error}</p>\n ) : typeof this.warning === 'string' ? (\n <p class=\"message warning\">{this.warning}</p>\n ) : null}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_vars.js","sourceRoot":"","sources":["../../../src/components/xv-overflow-menu/_vars.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,mCAAY,CAAA;IACZ,wCAAiB,CAAA;AACnB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B","sourcesContent":["export interface OverflowMenuEvent {\n value: string | number | object | undefined;\n event: PointerEvent;\n}\n\nexport enum OverflowMenuVariant {\n DEFAULT = '',\n DANGER = 'danger',\n}\n"]}
|