@ukic/canary-web-components 2.0.0-canary.9 → 3.0.0-canary.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-7a069459.js → helpers-33b42cd6.js} +95 -101
- package/dist/cjs/helpers-33b42cd6.js.map +1 -0
- package/dist/cjs/{helpers-f75cf7cf.js → helpers-6817cfbb.js} +116 -1
- package/dist/cjs/helpers-6817cfbb.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +31 -9
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +7 -8
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +28 -10
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +17 -8
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +67 -117
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +37 -11
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +8 -7
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +122 -134
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +131 -0
- package/dist/cjs/ic-card-horizontal.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-card-vertical.cjs.entry.js +149 -0
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +27 -20
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +45 -40
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +48 -30
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +14 -5
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +32 -0
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +12 -12
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js +57 -0
- package/dist/cjs/ic-data-table-title-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-table.cjs.entry.js +807 -65
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-input.cjs.entry.js +70 -33
- package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-date-picker.cjs.entry.js +81 -55
- package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +27 -101
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +3 -4
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +323 -0
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +6 -8
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +9 -10
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +27 -12
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -8
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js +38 -32
- package/dist/cjs/ic-input-component-container_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +51 -24
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -3
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +6 -13
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js +186 -47
- package/dist/cjs/ic-menu-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu.cjs.entry.js +16 -21
- package/dist/cjs/ic-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +28 -8
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +23 -21
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +33 -38
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +3 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +10 -12
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +227 -186
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +33 -33
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +87 -53
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +44 -53
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +33 -53
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select-with-multi.cjs.entry.js +15 -51
- package/dist/cjs/ic-select-with-multi.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +8 -9
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +18 -38
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +7 -15
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +41 -43
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +55 -24
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +7 -9
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +90 -137
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +25 -11
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +6 -13
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +14 -14
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +39 -25
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +6 -7
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +88 -35
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +17 -17
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +15 -14
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +62 -86
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +241 -0
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js +203 -0
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-typography.cjs.entry.js +58 -20
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-4cf27b16.js +26 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/arrow-dropdown.svg +3 -0
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.css +661 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +373 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js +2 -0
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.types.js.map +1 -0
- package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js +130 -0
- package/dist/collection/components/ic-card-horizontal/test/basic/ic-card-horizontal.spec.js.map +1 -0
- package/dist/collection/components/ic-data-table/ic-data-table.css +174 -13
- package/dist/collection/components/ic-data-table/ic-data-table.js +1176 -90
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.types.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +798 -39
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js +339 -3
- package/dist/collection/components/ic-data-table/test/basic/ic-data-table.spec.js.map +1 -1
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.css +93 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js +160 -0
- package/dist/collection/components/ic-data-table-title-bar/ic-data-table-title-bar.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js +11 -0
- package/dist/collection/components/ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js +70 -0
- package/dist/collection/components/ic-data-table-title-bar/test/basic/ic-data-table-title-bar.spec.js.map +1 -0
- package/dist/collection/components/ic-date-input/ic-date-input.css +5 -5
- package/dist/collection/components/ic-date-input/ic-date-input.js +140 -33
- package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +23 -21
- package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
- package/dist/collection/components/ic-date-picker/ic-date-picker.css +34 -32
- package/dist/collection/components/ic-date-picker/ic-date-picker.js +123 -56
- package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
- package/dist/collection/components/ic-date-picker/story-data.js +6 -1
- package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js +73 -5
- package/dist/collection/components/ic-date-picker/test/basic/ic-date-picker.spec.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/ic-menu.css +30 -19
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js +187 -69
- package/dist/collection/components/ic-menu-with-multi/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js +229 -52
- package/dist/collection/components/ic-menu-with-multi/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.css +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +213 -166
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +75 -12
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/ic-select.css +21 -19
- package/dist/collection/components/ic-select-with-multi/ic-select.js +16 -145
- package/dist/collection/components/ic-select-with-multi/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js +7 -7
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.spec.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.css +172 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +592 -0
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js +114 -0
- package/dist/collection/components/ic-tree-item/test/basic/ic-tree-item.spec.js.map +1 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.css +59 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js +296 -0
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js +85 -0
- package/dist/collection/components/ic-tree-view/test/basic/ic-tree-view.spec.js.map +1 -0
- package/dist/collection/utils/helpers.js +44 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +84 -90
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/helpers2.js +107 -1
- package/dist/components/helpers2.js.map +1 -1
- package/dist/components/ic-accordion-group.js +39 -13
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +6 -6
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +132 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +37 -8
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +75 -121
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +42 -10
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +10 -7
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +69 -106
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-horizontal.d.ts +11 -0
- package/dist/components/ic-card-horizontal.js +167 -0
- package/dist/components/ic-card-horizontal.js.map +1 -0
- package/dist/components/ic-card-vertical.js +194 -0
- package/dist/components/ic-card-vertical.js.map +1 -0
- package/dist/components/ic-checkbox-group.js +31 -21
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +52 -47
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +56 -33
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +14 -5
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +56 -0
- package/dist/components/ic-data-list.js.map +1 -0
- package/dist/components/ic-data-row.js +14 -13
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-data-table-title-bar.d.ts +11 -0
- package/dist/components/ic-data-table-title-bar.js +136 -0
- package/dist/components/ic-data-table-title-bar.js.map +1 -0
- package/dist/components/ic-data-table.js +843 -72
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-date-input2.js +79 -36
- package/dist/components/ic-date-input2.js.map +1 -1
- package/dist/components/ic-date-picker.js +87 -57
- package/dist/components/ic-date-picker.js.map +1 -1
- package/dist/components/ic-dialog.js +29 -115
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +2 -3
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +1 -57
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-empty-state2.js +80 -0
- package/dist/components/ic-empty-state2.js.map +1 -0
- package/dist/components/ic-footer-link-group.js +10 -10
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +13 -8
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +9 -10
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +28 -14
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +6 -8
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +25 -20
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +9 -11
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +4 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +54 -27
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +29 -23
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +6 -12
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +15 -20
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-menu3.js +187 -49
- package/dist/components/ic-menu3.js.map +1 -1
- package/dist/components/ic-navigation-button.js +28 -8
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +23 -20
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +33 -37
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +3 -3
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +9 -11
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +166 -147
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +22 -12
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination2.js +50 -33
- package/dist/components/ic-pagination2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +35 -33
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +88 -53
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +47 -60
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +31 -52
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +1 -1
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select-with-multi.js +15 -58
- package/dist/components/ic-select-with-multi.js.map +1 -1
- package/dist/components/ic-select2.js +60 -43
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-side-navigation.js +8 -9
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +20 -45
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +7 -15
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +48 -48
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +60 -23
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +7 -9
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +95 -139
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +27 -13
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +9 -16
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +16 -15
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +105 -114
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +45 -28
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +7 -9
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +93 -36
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +17 -17
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +16 -14
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +31 -9
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +63 -87
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-tree-item.d.ts +11 -0
- package/dist/components/ic-tree-item.js +286 -0
- package/dist/components/ic-tree-item.js.map +1 -0
- package/dist/components/ic-tree-view.d.ts +11 -0
- package/dist/components/ic-tree-view.js +237 -0
- package/dist/components/ic-tree-view.js.map +1 -0
- package/dist/components/ic-typography2.js +65 -22
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +101 -29
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0894cab1.entry.js +2 -0
- package/dist/core/p-0894cab1.entry.js.map +1 -0
- package/dist/core/p-0ab10600.entry.js +2 -0
- package/dist/core/p-0ab10600.entry.js.map +1 -0
- package/dist/core/p-1109636a.entry.js +2 -0
- package/dist/core/p-1109636a.entry.js.map +1 -0
- package/dist/core/p-130a05cf.entry.js +2 -0
- package/dist/core/p-130a05cf.entry.js.map +1 -0
- package/dist/core/p-1e2aa8a6.entry.js +2 -0
- package/dist/core/p-1e2aa8a6.entry.js.map +1 -0
- package/dist/core/p-1fe35de1.entry.js +2 -0
- package/dist/core/p-1fe35de1.entry.js.map +1 -0
- package/dist/core/p-202bc922.entry.js +2 -0
- package/dist/core/p-202bc922.entry.js.map +1 -0
- package/dist/core/p-28323849.entry.js +2 -0
- package/dist/core/p-28323849.entry.js.map +1 -0
- package/dist/core/p-297e99cf.js +2 -0
- package/dist/core/p-297e99cf.js.map +1 -0
- package/dist/core/p-2e49fb22.entry.js +2 -0
- package/dist/core/p-2e49fb22.entry.js.map +1 -0
- package/dist/core/p-2ff4e283.entry.js +2 -0
- package/dist/core/p-2ff4e283.entry.js.map +1 -0
- package/dist/core/p-30b046b2.entry.js +2 -0
- package/dist/core/p-30b046b2.entry.js.map +1 -0
- package/dist/core/{p-f8cf2978.js → p-33dd24eb.js} +2 -2
- package/dist/core/p-3db785f0.entry.js +2 -0
- package/dist/core/p-3db785f0.entry.js.map +1 -0
- package/dist/core/p-3ef28704.entry.js +2 -0
- package/dist/core/p-3ef28704.entry.js.map +1 -0
- package/dist/core/p-42883e4c.entry.js +2 -0
- package/dist/core/p-42883e4c.entry.js.map +1 -0
- package/dist/core/p-42e0f3bd.entry.js +2 -0
- package/dist/core/p-42e0f3bd.entry.js.map +1 -0
- package/dist/core/p-44ee5375.entry.js +2 -0
- package/dist/core/p-44ee5375.entry.js.map +1 -0
- package/dist/core/p-486d8d43.entry.js +2 -0
- package/dist/core/p-486d8d43.entry.js.map +1 -0
- package/dist/core/p-4dcc37e7.entry.js +2 -0
- package/dist/core/p-4dcc37e7.entry.js.map +1 -0
- package/dist/core/p-4e28ef60.entry.js +2 -0
- package/dist/core/{p-b306cbc8.entry.js.map → p-4e28ef60.entry.js.map} +1 -1
- package/dist/core/p-50019ede.entry.js +2 -0
- package/dist/core/p-50019ede.entry.js.map +1 -0
- package/dist/core/p-505250cf.entry.js +2 -0
- package/dist/core/p-505250cf.entry.js.map +1 -0
- package/dist/core/p-53e00a8a.entry.js +2 -0
- package/dist/core/p-53e00a8a.entry.js.map +1 -0
- package/dist/core/p-59028160.entry.js +2 -0
- package/dist/core/p-59028160.entry.js.map +1 -0
- package/dist/core/p-5accf0bb.entry.js +2 -0
- package/dist/core/p-5accf0bb.entry.js.map +1 -0
- package/dist/core/p-5b7dfe57.entry.js +2 -0
- package/dist/core/p-5b7dfe57.entry.js.map +1 -0
- package/dist/core/p-5cfb5821.entry.js +2 -0
- package/dist/core/p-5cfb5821.entry.js.map +1 -0
- package/dist/core/p-603fea14.entry.js +2 -0
- package/dist/core/p-603fea14.entry.js.map +1 -0
- package/dist/core/p-64933069.entry.js +2 -0
- package/dist/core/p-64933069.entry.js.map +1 -0
- package/dist/core/p-6beffd0e.entry.js +2 -0
- package/dist/core/p-6beffd0e.entry.js.map +1 -0
- package/dist/core/p-77a32de5.entry.js +2 -0
- package/dist/core/p-77a32de5.entry.js.map +1 -0
- package/dist/core/p-7c268030.entry.js +2 -0
- package/dist/core/p-7c268030.entry.js.map +1 -0
- package/dist/core/p-7c78f6c6.entry.js +2 -0
- package/dist/core/p-7c78f6c6.entry.js.map +1 -0
- package/dist/core/p-7c80d79c.entry.js +2 -0
- package/dist/core/p-7c80d79c.entry.js.map +1 -0
- package/dist/core/{p-c2b5e7b1.entry.js → p-7e1603cc.entry.js} +2 -2
- package/dist/core/p-7e1603cc.entry.js.map +1 -0
- package/dist/core/p-897b8d16.entry.js +2 -0
- package/dist/core/p-897b8d16.entry.js.map +1 -0
- package/dist/core/p-8ca2e329.entry.js +2 -0
- package/dist/core/p-8ca2e329.entry.js.map +1 -0
- package/dist/core/p-8df49808.entry.js +2 -0
- package/dist/core/p-8df49808.entry.js.map +1 -0
- package/dist/core/p-8f12659d.entry.js +2 -0
- package/dist/core/p-8f12659d.entry.js.map +1 -0
- package/dist/core/p-903ee57e.entry.js +2 -0
- package/dist/core/p-903ee57e.entry.js.map +1 -0
- package/dist/core/p-92e3ccb9.entry.js +2 -0
- package/dist/core/p-92e3ccb9.entry.js.map +1 -0
- package/dist/core/p-9397b15b.js +2 -0
- package/dist/core/p-9397b15b.js.map +1 -0
- package/dist/core/p-9b54feca.entry.js +2 -0
- package/dist/core/p-9b54feca.entry.js.map +1 -0
- package/dist/core/{p-356b8a4c.entry.js → p-9f3cf053.entry.js} +2 -2
- package/dist/core/{p-356b8a4c.entry.js.map → p-9f3cf053.entry.js.map} +1 -1
- package/dist/core/p-a78cf2cb.entry.js +2 -0
- package/dist/core/p-a78cf2cb.entry.js.map +1 -0
- package/dist/core/p-a9151d0b.entry.js +2 -0
- package/dist/core/p-a9151d0b.entry.js.map +1 -0
- package/dist/core/p-acc76b80.entry.js +2 -0
- package/dist/core/p-acc76b80.entry.js.map +1 -0
- package/dist/core/p-aeb6016c.entry.js +2 -0
- package/dist/core/p-aeb6016c.entry.js.map +1 -0
- package/dist/core/p-b0751bd9.entry.js +2 -0
- package/dist/core/p-b0751bd9.entry.js.map +1 -0
- package/dist/core/{p-452985d9.entry.js → p-b40ecaef.entry.js} +2 -2
- package/dist/core/p-b40ecaef.entry.js.map +1 -0
- package/dist/core/p-bb1252fa.entry.js +2 -0
- package/dist/core/p-bb1252fa.entry.js.map +1 -0
- package/dist/core/p-c033e7d6.entry.js +2 -0
- package/dist/core/p-c033e7d6.entry.js.map +1 -0
- package/dist/core/p-c1698936.entry.js +2 -0
- package/dist/core/p-c1698936.entry.js.map +1 -0
- package/dist/core/p-c1e90c85.entry.js +2 -0
- package/dist/core/p-c1e90c85.entry.js.map +1 -0
- package/dist/core/p-cb63e656.entry.js +2 -0
- package/dist/core/p-cb63e656.entry.js.map +1 -0
- package/dist/core/p-d03374fc.entry.js +2 -0
- package/dist/core/p-d03374fc.entry.js.map +1 -0
- package/dist/core/p-d2e7a256.entry.js +2 -0
- package/dist/core/p-d2e7a256.entry.js.map +1 -0
- package/dist/core/p-d3c0bffb.entry.js +2 -0
- package/dist/core/p-d3c0bffb.entry.js.map +1 -0
- package/dist/core/p-d5ca3bcb.entry.js +2 -0
- package/dist/core/p-d5ca3bcb.entry.js.map +1 -0
- package/dist/core/p-da3e8c54.entry.js +2 -0
- package/dist/core/p-da3e8c54.entry.js.map +1 -0
- package/dist/core/p-e5d99316.entry.js +2 -0
- package/dist/core/p-e5d99316.entry.js.map +1 -0
- package/dist/core/p-eb65e556.entry.js +2 -0
- package/dist/core/p-eb65e556.entry.js.map +1 -0
- package/dist/core/p-ec53b435.entry.js +2 -0
- package/dist/core/p-ec53b435.entry.js.map +1 -0
- package/dist/core/p-ed4cde5a.entry.js +2 -0
- package/dist/core/p-ed4cde5a.entry.js.map +1 -0
- package/dist/core/{p-baf81f30.entry.js → p-f64abdff.entry.js} +2 -2
- package/dist/core/p-f64abdff.entry.js.map +1 -0
- package/dist/core/p-f9810621.entry.js +2 -0
- package/dist/core/p-f9810621.entry.js.map +1 -0
- package/dist/core/p-fb7b99dd.entry.js +2 -0
- package/dist/core/p-fb7b99dd.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{date-helpers-4f432e92.js → date-helpers-0e5e32a7.js} +2 -2
- package/dist/esm/{date-helpers-4f432e92.js.map → date-helpers-0e5e32a7.js.map} +1 -1
- package/dist/esm/{helpers-f328a7b6.js → helpers-5bd2012a.js} +108 -2
- package/dist/esm/helpers-5bd2012a.js.map +1 -0
- package/dist/esm/{helpers-7aa21b0a.js → helpers-dab8ddfe.js} +85 -91
- package/dist/esm/helpers-dab8ddfe.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +31 -9
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +7 -8
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +27 -9
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +17 -8
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +67 -117
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +37 -11
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +8 -7
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +121 -133
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +127 -0
- package/dist/esm/ic-card-horizontal.entry.js.map +1 -0
- package/dist/esm/ic-card-vertical.entry.js +145 -0
- package/dist/esm/ic-card-vertical.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +27 -20
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +45 -40
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +49 -31
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +14 -5
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +28 -0
- package/dist/esm/ic-data-list.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +12 -12
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-data-table-title-bar.entry.js +53 -0
- package/dist/esm/ic-data-table-title-bar.entry.js.map +1 -0
- package/dist/esm/ic-data-table.entry.js +808 -66
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-date-input.entry.js +71 -34
- package/dist/esm/ic-date-input.entry.js.map +1 -1
- package/dist/esm/ic-date-picker.entry.js +82 -56
- package/dist/esm/ic-date-picker.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +27 -101
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -3
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +318 -0
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +9 -10
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +6 -8
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +9 -10
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +28 -13
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -8
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_4.entry.js +35 -29
- package/dist/esm/ic-input-component-container_4.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +52 -25
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -3
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +6 -13
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-menu-with-multi.entry.js +186 -47
- package/dist/esm/ic-menu-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-menu.entry.js +16 -21
- package/dist/esm/ic-menu.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +28 -8
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +23 -21
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +33 -38
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +3 -4
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +10 -12
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +221 -180
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +33 -33
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +87 -53
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +44 -53
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +29 -49
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +1 -1
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-select-with-multi.entry.js +14 -50
- package/dist/esm/ic-select-with-multi.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +8 -9
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +18 -38
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +7 -15
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +41 -43
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +55 -24
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +7 -9
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +90 -137
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +25 -11
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +6 -13
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +14 -14
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +39 -25
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +6 -7
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +88 -35
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +17 -17
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +15 -14
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +62 -86
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +237 -0
- package/dist/esm/ic-tree-item.entry.js.map +1 -0
- package/dist/esm/ic-tree-view.entry.js +199 -0
- package/dist/esm/ic-tree-view.entry.js.map +1 -0
- package/dist/esm/ic-typography.entry.js +59 -21
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-93509377.js +26 -14
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-card-horizontal/ic-card-horizontal.d.ts +71 -0
- package/dist/types/components/ic-card-horizontal/ic-card-horizontal.types.d.ts +1 -0
- package/dist/types/components/ic-data-table/ic-data-table.d.ts +178 -19
- package/dist/types/components/ic-data-table/ic-data-table.types.d.ts +30 -0
- package/dist/types/components/ic-data-table/story-data.d.ts +251 -3
- package/dist/types/components/ic-data-table-title-bar/ic-data-table-title-bar.d.ts +36 -0
- package/dist/types/components/ic-date-input/ic-date-input.d.ts +17 -0
- package/dist/types/components/ic-date-picker/ic-date-picker.d.ts +14 -25
- package/dist/types/components/ic-menu-with-multi/ic-menu.d.ts +10 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +46 -22
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components/ic-select-with-multi/ic-select.d.ts +1 -31
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +95 -0
- package/dist/types/components/ic-tree-view/ic-tree-view.d.ts +40 -0
- package/dist/types/components.d.ts +560 -117
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +9 -0
- package/dist/types/utils/types.d.ts +24 -8
- package/hydrate/index.js +4461 -2588
- package/package.json +6 -6
- package/dist/cjs/helpers-7a069459.js.map +0 -1
- package/dist/cjs/helpers-f75cf7cf.js.map +0 -1
- package/dist/cjs/ic-card.cjs.entry.js +0 -126
- package/dist/cjs/ic-card.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +0 -29
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +0 -38
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +0 -1
- package/dist/cjs/ic-pagination-bar.cjs.entry.js +0 -269
- package/dist/cjs/ic-pagination-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/types-17dba796.js +0 -16
- package/dist/cjs/types-17dba796.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.types.js +0 -2
- package/dist/collection/components/ic-pagination/ic-pagination.types.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js +0 -146
- package/dist/collection/components/ic-select-with-multi/test/a11y/ic-select.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js +0 -2040
- package/dist/collection/components/ic-select-with-multi/test/basic/ic-select.e2e.js.map +0 -1
- package/dist/components/ic-alert2.js +0 -117
- package/dist/components/ic-alert2.js.map +0 -1
- package/dist/components/ic-card.js +0 -171
- package/dist/components/ic-card.js.map +0 -1
- package/dist/components/ic-data-entity.js +0 -53
- package/dist/components/ic-data-entity.js.map +0 -1
- package/dist/components/types.js +0 -16
- package/dist/components/types.js.map +0 -1
- package/dist/core/p-06ae5bec.entry.js +0 -2
- package/dist/core/p-06ae5bec.entry.js.map +0 -1
- package/dist/core/p-0939ce92.entry.js +0 -2
- package/dist/core/p-0939ce92.entry.js.map +0 -1
- package/dist/core/p-16f67397.entry.js +0 -2
- package/dist/core/p-16f67397.entry.js.map +0 -1
- package/dist/core/p-1832f4b5.entry.js +0 -2
- package/dist/core/p-1832f4b5.entry.js.map +0 -1
- package/dist/core/p-1b7d426b.entry.js +0 -2
- package/dist/core/p-1b7d426b.entry.js.map +0 -1
- package/dist/core/p-1ce75941.entry.js +0 -2
- package/dist/core/p-1ce75941.entry.js.map +0 -1
- package/dist/core/p-2e2e0099.entry.js +0 -2
- package/dist/core/p-2e2e0099.entry.js.map +0 -1
- package/dist/core/p-33679c06.entry.js +0 -2
- package/dist/core/p-33679c06.entry.js.map +0 -1
- package/dist/core/p-36508aad.entry.js +0 -2
- package/dist/core/p-36508aad.entry.js.map +0 -1
- package/dist/core/p-3745da83.entry.js +0 -2
- package/dist/core/p-3745da83.entry.js.map +0 -1
- package/dist/core/p-3f2e77c3.entry.js +0 -2
- package/dist/core/p-3f2e77c3.entry.js.map +0 -1
- package/dist/core/p-452985d9.entry.js.map +0 -1
- package/dist/core/p-47ac6838.entry.js +0 -2
- package/dist/core/p-47ac6838.entry.js.map +0 -1
- package/dist/core/p-4f1ffa39.entry.js +0 -2
- package/dist/core/p-4f1ffa39.entry.js.map +0 -1
- package/dist/core/p-5759d771.entry.js +0 -2
- package/dist/core/p-5759d771.entry.js.map +0 -1
- package/dist/core/p-5e2e6c3b.entry.js +0 -2
- package/dist/core/p-5e2e6c3b.entry.js.map +0 -1
- package/dist/core/p-5fe96107.entry.js +0 -2
- package/dist/core/p-5fe96107.entry.js.map +0 -1
- package/dist/core/p-62e22508.entry.js +0 -2
- package/dist/core/p-62e22508.entry.js.map +0 -1
- package/dist/core/p-6690bc04.entry.js +0 -2
- package/dist/core/p-6690bc04.entry.js.map +0 -1
- package/dist/core/p-6c0e2ceb.entry.js +0 -2
- package/dist/core/p-6c0e2ceb.entry.js.map +0 -1
- package/dist/core/p-76915584.entry.js +0 -2
- package/dist/core/p-76915584.entry.js.map +0 -1
- package/dist/core/p-76d26018.entry.js +0 -2
- package/dist/core/p-76d26018.entry.js.map +0 -1
- package/dist/core/p-776671cf.entry.js +0 -2
- package/dist/core/p-776671cf.entry.js.map +0 -1
- package/dist/core/p-7cecf5d5.entry.js +0 -2
- package/dist/core/p-7cecf5d5.entry.js.map +0 -1
- package/dist/core/p-85609bdd.entry.js +0 -2
- package/dist/core/p-85609bdd.entry.js.map +0 -1
- package/dist/core/p-86012178.entry.js +0 -2
- package/dist/core/p-86012178.entry.js.map +0 -1
- package/dist/core/p-8a7e7d23.entry.js +0 -2
- package/dist/core/p-8a7e7d23.entry.js.map +0 -1
- package/dist/core/p-8c90110a.entry.js +0 -2
- package/dist/core/p-8c90110a.entry.js.map +0 -1
- package/dist/core/p-8ea47d42.entry.js +0 -2
- package/dist/core/p-8ea47d42.entry.js.map +0 -1
- package/dist/core/p-9777ebb1.entry.js +0 -2
- package/dist/core/p-9777ebb1.entry.js.map +0 -1
- package/dist/core/p-982a6e88.entry.js +0 -2
- package/dist/core/p-982a6e88.entry.js.map +0 -1
- package/dist/core/p-98448bdb.entry.js +0 -2
- package/dist/core/p-98448bdb.entry.js.map +0 -1
- package/dist/core/p-9d01a7ad.entry.js +0 -2
- package/dist/core/p-9d01a7ad.entry.js.map +0 -1
- package/dist/core/p-9d540656.entry.js +0 -2
- package/dist/core/p-9d540656.entry.js.map +0 -1
- package/dist/core/p-9e3178e8.entry.js +0 -2
- package/dist/core/p-9e3178e8.entry.js.map +0 -1
- package/dist/core/p-a0f9b259.entry.js +0 -2
- package/dist/core/p-a0f9b259.entry.js.map +0 -1
- package/dist/core/p-a42c2f37.entry.js +0 -2
- package/dist/core/p-a42c2f37.entry.js.map +0 -1
- package/dist/core/p-a6447b13.entry.js +0 -2
- package/dist/core/p-a6447b13.entry.js.map +0 -1
- package/dist/core/p-aabab75f.entry.js +0 -2
- package/dist/core/p-aabab75f.entry.js.map +0 -1
- package/dist/core/p-ae422058.entry.js +0 -2
- package/dist/core/p-ae422058.entry.js.map +0 -1
- package/dist/core/p-b2aa3d7c.entry.js +0 -2
- package/dist/core/p-b2aa3d7c.entry.js.map +0 -1
- package/dist/core/p-b306cbc8.entry.js +0 -2
- package/dist/core/p-baf81f30.entry.js.map +0 -1
- package/dist/core/p-c2b5e7b1.entry.js.map +0 -1
- package/dist/core/p-c7590421.entry.js +0 -2
- package/dist/core/p-c7590421.entry.js.map +0 -1
- package/dist/core/p-c7820c23.entry.js +0 -2
- package/dist/core/p-c7820c23.entry.js.map +0 -1
- package/dist/core/p-ca8cbd6a.entry.js +0 -2
- package/dist/core/p-ca8cbd6a.entry.js.map +0 -1
- package/dist/core/p-caf857de.entry.js +0 -2
- package/dist/core/p-caf857de.entry.js.map +0 -1
- package/dist/core/p-cc7bc438.entry.js +0 -2
- package/dist/core/p-cc7bc438.entry.js.map +0 -1
- package/dist/core/p-cd799087.js +0 -2
- package/dist/core/p-cd799087.js.map +0 -1
- package/dist/core/p-d32692e2.entry.js +0 -2
- package/dist/core/p-d32692e2.entry.js.map +0 -1
- package/dist/core/p-d35c7c18.js +0 -2
- package/dist/core/p-d35c7c18.js.map +0 -1
- package/dist/core/p-d3856ed3.entry.js +0 -2
- package/dist/core/p-d3856ed3.entry.js.map +0 -1
- package/dist/core/p-d4fdd8c1.entry.js +0 -2
- package/dist/core/p-d4fdd8c1.entry.js.map +0 -1
- package/dist/core/p-d5c99ec3.entry.js +0 -2
- package/dist/core/p-d5c99ec3.entry.js.map +0 -1
- package/dist/core/p-e189f1d0.entry.js +0 -2
- package/dist/core/p-e189f1d0.entry.js.map +0 -1
- package/dist/core/p-e473bbf8.entry.js +0 -2
- package/dist/core/p-e473bbf8.entry.js.map +0 -1
- package/dist/core/p-e74f1d09.entry.js +0 -2
- package/dist/core/p-e74f1d09.entry.js.map +0 -1
- package/dist/core/p-e79e0292.entry.js +0 -2
- package/dist/core/p-e79e0292.entry.js.map +0 -1
- package/dist/core/p-e84b0310.entry.js +0 -2
- package/dist/core/p-e84b0310.entry.js.map +0 -1
- package/dist/core/p-f55ad6ae.entry.js +0 -2
- package/dist/core/p-f55ad6ae.entry.js.map +0 -1
- package/dist/core/p-f91527a0.entry.js +0 -2
- package/dist/core/p-f91527a0.entry.js.map +0 -1
- package/dist/core/p-fbf4e9b7.entry.js +0 -2
- package/dist/core/p-fbf4e9b7.entry.js.map +0 -1
- package/dist/core/p-fd186591.js +0 -2
- package/dist/core/p-fd186591.js.map +0 -1
- package/dist/esm/helpers-7aa21b0a.js.map +0 -1
- package/dist/esm/helpers-f328a7b6.js.map +0 -1
- package/dist/esm/ic-card.entry.js +0 -122
- package/dist/esm/ic-card.entry.js.map +0 -1
- package/dist/esm/ic-data-entity.entry.js +0 -25
- package/dist/esm/ic-data-entity.entry.js.map +0 -1
- package/dist/esm/ic-empty-state.entry.js +0 -34
- package/dist/esm/ic-empty-state.entry.js.map +0 -1
- package/dist/esm/ic-pagination-bar.entry.js +0 -265
- package/dist/esm/ic-pagination-bar.entry.js.map +0 -1
- package/dist/esm/types-f605c21c.js +0 -16
- package/dist/esm/types-f605c21c.js.map +0 -1
- package/dist/types/components/ic-pagination/ic-pagination.types.d.ts +0 -6
- /package/dist/core/{p-f8cf2978.js.map → p-33dd24eb.js.map} +0 -0
- /package/dist/types/components/{ic-select-with-multi/test/a11y/ic-select.test.a11y.d.ts → ic-data-table-title-bar/test/a11y/ic-data-table-title-bar.test.a11y.d.ts} +0 -0
@@ -1,6 +1,5 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-93509377.js';
|
2
|
-
import {
|
3
|
-
import { I as IcThemeForegroundEnum, a as IcInformationStatus } from './types-f605c21c.js';
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as forceUpdate } from './index-93509377.js';
|
2
|
+
import { r as removeDisabledFalse, a as onComponentRequiredPropUndefined, L as capitalize, c as checkSlotInChildMutations, B as getLabelFromValue, z as getFilteredMenuOptions, k as removeFormResetListener, v as inheritAttributes, j as addFormResetListener, l as renderHiddenInput, n as getInputDescribedByText, p as hasValidationStatus, M as isMobileOrTablet, I as IcThemeForegroundEnum, w as IC_INHERITED_ARIA, N as IcInformationStatus, O as debounceEvent, i as isSlotUsed, E as isEmptyString } from './helpers-dab8ddfe.js';
|
4
3
|
|
5
4
|
const paginationNextPrevious = `<svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
6
5
|
<path d="M2.08748 0L0.912476 1.175L4.72914 5L0.912476 8.825L2.08748 10L7.08748 5L2.08748 0Z" fill="currentColor"/>
|
@@ -11,7 +10,7 @@ const paginationFirstLast = `<svg width="12" height="10" viewBox="0 0 12 10" fil
|
|
11
10
|
<path d="M11.1709 8.825L7.34589 5L11.1709 1.175L9.99589 0L4.99589 5L9.99589 10L11.1709 8.825ZM0.829224 0H2.49589V10H0.829224V0Z" fill="currentColour"/>
|
12
11
|
</svg>`;
|
13
12
|
|
14
|
-
const icPaginationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{box-sizing:border-box;width:100%;display:flex;justify-content:center}nav{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}ic-button{cursor:pointer}ic-button.next-previous{--icon-width:var(--ic-space-xs);--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs));padding:0 var(--ic-space-xxs) 0 var(--ic-space-xxxs)}ic-button.first-last{--icon-width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}.disabled{color:var(--ic-architectural-200);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hide-current-page{display:none}";
|
13
|
+
const icPaginationCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{box-sizing:border-box;width:100%;display:flex;justify-content:center}nav{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}ic-button{cursor:pointer}ic-button.next-previous{--icon-width:var(--ic-space-xs);--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs));padding:0 var(--ic-space-xxs) 0 var(--ic-space-xxxs)}ic-button.first-last{--icon-width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));--icon-height:calc(var(--ic-space-xs) + var(--ic-space-xxxs))}.disabled{color:var(--ic-architectural-200);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.hide-current-page{display:none}.sr-only{position:absolute;left:-9999px}";
|
15
14
|
|
16
15
|
const Pagination = class {
|
17
16
|
constructor(hostRef) {
|
@@ -72,9 +71,9 @@ const Pagination = class {
|
|
72
71
|
this.midItems = [];
|
73
72
|
this.startEllipsis = false;
|
74
73
|
this.startItems = [];
|
75
|
-
this.
|
74
|
+
this.adjacentPageCount = 1;
|
76
75
|
this.appearance = "default";
|
77
|
-
this.
|
76
|
+
this.boundaryPageCount = 1;
|
78
77
|
this.defaultPage = 1;
|
79
78
|
this.disabled = false;
|
80
79
|
this.hideCurrentPage = false;
|
@@ -84,9 +83,22 @@ const Pagination = class {
|
|
84
83
|
this.type = "simple";
|
85
84
|
this.currentPage = this.defaultPage;
|
86
85
|
}
|
86
|
+
watchAdjacentPageCountHandler() {
|
87
|
+
if (this.adjacentPageCount > 2) {
|
88
|
+
this.adjacentPageCount = 2;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
watchBoundaryPageCountHandler() {
|
92
|
+
if (this.boundaryPageCount > 2) {
|
93
|
+
this.boundaryPageCount = 2;
|
94
|
+
}
|
95
|
+
}
|
87
96
|
watchNumberPagesHandler() {
|
88
97
|
this.watchPageChangeHandler();
|
89
98
|
}
|
99
|
+
watchTypeHandler() {
|
100
|
+
this.watchPageChangeHandler();
|
101
|
+
}
|
90
102
|
watchPageChangeHandler() {
|
91
103
|
if (this.type === "simple") {
|
92
104
|
return;
|
@@ -105,7 +117,8 @@ const Pagination = class {
|
|
105
117
|
let midEnd;
|
106
118
|
let startEllipsis = false;
|
107
119
|
let endEllipsis = false;
|
108
|
-
if (this.pages <=
|
120
|
+
if (this.pages <=
|
121
|
+
this.boundaryPageCount * 2 + this.adjacentPageCount * 2 + 3) {
|
109
122
|
this.startEllipsis = false;
|
110
123
|
this.endEllipsis = false;
|
111
124
|
for (let i = 1; i <= this.pages; i++) {
|
@@ -114,16 +127,17 @@ const Pagination = class {
|
|
114
127
|
this.startItems = startItems;
|
115
128
|
return;
|
116
129
|
}
|
117
|
-
startItemCount = this.
|
130
|
+
startItemCount = this.boundaryPageCount === 0 ? 1 : this.boundaryPageCount;
|
118
131
|
endStart =
|
119
|
-
this.
|
132
|
+
this.boundaryPageCount === 0
|
120
133
|
? this.pages
|
121
|
-
: this.pages - this.
|
122
|
-
if (this.currentPage <=
|
134
|
+
: this.pages - this.boundaryPageCount + 1;
|
135
|
+
if (this.currentPage <=
|
136
|
+
this.adjacentPageCount + this.boundaryPageCount + 2) {
|
123
137
|
startEllipsis = false;
|
124
138
|
endEllipsis = true;
|
125
|
-
let numItems = 2 * this.
|
126
|
-
if (this.
|
139
|
+
let numItems = 2 * this.adjacentPageCount + 1;
|
140
|
+
if (this.boundaryPageCount === 0) {
|
127
141
|
numItems--;
|
128
142
|
}
|
129
143
|
midStart = startItemCount + 1;
|
@@ -132,33 +146,33 @@ const Pagination = class {
|
|
132
146
|
else {
|
133
147
|
startEllipsis = true;
|
134
148
|
if (this.currentPage >
|
135
|
-
this.pages - (this.
|
136
|
-
let numItems = 2 * this.
|
137
|
-
if (this.
|
149
|
+
this.pages - (this.adjacentPageCount + this.boundaryPageCount + 2)) {
|
150
|
+
let numItems = 2 * this.adjacentPageCount + 1;
|
151
|
+
if (this.boundaryPageCount === 0) {
|
138
152
|
numItems--;
|
139
153
|
}
|
140
154
|
midEnd =
|
141
|
-
this.
|
155
|
+
this.boundaryPageCount === 0
|
142
156
|
? this.pages - 1
|
143
|
-
: this.pages - this.
|
157
|
+
: this.pages - this.boundaryPageCount;
|
144
158
|
midStart = midEnd - numItems;
|
145
159
|
}
|
146
160
|
else {
|
147
161
|
endEllipsis = true;
|
148
|
-
midStart = this.currentPage - this.
|
149
|
-
midEnd = this.currentPage + this.
|
162
|
+
midStart = this.currentPage - this.adjacentPageCount;
|
163
|
+
midEnd = this.currentPage + this.adjacentPageCount;
|
150
164
|
}
|
151
165
|
}
|
152
166
|
//create array of start items
|
153
|
-
if (this.
|
154
|
-
(this.
|
167
|
+
if (this.boundaryPageCount > 0 ||
|
168
|
+
(this.boundaryPageCount === 0 && startEllipsis === false)) {
|
155
169
|
for (let i = 1; i <= startItemCount; i++) {
|
156
170
|
startItems.push(i);
|
157
171
|
}
|
158
172
|
}
|
159
173
|
//create array of end items
|
160
|
-
if (this.
|
161
|
-
(this.
|
174
|
+
if (this.boundaryPageCount > 0 ||
|
175
|
+
(this.boundaryPageCount === 0 && endEllipsis === false)) {
|
162
176
|
for (let i = endStart; i <= this.pages; i++) {
|
163
177
|
endItems.push(i);
|
164
178
|
}
|
@@ -175,12 +189,8 @@ const Pagination = class {
|
|
175
189
|
}
|
176
190
|
componentWillLoad() {
|
177
191
|
this.watchPageChangeHandler();
|
178
|
-
|
179
|
-
|
180
|
-
}
|
181
|
-
if (this.adjacentCount > 2) {
|
182
|
-
this.adjacentCount = 2;
|
183
|
-
}
|
192
|
+
this.watchBoundaryPageCountHandler();
|
193
|
+
this.watchAdjacentPageCountHandler();
|
184
194
|
removeDisabledFalse(this.disabled, this.el);
|
185
195
|
}
|
186
196
|
componentDidLoad() {
|
@@ -204,22 +214,25 @@ const Pagination = class {
|
|
204
214
|
}
|
205
215
|
}
|
206
216
|
render() {
|
207
|
-
const { type,
|
217
|
+
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, } = this;
|
208
218
|
return (h(Host, null, type === "simple" && (h("nav", { class: {
|
209
219
|
["disabled"]: disabled,
|
210
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", {
|
220
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { appearance: this.appearance, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { class: {
|
211
221
|
["disabled"]: disabled,
|
212
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton()))));
|
222
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
213
223
|
}
|
214
224
|
get el() { return getElement(this); }
|
215
225
|
static get watchers() { return {
|
226
|
+
"adjacentPageCount": ["watchAdjacentPageCountHandler"],
|
227
|
+
"boundaryPageCount": ["watchBoundaryPageCountHandler"],
|
216
228
|
"pages": ["watchNumberPagesHandler"],
|
229
|
+
"type": ["watchTypeHandler"],
|
217
230
|
"currentPage": ["watchPageChangeHandler"]
|
218
231
|
}; }
|
219
232
|
};
|
220
233
|
Pagination.style = icPaginationCss;
|
221
234
|
|
222
|
-
const icPaginationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none
|
235
|
+
const icPaginationItemCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}a{text-align:center}.item-container{display:flex;justify-content:center;align-items:center;width:calc(var(--ic-space-xl) + var(--ic-space-sm));height:var(--ic-space-xl);margin:var(--ic-space-xxs) var(--ic-space-xxxs);cursor:pointer;text-decoration:none}button{background:none;border:none;outline:inherit;position:relative}.ellipsis{pointer-events:none;--ic-typography-color:var(--ic-color-text-secondary)}.item-container:focus{box-shadow:var(--ic-border-focus);outline:var(--ic-hc-focus-outline);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.page{--ic-typography-color:var(--ic-action-default)}.simple-current{min-width:calc(var(--ic-space-xxl) + var(--ic-space-md));height:var(--ic-space-lg);cursor:default}.item-container.page:hover:not(.selected):not(:focus){border-radius:var(--ic-border-radius);background-color:var(--ic-action-default-bg-hover)}.item-container.page:active:not(.selected):not(:focus){background-color:var(--ic-action-default-bg-active)}.selected{pointer-events:none;outline:none}.selected::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-default)}.page-selected{--ic-typography-color:var(--ic-color-text-primary)}.item-container.page.light:hover:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-hover)}.item-container.page.light:active:not(.selected):not(:focus){background-color:var(--ic-action-light-bg-pressed)}ic-typography.light,ic-typography.page-selected.light{--ic-typography-color:var(--ic-architectural-white)}.selected.light::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-light)}.item-container.page.dark:hover:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-hover)}.item-container.page.dark:active:not(.selected):not(:focus){background-color:var(--ic-action-dark-bg-pressed)}ic-typography.dark{--ic-typography-color:var(--ic-color-text-primary)}.selected.dark::after{content:\"\";height:var(--ic-space-xxs);width:100%;position:absolute;bottom:0;background-color:var(--ic-action-dark)}.disabled{--ic-typography-color:var(--ic-architectural-200);pointer-events:none;cursor:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (forced-colors: active){.selected::after{background-color:Highlight}.selected.light::after{background-color:Highlight}.selected.dark::after{background-color:Highlight}.disabled{--ic-typography-color:GrayText}}";
|
223
236
|
|
224
237
|
const PaginationItem = class {
|
225
238
|
constructor(hostRef) {
|
@@ -228,27 +241,30 @@ const PaginationItem = class {
|
|
228
241
|
this.handleClick = () => {
|
229
242
|
this.paginationItemClick.emit({ page: this.page });
|
230
243
|
};
|
231
|
-
this.
|
232
|
-
this.
|
244
|
+
this.capitalizedLabel = undefined;
|
245
|
+
this.appearance = "default";
|
233
246
|
this.disabled = false;
|
234
|
-
this.label = "Page
|
247
|
+
this.label = "Page";
|
235
248
|
this.page = undefined;
|
236
|
-
this.pages = undefined;
|
237
249
|
this.selected = false;
|
238
250
|
this.type = undefined;
|
239
251
|
}
|
252
|
+
watchLabelHandler() {
|
253
|
+
this.capitalizedLabel = capitalize(this.label);
|
254
|
+
}
|
240
255
|
componentWillLoad() {
|
256
|
+
this.watchLabelHandler();
|
241
257
|
removeDisabledFalse(this.disabled, this.el);
|
242
258
|
}
|
243
259
|
render() {
|
244
|
-
const { page, selected, type, disabled, appearance, label,
|
260
|
+
const { page, selected, type, disabled, appearance, label, capitalizedLabel, } = this;
|
245
261
|
return (h("a", null, type === "ellipsis" ? (h("div", { class: {
|
246
262
|
["item-container"]: true,
|
247
263
|
["ellipsis"]: true,
|
248
264
|
["disabled"]: disabled,
|
249
265
|
} }, h("ic-typography", { class: {
|
250
266
|
[`${appearance}`]: true,
|
251
|
-
}, variant: "label" }, "..."))) : type === "page" ? (h("button", { disabled: disabled, onClick: this.handleClick, tabindex: selected ? "-1" : "0", role: "button", "aria-current": selected && "
|
267
|
+
}, variant: "label" }, "..."))) : type === "page" ? (h("button", { disabled: disabled, onClick: this.handleClick, tabindex: selected ? "-1" : "0", role: "button", "aria-current": selected && "page", "aria-label": selected ? `${label}: ${page}` : `Go to ${label} ${page}`, class: {
|
252
268
|
["selected"]: !disabled && selected,
|
253
269
|
["disabled"]: disabled,
|
254
270
|
["item-container"]: true,
|
@@ -258,9 +274,15 @@ const PaginationItem = class {
|
|
258
274
|
["page-selected"]: selected,
|
259
275
|
["disabled"]: disabled,
|
260
276
|
[`${appearance}`]: true,
|
261
|
-
} }, page))) : (h("ic-typography", { "aria-live": "polite",
|
277
|
+
} }, page))) : (h("ic-typography", { "aria-live": "polite", class: {
|
278
|
+
[`simple-current ${appearance}`]: true,
|
279
|
+
["disabled"]: disabled,
|
280
|
+
}, variant: "label" }, capitalizedLabel, " ", page))));
|
262
281
|
}
|
263
282
|
get el() { return getElement(this); }
|
283
|
+
static get watchers() { return {
|
284
|
+
"label": ["watchLabelHandler"]
|
285
|
+
}; }
|
264
286
|
};
|
265
287
|
PaginationItem.style = icPaginationItemCss;
|
266
288
|
|
@@ -274,9 +296,10 @@ const Clear = `<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www
|
|
274
296
|
</svg>
|
275
297
|
`;
|
276
298
|
|
277
|
-
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative}:host(.full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-
|
299
|
+
const icSelectCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block;position:relative}:host(.ic-select-full-width){width:100%}ic-input-component-container:hover{--border-color:var(--ic-action-dark-hover)}ic-input-component-container:active{--border-color:var(--ic-action-dark-pressed);color:var(--ic-action-dark-pressed)}ic-input-component-container.menu-open{--border-color:var(--ic-architectural-400);color:var(--ic-action-dark)}ic-input-validation .status-icon,ic-input-validation .statustext{visibility:visible}ic-input-validation.menu-open .status-icon,ic-input-validation.menu-open .statustext{visibility:hidden;transition:visibility 0s}ic-input-label{margin-bottom:var(--ic-space-xs) !important}select{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);color:var(--ic-color-text-primary);line-height:1.5rem;letter-spacing:0.005rem;width:100%;height:100%;padding-left:0.375rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-repeat:no-repeat;background-position:right 0.375rem center;background-image:url(\"data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select option,.select-option-selected{color:var(--ic-color-text-primary)}select:disabled{color:var(--ic-architectural-200);background-image:url(\"data:image/svg+xml;utf8,<svg fill='grey' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>\")}select:focus{border:0;outline:0}select:not([disabled]){cursor:pointer}.select-container{width:100%;display:flex;align-items:center;position:relative}.select-input{width:100%;height:100%;padding:0 0.375rem;display:flex;cursor:pointer;align-items:center;justify-content:space-between;background:none;border:none}.select-input:focus{outline:var(--ic-hc-focus-outline)}:host(:not(.ic-select-disabled)) ic-input-component-container:hover .select-input{background-color:var(--ic-architectural-white)}.select-input[disabled]{pointer-events:none}:host(.ic-select-searchable) .select-input{cursor:auto}.searchable-select-container{align-items:center;display:flex;width:100%;position:relative}.expand-icon{height:var(--ic-space-lg);padding-left:var(--ic-space-xs);color:var(--ic-action-dark)}.expand-icon>svg{display:inline-block;width:var(--ic-space-lg);height:var(--ic-space-lg)}:host(.ic-select-disabled) .expand-icon,:host(.ic-select-disabled) .expand-icon>svg>path{color:var(--ic-architectural-200)}:host(.ic-select-searchable) .expand-icon{padding-left:var(--ic-space-xxs);height:2.25rem}:host(.ic-select-searchable) .expand-icon>svg{height:2.25rem;padding:0 0.375rem}:host(.ic-select-searchable:not(.ic-select-disabled)) .expand-icon>svg{cursor:pointer}.expand-icon-open{color:var(--ic-action-dark)}.expand-icon-filled{color:var(--ic-action-dark)}.expand-icon-open,:host(.ic-select-searchable) .expand-icon-open{transform:rotateX(180deg)}:host(.ic-select-disabled) .value-text,.placeholder{color:var(--ic-color-text-tertiary)}.select-input-end{display:flex;align-items:center}.clear-button-container{display:flex;gap:var(--ic-space-xxs);padding-left:2.375rem;align-items:center}:host(.ic-select-small) .clear-button-container{padding-left:1.875rem}.divider{width:var(--ic-border-width);background-color:var(--ic-architectural-400);margin:var(--ic-space-xxs) 0;border-radius:var(--ic-space-1px);height:var(--ic-space-lg)}:host(.ic-select-small) .divider{height:var(--ic-space-md)}.clear-button{position:absolute;right:2.75rem;border-radius:var(--ic-border-radius);transition:box-shadow var(--ic-easing-transition),\n border-radius var(--ic-easing-transition)}.clear-button:focus{background-color:var(--ic-color-focus-inner);box-shadow:inset 0 0 0 0.125rem var(--ic-color-focus-outer);border-radius:0.25rem}.clear-button:focus *{fill:white}.searchable-select-results-status{border:0;clip:rect(0, 0, 0, 0, 0);height:var(--ic-space-1px);overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--ic-space-1px)}::slotted([slot=\"icon\"]){fill:var(--ic-color-text-tertiary)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-color-text-primary)}.readonly ::slotted([slot=\"icon\"]){padding:0.375rem;margin-bottom:0.75rem}@media (forced-colors: active){.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
278
300
|
|
279
301
|
let inputIds$1 = 0;
|
302
|
+
const MUTABLE_ATTRIBUTES$1 = [...IC_INHERITED_ARIA, "tabindex", "title"];
|
280
303
|
const Select = class {
|
281
304
|
constructor(hostRef) {
|
282
305
|
registerInstance(this, hostRef);
|
@@ -296,6 +319,24 @@ const Select = class {
|
|
296
319
|
this.menuId = `${this.inputId}-menu`;
|
297
320
|
this.searchableMenuItemSelected = false;
|
298
321
|
this.ungroupedOptions = [];
|
322
|
+
this.hostMutationObserver = null;
|
323
|
+
// triggered when attributes of host element change
|
324
|
+
this.hostMutationCallback = (mutationList) => {
|
325
|
+
let forceComponentUpdate = false;
|
326
|
+
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
327
|
+
if (MUTABLE_ATTRIBUTES$1.includes(attributeName)) {
|
328
|
+
this.inheritedAttributes[attributeName] =
|
329
|
+
this.el.getAttribute(attributeName);
|
330
|
+
forceComponentUpdate = true;
|
331
|
+
}
|
332
|
+
else if (type === "childList") {
|
333
|
+
forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
|
334
|
+
}
|
335
|
+
});
|
336
|
+
if (forceComponentUpdate) {
|
337
|
+
forceUpdate(this);
|
338
|
+
}
|
339
|
+
};
|
299
340
|
this.handleRetry = (ev) => {
|
300
341
|
var _a;
|
301
342
|
if (ev.detail.keyPressed)
|
@@ -362,7 +403,8 @@ const Select = class {
|
|
362
403
|
* Loop through options array and for all options with no value, infer it from the label
|
363
404
|
*/
|
364
405
|
this.setOptionsValuesFromLabels = () => {
|
365
|
-
|
406
|
+
var _a;
|
407
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.options.map) {
|
366
408
|
this.options.map((option) => {
|
367
409
|
if (!option.value) {
|
368
410
|
option.value = option.label;
|
@@ -453,7 +495,7 @@ const Select = class {
|
|
453
495
|
event.preventDefault();
|
454
496
|
}
|
455
497
|
};
|
456
|
-
this.isExternalFiltering = () => this.searchable && this.
|
498
|
+
this.isExternalFiltering = () => this.searchable && this.disableAutoFiltering;
|
457
499
|
this.handleClick = (event) => {
|
458
500
|
var _a;
|
459
501
|
if (!this.open) {
|
@@ -659,7 +701,7 @@ const Select = class {
|
|
659
701
|
this.hiddenInputValue = this.searchableSelectInputValue;
|
660
702
|
this.inputValueToFilter = this.searchableSelectInputValue;
|
661
703
|
this.setMenuChange(true);
|
662
|
-
if (!this.
|
704
|
+
if (!this.disableAutoFiltering) {
|
663
705
|
this.handleFilter();
|
664
706
|
this.debounceAriaLiveUpdate();
|
665
707
|
}
|
@@ -728,16 +770,10 @@ const Select = class {
|
|
728
770
|
this.open = false;
|
729
771
|
this.pressedCharacters = "";
|
730
772
|
this.searchableSelectInputValue = null;
|
731
|
-
this.charactersUntilSuggestions = 0;
|
732
773
|
this.disabled = false;
|
733
|
-
this.
|
774
|
+
this.disableAutoFiltering = false;
|
734
775
|
this.emptyOptionListText = "No results found";
|
735
776
|
this.form = undefined;
|
736
|
-
this.formaction = undefined;
|
737
|
-
this.formenctype = undefined;
|
738
|
-
this.formmethod = undefined;
|
739
|
-
this.formnovalidate = undefined;
|
740
|
-
this.formtarget = undefined;
|
741
777
|
this.fullWidth = false;
|
742
778
|
this.helperText = "";
|
743
779
|
this.hideLabel = false;
|
@@ -754,8 +790,7 @@ const Select = class {
|
|
754
790
|
this.searchMatchPosition = "anywhere";
|
755
791
|
this.selectOnEnter = false;
|
756
792
|
this.showClearButton = false;
|
757
|
-
this.size = "
|
758
|
-
this.small = false;
|
793
|
+
this.size = "medium";
|
759
794
|
this.timeout = undefined;
|
760
795
|
this.validationStatus = "";
|
761
796
|
this.validationText = "";
|
@@ -774,11 +809,12 @@ const Select = class {
|
|
774
809
|
newValue && this.triggerLoading();
|
775
810
|
}
|
776
811
|
watchOptionsHandler() {
|
812
|
+
var _a;
|
777
813
|
if (!this.hasTimedOut) {
|
778
814
|
this.loading = false;
|
779
815
|
clearTimeout(this.timeoutTimer);
|
780
816
|
if (this.isExternalFiltering()) {
|
781
|
-
if (this.options.length > 0) {
|
817
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
782
818
|
this.setOptionsValuesFromLabels();
|
783
819
|
this.noOptions = null;
|
784
820
|
this.uniqueOptions = this.deduplicateOptions(this.options);
|
@@ -803,8 +839,9 @@ const Select = class {
|
|
803
839
|
}
|
804
840
|
}
|
805
841
|
else {
|
806
|
-
if (!this.searchable)
|
842
|
+
if (!this.searchable) {
|
807
843
|
this.options = this.noOptions;
|
844
|
+
}
|
808
845
|
}
|
809
846
|
}
|
810
847
|
debounceChangedHandler(newValue) {
|
@@ -823,18 +860,17 @@ const Select = class {
|
|
823
860
|
this.open ? this.icOpen.emit() : this.icClose.emit();
|
824
861
|
}
|
825
862
|
disconnectedCallback() {
|
863
|
+
var _a;
|
826
864
|
removeFormResetListener(this.el, this.handleFormReset);
|
865
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
827
866
|
}
|
828
867
|
componentWillLoad() {
|
829
|
-
|
830
|
-
|
831
|
-
"tabindex",
|
832
|
-
"title",
|
833
|
-
]);
|
868
|
+
var _a;
|
869
|
+
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES$1);
|
834
870
|
removeDisabledFalse(this.disabled, this.el);
|
835
871
|
this.setOptionsValuesFromLabels();
|
836
872
|
addFormResetListener(this.el, this.handleFormReset);
|
837
|
-
if (!this.options.length) {
|
873
|
+
if (!((_a = this.options) === null || _a === void 0 ? void 0 : _a.length)) {
|
838
874
|
this.initialOptionsEmpty = true;
|
839
875
|
this.noOptions = [{ label: this.emptyOptionListText, value: "" }];
|
840
876
|
this.uniqueOptions = this.noOptions;
|
@@ -851,6 +887,11 @@ const Select = class {
|
|
851
887
|
this.triggerLoading();
|
852
888
|
}
|
853
889
|
this.hiddenInputValue = this.searchable && this.currValue;
|
890
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
891
|
+
this.hostMutationObserver.observe(this.el, {
|
892
|
+
attributes: true,
|
893
|
+
childList: true,
|
894
|
+
});
|
854
895
|
}
|
855
896
|
componentDidRender() {
|
856
897
|
if (this.nativeSelectElement && !this.disabled) {
|
@@ -890,24 +931,30 @@ const Select = class {
|
|
890
931
|
}
|
891
932
|
}
|
892
933
|
render() {
|
893
|
-
const {
|
934
|
+
const { size, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
894
935
|
renderHiddenInput(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
895
|
-
const invalid = validationStatus === IcInformationStatus.Error
|
936
|
+
const invalid = `${validationStatus === IcInformationStatus.Error}`;
|
896
937
|
const describedBy = getInputDescribedByText(this.inputId, helperText !== "", hasValidationStatus(this.validationStatus, this.disabled)).trim();
|
938
|
+
let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
|
939
|
+
if (showLeftIcon && (disabled || (readonly && !this.value))) {
|
940
|
+
showLeftIcon = false;
|
941
|
+
}
|
897
942
|
return (h(Host, { class: {
|
898
|
-
disabled: disabled,
|
899
|
-
searchable: searchable,
|
900
|
-
|
901
|
-
[
|
902
|
-
|
903
|
-
|
943
|
+
["ic-select-disabled"]: disabled,
|
944
|
+
["ic-select-searchable"]: searchable,
|
945
|
+
[`ic-select-${size}`]: size !== "medium",
|
946
|
+
["ic-select-full-width"]: fullWidth,
|
947
|
+
}, onBlur: this.onBlur }, h("ic-input-container", { readonly: readonly }, !hideLabel && (h("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), h("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (h("span", { slot: "left-icon", class: {
|
948
|
+
["readonly"]: readonly,
|
949
|
+
["has-value"]: !!this.value,
|
950
|
+
} }, h("slot", { name: "icon" }))), readonly ? (h("ic-typography", null, h("p", null, this.getLabelFromValue(currValue)))) : isMobileOrTablet() ? (h("select", Object.assign({ ref: (el) => (this.nativeSelectElement = el), disabled: disabled, onChange: this.handleNativeSelectChange, required: required, id: this.inputId, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.handleNativeSelectKeyDown, form: this.form }, this.inheritedAttributes), h("option", { value: "", selected: true, disabled: !showClearButton }, placeholder), options.map((option) => {
|
904
951
|
if (option.children) {
|
905
952
|
return (h("optgroup", { label: option.label }, option.children.map((option) => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label)))));
|
906
953
|
}
|
907
954
|
else {
|
908
955
|
return (h("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
909
956
|
}
|
910
|
-
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open
|
957
|
+
}))) : searchable ? (h("div", { class: "searchable-select-container" }, h("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form }), this.searchableSelectInputValue &&
|
911
958
|
(showClearButton || searchable) && (h("div", { class: "clear-button-container" }, h("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
912
959
|
? "Clear input"
|
913
960
|
: "Clear selection", class: "clear-button", innerHTML: Clear, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
@@ -919,7 +966,7 @@ const Select = class {
|
|
919
966
|
}, innerHTML: Expand, "aria-hidden": "true" }), h("div", { "aria-live": "polite", role: "status", class: "searchable-select-results-status" }))) : (h("div", { class: "select-container" }, h("button", { class: "select-input", ref: (el) => (this.customSelectElement = el), id: this.inputId, "aria-label": `${label}, ${this.getLabelFromValue(currValue) || placeholder}${required ? ", required" : ""}`, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-haspopup": "listbox", "aria-expanded": this.open ? "true" : "false", "aria-owns": menuId, "aria-controls": menuId, disabled: disabled, onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.handleClick, onMouseDown: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("ic-typography", { variant: "body", class: {
|
920
967
|
"value-text": true,
|
921
968
|
placeholder: this.getLabelFromValue(currValue) === undefined,
|
922
|
-
} },
|
969
|
+
} }, this.getLabelFromValue(currValue) || placeholder), h("div", { class: "select-input-end" }, currValue && showClearButton && (h("div", { class: "divider" })), h("span", { class: {
|
923
970
|
"expand-icon": true,
|
924
971
|
"expand-icon-open": this.open,
|
925
972
|
"expand-icon-filled": !(currValue == null || currValue === ""),
|
@@ -933,7 +980,7 @@ const Select = class {
|
|
933
980
|
this.noOptions[0].label === this.emptyOptionListText),
|
934
981
|
}, ref: (el) => (this.menu = el), inputEl: searchable
|
935
982
|
? this.searchableSelectElement
|
936
|
-
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl,
|
983
|
+
: this.customSelectElement, inputLabel: label, anchorEl: this.anchorEl, size: size, menuId: menuId, open: this.open, options: searchable ? this.filteredOptions : this.uniqueOptions, value: currValue, fullWidth: fullWidth, selectOnEnter: this.selectOnEnter, onMenuStateChange: this.handleMenuChange, onMenuOptionSelect: this.handleCustomSelectChange, onMenuKeyPress: this.handleMenuKeyPress, onMenuValueChange: this.handleMenuValueChange, onUngroupedOptionsSet: this.setUngroupedOptions, onRetryButtonClicked: this.handleRetry, parentEl: this.el, onTimeoutBlur: this.onTimeoutBlur, activationType: this.searchable || this.selectOnEnter ? "manual" : "automatic" })), hasValidationStatus(this.validationStatus, this.disabled) && (h("ic-input-validation", { class: { "menu-open": this.open }, ariaLiveMode: "polite", status: validationStatus, message: validationText, for: this.inputId })))));
|
937
984
|
}
|
938
985
|
static get delegatesFocus() { return true; }
|
939
986
|
get el() { return getElement(this); }
|
@@ -947,9 +994,10 @@ const Select = class {
|
|
947
994
|
};
|
948
995
|
Select.style = icSelectCss;
|
949
996
|
|
950
|
-
const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host(.
|
997
|
+
const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}:host(.ic-text-field-full-width){width:100%}::-moz-placeholder{color:var(--ic-color-text-tertiary);opacity:1}::placeholder{color:var(--ic-color-text-tertiary);opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs)}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:0.375rem}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(--ic-architectural-200)}input.readonly,textarea.readonly{color:var(--ic-color-text-primary)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.char-count-text{--ic-typography-color:var(--ic-color-text-secondary);padding-right:var(--ic-space-xxxs)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-color-text-tertiary)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-color-text-primary)}.char-count{margin-right:calc(-1 * var(--ic-space-xxxs))}.remaining-char-count-desc{position:absolute;left:-9999px}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media (forced-colors: active){input.readonly,textarea.readonly{color:canvastext}.has-value ::slotted([slot=\"icon\"]){fill:currentcolor}}";
|
951
998
|
|
952
999
|
let inputIds = 0;
|
1000
|
+
const MUTABLE_ATTRIBUTES = [...IC_INHERITED_ARIA, "title"];
|
953
1001
|
const TextField = class {
|
954
1002
|
constructor(hostRef) {
|
955
1003
|
registerInstance(this, hostRef);
|
@@ -960,31 +1008,19 @@ const TextField = class {
|
|
960
1008
|
this.icInput = createEvent(this, "icInput", 7);
|
961
1009
|
this.icKeydown = createEvent(this, "icKeydown", 7);
|
962
1010
|
this.inheritedAttributes = {};
|
963
|
-
this.
|
964
|
-
this.
|
965
|
-
this.numChars = value.length;
|
1011
|
+
this.hostMutationObserver = null;
|
1012
|
+
this.getMaxValueExceeded = (value) => {
|
966
1013
|
if (this.type === "number") {
|
967
|
-
this.minValueUnattained =
|
968
|
-
|
969
|
-
this.maxValueExceeded = Number(value) > Number(this.max) ? true : false;
|
970
|
-
}
|
971
|
-
if (this.maxLength > 0) {
|
972
|
-
this.maxLengthExceeded = value.length > this.maxLength ? true : false;
|
1014
|
+
this.minValueUnattained = value && Number(value) < Number(this.min);
|
1015
|
+
this.maxValueExceeded = Number(value) > Number(this.max);
|
973
1016
|
}
|
974
1017
|
};
|
975
1018
|
this.getMaxCharactersReached = (value) => {
|
976
1019
|
this.numChars = value.length;
|
977
|
-
|
978
|
-
this.
|
979
|
-
|
980
|
-
|
981
|
-
}
|
982
|
-
}
|
983
|
-
};
|
984
|
-
this.getMinCharactersUnattained = (value) => {
|
985
|
-
this.numChars = value.length;
|
986
|
-
if (this.minCharacters > 0) {
|
987
|
-
this.minCharactersUnattained = this.numChars < this.minCharacters;
|
1020
|
+
this.maxCharactersReached =
|
1021
|
+
this.maxCharacters > 0 ? this.numChars >= this.maxCharacters : false;
|
1022
|
+
if (this.maxCharactersWarning && !this.maxCharactersReached) {
|
1023
|
+
this.maxCharactersWarning = false;
|
988
1024
|
}
|
989
1025
|
};
|
990
1026
|
this.onInput = (ev) => {
|
@@ -993,35 +1029,39 @@ const TextField = class {
|
|
993
1029
|
};
|
994
1030
|
this.onBlur = (ev) => {
|
995
1031
|
const value = ev.target.value;
|
996
|
-
this.
|
1032
|
+
this.numChars = value.length;
|
1033
|
+
this.minCharactersUnattained =
|
1034
|
+
this.minCharacters > 0 ? this.numChars < this.minCharacters : false;
|
997
1035
|
this.icBlur.emit({ value: value });
|
998
1036
|
};
|
999
1037
|
this.onFocus = (ev) => {
|
1000
|
-
|
1001
|
-
this.icFocus.emit({ value: value });
|
1002
|
-
};
|
1003
|
-
this.isTextArea = () => {
|
1004
|
-
return this.rows > 1;
|
1005
|
-
};
|
1006
|
-
this.getInlineValidationText = () => {
|
1007
|
-
this.getValidationText.emit({ value: this.validationText });
|
1008
|
-
};
|
1009
|
-
this.hasStatus = (status) => {
|
1010
|
-
return status !== "" && !this.disabled;
|
1011
|
-
};
|
1012
|
-
this.showStatusText = (status) => {
|
1013
|
-
return (this.hasStatus(status) &&
|
1014
|
-
!(status == IcInformationStatus.Success && this.validationInline) &&
|
1015
|
-
!this.validationInlineInternal);
|
1038
|
+
this.icFocus.emit({ value: ev.target.value });
|
1016
1039
|
};
|
1040
|
+
this.hasStatus = (status) => status !== "" && !this.disabled;
|
1017
1041
|
this.handleFormReset = () => {
|
1018
1042
|
this.value = this.initialValue;
|
1019
1043
|
};
|
1044
|
+
// triggered when attributes of host element change
|
1045
|
+
this.hostMutationCallback = (mutationList) => {
|
1046
|
+
let forceComponentUpdate = false;
|
1047
|
+
mutationList.forEach(({ attributeName, type, addedNodes, removedNodes }) => {
|
1048
|
+
if (MUTABLE_ATTRIBUTES.includes(attributeName)) {
|
1049
|
+
this.inheritedAttributes[attributeName] =
|
1050
|
+
this.el.getAttribute(attributeName);
|
1051
|
+
forceComponentUpdate = true;
|
1052
|
+
}
|
1053
|
+
else if (type === "childList") {
|
1054
|
+
forceComponentUpdate = checkSlotInChildMutations(addedNodes, removedNodes, "icon");
|
1055
|
+
}
|
1056
|
+
});
|
1057
|
+
if (forceComponentUpdate) {
|
1058
|
+
forceUpdate(this);
|
1059
|
+
}
|
1060
|
+
};
|
1020
1061
|
this.numChars = 0;
|
1021
1062
|
this.maxCharactersReached = false;
|
1022
|
-
this.
|
1063
|
+
this.maxCharactersWarning = false;
|
1023
1064
|
this.minCharactersUnattained = false;
|
1024
|
-
this.maxLengthExceeded = false;
|
1025
1065
|
this.maxValueExceeded = false;
|
1026
1066
|
this.minValueUnattained = false;
|
1027
1067
|
this.ariaActiveDescendant = undefined;
|
@@ -1035,6 +1075,7 @@ const TextField = class {
|
|
1035
1075
|
this.disabled = false;
|
1036
1076
|
this.fullWidth = false;
|
1037
1077
|
this.helperText = "";
|
1078
|
+
this.hideCharCount = false;
|
1038
1079
|
this.hideLabel = false;
|
1039
1080
|
this.hiddenInput = true;
|
1040
1081
|
this.inputId = `ic-text-field-input-${inputIds++}`;
|
@@ -1042,7 +1083,6 @@ const TextField = class {
|
|
1042
1083
|
this.label = undefined;
|
1043
1084
|
this.max = undefined;
|
1044
1085
|
this.maxCharacters = 0;
|
1045
|
-
this.maxLength = 0;
|
1046
1086
|
this.min = undefined;
|
1047
1087
|
this.minCharacters = 0;
|
1048
1088
|
this.name = this.inputId;
|
@@ -1052,8 +1092,7 @@ const TextField = class {
|
|
1052
1092
|
this.resize = false;
|
1053
1093
|
this.role = undefined;
|
1054
1094
|
this.rows = 1;
|
1055
|
-
this.size = "
|
1056
|
-
this.small = false;
|
1095
|
+
this.size = "medium";
|
1057
1096
|
this.spellcheck = false;
|
1058
1097
|
this.truncateValue = undefined;
|
1059
1098
|
this.type = "text";
|
@@ -1069,31 +1108,40 @@ const TextField = class {
|
|
1069
1108
|
this.icChange = debounceEvent(this.icChange, this.debounce);
|
1070
1109
|
}
|
1071
1110
|
watchValueHandler(newValue) {
|
1072
|
-
|
1073
|
-
|
1111
|
+
let value;
|
1112
|
+
if (this.maxCharacters > 0) {
|
1113
|
+
value = newValue.substring(0, this.maxCharacters);
|
1114
|
+
this.value = value;
|
1115
|
+
}
|
1116
|
+
else {
|
1117
|
+
value = newValue;
|
1118
|
+
}
|
1119
|
+
if (this.inputEl && this.inputEl.value !== value) {
|
1120
|
+
this.inputEl.value = value;
|
1074
1121
|
}
|
1075
|
-
this.
|
1076
|
-
this.getMaxCharactersReached(
|
1077
|
-
this.icChange.emit({ value
|
1122
|
+
this.getMaxValueExceeded(value);
|
1123
|
+
this.getMaxCharactersReached(value);
|
1124
|
+
this.icChange.emit({ value });
|
1078
1125
|
}
|
1079
1126
|
connectedCallback() {
|
1080
1127
|
this.debounceChanged();
|
1081
1128
|
}
|
1082
1129
|
disconnectedCallback() {
|
1130
|
+
var _a;
|
1083
1131
|
removeFormResetListener(this.el, this.handleFormReset);
|
1132
|
+
(_a = this.hostMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
1084
1133
|
}
|
1085
1134
|
componentWillLoad() {
|
1086
1135
|
if (this.value !== this.initialValue) {
|
1087
1136
|
this.watchValueHandler(this.value);
|
1088
1137
|
}
|
1089
|
-
|
1138
|
+
else if (this.maxCharacters > 0) {
|
1139
|
+
this.value = this.value.substring(0, this.maxCharacters);
|
1140
|
+
}
|
1141
|
+
this.getMaxValueExceeded(this.value);
|
1090
1142
|
this.getMaxCharactersReached(this.value);
|
1091
|
-
this.inheritedAttributes = inheritAttributes(this.el,
|
1092
|
-
...IC_INHERITED_ARIA,
|
1093
|
-
"title",
|
1094
|
-
]);
|
1143
|
+
this.inheritedAttributes = inheritAttributes(this.el, MUTABLE_ATTRIBUTES);
|
1095
1144
|
if (this.readonly) {
|
1096
|
-
this.maxLengthExceeded = false;
|
1097
1145
|
this.maxValueExceeded = false;
|
1098
1146
|
this.minValueUnattained = false;
|
1099
1147
|
}
|
@@ -1103,87 +1151,82 @@ const TextField = class {
|
|
1103
1151
|
componentDidLoad() {
|
1104
1152
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Text Field");
|
1105
1153
|
if (this.validationInlineInternal) {
|
1106
|
-
this.
|
1154
|
+
this.getValidationText.emit({ value: this.validationText });
|
1107
1155
|
}
|
1156
|
+
this.hostMutationObserver = new MutationObserver(this.hostMutationCallback);
|
1157
|
+
this.hostMutationObserver.observe(this.el, {
|
1158
|
+
attributes: true,
|
1159
|
+
childList: true,
|
1160
|
+
});
|
1108
1161
|
}
|
1109
1162
|
handleKeyDown(ev) {
|
1110
1163
|
this.icKeydown.emit({ event: ev });
|
1111
|
-
this.
|
1164
|
+
this.maxCharactersWarning = this.maxCharactersReached;
|
1112
1165
|
}
|
1113
1166
|
/**
|
1114
1167
|
* Sets focus on the native `input`.
|
1115
1168
|
*/
|
1116
1169
|
async setFocus() {
|
1117
|
-
|
1118
|
-
|
1119
|
-
}
|
1120
|
-
}
|
1121
|
-
hasLeftIconSlot() {
|
1122
|
-
const iconEl = this.el.querySelector(`[slot="icon"]`);
|
1123
|
-
return iconEl !== null;
|
1170
|
+
var _a;
|
1171
|
+
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.focus();
|
1124
1172
|
}
|
1125
1173
|
render() {
|
1126
|
-
const { inputId, name, label, required, size,
|
1127
|
-
const disabledMode = readonly
|
1128
|
-
const
|
1129
|
-
const currentStatus = maxLengthExceeded ||
|
1130
|
-
maxValueExceeded ||
|
1174
|
+
const { inputId, name, label, required, size, placeholder, helperText, hideCharCount, rows, resize, disabled, value, min, max, numChars, readonly, maxCharacters, maxCharactersWarning, maxCharactersReached, minCharacters, minCharactersUnattained, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, } = this;
|
1175
|
+
const disabledMode = readonly || disabled;
|
1176
|
+
const currentStatus = maxValueExceeded ||
|
1131
1177
|
minValueUnattained ||
|
1132
1178
|
minCharactersUnattained ||
|
1133
|
-
|
1134
|
-
?
|
1179
|
+
maxCharactersWarning
|
1180
|
+
? maxCharactersWarning
|
1135
1181
|
? IcInformationStatus.Warning
|
1136
1182
|
: IcInformationStatus.Error
|
1137
1183
|
: validationStatus;
|
1138
|
-
const currentValidationText =
|
1139
|
-
?
|
1140
|
-
:
|
1141
|
-
? `Maximum
|
1142
|
-
:
|
1143
|
-
? `
|
1144
|
-
:
|
1145
|
-
? `Minimum
|
1146
|
-
:
|
1147
|
-
|
1148
|
-
|
1149
|
-
const maxNumChars = readonly ? 0 : maxLength;
|
1150
|
-
const messageAriaLive = maxLengthExceeded ||
|
1151
|
-
maxCharactersError ||
|
1184
|
+
const currentValidationText = maxCharactersWarning
|
1185
|
+
? `Maximum input is ${maxCharacters} characters`
|
1186
|
+
: maxValueExceeded
|
1187
|
+
? `Maximum value of ${max} exceeded`
|
1188
|
+
: minValueUnattained
|
1189
|
+
? `Minimum value of ${min} not met`
|
1190
|
+
: minCharactersUnattained
|
1191
|
+
? `Minimum input is ${minCharacters} characters`
|
1192
|
+
: validationText;
|
1193
|
+
const maxNumChars = readonly ? 0 : maxCharacters;
|
1194
|
+
const messageAriaLive = maxCharactersWarning ||
|
1152
1195
|
maxValueExceeded ||
|
1153
1196
|
minValueUnattained ||
|
1154
|
-
|
1197
|
+
currentStatus === IcInformationStatus.Error
|
1155
1198
|
? "assertive"
|
1156
1199
|
: "polite";
|
1157
|
-
const showStatusText = this.
|
1158
|
-
|
1159
|
-
|
1160
|
-
const
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
}
|
1166
|
-
const invalid = currentStatus === IcInformationStatus.Error ? "true" : "false";
|
1200
|
+
const showStatusText = this.hasStatus(currentStatus) &&
|
1201
|
+
!(currentStatus == IcInformationStatus.Success && validationInline) &&
|
1202
|
+
!validationInlineInternal;
|
1203
|
+
const multiline = rows > 1;
|
1204
|
+
const charsRemaining = maxNumChars - numChars;
|
1205
|
+
const hiddenRemainingCharCountDesc = `${charsRemaining} character${charsRemaining === 1 ? "" : "s"} remaining.`;
|
1206
|
+
const hiddenCharCountDescId = maxCharacters > 0 ? `${inputId}-char-count-desc` : "";
|
1207
|
+
const describedBy = `${hiddenCharCountDescId} ${getInputDescribedByText(inputId, helperText !== "", showStatusText)}`.trim();
|
1167
1208
|
const disabledText = disabledMode && !readonly;
|
1209
|
+
const showLeftIcon = !!this.el.querySelector(`[slot="icon"]`) && !disabledText;
|
1210
|
+
const invalid = `${currentStatus === IcInformationStatus.Error}`;
|
1168
1211
|
if (hiddenInput) {
|
1169
1212
|
renderHiddenInput(true, this.el, name, value, disabledMode);
|
1170
1213
|
}
|
1171
|
-
return (h(Host, { class: { ["
|
1214
|
+
return (h(Host, { class: { ["ic-text-field-full-width"]: fullWidth } }, h("ic-input-container", { readonly: readonly, disabled: disabledMode }, !this.hideLabel && (h("ic-input-label", { for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly })), h("ic-input-component-container", { size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { class: {
|
1172
1215
|
["readonly"]: readonly,
|
1173
1216
|
["has-value"]: value.length > 0,
|
1174
|
-
}, slot: "left-icon" }, h("slot", { name: "icon" }))), !multiline
|
1175
|
-
["no-left-pad"]: !
|
1217
|
+
}, slot: "left-icon" }, h("slot", { name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: this.type, min: min, max: max, value: value, class: {
|
1218
|
+
["no-left-pad"]: !showLeftIcon && readonly,
|
1176
1219
|
["readonly"]: readonly,
|
1177
1220
|
["truncate-value"]: truncateValue,
|
1178
|
-
}, placeholder:
|
1221
|
+
}, placeholder: placeholder ? placeholder : "", required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": this.ariaActiveDescendant, "aria-expanded": this.ariaExpanded, "aria-owns": this.ariaOwns, autocomplete: this.autocomplete, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode, role: this.role, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))) : (h("textarea", Object.assign({ id: inputId, class: {
|
1179
1222
|
["no-resize"]: resize === false || readonly,
|
1180
|
-
["no-left-pad"]: !
|
1223
|
+
["no-left-pad"]: !showLeftIcon && readonly,
|
1181
1224
|
["readonly"]: readonly,
|
1182
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder:
|
1225
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder ? placeholder : "", readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : null, minlength: minCharactersUnattained ? minCharacters : null }, this.inheritedAttributes))), isSlotUsed(this.el, "clear-button") && (h("slot", { name: "clear-button" })), isSlotUsed(this.el, "search-submit-button") && (h("slot", { name: "search-submit-button" }))), isSlotUsed(this.el, "menu") && h("slot", { name: "menu" }), (!isEmptyString(validationStatus) ||
|
1183
1226
|
!isEmptyString(validationText) ||
|
1184
1227
|
maxNumChars > 0 ||
|
1185
1228
|
maxValueExceeded ||
|
1186
|
-
|
1229
|
+
maxCharactersWarning ||
|
1187
1230
|
minCharactersUnattained ||
|
1188
1231
|
minValueUnattained) &&
|
1189
1232
|
!validationInlineInternal && (h("ic-input-validation", { status: this.hasStatus(currentStatus) === false ||
|
@@ -1191,11 +1234,9 @@ const TextField = class {
|
|
1191
1234
|
validationInline) ||
|
1192
1235
|
validationInlineInternal
|
1193
1236
|
? ""
|
1194
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, h("ic-typography", { variant: "caption", class: {
|
1195
|
-
["
|
1196
|
-
|
1197
|
-
["disabled"]: disabledText,
|
1198
|
-
} }, h("span", { "aria-live": "polite", id: `${inputId}-charcount`, class: "charcount" }, numChars, "/", maxNumChars), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))))));
|
1237
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { variant: "caption", class: {
|
1238
|
+
["char-count-text"]: true,
|
1239
|
+
} }, h("span", { class: "char-count" }, numChars, "/", maxNumChars))), h("span", { class: "remaining-char-count-desc", "aria-live": "polite" }, hiddenRemainingCharCountDesc), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters."))))))));
|
1199
1240
|
}
|
1200
1241
|
get el() { return getElement(this); }
|
1201
1242
|
static get watchers() { return {
|