@re-code/aurora 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/aurora/aurora.esm.js +1 -1
- package/dist/aurora/{p-8ed72e5b.entry.js → p-01ff4d34.entry.js} +1 -1
- package/dist/aurora/{p-c3668073.entry.js → p-0554ffea.entry.js} +1 -1
- package/dist/aurora/{p-278d3434.entry.js → p-0a0a2bfe.entry.js} +1 -1
- package/dist/aurora/{p-e1c97234.entry.js → p-0a7e9e8e.entry.js} +1 -1
- package/dist/aurora/{p-c330982c.entry.js → p-1670a9bd.entry.js} +1 -1
- package/dist/aurora/{p-efd60427.entry.js → p-17c6de2c.entry.js} +1 -1
- package/dist/aurora/{p-a87dc1d3.entry.js → p-24ff90e0.entry.js} +1 -1
- package/dist/aurora/p-27da7b8a.entry.js +1 -0
- package/dist/aurora/p-380d8ebe.entry.js +1 -0
- package/dist/aurora/{p-a1e257c7.entry.js → p-3cfccef1.entry.js} +1 -1
- package/dist/aurora/{p-e72126a2.entry.js → p-4fd71d14.entry.js} +1 -1
- package/dist/aurora/{p-89b66c7a.entry.js → p-5606ed9c.entry.js} +1 -1
- package/dist/aurora/p-56fc4315.entry.js +1 -0
- package/dist/aurora/{p-685b9e53.entry.js → p-5a027df1.entry.js} +1 -1
- package/dist/aurora/{p-487df7d8.entry.js → p-5dd73182.entry.js} +1 -1
- package/dist/aurora/{p-17e65032.entry.js → p-62d79933.entry.js} +1 -1
- package/dist/aurora/p-6a1363da.entry.js +1 -0
- package/dist/aurora/{p-fd4e9cdd.entry.js → p-6e9c8e27.entry.js} +1 -1
- package/dist/aurora/{p-31a86367.entry.js → p-742abb2c.entry.js} +1 -1
- package/dist/aurora/{p-40bb52c3.entry.js → p-7a9bc20f.entry.js} +1 -1
- package/dist/aurora/{p-35edd036.entry.js → p-7cc6bb71.entry.js} +1 -1
- package/dist/aurora/{p-689f37db.entry.js → p-7fa0ee48.entry.js} +1 -1
- package/dist/aurora/{p-ee2ea46e.entry.js → p-815611f9.entry.js} +1 -1
- package/dist/aurora/{p-a8e984e1.entry.js → p-8800c466.entry.js} +1 -1
- package/dist/aurora/{p-5d2a88ca.entry.js → p-9e9377b5.entry.js} +1 -1
- package/dist/aurora/p-DMeUBbqF.js +7 -0
- package/dist/aurora/{p-DXbj-yic.js → p-DNpzZvak.js} +1 -1
- package/dist/aurora/p-DjW6oMgu.js +7 -0
- package/dist/aurora/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
- package/dist/aurora/p-NvNa2Iiu.js +1 -0
- package/dist/aurora/p-a376a248.entry.js +1 -0
- package/dist/aurora/{p-0608e910.entry.js → p-a63d1f80.entry.js} +1 -1
- package/dist/aurora/p-b0ebcc51.entry.js +1 -0
- package/dist/aurora/p-be98a1d7.entry.js +1 -0
- package/dist/aurora/{p-ed998b0c.entry.js → p-bf922703.entry.js} +1 -1
- package/dist/aurora/{p-ee4475a6.entry.js → p-c1422894.entry.js} +1 -1
- package/dist/aurora/{p-372a3416.entry.js → p-c2164ffe.entry.js} +1 -1
- package/dist/aurora/{p-2a16d544.entry.js → p-cb63ca43.entry.js} +1 -1
- package/dist/aurora/p-cc1015fe.entry.js +1 -0
- package/dist/aurora/{p-88b72de7.entry.js → p-cf16464e.entry.js} +1 -1
- package/dist/aurora/p-cfa0166b.entry.js +1 -0
- package/dist/aurora/{p-e7c81a6b.entry.js → p-d85e1d60.entry.js} +1 -1
- package/dist/aurora/{p-64229ad2.entry.js → p-f176be8b.entry.js} +1 -1
- package/dist/aurora/{p-bd1f6486.entry.js → p-f3383f3c.entry.js} +1 -1
- package/dist/aurora/p-f5d3aefa.entry.js +1 -0
- package/dist/aurora/{p-038b2190.entry.js → p-f85687a5.entry.js} +1 -1
- package/dist/aurora/{p-546a2f69.entry.js → p-fe143404.entry.js} +1 -1
- package/dist/cjs/au-alert.cjs.entry.js +1 -1
- package/dist/cjs/au-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/au-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/au-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/au-combobox.cjs.entry.js +6 -6
- package/dist/cjs/au-container.cjs.entry.js +1 -1
- package/dist/cjs/au-dialog.cjs.entry.js +4 -4
- package/dist/cjs/au-divider.cjs.entry.js +1 -1
- package/dist/cjs/au-field.cjs.entry.js +1 -1
- package/dist/cjs/{au-icon-D0L9Wwy0.js → au-icon-0-khGfX2.js} +1 -1
- package/dist/cjs/au-icon.cjs.entry.js +1 -1
- package/dist/cjs/au-input.cjs.entry.js +6 -6
- package/dist/cjs/au-kbd.cjs.entry.js +355 -0
- package/dist/cjs/au-list-item.cjs.entry.js +195 -0
- package/dist/cjs/au-list.cjs.entry.js +78 -0
- package/dist/cjs/au-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/au-menu.cjs.entry.js +1 -1
- package/dist/cjs/au-nav-link.cjs.entry.js +1 -1
- package/dist/cjs/au-navbar.cjs.entry.js +4 -4
- package/dist/cjs/au-number-input.cjs.entry.js +4 -4
- package/dist/cjs/au-popover.cjs.entry.js +1 -1
- package/dist/cjs/au-progress.cjs.entry.js +107 -0
- package/dist/cjs/au-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/au-radio.cjs.entry.js +1 -1
- package/dist/cjs/au-segmented-control.cjs.entry.js +3 -3
- package/dist/cjs/au-segmented-option.cjs.entry.js +1 -1
- package/dist/cjs/au-select.cjs.entry.js +4 -4
- package/dist/cjs/au-sidebar-nav.cjs.entry.js +1 -1
- package/dist/cjs/au-skeleton.cjs.entry.js +106 -0
- package/dist/cjs/au-slider.cjs.entry.js +3 -3
- package/dist/cjs/au-splitter.cjs.entry.js +2 -2
- package/dist/cjs/au-stat.cjs.entry.js +262 -0
- package/dist/cjs/au-switch.cjs.entry.js +4 -4
- package/dist/cjs/au-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/au-tab.cjs.entry.js +1 -1
- package/dist/cjs/au-table.cjs.entry.js +337 -0
- package/dist/cjs/au-tabs.cjs.entry.js +4 -4
- package/dist/cjs/au-textarea.cjs.entry.js +3 -3
- package/dist/cjs/au-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/au-toast.cjs.entry.js +1 -1
- package/dist/cjs/au-toc.cjs.entry.js +1 -1
- package/dist/cjs/au-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/aurora.cjs.js +1 -1
- package/dist/cjs/{icon-loader-DyRasOnf.js → icon-loader-Dij7pYkP.js} +3 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/trending-down-BKjmYE1H.js +19 -0
- package/dist/cjs/trending-up-CoWuXxqz.js +19 -0
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.constants.js +85 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.css +98 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.js +189 -0
- package/dist/collection/components/data-display/au-kbd/au-kbd.types.js +1 -0
- package/dist/collection/components/data-display/au-kbd/index.js +2 -0
- package/dist/collection/components/data-display/au-kbd/internal/describe.js +67 -0
- package/dist/collection/components/data-display/au-kbd/internal/parse.js +85 -0
- package/dist/collection/components/data-display/au-kbd/internal/platform.js +19 -0
- package/dist/collection/components/data-display/au-list/au-list.constants.js +8 -0
- package/dist/collection/components/data-display/au-list/au-list.css +30 -0
- package/dist/collection/components/data-display/au-list/au-list.js +132 -0
- package/dist/collection/components/data-display/au-list/au-list.types.js +1 -0
- package/dist/collection/components/data-display/au-list/index.js +2 -0
- package/dist/collection/components/data-display/au-list-item/au-list-item.css +196 -0
- package/dist/collection/components/data-display/au-list-item/au-list-item.js +305 -0
- package/dist/collection/components/data-display/au-list-item/index.js +1 -0
- package/dist/collection/components/data-display/au-list-item/internal/interactive-content.js +29 -0
- package/dist/collection/components/data-display/au-stat/au-stat.constants.js +44 -0
- package/dist/collection/components/data-display/au-stat/au-stat.css +139 -0
- package/dist/collection/components/data-display/au-stat/au-stat.js +491 -0
- package/dist/collection/components/data-display/au-stat/au-stat.types.js +1 -0
- package/dist/collection/components/data-display/au-stat/index.js +2 -0
- package/dist/collection/components/data-display/au-stat/internal/announcement.js +13 -0
- package/dist/collection/components/data-display/au-table/au-table.constants.js +21 -0
- package/dist/collection/components/data-display/au-table/au-table.css +20 -0
- package/dist/collection/components/data-display/au-table/au-table.js +482 -0
- package/dist/collection/components/data-display/au-table/au-table.types.js +1 -0
- package/dist/collection/components/data-display/au-table/index.js +2 -0
- package/dist/collection/components/data-display/au-table/internal/scroller-label.js +11 -0
- package/dist/collection/components/data-display/au-table/internal/sort.js +17 -0
- package/dist/collection/components/feedback/au-alert/au-alert.js +1 -1
- package/dist/collection/components/feedback/au-progress/au-progress.constants.js +38 -0
- package/dist/collection/components/feedback/au-progress/au-progress.css +201 -0
- package/dist/collection/components/feedback/au-progress/au-progress.js +226 -0
- package/dist/collection/components/feedback/au-progress/au-progress.types.js +1 -0
- package/dist/collection/components/feedback/au-progress/index.js +2 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.constants.js +33 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.css +108 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.js +159 -0
- package/dist/collection/components/feedback/au-skeleton/au-skeleton.types.js +1 -0
- package/dist/collection/components/feedback/au-skeleton/index.js +2 -0
- package/dist/collection/components/feedback/au-toast/au-toast.js +1 -1
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +1 -1
- package/dist/collection/components/forms/au-checkbox/au-checkbox.js +4 -4
- package/dist/collection/components/forms/au-combobox/au-combobox.js +6 -6
- package/dist/collection/components/forms/au-field/au-field.js +1 -1
- package/dist/collection/components/forms/au-input/au-input.js +6 -6
- package/dist/collection/components/forms/au-number-input/au-number-input.js +4 -4
- package/dist/collection/components/forms/au-radio/au-radio.js +1 -1
- package/dist/collection/components/forms/au-radio-group/au-radio-group.js +3 -3
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +3 -3
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +1 -1
- package/dist/collection/components/forms/au-select/au-select.js +4 -4
- package/dist/collection/components/forms/au-slider/au-slider.js +3 -3
- package/dist/collection/components/forms/au-switch/au-switch.js +4 -4
- package/dist/collection/components/forms/au-textarea/au-textarea.js +3 -3
- package/dist/collection/components/layout/au-container/au-container.js +1 -1
- package/dist/collection/components/layout/au-divider/au-divider.js +1 -1
- package/dist/collection/components/layout/au-splitter/au-splitter.js +2 -2
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +1 -1
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +1 -1
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +1 -1
- package/dist/collection/components/navigation/au-navbar/au-navbar.js +4 -4
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +1 -1
- package/dist/collection/components/navigation/au-tab/au-tab.js +1 -1
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +1 -1
- package/dist/collection/components/navigation/au-tabs/au-tabs.js +4 -4
- package/dist/collection/components/navigation/au-toc/au-toc.js +1 -1
- package/dist/collection/components/overlays/au-dialog/au-dialog.js +4 -4
- package/dist/collection/components/overlays/au-menu/au-menu.js +1 -1
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +1 -1
- package/dist/collection/components/overlays/au-popover/au-popover.js +1 -1
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +1 -1
- package/dist/collection/components/primitives/au-icon/core-icons.js +2 -0
- package/dist/components/au-alert.js +1 -1
- package/dist/components/au-avatar.js +1 -1
- package/dist/components/au-breadcrumb-item.js +1 -1
- package/dist/components/au-breadcrumb.js +1 -1
- package/dist/components/au-checkbox.js +1 -1
- package/dist/components/au-chip.js +1 -1
- package/dist/components/au-code-block.js +1 -1
- package/dist/components/au-combobox.js +1 -1
- package/dist/components/au-container.js +1 -1
- package/dist/components/au-dialog.js +1 -1
- package/dist/components/au-divider.js +1 -1
- package/dist/components/au-field.js +1 -1
- package/dist/components/au-icon.js +1 -1
- package/dist/components/au-input.js +1 -1
- package/dist/components/au-kbd.d.ts +11 -0
- package/dist/components/au-kbd.js +1 -0
- package/dist/components/au-list-item.d.ts +11 -0
- package/dist/components/au-list-item.js +1 -0
- package/dist/components/au-list.d.ts +11 -0
- package/dist/components/au-list.js +1 -0
- package/dist/components/au-menu-item.js +1 -1
- package/dist/components/au-menu.js +1 -1
- package/dist/components/au-nav-link.js +1 -1
- package/dist/components/au-navbar.js +1 -1
- package/dist/components/au-number-input.js +1 -1
- package/dist/components/au-popover.js +1 -1
- package/dist/components/au-progress.d.ts +11 -0
- package/dist/components/au-progress.js +1 -0
- package/dist/components/au-radio-group.js +1 -1
- package/dist/components/au-radio.js +1 -1
- package/dist/components/au-segmented-control.js +1 -1
- package/dist/components/au-segmented-option.js +1 -1
- package/dist/components/au-select.js +1 -1
- package/dist/components/au-sidebar-nav.js +1 -1
- package/dist/components/au-skeleton.d.ts +11 -0
- package/dist/components/au-skeleton.js +1 -0
- package/dist/components/au-slider.js +1 -1
- package/dist/components/au-splitter.js +1 -1
- package/dist/components/au-stat.d.ts +11 -0
- package/dist/components/au-stat.js +1 -0
- package/dist/components/au-switch.js +1 -1
- package/dist/components/au-tab-panel.js +1 -1
- package/dist/components/au-tab.js +1 -1
- package/dist/components/au-table.d.ts +11 -0
- package/dist/components/au-table.js +1 -0
- package/dist/components/au-tabs.js +1 -1
- package/dist/components/au-textarea.js +1 -1
- package/dist/components/au-toast-region.js +1 -1
- package/dist/components/au-toast.js +1 -1
- package/dist/components/au-toc.js +1 -1
- package/dist/components/au-tooltip.js +1 -1
- package/dist/components/p-B5BhPkwP.js +1 -0
- package/dist/components/p-DMeUBbqF.js +7 -0
- package/dist/components/p-DjW6oMgu.js +7 -0
- package/dist/components/{p-DzNA1eDU.js → p-DqAwSryz.js} +1 -1
- package/dist/components/{p-DAqsVCAy.js → p-Dw0zb4x_.js} +1 -1
- package/dist/components/{p-DIL-tsh4.js → p-ZpauIcNt.js} +1 -1
- package/dist/custom-elements.json +1338 -66
- package/dist/esm/au-alert.entry.js +1 -1
- package/dist/esm/au-breadcrumb-item.entry.js +1 -1
- package/dist/esm/au-breadcrumb.entry.js +1 -1
- package/dist/esm/au-checkbox.entry.js +4 -4
- package/dist/esm/au-code-block.entry.js +1 -1
- package/dist/esm/au-combobox.entry.js +7 -7
- package/dist/esm/au-container.entry.js +1 -1
- package/dist/esm/au-dialog.entry.js +4 -4
- package/dist/esm/au-divider.entry.js +1 -1
- package/dist/esm/au-field.entry.js +1 -1
- package/dist/esm/{au-icon-B17psn7x.js → au-icon-6iJTkDID.js} +1 -1
- package/dist/esm/au-icon.entry.js +1 -1
- package/dist/esm/au-input.entry.js +6 -6
- package/dist/esm/au-kbd.entry.js +353 -0
- package/dist/esm/au-list-item.entry.js +193 -0
- package/dist/esm/au-list.entry.js +76 -0
- package/dist/esm/au-menu-item.entry.js +1 -1
- package/dist/esm/au-menu.entry.js +1 -1
- package/dist/esm/au-nav-link.entry.js +1 -1
- package/dist/esm/au-navbar.entry.js +4 -4
- package/dist/esm/au-number-input.entry.js +4 -4
- package/dist/esm/au-popover.entry.js +1 -1
- package/dist/esm/au-progress.entry.js +105 -0
- package/dist/esm/au-radio-group.entry.js +3 -3
- package/dist/esm/au-radio.entry.js +1 -1
- package/dist/esm/au-segmented-control.entry.js +3 -3
- package/dist/esm/au-segmented-option.entry.js +1 -1
- package/dist/esm/au-select.entry.js +4 -4
- package/dist/esm/au-sidebar-nav.entry.js +1 -1
- package/dist/esm/au-skeleton.entry.js +104 -0
- package/dist/esm/au-slider.entry.js +3 -3
- package/dist/esm/au-splitter.entry.js +2 -2
- package/dist/esm/au-stat.entry.js +260 -0
- package/dist/esm/au-switch.entry.js +4 -4
- package/dist/esm/au-tab-panel.entry.js +1 -1
- package/dist/esm/au-tab.entry.js +1 -1
- package/dist/esm/au-table.entry.js +335 -0
- package/dist/esm/au-tabs.entry.js +4 -4
- package/dist/esm/au-textarea.entry.js +3 -3
- package/dist/esm/au-toast-region.entry.js +2 -2
- package/dist/esm/au-toast.entry.js +1 -1
- package/dist/esm/au-toc.entry.js +1 -1
- package/dist/esm/au-tooltip.entry.js +1 -1
- package/dist/esm/aurora.js +1 -1
- package/dist/esm/{icon-loader-CqLCmu4h.js → icon-loader-B2WSNZ27.js} +3 -1
- package/dist/esm/{live-announcer-CXd2OhYs.js → live-announcer-IAjNBWYI.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/trending-down-DjW6oMgu.js +17 -0
- package/dist/esm/trending-up-DMeUBbqF.js +17 -0
- package/dist/styles.css +139 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.constants.d.ts +41 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.d.ts +36 -0
- package/dist/types/components/data-display/au-kbd/au-kbd.types.d.ts +1 -0
- package/dist/types/components/data-display/au-kbd/index.d.ts +3 -0
- package/dist/types/components/data-display/au-kbd/internal/describe.d.ts +13 -0
- package/dist/types/components/data-display/au-kbd/internal/parse.d.ts +18 -0
- package/dist/types/components/data-display/au-kbd/internal/platform.d.ts +13 -0
- package/dist/types/components/data-display/au-list/au-list.constants.d.ts +8 -0
- package/dist/types/components/data-display/au-list/au-list.d.ts +29 -0
- package/dist/types/components/data-display/au-list/au-list.types.d.ts +1 -0
- package/dist/types/components/data-display/au-list/index.d.ts +3 -0
- package/dist/types/components/data-display/au-list-item/au-list-item.d.ts +61 -0
- package/dist/types/components/data-display/au-list-item/index.d.ts +1 -0
- package/dist/types/components/data-display/au-list-item/internal/interactive-content.d.ts +2 -0
- package/dist/types/components/data-display/au-stat/au-stat.constants.d.ts +44 -0
- package/dist/types/components/data-display/au-stat/au-stat.d.ts +67 -0
- package/dist/types/components/data-display/au-stat/au-stat.types.d.ts +1 -0
- package/dist/types/components/data-display/au-stat/index.d.ts +3 -0
- package/dist/types/components/data-display/au-stat/internal/announcement.d.ts +16 -0
- package/dist/types/components/data-display/au-table/au-table.constants.d.ts +26 -0
- package/dist/types/components/data-display/au-table/au-table.d.ts +86 -0
- package/dist/types/components/data-display/au-table/au-table.types.d.ts +1 -0
- package/dist/types/components/data-display/au-table/index.d.ts +3 -0
- package/dist/types/components/data-display/au-table/internal/scroller-label.d.ts +9 -0
- package/dist/types/components/data-display/au-table/internal/sort.d.ts +11 -0
- package/dist/types/components/feedback/au-progress/au-progress.constants.d.ts +31 -0
- package/dist/types/components/feedback/au-progress/au-progress.d.ts +32 -0
- package/dist/types/components/feedback/au-progress/au-progress.types.d.ts +1 -0
- package/dist/types/components/feedback/au-progress/index.d.ts +3 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.constants.d.ts +27 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.d.ts +31 -0
- package/dist/types/components/feedback/au-skeleton/au-skeleton.types.d.ts +1 -0
- package/dist/types/components/feedback/au-skeleton/index.d.ts +3 -0
- package/dist/types/components.d.ts +712 -0
- package/dist/types/vue.d.ts +7 -0
- package/package.json +53 -1
- package/dist/aurora/p-746825ce.entry.js +0 -1
- package/dist/aurora/p-CoyAdNcI.js +0 -1
- package/dist/aurora/p-b2feddb2.entry.js +0 -1
- package/dist/aurora/p-f89bde2b.entry.js +0 -1
- package/dist/components/p-M21eKzKU.js +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { warnOncePerDocument } from "../../../shared/warn-once.js";
|
|
3
|
+
import { SKELETON_ANIMATION, SKELETON_SHAPE, isSkeletonAnimation, isSkeletonShape, normalizeSkeletonLines, } from "./au-skeleton.constants.js";
|
|
4
|
+
/**
|
|
5
|
+
* A decorative placeholder for content that is still loading: text bars (`lines`), a circle or a
|
|
6
|
+
* rectangle, with a shimmer that is static under reduced motion. It is hidden from assistive
|
|
7
|
+
* technology (the host always carries `aria-hidden="true"`, and never a role): the loading
|
|
8
|
+
* semantics belong to the consumer's region (`aria-busy`) and to a message through `announce()`.
|
|
9
|
+
*/
|
|
10
|
+
export class AuSkeleton {
|
|
11
|
+
host;
|
|
12
|
+
/** What the placeholder stands in for: `text` (lines), `circle` (an avatar) or `rect` (media or a card block). An unsupported value renders `text` and warns once. */
|
|
13
|
+
shape = SKELETON_SHAPE.text;
|
|
14
|
+
/** The number of lines of a `text` skeleton, from 1 to 20; the last of several is shorter. Ignored for `circle` and `rect`. An invalid value renders one line (or twenty when too large) and warns once. */
|
|
15
|
+
lines = 1;
|
|
16
|
+
/** `shimmer` moves a highlight across the bars; `none` is static. Reduced motion is always static. An unsupported value renders `shimmer` and warns once. */
|
|
17
|
+
animation = SKELETON_ANIMATION.shimmer;
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
this.syncHidden();
|
|
20
|
+
}
|
|
21
|
+
componentWillRender() {
|
|
22
|
+
this.warnAboutProperties();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The host is always decorative (SK-D2). Stencil diffs against the previous vnode, not the live
|
|
26
|
+
* DOM, so `<Host aria-hidden>` would not undo a later consumer write; the attribute is written
|
|
27
|
+
* imperatively after every render instead.
|
|
28
|
+
*/
|
|
29
|
+
componentDidRender() {
|
|
30
|
+
this.syncHidden();
|
|
31
|
+
}
|
|
32
|
+
syncHidden() {
|
|
33
|
+
this.host.setAttribute('aria-hidden', 'true');
|
|
34
|
+
}
|
|
35
|
+
get safeShape() {
|
|
36
|
+
return isSkeletonShape(this.shape) ? this.shape : SKELETON_SHAPE.text;
|
|
37
|
+
}
|
|
38
|
+
get safeAnimation() {
|
|
39
|
+
return isSkeletonAnimation(this.animation) ? this.animation : SKELETON_ANIMATION.shimmer;
|
|
40
|
+
}
|
|
41
|
+
warn(key, message) {
|
|
42
|
+
warnOncePerDocument(this.host.ownerDocument, `au-skeleton:${key}`, `[au-skeleton] ${message}`);
|
|
43
|
+
}
|
|
44
|
+
warnAboutProperties() {
|
|
45
|
+
if (!isSkeletonShape(this.shape)) {
|
|
46
|
+
this.warn('shape', `Unsupported shape ${JSON.stringify(this.shape)}; it renders as "text". Use "text", "circle" or "rect".`);
|
|
47
|
+
}
|
|
48
|
+
if (!isSkeletonAnimation(this.animation)) {
|
|
49
|
+
this.warn('animation', `Unsupported animation ${JSON.stringify(this.animation)}; it renders as "shimmer". Use "shimmer" or "none".`);
|
|
50
|
+
}
|
|
51
|
+
// `lines` only means something for a text skeleton (SK-D4).
|
|
52
|
+
if (this.safeShape === SKELETON_SHAPE.text && normalizeSkeletonLines(this.lines).invalid) {
|
|
53
|
+
this.warn('lines', `Unsupported lines ${JSON.stringify(this.lines)}; use an integer from 1 to 20. It renders as one line, or twenty when larger.`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
renderLines() {
|
|
57
|
+
const { lines } = normalizeSkeletonLines(this.lines);
|
|
58
|
+
return Array.from({ length: lines }, (_, index) => {
|
|
59
|
+
const last = lines > 1 && index === lines - 1;
|
|
60
|
+
return (h("span", { part: last ? 'line line-last' : 'line', class: `skeleton__line${last ? ' skeleton__line--last' : ''}` }));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
const shape = this.safeShape;
|
|
65
|
+
const motion = this.safeAnimation === SKELETON_ANIMATION.none ? 'static' : 'shimmer';
|
|
66
|
+
return (h("span", { key: '6a0924fdece21086972f228c24f5ae36a751ae46', part: "base", class: `skeleton skeleton--${shape} skeleton--${motion}` }, shape === SKELETON_SHAPE.text && this.renderLines()));
|
|
67
|
+
}
|
|
68
|
+
static get is() { return "au-skeleton"; }
|
|
69
|
+
static get encapsulation() { return "shadow"; }
|
|
70
|
+
static get originalStyleUrls() {
|
|
71
|
+
return {
|
|
72
|
+
"$": ["au-skeleton.scss"]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static get styleUrls() {
|
|
76
|
+
return {
|
|
77
|
+
"$": ["au-skeleton.css"]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static get properties() {
|
|
81
|
+
return {
|
|
82
|
+
"shape": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "SkeletonShape",
|
|
87
|
+
"resolved": "\"circle\" | \"rect\" | \"text\"",
|
|
88
|
+
"references": {
|
|
89
|
+
"SkeletonShape": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./au-skeleton.constants",
|
|
92
|
+
"id": "src/components/feedback/au-skeleton/au-skeleton.constants.ts::SkeletonShape",
|
|
93
|
+
"referenceLocation": "SkeletonShape"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "What the placeholder stands in for: `text` (lines), `circle` (an avatar) or `rect` (media or a card block). An unsupported value renders `text` and warns once."
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"reflect": true,
|
|
106
|
+
"attribute": "shape",
|
|
107
|
+
"defaultValue": "'text'"
|
|
108
|
+
},
|
|
109
|
+
"lines": {
|
|
110
|
+
"type": "number",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "number",
|
|
114
|
+
"resolved": "number",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "The number of lines of a `text` skeleton, from 1 to 20; the last of several is shorter. Ignored for `circle` and `rect`. An invalid value renders one line (or twenty when too large) and warns once."
|
|
122
|
+
},
|
|
123
|
+
"getter": false,
|
|
124
|
+
"setter": false,
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"attribute": "lines",
|
|
127
|
+
"defaultValue": "1"
|
|
128
|
+
},
|
|
129
|
+
"animation": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"mutable": false,
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "SkeletonAnimation",
|
|
134
|
+
"resolved": "\"none\" | \"shimmer\"",
|
|
135
|
+
"references": {
|
|
136
|
+
"SkeletonAnimation": {
|
|
137
|
+
"location": "import",
|
|
138
|
+
"path": "./au-skeleton.constants",
|
|
139
|
+
"id": "src/components/feedback/au-skeleton/au-skeleton.constants.ts::SkeletonAnimation",
|
|
140
|
+
"referenceLocation": "SkeletonAnimation"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "`shimmer` moves a highlight across the bars; `none` is static. Reduced motion is always static. An unsupported value renders `shimmer` and warns once."
|
|
149
|
+
},
|
|
150
|
+
"getter": false,
|
|
151
|
+
"setter": false,
|
|
152
|
+
"reflect": true,
|
|
153
|
+
"attribute": "animation",
|
|
154
|
+
"defaultValue": "'shimmer'"
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static get elementRef() { return "host"; }
|
|
159
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -52,7 +52,7 @@ export class AuToast {
|
|
|
52
52
|
render() {
|
|
53
53
|
const variant = this.safeVariant;
|
|
54
54
|
const actionLabel = this.safeActionLabel;
|
|
55
|
-
return (h("div", { key: '
|
|
55
|
+
return (h("div", { key: '99d925db568adcd8b5556e30667753d3b7c0761a', class: `toast toast--${variant}${this.hasTitle ? '' : ' toast--no-title'}`, part: "toast" }, h("span", { key: '718123753578ce2909feee6d33044f0b51313505', class: "toast__icon", part: "icon" }, h("au-icon", { key: '5ad01963f50686948531f741aef9c286f1a73741', icon: DEFAULT_ICONS[variant], decorative: true })), h("div", { key: 'dcfa1d813f7edbdd804aa03dfd9bd40101e8d608', class: "toast__content", part: "content" }, h("div", { key: '2eb86d0a6075b83c26a8eaad026b4e5e8498cef8', class: "toast__title", part: "title" }, h("slot", { key: '28c3ef59cc4c3b4fc2c0e9f40a1fce808444d22b', name: "title", onSlotchange: this.syncContent })), h("div", { key: '1581406905e9a921154edbc14ea2d05f0e7a8367', class: "toast__message", part: "message" }, h("slot", { key: '27c1a7ba23a163be9901dbe23a61cee6e3eb1e75' }))), actionLabel && (h("button", { key: '353aa231aeb8538d31e616d85c0370c6ad485411', class: "toast__action", part: "action", type: "button", onClick: () => this.request('action') }, actionLabel)), h("button", { key: 'f0bc3d546d36c6fe9571c1cfbe3abcec58bdf79f', class: "toast__dismiss", part: "dismiss", type: "button", "aria-label": this.safeDismissLabel, onClick: () => this.request('dismiss-button') }, h("au-icon", { key: 'd47926560c6765105d4f84127a336329b6168823', icon: CLOSE_ICON, decorative: true }))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "au-toast"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -429,7 +429,7 @@ export class AuToastRegion {
|
|
|
429
429
|
}
|
|
430
430
|
render() {
|
|
431
431
|
const visible = this.queue.visible;
|
|
432
|
-
return (h(Host, { key: '
|
|
432
|
+
return (h(Host, { key: '1ff9325b9484acfe0e500eb8feb094ddd665140f' }, h("section", { key: 'e914a9bcb25e211eb107eb78ce31abae5e46b9e7', part: "stack", role: "region", "aria-label": this.safeLabel, hidden: visible.length === 0 }, visible.map((id) => {
|
|
433
433
|
const entry = this.queue.get(id);
|
|
434
434
|
if (!entry)
|
|
435
435
|
return null;
|
|
@@ -136,20 +136,20 @@ export class AuCheckbox {
|
|
|
136
136
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
137
137
|
'aria-describedby': this.descriptionIds,
|
|
138
138
|
});
|
|
139
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: '4327d2c1afda0d8104dd03c47f0720b8a34426f0', class: {
|
|
140
140
|
'checkbox-host--disabled': this.isDisabled,
|
|
141
141
|
'checkbox-host--invalid': this.isInvalid,
|
|
142
|
-
} }, h("div", { key: '
|
|
142
|
+
} }, h("div", { key: 'c881aa8e15f1f02ffe3e13dcdebb28de433db173', class: {
|
|
143
143
|
checkbox: true,
|
|
144
144
|
'checkbox--checked': this.checked,
|
|
145
145
|
'checkbox--indeterminate': this.indeterminate,
|
|
146
146
|
'checkbox--disabled': this.isDisabled,
|
|
147
147
|
'checkbox--invalid': this.isInvalid,
|
|
148
|
-
} }, h("label", { key: '
|
|
148
|
+
} }, h("label", { key: 'f20d816c4673c63e72070f3f708e23f734fe8240', class: "checkbox__label", part: "label" }, h("input", { key: '819b78d513821b4176637369cd170e095685bb75', ref: (element) => {
|
|
149
149
|
this.inputElement = element;
|
|
150
150
|
if (element && element.checked !== this.checked)
|
|
151
151
|
element.checked = this.checked;
|
|
152
|
-
}, id: this.checkboxId, class: "checkbox__control", part: "control", type: "checkbox", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: '
|
|
152
|
+
}, id: this.checkboxId, class: "checkbox__control", part: "control", type: "checkbox", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: 'e25134bba61c0481a5b273f1e8e58739bf5f2dd2', class: "checkbox__indicator", part: "indicator", "aria-hidden": "true" }), h("span", { key: 'e83d85f447c9b0dfa66d070e33d934cd7dcf4e8c', class: "checkbox__text", part: "text" }, h("slot", { key: '2ededa56a79de7deb14262804650ab3373fa850d' }, labelText)), this.required ? (h("span", { class: "checkbox__required", "aria-hidden": "true" }, "*")) : null), hintText ? (h("p", { class: "checkbox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "checkbox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
153
153
|
}
|
|
154
154
|
static get is() { return "au-checkbox"; }
|
|
155
155
|
static get encapsulation() { return "shadow"; }
|
|
@@ -590,24 +590,24 @@ export class AuCombobox {
|
|
|
590
590
|
'aria-activedescendant': activeIndex >= 0 ? this.optionId(activeIndex) : undefined,
|
|
591
591
|
placeholder: this.placeholder,
|
|
592
592
|
});
|
|
593
|
-
return (h(Host, { key: '
|
|
593
|
+
return (h(Host, { key: '07722eeb261d637f5eeaad4710fae7776025ba07', class: {
|
|
594
594
|
'combobox-host--disabled': disabled,
|
|
595
595
|
'combobox-host--invalid': this.isInvalid,
|
|
596
|
-
} }, h("div", { key: '
|
|
596
|
+
} }, h("div", { key: 'f89a686ea4dae61260ee70a90dbdda5602e8cf15', class: {
|
|
597
597
|
combobox: true,
|
|
598
598
|
[`combobox--${this.safeSize}`]: true,
|
|
599
599
|
'combobox--disabled': disabled,
|
|
600
600
|
'combobox--focused': this.focused,
|
|
601
601
|
'combobox--invalid': this.isInvalid,
|
|
602
602
|
'combobox--open': isOpen,
|
|
603
|
-
} }, labelText ? (h("label", { class: "combobox__label", part: "label", id: this.labelId, htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "combobox__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
603
|
+
} }, labelText ? (h("label", { class: "combobox__label", part: "label", id: this.labelId, htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "combobox__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'e586a620e7489d31f3c7d5520b0e05b8317749b2', class: "combobox__field", part: "field", ref: (element) => {
|
|
604
604
|
this.fieldElement = element;
|
|
605
|
-
}, onClick: this.handleFieldClick }, h("input", { key: '
|
|
605
|
+
}, onClick: this.handleFieldClick }, h("input", { key: '0fa18903fbdd8327d1f81144a4371ec036de3480', ref: (element) => {
|
|
606
606
|
this.inputElement = element;
|
|
607
607
|
syncSpellcheckAttribute(element, false);
|
|
608
|
-
}, id: this.inputId, class: "combobox__input", part: "input", type: "text", role: "combobox", "aria-expanded": isOpen ? 'true' : 'false', "aria-controls": this.listboxId, "aria-autocomplete": "list", autocomplete: "off", disabled: disabled, readOnly: this.readonly, value: this.query, ...inputAttributes, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '
|
|
608
|
+
}, id: this.inputId, class: "combobox__input", part: "input", type: "text", role: "combobox", "aria-expanded": isOpen ? 'true' : 'false', "aria-controls": this.listboxId, "aria-autocomplete": "list", autocomplete: "off", disabled: disabled, readOnly: this.readonly, value: this.query, ...inputAttributes, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: 'ec98ee0748f13d274ab382ad7f88b3f1ee2622d6', class: "combobox__chevron", part: "chevron", "aria-hidden": "true" })), h("div", { key: '4e369fec3287550623935db90f48bf20e3c403cb', class: "combobox__popup", part: "popup", popover: "manual", hidden: !this.support.popover && !isOpen, ref: (element) => {
|
|
609
609
|
this.popupElement = element;
|
|
610
|
-
}, onPointerDown: this.handlePopupPointerDown }, h("div", { key: '
|
|
610
|
+
}, onPointerDown: this.handlePopupPointerDown }, h("div", { key: '132b183f3d97285b4cc3e5ac83b68242c69ba318', class: "combobox__listbox", part: "listbox", id: this.listboxId, role: "listbox", "aria-labelledby": labelText ? this.labelId : undefined, "aria-label": ariaName, "aria-busy": this.loading ? 'true' : undefined }, visible.map((option, index) => this.renderOption(option, index, active))), h("div", { key: '2ac72729768f1f4f1b4eeab9071b7011d819c9b7', class: "combobox__status", part: "status" }, statusText)), hintText ? (h("p", { class: "combobox__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "combobox__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
611
611
|
}
|
|
612
612
|
static get is() { return "au-combobox"; }
|
|
613
613
|
static get encapsulation() { return "shadow"; }
|
|
@@ -169,7 +169,7 @@ export class AuField {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '0d62d37b31c5b4cf9e571987c754bed309dbeffb' }, h("div", { key: '99892cec930c17de3c5bb712b0c71f23383691b4', class: "field", part: "base" }, h("div", { key: '12a8a21c1007bb7ad755908aac9abad3119075bc', class: { field__label: true, 'field__label--empty': !this.hasLabel }, part: "label" }, h("slot", { key: '677ad49abc0357b91d3544cf54a23c1455d3f36b', name: "label", onSlotchange: this.wire }), this.required ? (h("span", { class: "field__required", part: "required", "aria-hidden": "true" }, "*")) : null), h("div", { key: 'fcab1f09379c31688e53298bc7b65d0d73d473f9', class: "field__control", part: "control" }, h("slot", { key: 'dc96e0df3dabb372073e19b1cd5a7952ea22e0f0', onSlotchange: this.wire })), h("div", { key: 'ac5da48c9dadade0114aeb302e95564a78826d5b', class: { field__hint: true, 'field__hint--empty': !this.hasHint }, part: "hint" }, h("slot", { key: 'dcb4424d83ff22d31fb7b8262f169d0629787169', name: "hint", onSlotchange: this.wire })), h("div", { key: '73476068614c0636cfc7c0f63fb66d8105446abb', class: { field__error: true, 'field__error--empty': !this.hasError }, part: "error", "aria-live": "polite" }, h("slot", { key: '1b7fc34d908f6fc605c108f0851db167121a809f', name: "error", onSlotchange: this.wire })))));
|
|
173
173
|
}
|
|
174
174
|
static get is() { return "au-field"; }
|
|
175
175
|
static get encapsulation() { return "shadow"; }
|
|
@@ -219,32 +219,32 @@ export class AuInput {
|
|
|
219
219
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
220
220
|
'aria-describedby': this.descriptionIds,
|
|
221
221
|
});
|
|
222
|
-
return (h(Host, { key: '
|
|
222
|
+
return (h(Host, { key: '314d770ba3953f7291f88ad3fd5747915e80f3b1', class: {
|
|
223
223
|
'input-host--disabled': inputDisabled,
|
|
224
224
|
'input-host--invalid': this.isInvalid,
|
|
225
225
|
'input-host--readonly': this.readOnly,
|
|
226
|
-
} }, h("div", { key: '
|
|
226
|
+
} }, h("div", { key: 'dbebef58831082651f00a76af8cfd970857a9e56', class: {
|
|
227
227
|
input: true,
|
|
228
228
|
[`input--${this.safeSize}`]: true,
|
|
229
229
|
'input--disabled': inputDisabled,
|
|
230
230
|
'input--focused': this.focused,
|
|
231
231
|
'input--invalid': this.isInvalid,
|
|
232
232
|
'input--readonly': this.readOnly,
|
|
233
|
-
} }, labelText ? (h("label", { class: "input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
233
|
+
} }, labelText ? (h("label", { class: "input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'cd626c8e1cf6d3e1cbba975b0ddaeff248237fc8', class: "input__control-wrap", part: "control-wrap" }, h("span", { key: '461602ccac8386bed55d309f2d6b3a4dfae5ccf7', class: {
|
|
234
234
|
input__adornment: true,
|
|
235
235
|
'input__adornment--prefix': true,
|
|
236
236
|
'input__adornment--empty': !this.hasPrefix,
|
|
237
|
-
}, part: "prefix" }, h("slot", { key: '
|
|
237
|
+
}, part: "prefix" }, h("slot", { key: '21a3247f8679ac6de0f4d3f99bfbb57b18f047d6', name: "prefix", onSlotchange: this.handlePrefixSlotChange })), h("input", { key: 'f3a5c5693ff0aaabf1416a2c57c2bcdf483b2659', ref: (element) => {
|
|
238
238
|
this.inputElement = element;
|
|
239
239
|
if (!element)
|
|
240
240
|
return;
|
|
241
241
|
if (element.value !== this.value)
|
|
242
242
|
element.value = this.value;
|
|
243
|
-
}, id: this.inputId, class: "input__control", part: "control", type: this.safeType, required: this.required, disabled: inputDisabled, readOnly: this.readOnly, ...nativeInputAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '
|
|
243
|
+
}, id: this.inputId, class: "input__control", part: "control", type: this.safeType, required: this.required, disabled: inputDisabled, readOnly: this.readOnly, ...nativeInputAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("span", { key: '7bc9b902935dbf50beaa5189546111c0b016be74', class: {
|
|
244
244
|
input__adornment: true,
|
|
245
245
|
'input__adornment--suffix': true,
|
|
246
246
|
'input__adornment--empty': !this.hasSuffix,
|
|
247
|
-
}, part: "suffix" }, h("slot", { key: '
|
|
247
|
+
}, part: "suffix" }, h("slot", { key: 'e65f06941e0e7b316717d881246ba21a56caebc6', name: "suffix", onSlotchange: this.handleSuffixSlotChange }))), hintText ? (h("p", { class: "input__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "input__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
248
248
|
}
|
|
249
249
|
static get is() { return "au-input"; }
|
|
250
250
|
static get encapsulation() { return "shadow"; }
|
|
@@ -232,24 +232,24 @@ export class AuNumberInput {
|
|
|
232
232
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
233
233
|
'aria-describedby': this.descriptionIds,
|
|
234
234
|
});
|
|
235
|
-
return (h(Host, { key: '
|
|
235
|
+
return (h(Host, { key: '1266ef5d5f56ca8d16e058ccfc3ccaeff827ba9d', class: {
|
|
236
236
|
'number-input-host--disabled': disabled,
|
|
237
237
|
'number-input-host--invalid': this.isInvalid,
|
|
238
238
|
'number-input-host--readonly': this.readOnly,
|
|
239
|
-
} }, h("div", { key: '
|
|
239
|
+
} }, h("div", { key: 'c532f5dfb264a026d1e3624a26d93f95805a1273', class: {
|
|
240
240
|
'number-input': true,
|
|
241
241
|
[`number-input--${this.safeSize}`]: true,
|
|
242
242
|
'number-input--disabled': disabled,
|
|
243
243
|
'number-input--focused': this.focused,
|
|
244
244
|
'number-input--invalid': this.isInvalid,
|
|
245
245
|
'number-input--readonly': this.readOnly,
|
|
246
|
-
} }, labelText ? (h("label", { class: "number-input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "number-input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
246
|
+
} }, labelText ? (h("label", { class: "number-input__label", part: "label", htmlFor: this.inputId }, h("span", null, labelText), this.required ? (h("span", { class: "number-input__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'e20ebabd1caaf48b21e6c0621305b2fbbe150a9d', class: "number-input__field", part: "field" }, h("button", { key: '1ff36d3ee710b9572972eef8217e9d5b44a787b9', class: "number-input__stepper number-input__stepper--decrement", part: "decrement", type: "button", tabindex: "-1", "aria-label": decrementName, disabled: locked || this.atMin, onPointerDown: this.handleStepperPointerDown, onClick: this.handleDecrement }, h("au-icon", { key: 'fb8d234565e9eaa35e90209fa9d49a933b31c6c6', icon: DECREMENT_ICON, decorative: true })), h("input", { key: '0f39a61cdb7dbb0a289af55ca7ca354c9c953870', ref: (element) => {
|
|
247
247
|
this.inputElement = element;
|
|
248
248
|
if (!element)
|
|
249
249
|
return;
|
|
250
250
|
if (element.value !== this.currentText)
|
|
251
251
|
element.value = this.currentText;
|
|
252
|
-
}, id: this.inputId, class: "number-input__control", part: "control", type: "number", inputMode: "decimal", required: this.required, disabled: disabled, readOnly: this.readOnly, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("button", { key: '
|
|
252
|
+
}, id: this.inputId, class: "number-input__control", part: "control", type: "number", inputMode: "decimal", required: this.required, disabled: disabled, readOnly: this.readOnly, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }), h("button", { key: '60d843a7b54dc8c54574d3e8b73038ec160265a7', class: "number-input__stepper number-input__stepper--increment", part: "increment", type: "button", tabindex: "-1", "aria-label": incrementName, disabled: locked || this.atMax, onPointerDown: this.handleStepperPointerDown, onClick: this.handleIncrement }, h("au-icon", { key: '92b819d6da0aba2499994121565180ca21338d3d', icon: INCREMENT_ICON, decorative: true }))), hintText ? (h("p", { class: "number-input__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "number-input__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
253
253
|
}
|
|
254
254
|
static get is() { return "au-number-input"; }
|
|
255
255
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class AuRadio {
|
|
|
16
16
|
dispatchItemUpdate(this.host);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'dfba44e0d18c95c11b1d7543c94000a4d398ec9a', role: "radio", "aria-checked": this.checked ? 'true' : 'false' }, h("span", { key: '31e017244bfece35e6f8d8740f38e4801c6271b2', class: "radio__indicator", part: "indicator", "aria-hidden": "true" }), h("span", { key: '023774ef3aac9b82994757416b4057c9af45bc84', class: "radio__text", part: "text" }, h("slot", { key: 'ad4cd149fe9c93f8db8ca0fe100e4c274f5650ca' }, this.label?.trim()))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "au-radio"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -290,16 +290,16 @@ export class AuRadioGroup {
|
|
|
290
290
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
291
291
|
'aria-disabled': this.isDisabled ? 'true' : undefined,
|
|
292
292
|
});
|
|
293
|
-
return (h(Host, { key: '
|
|
293
|
+
return (h(Host, { key: 'e5b2a4c3849afe2edd0e4768630b228297d8f44b', class: {
|
|
294
294
|
'radio-group-host--disabled': this.isDisabled,
|
|
295
295
|
'radio-group-host--invalid': this.isInvalid,
|
|
296
|
-
} }, h("div", { key: '
|
|
296
|
+
} }, h("div", { key: 'e9ed2d9d75da34c027abf39ce7bba644cb7d29e0', part: "base", class: {
|
|
297
297
|
'radio-group': true,
|
|
298
298
|
'radio-group--vertical': this.safeOrientation === RADIO_GROUP_ORIENTATIONS.vertical,
|
|
299
299
|
'radio-group--horizontal': this.safeOrientation === RADIO_GROUP_ORIENTATIONS.horizontal,
|
|
300
300
|
'radio-group--disabled': this.isDisabled,
|
|
301
301
|
'radio-group--invalid': this.isInvalid,
|
|
302
|
-
} }, labelText ? (h("span", { class: "radio-group__label", part: "label", id: this.labelId }, labelText, this.required ? (h("span", { class: "radio-group__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
302
|
+
} }, labelText ? (h("span", { class: "radio-group__label", part: "label", id: this.labelId }, labelText, this.required ? (h("span", { class: "radio-group__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'b57af36d4562ca05e3191be1e709546a367e2a40', class: "radio-group__items", part: "group", role: "radiogroup", ...groupAttributes }, h("slot", { key: '68cd16e19fe0e236d172bba442dd21f6c3cebf01', ref: (element) => {
|
|
303
303
|
this.slotElement = element;
|
|
304
304
|
}, onSlotchange: this.handleSlotChange })), hintText ? (h("p", { class: "radio-group__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "radio-group__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
305
305
|
}
|
|
@@ -482,10 +482,10 @@ export class AuSegmentedControl {
|
|
|
482
482
|
});
|
|
483
483
|
const orientation = this.safeOrientation;
|
|
484
484
|
const size = this.safeSize;
|
|
485
|
-
return (h(Host, { key: '
|
|
485
|
+
return (h(Host, { key: 'd219d8f355112113f72810ffe7ddb31d7e724091', class: {
|
|
486
486
|
'segmented-control-host--disabled': this.isDisabled,
|
|
487
487
|
'segmented-control-host--invalid': this.isInvalid,
|
|
488
|
-
} }, h("div", { key: '
|
|
488
|
+
} }, h("div", { key: '643e72d2f954391d3f520d355a6e31c62eb942bf', part: "base", class: {
|
|
489
489
|
'segmented-control': true,
|
|
490
490
|
'segmented-control--horizontal': orientation === SEGMENTED_CONTROL_ORIENTATION.horizontal,
|
|
491
491
|
'segmented-control--vertical': orientation === SEGMENTED_CONTROL_ORIENTATION.vertical,
|
|
@@ -495,7 +495,7 @@ export class AuSegmentedControl {
|
|
|
495
495
|
'segmented-control--multiple': this.multiple,
|
|
496
496
|
'segmented-control--disabled': this.isDisabled,
|
|
497
497
|
'segmented-control--invalid': this.isInvalid,
|
|
498
|
-
} }, labelText ? (h("span", { class: "segmented-control__label", part: "label", id: this.labelId }, labelText, radioMode && this.required ? (h("span", { class: "segmented-control__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
498
|
+
} }, labelText ? (h("span", { class: "segmented-control__label", part: "label", id: this.labelId }, labelText, radioMode && this.required ? (h("span", { class: "segmented-control__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: 'c5b49155cb91b99ae50a703018d71295ae7b9dba', class: "segmented-control__items", part: "group", role: radioMode ? 'radiogroup' : 'group', ...groupAttributes }, h("slot", { key: '839030d95f260f9fdb804c9382806c23997f4867', ref: (element) => {
|
|
499
499
|
this.slotElement = element;
|
|
500
500
|
}, onSlotchange: this.handleSlotChange })), hintText ? (h("p", { class: "segmented-control__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "segmented-control__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
501
501
|
}
|
|
@@ -45,7 +45,7 @@ export class AuSegmentedOption {
|
|
|
45
45
|
render() {
|
|
46
46
|
const toggle = this.mode === SEGMENTED_OPTION_MODE.toggle && isSegmentedOptionMode(this.mode);
|
|
47
47
|
const state = this.selected ? 'true' : 'false';
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '3a54770a2c3750bba62c7aaf873506cff3a4ff09', role: toggle ? 'button' : 'radio', "aria-checked": toggle ? undefined : state, "aria-pressed": toggle ? state : undefined }, h("span", { key: '30595b6f64d71f74e65bc5d6a6d80a91dd680b93', class: "segmented-option__content", part: "content" }, h("span", { key: '439234c1130f99e754c83868c88b270cc6f37438', class: "segmented-option__start", part: "start" }, h("slot", { key: 'b60e9d2bade3674fefb61b4c31a49b5d7fb9a801', name: "start" })), h("span", { key: 'bf942ceccb6eda637e599d75645a04e66032fa24', class: "segmented-option__label", part: "label" }, h("slot", { key: '9c6fe9870cd11ecc089f4b8e53a114c82439d056', onSlotchange: this.handleSlotChange }, this.label?.trim())))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "au-segmented-option"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,18 +242,18 @@ export class AuSelect {
|
|
|
242
242
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
243
243
|
'aria-describedby': this.descriptionIds,
|
|
244
244
|
});
|
|
245
|
-
return (h(Host, { key: '
|
|
245
|
+
return (h(Host, { key: 'cf28532c53752b1aafe83e1f621c4d3cb41dc88d', class: {
|
|
246
246
|
'select-host--disabled': selectDisabled,
|
|
247
247
|
'select-host--invalid': this.isInvalid,
|
|
248
|
-
} }, h("div", { key: '
|
|
248
|
+
} }, h("div", { key: 'c6791c4a7d9f04c74186ef73a54e60a6fd9c0061', class: {
|
|
249
249
|
select: true,
|
|
250
250
|
[`select--${this.safeSize}`]: true,
|
|
251
251
|
'select--disabled': selectDisabled,
|
|
252
252
|
'select--focused': this.focused,
|
|
253
253
|
'select--invalid': this.isInvalid,
|
|
254
|
-
} }, labelText ? (h("label", { class: "select__label", part: "label", htmlFor: this.selectId }, h("span", null, labelText), this.required ? (h("span", { class: "select__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '
|
|
254
|
+
} }, labelText ? (h("label", { class: "select__label", part: "label", htmlFor: this.selectId }, h("span", null, labelText), this.required ? (h("span", { class: "select__required", "aria-hidden": "true" }, "*")) : null)) : null, h("div", { key: '0d82e0b4497ae4b7840bd873cef079ddac5c6b72', class: "select__field" }, h("select", { key: '4e29398fda698a0e1b0f178357c56a2c63aa6dfc', ref: (element) => {
|
|
255
255
|
this.selectElement = element;
|
|
256
|
-
}, id: this.selectId, class: "select__control", part: "control", required: this.required, disabled: selectDisabled, ...nativeSelectAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.options.map((node, index) => this.renderOption(node, index))), h("span", { key: '
|
|
256
|
+
}, id: this.selectId, class: "select__control", part: "control", required: this.required, disabled: selectDisabled, ...nativeSelectAttributes, onInput: this.handleInput, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.options.map((node, index) => this.renderOption(node, index))), h("span", { key: '0386dd0e8ac9ba6a824e9087df3ddb33ec1fefc2', class: "select__chevron", part: "chevron", "aria-hidden": "true" })), hintText ? (h("p", { class: "select__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "select__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
257
257
|
}
|
|
258
258
|
static get is() { return "au-select"; }
|
|
259
259
|
static get encapsulation() { return "shadow"; }
|
|
@@ -217,15 +217,15 @@ export class AuSlider {
|
|
|
217
217
|
'aria-describedby': this.descriptionIds,
|
|
218
218
|
'aria-valuetext': formatted ? formatted : undefined,
|
|
219
219
|
});
|
|
220
|
-
return (h(Host, { key: '
|
|
220
|
+
return (h(Host, { key: '3af341a80f2156043f60a881455ac37e819c5350', class: {
|
|
221
221
|
'slider-host--disabled': disabled,
|
|
222
222
|
'slider-host--invalid': this.isInvalid,
|
|
223
|
-
} }, h("div", { key: '
|
|
223
|
+
} }, h("div", { key: 'caaf6394be09f8527ff72478d3679a7293c6954e', class: {
|
|
224
224
|
slider: true,
|
|
225
225
|
[`slider--${orientation}`]: true,
|
|
226
226
|
'slider--disabled': disabled,
|
|
227
227
|
'slider--invalid': this.isInvalid,
|
|
228
|
-
} }, labelText || this.showValue ? (h("div", { class: "slider__header" }, labelText ? (h("label", { class: "slider__label", part: "label", htmlFor: this.inputId }, labelText)) : null, this.showValue ? (h("span", { class: "slider__value", part: "value", "aria-hidden": "true" }, valueText)) : null)) : null, h("div", { key: '
|
|
228
|
+
} }, labelText || this.showValue ? (h("div", { class: "slider__header" }, labelText ? (h("label", { class: "slider__label", part: "label", htmlFor: this.inputId }, labelText)) : null, this.showValue ? (h("span", { class: "slider__value", part: "value", "aria-hidden": "true" }, valueText)) : null)) : null, h("div", { key: 'ee0900e9e07879e2c1b25af558291abaa50c9e88', class: "slider__track-wrap" }, h("input", { key: '64c5276b4f488d5920c5a8f1db60da4f1537cf80', ref: (element) => {
|
|
229
229
|
this.inputElement = element;
|
|
230
230
|
if (!element)
|
|
231
231
|
return;
|
|
@@ -129,19 +129,19 @@ export class AuSwitch {
|
|
|
129
129
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
130
130
|
'aria-describedby': this.descriptionIds,
|
|
131
131
|
});
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '4986a8a1ca543e107da7949efa307113cff87714', class: {
|
|
133
133
|
'switch-host--disabled': this.isDisabled,
|
|
134
134
|
'switch-host--invalid': this.isInvalid,
|
|
135
|
-
} }, h("div", { key: '
|
|
135
|
+
} }, h("div", { key: 'b4685afda1ab303b7e859b15eab4474ea3038b58', class: {
|
|
136
136
|
switch: true,
|
|
137
137
|
'switch--checked': this.checked,
|
|
138
138
|
'switch--disabled': this.isDisabled,
|
|
139
139
|
'switch--invalid': this.isInvalid,
|
|
140
|
-
} }, h("label", { key: '
|
|
140
|
+
} }, h("label", { key: '82d61c4d8050875627631463c74061e21b02129d', class: "switch__label", part: "label" }, h("input", { key: 'c78c494a5e3beae2e1dcc194779519e01247ba10', ref: (element) => {
|
|
141
141
|
this.inputElement = element;
|
|
142
142
|
if (element && element.checked !== this.checked)
|
|
143
143
|
element.checked = this.checked;
|
|
144
|
-
}, id: this.switchId, class: "switch__control", part: "control", type: "checkbox", role: "switch", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: '
|
|
144
|
+
}, id: this.switchId, class: "switch__control", part: "control", type: "checkbox", role: "switch", checked: this.checked, required: this.required, disabled: this.isDisabled, ...nativeAttributes, onInput: this.handleInput, onChange: this.handleChange }), h("span", { key: '5d03f1208c81f04e545ce652133a9b2ad228ed45', class: "switch__track", part: "track", "aria-hidden": "true" }, h("span", { key: '336873aa45d649424ccd7bbb7c6644dbe9213062', class: "switch__thumb", part: "thumb", "aria-hidden": "true" })), h("span", { key: '82d7210ec03b2e04ea9e1850f5cbca09b011a30a', class: "switch__text", part: "text" }, h("slot", { key: '9023a1158a19815b43a72e74162c9fb9e4194313' }, labelText)), this.required ? (h("span", { class: "switch__required", "aria-hidden": "true" }, "*")) : null), hintText ? (h("p", { class: "switch__hint", id: this.hintId, part: "hint" }, hintText)) : null, errorText ? (h("p", { class: "switch__error", id: this.errorId, part: "error", "aria-live": "polite" }, errorText)) : null)));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "au-switch"; }
|
|
147
147
|
static get encapsulation() { return "shadow"; }
|
|
@@ -177,18 +177,18 @@ export class AuTextarea {
|
|
|
177
177
|
'aria-invalid': this.isInvalid ? 'true' : undefined,
|
|
178
178
|
'aria-describedby': this.descriptionIds,
|
|
179
179
|
});
|
|
180
|
-
return (h(Host, { key: '
|
|
180
|
+
return (h(Host, { key: '9929d10379e7d9b6428da28b6457c3bc41c53429', class: {
|
|
181
181
|
'textarea-host--disabled': textareaDisabled,
|
|
182
182
|
'textarea-host--invalid': this.isInvalid,
|
|
183
183
|
'textarea-host--readonly': this.readOnly,
|
|
184
|
-
} }, h("div", { key: '
|
|
184
|
+
} }, h("div", { key: '195423b1e4e9f186e01e55af368dd902081839a4', class: {
|
|
185
185
|
textarea: true,
|
|
186
186
|
[`textarea--${this.safeSize}`]: true,
|
|
187
187
|
'textarea--disabled': textareaDisabled,
|
|
188
188
|
'textarea--focused': this.focused,
|
|
189
189
|
'textarea--invalid': this.isInvalid,
|
|
190
190
|
'textarea--readonly': this.readOnly,
|
|
191
|
-
} }, labelText ? (h("label", { class: "textarea__label", part: "label", htmlFor: this.textareaId }, h("span", null, labelText), this.required ? (h("span", { class: "textarea__required", "aria-hidden": "true" }, "*")) : null)) : null, h("textarea", { key: '
|
|
191
|
+
} }, labelText ? (h("label", { class: "textarea__label", part: "label", htmlFor: this.textareaId }, h("span", null, labelText), this.required ? (h("span", { class: "textarea__required", "aria-hidden": "true" }, "*")) : null)) : null, h("textarea", { key: 'ea94e9815bddbbfe8aacadab0c788ae1068f762e', ref: (element) => {
|
|
192
192
|
this.textareaElement = element;
|
|
193
193
|
if (!element)
|
|
194
194
|
return;
|
|
@@ -22,7 +22,7 @@ export class AuContainer {
|
|
|
22
22
|
render() {
|
|
23
23
|
const gutterClass = toContainerSpacingClass(this.safeGutter);
|
|
24
24
|
const marginClass = toContainerSpacingClass(this.safeMargin);
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '521f81fd6be31554b5bc30290f59fc8359d21b0f', class: `container container--size-${this.safeSize} container--gutter-${gutterClass} container--margin-${marginClass}${this.centered ? ' container--centered' : ' container--start'}`, part: "container" }, h("slot", { key: 'ef5c4501f3664d887f59e1f917fe59e1d396fb64' })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "au-container"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -67,7 +67,7 @@ export class AuDivider {
|
|
|
67
67
|
...(labelled ? { 'aria-labelledby': LABEL_ID } : {}),
|
|
68
68
|
}
|
|
69
69
|
: {};
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '99b6380e6d998c314d3d97420883db05b682f0fb', ...(labelled ? { labelled: '' } : {}) }, h("div", { key: 'd2f518003b8dcc9dbb24a1ffb94d7d775eef7082', part: "base", class: "divider", ...baseAttributes }, h("span", { key: 'd4364aa76836585129f9c00a72db212462a30bcd', part: "line line-start", class: "line line--start", "aria-hidden": "true" }), h("span", { key: '3e75061a7313266c34be023352055d84cce30df5', part: "label", class: "label", id: LABEL_ID, hidden: !labelled }, h("slot", { key: '94d24e3d2ef655603f7ffb59e15f09c78498ea21', onSlotchange: this.syncLabel })), h("span", { key: '33b382f35dd82cf6dafc10d7617768fb634beea7', part: "line line-end", class: "line line--end", "aria-hidden": "true" }))));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "au-divider"; }
|
|
73
73
|
static get encapsulation() { return "shadow"; }
|
|
@@ -175,9 +175,9 @@ export class AuSplitter {
|
|
|
175
175
|
const separatorAttributes = this.disabled
|
|
176
176
|
? { 'aria-disabled': 'true' }
|
|
177
177
|
: { tabindex: '0' };
|
|
178
|
-
return (h(Host, { key: '
|
|
178
|
+
return (h(Host, { key: '983ad617dcebff258fe3690c3d6615379521a37e' }, h("div", { key: '6367c20784ee1990408a1c12e4829cd9fb09d55c', part: "base", class: "base", "data-dragging": this.dragging ? '' : undefined, style: { '--_aurora-splitter-start': `${value}%` }, ref: (element) => {
|
|
179
179
|
this.baseElement = element;
|
|
180
|
-
} }, h("div", { key: '
|
|
180
|
+
} }, h("div", { key: 'f0d80ab760c8d26d988700ea697f66a15afbd68c', part: "start", class: "pane pane--start", id: START_ID }, h("slot", { key: 'b813d5a0794bb8c922542714356b0cea0850dc70', name: "start" })), h("div", { key: '2592541654155cfccabee2660dceec3d6d20d9f6', part: "separator", class: "separator", role: "separator", "aria-orientation": orientation === SPLITTER_ORIENTATION.horizontal ? 'vertical' : 'horizontal', "aria-valuenow": String(Math.round(value)), "aria-valuemin": String(min), "aria-valuemax": String(max), "aria-controls": START_ID, "aria-label": label === '' ? SPLITTER_DEFAULT_LABEL : label, ...separatorAttributes, onKeyDown: this.handleKeyDown, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.endDrag, onPointerCancel: this.endDrag }), h("div", { key: 'cb1db61e78ada8d6acbda286ca850fbbb2d753d6', part: "end", class: "pane pane--end" }, h("slot", { key: 'f8cd2c712d462ff45cc30f05a665eeb86e138b12', name: "end" })))));
|
|
181
181
|
}
|
|
182
182
|
static get is() { return "au-splitter"; }
|
|
183
183
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,7 +58,7 @@ export class AuBreadcrumb {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
const label = this.label?.trim() || BREADCRUMB_DEFAULT_LABEL;
|
|
61
|
-
return (h("nav", { key: '
|
|
61
|
+
return (h("nav", { key: '868345a9015016c337224d491764ae8840bb6d2c', part: "nav", class: "breadcrumb", "aria-label": label }, h("ol", { key: '822bea9b13bcf2fd6489eae370e2df0c944452ed', part: "list", class: "breadcrumb__list" }, h("slot", { key: 'a1358a4ed6493eaacca55dc3b46bff183bbe7410', onSlotchange: this.handleSlotChange, ref: (element) => {
|
|
62
62
|
this.slotElement = element;
|
|
63
63
|
} }))));
|
|
64
64
|
}
|