@duetds/components 10.0.0-alpha.21 → 10.0.0-alpha.22
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/hydrate/index.js +687 -352
- package/hydrate/index.mjs +687 -352
- package/lib/cjs/{a11y-utils-qqRC-Gci.js → a11y-utils-DrU-H4zQ.js} +1 -1
- package/lib/cjs/{app-globals-B6AFACoz.js → app-globals-D7ZqN2ux.js} +1 -1
- package/lib/cjs/{common-strings-BhhnIQp3.js → common-strings-DQ3xONmA.js} +6 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-alert.cjs.entry.js +32 -9
- package/lib/cjs/duet-badge.cjs.entry.js +5 -5
- package/lib/cjs/duet-banner.cjs.entry.js +5 -5
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
- package/lib/cjs/duet-button_2.cjs.entry.js +14 -16
- package/lib/cjs/duet-callout.cjs.entry.js +6 -6
- package/lib/cjs/duet-caption_4.cjs.entry.js +21 -18
- package/lib/cjs/duet-card.cjs.entry.js +7 -7
- package/lib/cjs/duet-checkbox.cjs.entry.js +5 -5
- package/lib/cjs/duet-checkmark.cjs.entry.js +5 -5
- package/lib/cjs/duet-chip.cjs.entry.js +13 -6
- package/lib/cjs/duet-choice_2.cjs.entry.js +22 -16
- package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
- package/lib/cjs/duet-combobox.cjs.entry.js +5 -5
- package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +4 -4
- package/lib/cjs/duet-date-picker.cjs.entry.js +9 -9
- package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +70 -10
- package/lib/cjs/duet-empty-state.cjs.entry.js +5 -5
- package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +10 -10
- package/lib/cjs/duet-grid_2.cjs.entry.js +38 -9
- package/lib/cjs/duet-header_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-hero.cjs.entry.js +37 -11
- package/lib/cjs/duet-icon.cjs.entry.js +6 -6
- package/lib/cjs/duet-input_2.cjs.entry.js +14 -13
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +15 -6
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +9 -9
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +13 -13
- package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-number-input.cjs.entry.js +7 -7
- package/lib/cjs/duet-overlay.cjs.entry.js +4 -4
- package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
- package/lib/cjs/duet-phone-input.cjs.entry.js +17 -15
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +41 -13
- package/lib/cjs/duet-progress.cjs.entry.js +4 -4
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
- package/lib/cjs/duet-radio_2.cjs.entry.js +15 -9
- package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +10 -10
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
- package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
- package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
- package/lib/cjs/duet-slideout-link.cjs.entry.js +9 -9
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
- package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +22 -8
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
- package/lib/cjs/duet-textarea.cjs.entry.js +10 -10
- package/lib/cjs/duet-toggle.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +10 -10
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar.cjs.entry.js +5 -5
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
- package/lib/cjs/duet-tray.cjs.entry.js +6 -6
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-CWkNAdwZ.js → errorcodes.utils-BCVCTW73.js} +1 -1
- package/lib/cjs/{focus-utils-C1gNgKW5.js → focus-utils-B_auBCmH.js} +1 -1
- package/lib/cjs/{index-C-4fRZp1.js → index-DzIZlfK0.js} +9 -1
- package/lib/cjs/{label-BYZNaLK_.js → label-yz2T8WXb.js} +1 -1
- package/lib/cjs/{language-utils-DjPkoVoW.js → language-utils-KOz2utYq.js} +9 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{slot-utils-DYGV7vRF.js → slot-utils-DO9r1K5y.js} +1 -1
- package/lib/cjs/themeable-component-CwVP03Xh.js +23 -0
- package/lib/collection/collection-manifest.json +2 -0
- package/lib/collection/common/themeable-component.js +11 -3
- package/lib/collection/common-strings.js +5 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +15 -0
- package/lib/collection/components/duet-alert/duet-alert.js +28 -5
- package/lib/collection/components/duet-badge/duet-badge.css +12 -0
- package/lib/collection/components/duet-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.js +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +11 -0
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +61 -0
- package/lib/collection/components/duet-button/duet-button.js +5 -8
- package/lib/collection/components/duet-callout/duet-callout.css +5 -0
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.css +4 -0
- package/lib/collection/components/duet-caption/duet-caption.js +2 -2
- package/lib/collection/components/duet-card/duet-card.css +13 -0
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -0
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +2 -2
- package/lib/collection/components/duet-chip/duet-chip.css +25 -0
- package/lib/collection/components/duet-chip/duet-chip.js +10 -1
- package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.css +51 -0
- package/lib/collection/components/duet-choice/duet-choice.js +7 -7
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +11 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +8 -0
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
- package/lib/collection/components/duet-combobox/duet-combobox.css +7 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +4 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +9 -0
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +37 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
- package/lib/collection/components/duet-divider/duet-divider.css +4 -2
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +4 -0
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +4 -0
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.css +15 -0
- package/lib/collection/components/duet-footer/duet-footer.js +4 -4
- package/lib/collection/components/duet-grid/duet-grid.js +33 -4
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +4 -0
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.css +69 -0
- package/lib/collection/components/duet-heading/duet-heading.css +4 -0
- package/lib/collection/components/duet-heading/duet-heading.js +2 -2
- package/lib/collection/components/duet-hero/duet-hero.css +17 -0
- package/lib/collection/components/duet-hero/duet-hero.js +32 -6
- package/lib/collection/components/duet-icon/duet-icon.css +7 -0
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +61 -0
- package/lib/collection/components/duet-input/duet-input.js +7 -6
- package/lib/collection/components/duet-label/duet-label.css +4 -0
- package/lib/collection/components/duet-layout/duet-layout.js +5 -5
- package/lib/collection/components/duet-link/duet-link.css +74 -0
- package/lib/collection/components/duet-link/duet-link.js +10 -3
- package/lib/collection/components/duet-list/duet-list.js +1 -1
- package/lib/collection/components/duet-list-item/duet-list-item.css +20 -0
- package/lib/collection/components/duet-list-item/duet-list-item.js +38 -2
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +7 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +6 -0
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +13 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +15 -0
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +12 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.css +10 -2
- package/lib/collection/components/duet-modal/duet-modal.js +6 -6
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +30 -0
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.css +16 -0
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -0
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
- package/lib/collection/components/duet-number-input/duet-number-input.css +7 -0
- package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
- package/lib/collection/components/duet-overlay/duet-overlay.css +4 -0
- package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +27 -11
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
- package/lib/collection/components/duet-pagination/duet-pagination.css +4 -0
- package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +7 -0
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +13 -11
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +8 -0
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +30 -5
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +10 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +5 -2
- package/lib/collection/components/duet-progress/duet-progress.css +19 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
- package/lib/collection/components/duet-radio/duet-radio.css +20 -0
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +10 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +40 -0
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -0
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +7 -0
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.css +33 -0
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +142 -0
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
- package/lib/collection/components/duet-show-more/duet-show-more.css +4 -0
- package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +28 -0
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +4 -0
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +10 -0
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +20 -0
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +13 -0
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
- package/lib/collection/components/duet-spinner/duet-spinner.css +3 -0
- package/lib/collection/components/duet-spinner/duet-spinner.js +3 -5
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.css +13 -0
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +24 -6
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +14 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +31 -0
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +18 -0
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +20 -0
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +22 -0
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +31 -0
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table-styles.js +60 -0
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.css +29 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -5
- package/lib/collection/components/duet-toggle/duet-toggle.css +11 -0
- package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +7 -0
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +21 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +10 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +25 -0
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +24 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +7 -0
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +25 -0
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
- package/lib/collection/components/duet-tray/duet-tray.css +12 -0
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +2 -2
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/language-utils.js +7 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-fde72aa3.entry.js → p-021ca010.entry.js} +1 -1
- package/lib/duet/p-11a0b4b1.entry.js +4 -0
- package/lib/duet/p-1289085f.entry.js +4 -0
- package/lib/duet/{p-547e30c3.entry.js → p-128fac38.entry.js} +1 -1
- package/lib/duet/{p-2df8b608.entry.js → p-15aeca04.entry.js} +1 -1
- package/lib/duet/p-16e1210a.entry.js +4 -0
- package/lib/duet/p-19163909.entry.js +4 -0
- package/lib/duet/p-1a79adf4.entry.js +4 -0
- package/lib/duet/p-1cb5a9ef.entry.js +4 -0
- package/lib/duet/p-2100f112.entry.js +4 -0
- package/lib/duet/p-249e9a88.entry.js +4 -0
- package/lib/duet/{p-5964d490.entry.js → p-2ae3f776.entry.js} +1 -1
- package/lib/duet/p-2f60185b.entry.js +4 -0
- package/lib/duet/{p-9f48a30c.entry.js → p-306c2a29.entry.js} +1 -1
- package/lib/duet/{p-d064dd2d.entry.js → p-3569fb01.entry.js} +1 -1
- package/lib/duet/{p-294adde1.entry.js → p-38440fec.entry.js} +1 -1
- package/lib/duet/{p-e0fcc26a.entry.js → p-3d998041.entry.js} +1 -1
- package/lib/duet/{p-d74bb3b4.entry.js → p-3ea1b697.entry.js} +1 -1
- package/lib/duet/p-41438696.entry.js +4 -0
- package/lib/duet/{p-4ec38183.entry.js → p-426ad459.entry.js} +1 -1
- package/lib/duet/p-428ea355.entry.js +4 -0
- package/lib/duet/p-44e3dd4d.entry.js +4 -0
- package/lib/duet/p-4d4c8e31.entry.js +4 -0
- package/lib/duet/{p-722eb4b8.entry.js → p-4f832459.entry.js} +1 -1
- package/lib/duet/p-508242df.entry.js +4 -0
- package/lib/duet/{p-2661240f.entry.js → p-50868a2f.entry.js} +1 -1
- package/lib/duet/{p-23adcf71.entry.js → p-50b61aab.entry.js} +1 -1
- package/lib/duet/{p-0fb24b59.entry.js → p-5b65fbef.entry.js} +1 -1
- package/lib/duet/p-631e6aaa.entry.js +4 -0
- package/lib/duet/p-6802cdc6.entry.js +4 -0
- package/lib/duet/p-680e5ae3.entry.js +4 -0
- package/lib/duet/{p-d195712b.entry.js → p-6fc62f6a.entry.js} +1 -1
- package/lib/duet/{p-1b3b9ed6.entry.js → p-749947e9.entry.js} +1 -1
- package/lib/duet/{p-7189e720.entry.js → p-753047f7.entry.js} +1 -1
- package/lib/duet/p-765d5aa1.entry.js +4 -0
- package/lib/duet/p-767a1f6f.entry.js +4 -0
- package/lib/duet/p-77fc84fa.entry.js +4 -0
- package/lib/duet/{p-958a2b42.entry.js → p-7956a7c7.entry.js} +1 -1
- package/lib/duet/{p-f865dcfc.entry.js → p-7b72e97e.entry.js} +1 -1
- package/lib/duet/{p-008beeb0.entry.js → p-7f0336e3.entry.js} +1 -1
- package/lib/duet/p-7f79795b.entry.js +4 -0
- package/lib/duet/p-7yB0WcN3.js +4 -0
- package/lib/duet/{p-a24fff3c.entry.js → p-82ef56e8.entry.js} +1 -1
- package/lib/duet/{p-595b2f3b.entry.js → p-876556b5.entry.js} +1 -1
- package/lib/duet/{p-90c43d96.entry.js → p-8c3ef65c.entry.js} +1 -1
- package/lib/duet/{p-72a4ada8.entry.js → p-8ce7295a.entry.js} +1 -1
- package/lib/duet/{p-8c02d2af.entry.js → p-8ee4cced.entry.js} +1 -1
- package/lib/duet/p-90ec955a.entry.js +4 -0
- package/lib/duet/{p-155586a6.entry.js → p-92f6867e.entry.js} +1 -1
- package/lib/duet/{p-f110c4fb.entry.js → p-9c70db83.entry.js} +1 -1
- package/lib/duet/p-9d32216e.entry.js +4 -0
- package/lib/duet/{p-Djr45qSY.js → p-BMR0um0_.js} +1 -1
- package/lib/duet/p-BZd_-P-l.js +4 -0
- package/lib/duet/{p-CCVcVc3m.js → p-Bj5nqN_-.js} +1 -1
- package/lib/duet/p-BplvOJkj.js +4 -0
- package/lib/duet/p-Bx_o402c.js +4 -0
- package/lib/duet/p-CR50RA9g.js +4 -0
- package/lib/duet/p-MxsWrBCY.js +4 -0
- package/lib/duet/p-a11936dc.entry.js +4 -0
- package/lib/duet/{p-580d558b.entry.js → p-a1faa55d.entry.js} +1 -1
- package/lib/duet/{p-068cfada.entry.js → p-a2cb4c57.entry.js} +1 -1
- package/lib/duet/p-a68727d5.entry.js +4 -0
- package/lib/duet/{p-6b17cd4a.entry.js → p-a79f3799.entry.js} +1 -1
- package/lib/duet/{p-abe188c7.entry.js → p-a898b6ce.entry.js} +1 -1
- package/lib/duet/{p-1326964d.entry.js → p-a8ffe18b.entry.js} +1 -1
- package/lib/duet/p-abda6219.entry.js +4 -0
- package/lib/duet/{p-3ae06437.entry.js → p-adb5edf1.entry.js} +1 -1
- package/lib/duet/p-b38ff647.entry.js +4 -0
- package/lib/duet/{p-3381e3e2.entry.js → p-b43b56f9.entry.js} +1 -1
- package/lib/duet/{p-0e78737d.entry.js → p-b562dcda.entry.js} +1 -1
- package/lib/duet/p-bc970f09.entry.js +4 -0
- package/lib/duet/{p-e232c7ad.entry.js → p-c07676bf.entry.js} +1 -1
- package/lib/duet/{p-ed9b30ed.entry.js → p-c3c96ccd.entry.js} +1 -1
- package/lib/duet/p-ca59f39e.entry.js +4 -0
- package/lib/duet/p-cafcfc6c.entry.js +4 -0
- package/lib/duet/{p-96e70d5b.entry.js → p-cb194f7f.entry.js} +1 -1
- package/lib/duet/{p-91e669ab.entry.js → p-cc3d91af.entry.js} +1 -1
- package/lib/duet/p-ce23a866.entry.js +4 -0
- package/lib/duet/{p-2f30e410.entry.js → p-d1885308.entry.js} +1 -1
- package/lib/duet/{p-08affd1f.entry.js → p-d297f286.entry.js} +1 -1
- package/lib/duet/p-da53b233.entry.js +4 -0
- package/lib/duet/p-de702a7f.entry.js +4 -0
- package/lib/duet/{p-909352a9.entry.js → p-dfa128fd.entry.js} +1 -1
- package/lib/duet/{p-66693593.entry.js → p-e8a2db32.entry.js} +1 -1
- package/lib/duet/{p-2c420105.entry.js → p-eab99c65.entry.js} +1 -1
- package/lib/duet/{p-42621b5c.entry.js → p-edd118cc.entry.js} +1 -1
- package/lib/duet/p-f3c7655e.entry.js +4 -0
- package/lib/duet/p-f3e4bc4f.entry.js +4 -0
- package/lib/duet/{p-d7990dff.entry.js → p-f4f9c5ff.entry.js} +1 -1
- package/lib/duet/p-fb1b5d61.entry.js +4 -0
- package/lib/duet/{p-62c46ebb.entry.js → p-fbd2c394.entry.js} +1 -1
- package/lib/duet/p-fdcf696e.entry.js +4 -0
- package/lib/duet/p-o7bk2K5K.js +4 -0
- package/lib/duet/{p-BAFwjrjc.js → p-qQBlrLa4.js} +1 -1
- package/lib/esm/{a11y-utils-CQOH3qGQ.js → a11y-utils-DGj9K5Th.js} +1 -1
- package/lib/esm/{app-globals-D3VunZ8x.js → app-globals-_OR3Nu1D.js} +1 -1
- package/lib/esm/{common-strings-D6YBFNe9.js → common-strings-MxsWrBCY.js} +6 -1
- package/lib/esm/duet-action-button.entry.js +4 -4
- package/lib/esm/duet-alert.entry.js +32 -9
- package/lib/esm/duet-badge.entry.js +5 -5
- package/lib/esm/duet-banner.entry.js +5 -5
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +6 -6
- package/lib/esm/duet-button_2.entry.js +14 -16
- package/lib/esm/duet-callout.entry.js +6 -6
- package/lib/esm/duet-caption_4.entry.js +21 -18
- package/lib/esm/duet-card.entry.js +7 -7
- package/lib/esm/duet-checkbox.entry.js +5 -5
- package/lib/esm/duet-checkmark.entry.js +5 -5
- package/lib/esm/duet-chip.entry.js +13 -6
- package/lib/esm/duet-choice_2.entry.js +22 -16
- package/lib/esm/duet-collapsible.entry.js +6 -6
- package/lib/esm/duet-combobox.entry.js +5 -5
- package/lib/esm/duet-contact-card.entry.js +6 -6
- package/lib/esm/duet-cookie-consent.entry.js +4 -4
- package/lib/esm/duet-date-picker.entry.js +9 -9
- package/lib/esm/duet-divider_2.entry.js +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +70 -10
- package/lib/esm/duet-empty-state.entry.js +5 -5
- package/lib/esm/duet-fieldset.entry.js +7 -7
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +10 -10
- package/lib/esm/duet-grid_2.entry.js +38 -9
- package/lib/esm/duet-header_2.entry.js +6 -6
- package/lib/esm/duet-hero.entry.js +37 -11
- package/lib/esm/duet-icon.entry.js +6 -6
- package/lib/esm/duet-input_2.entry.js +14 -13
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +15 -6
- package/lib/esm/duet-menu-bar-button.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-menu-bar-item.entry.js +9 -9
- package/lib/esm/duet-menu-bar-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +13 -13
- package/lib/esm/duet-multiselect.entry.js +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +9 -9
- package/lib/esm/duet-number-input.entry.js +7 -7
- package/lib/esm/duet-overlay.entry.js +4 -4
- package/lib/esm/duet-page-heading.entry.js +5 -5
- package/lib/esm/duet-pagination_2.entry.js +18 -18
- package/lib/esm/duet-phone-input.entry.js +17 -15
- package/lib/esm/duet-popup-menu_2.entry.js +41 -13
- package/lib/esm/duet-progress.entry.js +4 -4
- package/lib/esm/duet-promo-card.entry.js +5 -5
- package/lib/esm/duet-radio_2.entry.js +15 -9
- package/lib/esm/duet-range-slider.entry.js +7 -7
- package/lib/esm/duet-scrollable_3.entry.js +17 -17
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +10 -10
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +20 -0
- package/lib/esm/duet-share-chart.entry.js +83 -0
- package/lib/esm/duet-show-more.entry.js +6 -6
- package/lib/esm/duet-slideout-lang.entry.js +5 -5
- package/lib/esm/duet-slideout-link.entry.js +9 -9
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
- package/lib/esm/duet-slideout-panel.entry.js +12 -12
- package/lib/esm/duet-slideout.entry.js +10 -10
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +22 -8
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +8 -8
- package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar.entry.js +8 -8
- package/lib/esm/duet-textarea.entry.js +10 -10
- package/lib/esm/duet-toggle.entry.js +7 -7
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
- package/lib/esm/duet-toolbar-item.entry.js +10 -10
- package/lib/esm/duet-toolbar-link.entry.js +5 -5
- package/lib/esm/duet-toolbar.entry.js +5 -5
- package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
- package/lib/esm/duet-tooltip.entry.js +4 -4
- package/lib/esm/duet-tray.entry.js +6 -6
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils--4tOXPNI.js → errorcodes.utils-BGfLijBB.js} +1 -1
- package/lib/esm/{focus-utils-CUvuUZuo.js → focus-utils-ugQsYlwO.js} +1 -1
- package/lib/esm/{index-Djr45qSY.js → index-BMR0um0_.js} +9 -1
- package/lib/esm/{label-DoZNNWYj.js → label-DqBJopZl.js} +1 -1
- package/lib/esm/{language-utils-BCnFs8Da.js → language-utils-CETcDBuc.js} +9 -2
- package/lib/esm/loader.js +4 -4
- package/lib/esm/{slot-utils-CSLPO69o.js → slot-utils-Bt-G2UeG.js} +2 -2
- package/lib/esm/themeable-component-CR50RA9g.js +21 -0
- package/lib/types/common-strings.d.ts +1 -0
- package/lib/types/common-types.d.ts +1 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +1 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
- package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +0 -1
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +1 -0
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
- package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
- package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +36 -0
- package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
- package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -0
- package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
- package/lib/types/components.d.ts +78 -4
- package/lib/types/utils/language-utils.d.ts +1 -0
- package/package.json +3 -3
- package/lib/cjs/themeable-component-C57DSx5w.js +0 -15
- package/lib/duet/p-0239abf5.entry.js +0 -4
- package/lib/duet/p-088001ee.entry.js +0 -4
- package/lib/duet/p-214a4675.entry.js +0 -4
- package/lib/duet/p-22773cce.entry.js +0 -4
- package/lib/duet/p-27fbdb67.entry.js +0 -4
- package/lib/duet/p-2b3219a7.entry.js +0 -4
- package/lib/duet/p-412ef68f.entry.js +0 -4
- package/lib/duet/p-47597304.entry.js +0 -4
- package/lib/duet/p-4a791521.entry.js +0 -4
- package/lib/duet/p-4f750925.entry.js +0 -4
- package/lib/duet/p-50d0ff41.entry.js +0 -4
- package/lib/duet/p-56574361.entry.js +0 -4
- package/lib/duet/p-60eb6013.entry.js +0 -4
- package/lib/duet/p-6fe83dd7.entry.js +0 -4
- package/lib/duet/p-75db52e4.entry.js +0 -4
- package/lib/duet/p-77d68685.entry.js +0 -4
- package/lib/duet/p-8974c058.entry.js +0 -4
- package/lib/duet/p-8d5e5316.entry.js +0 -4
- package/lib/duet/p-9302dba5.entry.js +0 -4
- package/lib/duet/p-948f9054.entry.js +0 -4
- package/lib/duet/p-98f1ee13.entry.js +0 -4
- package/lib/duet/p-9f2785ce.entry.js +0 -4
- package/lib/duet/p-CDAA0sDY.js +0 -4
- package/lib/duet/p-CO8vqpmW.js +0 -4
- package/lib/duet/p-D6YBFNe9.js +0 -4
- package/lib/duet/p-DX5mWLkB.js +0 -4
- package/lib/duet/p-FCSGJbLJ.js +0 -4
- package/lib/duet/p-WhCDf9tt.js +0 -4
- package/lib/duet/p-a47e139c.entry.js +0 -4
- package/lib/duet/p-b0dc7df5.entry.js +0 -4
- package/lib/duet/p-cb60a521.entry.js +0 -4
- package/lib/duet/p-cebee4a6.entry.js +0 -4
- package/lib/duet/p-d2402c02.entry.js +0 -4
- package/lib/duet/p-d56c1db9.entry.js +0 -4
- package/lib/duet/p-d60c71fc.entry.js +0 -4
- package/lib/duet/p-de5e4a26.entry.js +0 -4
- package/lib/duet/p-e8718555.entry.js +0 -4
- package/lib/duet/p-f383ccca.entry.js +0 -4
- package/lib/duet/p-f593a703.entry.js +0 -4
- package/lib/duet/p-fa355e38.entry.js +0 -4
- package/lib/duet/p-fc83b2e2.entry.js +0 -4
- package/lib/duet/p-k-CbGkPp.js +0 -4
- package/lib/esm/themeable-component-WhCDf9tt.js +0 -13
|
@@ -156,13 +156,13 @@ export class DuetRangeSlider {
|
|
|
156
156
|
const rangeStyles = {
|
|
157
157
|
background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
|
|
158
158
|
};
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: 'fca0c61d3288da56d73529c73457f63a78df6b26', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: '64c191339324cf735bd837bcfb3b05203ee256b7', class: {
|
|
160
160
|
"duet-range-container": true,
|
|
161
161
|
"duet-label-hidden": this.labelHidden,
|
|
162
162
|
"duet-theme-turva": this.theme === "turva",
|
|
163
163
|
"duet-ie": isInternetExplorer(),
|
|
164
164
|
"duet-range-disabled": this.disabled,
|
|
165
|
-
} }, h(DuetInternalLabel, { key: '
|
|
165
|
+
} }, h(DuetInternalLabel, { key: 'f2e5cb43789c7385f46987f31e59d01d0e0cbe77', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: 'a0becf96bebb8b1762f3236046eb3083083034cd', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("input", { key: '6108673d85c857d9b95cd5de00eb0a7b261afc75', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "duet-range-slider"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,10 +196,10 @@ export class DuetRangeStepper {
|
|
|
196
196
|
* Always the last one in the class.
|
|
197
197
|
*/
|
|
198
198
|
render() {
|
|
199
|
-
return (h("div", { key: '
|
|
199
|
+
return (h("div", { key: '39ffc4c324f8b610879fb7ed01aaaf4263b970c3', class: {
|
|
200
200
|
"duet-range-stepper": true,
|
|
201
201
|
"duet-theme-turva": this.theme === "turva",
|
|
202
|
-
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '
|
|
202
|
+
}, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '2ea4499bc567d644530b625eec22d91b0bf5226d', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("duet-action-button", { key: 'e0613ae54e7134000a06bd0329af05c42d8fc521', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), h("duet-action-button", { key: 'fbd6d9a4acda0fa78642b8af959dd361dd280f15', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "duet-range-stepper"; }
|
|
205
205
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,4 +208,11 @@
|
|
|
208
208
|
transition: transform 0.2s ease-in-out;
|
|
209
209
|
transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
|
|
210
210
|
scroll-snap-align: center;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover {
|
|
214
|
+
border-color: rgb(244, 213, 193);
|
|
215
|
+
}
|
|
216
|
+
:host(.duet-theme-turva2) .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover {
|
|
217
|
+
border-color: rgb(244, 213, 193);
|
|
211
218
|
}
|
|
@@ -265,18 +265,18 @@ export class DuetScrollable {
|
|
|
265
265
|
* Always the last one in the class.
|
|
266
266
|
*/
|
|
267
267
|
render() {
|
|
268
|
-
return (h(Host, { key: '
|
|
268
|
+
return (h(Host, { key: '9b73fe51d20fba362851dced55d9e1f87c8ad44a', class: {
|
|
269
269
|
"duet-theme-turva": this.theme === "turva",
|
|
270
270
|
"duet-theme-default": this.theme === "default",
|
|
271
|
-
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: '
|
|
271
|
+
} }, this.hasCollapseButtonLabelSlot && (h("div", { key: 'f1f3da5e12482c842edd6167db704220985491da', class: {
|
|
272
272
|
collapse: true,
|
|
273
273
|
hide: !this.needsScrolling && !this.collapsed,
|
|
274
|
-
} }, h("duet-button", { key: '
|
|
274
|
+
} }, h("duet-button", { key: '12d843aa10a260c33b84d71b84e73a500caab348', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: '4ad5eb7b1e7d625ca1f349f993620c8983b4c63a', name: "collapse-button-label" })))), h("div", { key: '3a72bd55510a6560596aa04971d8e5c476fd2e7c', class: {
|
|
275
275
|
"duet-scrollable-items": true,
|
|
276
276
|
buttons: this.buttons,
|
|
277
277
|
center: this.center,
|
|
278
278
|
"duet-theme-turva": this.theme === "turva",
|
|
279
|
-
} }, this.buttons && this.renderButton("left"), h("div", { key: '
|
|
279
|
+
} }, this.buttons && this.renderButton("left"), h("div", { key: 'a346ac45470e0430bd3eb56e277cc8981490d13b', class: {
|
|
280
280
|
"duet-scrollable-list": true,
|
|
281
281
|
[`duet-scrollable-list--${this.buttonPosition}`]: true,
|
|
282
282
|
[`gap-${this.gap}`]: true,
|
|
@@ -284,7 +284,7 @@ export class DuetScrollable {
|
|
|
284
284
|
[`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
|
|
285
285
|
[`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
|
|
286
286
|
"duet-scrollable-stretch": this.stretch,
|
|
287
|
-
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: '
|
|
287
|
+
}, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: 'f28675757450449fd5ab3dd6c9dc7fd9b77a887c' })), this.buttons && this.renderButton("right"))));
|
|
288
288
|
}
|
|
289
289
|
static get is() { return "duet-scrollable"; }
|
|
290
290
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,13 +24,13 @@ export class DuetSectionLayout {
|
|
|
24
24
|
* Always the last one in the class.
|
|
25
25
|
*/
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '6de257513172547ac3127aae4897d23e1d232ab0', class: {
|
|
28
28
|
"duet-middle": this.middle,
|
|
29
29
|
"duet-ie": isInternetExplorer(),
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: '162b80b3878f2da062f7f95e883e297e006cf62a', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, h("div", { key: '6a790a124425ee7c8851b6e805c752eb0702ecb1', class: {
|
|
31
31
|
"duet-layout": true,
|
|
32
32
|
[`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
|
|
33
|
-
} }, h("section", { key: '
|
|
33
|
+
} }, h("section", { key: '4bd2cec88d4ce18d7f1033a2424f231968838d71', class: "duet-main" }, h("slot", { key: '701a5cdb76890ac29a419e178b33ab849d78b508' }))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "duet-section-layout"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -382,4 +382,37 @@ duet-tooltip,
|
|
|
382
382
|
overflow: hidden;
|
|
383
383
|
clip: rect(0 0 0 0);
|
|
384
384
|
border: 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-placeholder {
|
|
388
|
+
background: rgb(248, 229, 217);
|
|
389
|
+
}
|
|
390
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:hover + .duet-select {
|
|
391
|
+
border-color: rgb(244, 213, 193);
|
|
392
|
+
}
|
|
393
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus + .duet-select {
|
|
394
|
+
border-color: rgb(35, 46, 61);
|
|
395
|
+
}
|
|
396
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus + .duet-select .duet-select-icon {
|
|
397
|
+
color: rgb(35, 46, 61);
|
|
398
|
+
}
|
|
399
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select[disabled] + .duet-select {
|
|
400
|
+
color: rgb(35, 46, 61) !important;
|
|
401
|
+
background: rgb(253, 247, 242) !important;
|
|
402
|
+
border-color: rgb(253, 247, 242) !important;
|
|
403
|
+
-webkit-text-fill-color: rgb(35, 46, 61) !important;
|
|
404
|
+
}
|
|
405
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select {
|
|
406
|
+
color: rgb(35, 46, 61);
|
|
407
|
+
background: rgb(255, 255, 255); /* unchanged unless you want a Turva2 token */
|
|
408
|
+
border-color: rgb(244, 213, 193);
|
|
409
|
+
}
|
|
410
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select svg {
|
|
411
|
+
color: rgb(35, 46, 61);
|
|
412
|
+
}
|
|
413
|
+
:host(.duet-theme-turva2) .duet-theme-turva.has-error .duet-select {
|
|
414
|
+
border-color: rgb(214, 28, 82) !important;
|
|
415
|
+
}
|
|
416
|
+
:host(.duet-theme-turva2) .duet-theme-turva .duet-select-help {
|
|
417
|
+
color: rgb(244, 213, 193);
|
|
385
418
|
}
|
|
@@ -200,23 +200,23 @@ export class DuetSelect {
|
|
|
200
200
|
*/
|
|
201
201
|
render() {
|
|
202
202
|
const identifier = this.identifier || this.selectId;
|
|
203
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'cee7a0483220ecb054516922696bea8f3566e16e', onClick: this.onClick, class: {
|
|
204
204
|
"duet-m-0": this.margin === "none",
|
|
205
205
|
"duet-expand": this.expand,
|
|
206
206
|
[`duet-select-variation-${this.variation}`]: true,
|
|
207
|
-
} }, h("div", { key: '
|
|
207
|
+
} }, h("div", { key: 'f267d7f36626adc44d29cba18b60f717cff3cac1', class: {
|
|
208
208
|
"duet-select-container": true,
|
|
209
209
|
"duet-label-hidden": this.labelHidden,
|
|
210
210
|
"duet-theme-turva": this.theme === "turva",
|
|
211
211
|
[`duet-select-variation-${this.variation}`]: true,
|
|
212
212
|
"duet-input-top-caption-shown": this.isCaptionVisible,
|
|
213
213
|
"has-error": !!this.error,
|
|
214
|
-
} }, h(DuetInternalLabel, { key: '
|
|
214
|
+
} }, h(DuetInternalLabel, { key: 'dd7ca5dec1b2de6ae4212356c91ee10b61589921', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: '87fe5ca8e117bcce9d95e4dd671315b2d919553e', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: 'ac112e24deab401fbecdaeac85abc4a4fe610898', name: "tooltip" }), this.caption && (h("duet-caption", { key: '5238f512e4d7b8d24765c0a03791615762621e39', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: '977e09a6d9edbe28f371a7b008696524cfe443a4', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'fdc4d06a6de42770c12b21a1652f0bae51cf1cc2', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: '378fcfd46c3d512884b3fa935e39676b523d1a08' }), h("select", { key: '3e24a10d59ec07522bddc3808695aabab5abb097', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (h("option", { key: '859e86a0dea68cb4da7588130b572e7c378368a1', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
215
215
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
216
|
-
}))), h("div", { key: '
|
|
216
|
+
}))), h("div", { key: '9e7ed1fa9404cb96990665e963474a5483dd1efd', class: {
|
|
217
217
|
"duet-select": true,
|
|
218
218
|
[`duet-select-variation-${this.variation}`]: true,
|
|
219
|
-
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '
|
|
219
|
+
}, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '4f2ec9d40e57c9c5d81e14e2ce311c2b3714cbc9', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '62569ac4e1cf6428809163495d81a5666b8204d8', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (h("duet-icon", { key: '14076b6de2956bbd8b56c2bad3b8de6ec0f571d0', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: '2f930786471092de2ed9cc231e7bdeb30ba05940', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: '8ee87497d78be2b13e5abb2f9531dd48600f2c72', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: '59ffb4f9118c79dff0a38d063ed841f2177bd662' }, this.error)))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "duet-select"; }
|
|
222
222
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,9 +33,9 @@ export class DuetShapedImage {
|
|
|
33
33
|
const style = {
|
|
34
34
|
"--rotation": `${this.rotation}deg`,
|
|
35
35
|
};
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '81cb42f6d5d476c90fd596286ac1d08ec3fd691b', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, h("span", { key: '3b6ed786402f59520017f12fe1e920828e4973a7', class: {
|
|
37
37
|
"shaped-image": true,
|
|
38
|
-
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '
|
|
38
|
+
}, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '3f70c4449ad67e77227d59eb853ef0261b51712b', class: "shaped-image-mask", role: "presentation" }, h("span", { key: '673b893d5f6763ec1579b2ec568bba4f856b4a22', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "duet-shaped-image"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.duet-share-chart-horizontal-bar {
|
|
26
|
+
height: 16px;
|
|
27
|
+
margin-bottom: 20px;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
}
|
|
30
|
+
.duet-share-chart-horizontal-bar .duet-share-chart-share {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
height: 16px;
|
|
34
|
+
border-color: rgb(255, 255, 255);
|
|
35
|
+
border-style: solid;
|
|
36
|
+
border-width: 0 1px;
|
|
37
|
+
}
|
|
38
|
+
.duet-share-chart-horizontal-bar .duet-share-chart-share:first-child {
|
|
39
|
+
border-left-width: 0;
|
|
40
|
+
border-radius: 4px 0 0 4px;
|
|
41
|
+
}
|
|
42
|
+
.duet-share-chart-horizontal-bar .duet-share-chart-share:last-child {
|
|
43
|
+
border-right-width: 0;
|
|
44
|
+
border-radius: 0 4px 4px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.duet-share-chart-item-list {
|
|
48
|
+
padding: 0 4px;
|
|
49
|
+
margin: 0;
|
|
50
|
+
list-style: none;
|
|
51
|
+
}
|
|
52
|
+
.duet-share-chart-item-list li {
|
|
53
|
+
display: flex;
|
|
54
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
55
|
+
font-size: 1rem;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-variant-numeric: tabular-nums;
|
|
59
|
+
color: rgb(8, 42, 77);
|
|
60
|
+
}
|
|
61
|
+
.duet-share-chart-item-list li.duet-theme-turva {
|
|
62
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
63
|
+
color: rgb(23, 28, 58);
|
|
64
|
+
}
|
|
65
|
+
.duet-share-chart-item-list span {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
}
|
|
68
|
+
.duet-share-chart-item-list .duet-share-chart-item-color {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
width: 12px;
|
|
71
|
+
height: 12px;
|
|
72
|
+
margin-top: calc((1.5rem - 12px) / 2);
|
|
73
|
+
margin-right: 12px;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
}
|
|
76
|
+
.duet-share-chart-item-list .duet-share-chart-item-value {
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host(.duet-theme-turva2) .duet-share-chart-item-list li.duet-theme-turva {
|
|
81
|
+
color: rgb(35, 46, 61);
|
|
82
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Build, h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common";
|
|
6
|
+
import { getElementsFromDefaultSlot } from "../../utils/slot-utils";
|
|
7
|
+
import { getColorByName } from "../../utils/token-utils";
|
|
8
|
+
export class DuetShareChart {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.defaultColors = [
|
|
11
|
+
"lt-blue-800",
|
|
12
|
+
"lt-blue-600",
|
|
13
|
+
"success-600",
|
|
14
|
+
"success-800",
|
|
15
|
+
"warning-600",
|
|
16
|
+
"danger-600",
|
|
17
|
+
"danger-800",
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Theme of the component.
|
|
21
|
+
*/
|
|
22
|
+
this.theme = "";
|
|
23
|
+
/**
|
|
24
|
+
* The string to show after each items value. When using "%" the enclosed items' values should add up to 100.
|
|
25
|
+
*/
|
|
26
|
+
this.unit = "%";
|
|
27
|
+
/**
|
|
28
|
+
* Local methods
|
|
29
|
+
*/
|
|
30
|
+
this.colorPickCount = 0;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Component lifecycle events.
|
|
34
|
+
*/
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
inheritGlobalTheme(this);
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
if (!Build.isServer) {
|
|
40
|
+
this.childObserver = new MutationObserver(this.updateChartItems.bind(this));
|
|
41
|
+
this.childObserver.observe(this.element, { childList: true });
|
|
42
|
+
}
|
|
43
|
+
this.updateChartItems();
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
if (this.childObserver) {
|
|
47
|
+
this.childObserver.disconnect();
|
|
48
|
+
this.childObserver = undefined;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
pickColor() {
|
|
52
|
+
const color = this.defaultColors[this.colorPickCount];
|
|
53
|
+
this.colorPickCount += 1;
|
|
54
|
+
if (this.colorPickCount > this.defaultColors.length - 1) {
|
|
55
|
+
this.colorPickCount = 0;
|
|
56
|
+
}
|
|
57
|
+
return color;
|
|
58
|
+
}
|
|
59
|
+
updateChartItems() {
|
|
60
|
+
const children = getElementsFromDefaultSlot(this.element).filter(el => el.tagName.toLocaleLowerCase() === "duet-share-chart-item");
|
|
61
|
+
this.items = children.map(child => ({
|
|
62
|
+
text: child.innerText,
|
|
63
|
+
value: child.value,
|
|
64
|
+
color: child.color || this.pickColor(),
|
|
65
|
+
}));
|
|
66
|
+
this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return (h(Host, { key: 'e27a89ca1b9bf4a1ae16f9848aaa24ad314aabfb' }, h("div", { key: 'e12eced2ec3c3d7adb8373b3d7761ca8ca5cff8e', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items.map(item => (h("span", { class: "duet-share-chart-share", style: {
|
|
70
|
+
width: `${(item.value / this.itemsTotalValue) * 100}%`,
|
|
71
|
+
backgroundColor: getColorByName(item.color, this.theme),
|
|
72
|
+
} })))), h("ul", { key: '018a3d26bb0f43ef5b9ff8787a5912ffbd5c86a2', class: "duet-share-chart-item-list" }, this.items.map(item => (h("li", { class: { "duet-theme-turva": this.theme === "turva" } }, h("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), h("span", { class: "duet-share-chart-item-text" }, item.text, ":"), h("span", { class: "duet-share-chart-item-value" }, "\u00A0", item.value, "\u00A0", this.unit), this.unit !== "%" && (h("duet-visually-hidden", null, `${(item.value / this.itemsTotalValue) * 100}%`)))))), h("slot", { key: '55ae378193e7583ebf2afbaf11135d3103ba98bf' })));
|
|
73
|
+
}
|
|
74
|
+
static get is() { return "duet-share-chart"; }
|
|
75
|
+
static get encapsulation() { return "shadow"; }
|
|
76
|
+
static get originalStyleUrls() {
|
|
77
|
+
return {
|
|
78
|
+
"$": ["duet-share-chart.scss"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get styleUrls() {
|
|
82
|
+
return {
|
|
83
|
+
"$": ["duet-share-chart.css"]
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static get properties() {
|
|
87
|
+
return {
|
|
88
|
+
"theme": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"attribute": "theme",
|
|
91
|
+
"mutable": true,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "DuetTheme",
|
|
94
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
95
|
+
"references": {
|
|
96
|
+
"DuetTheme": {
|
|
97
|
+
"location": "import",
|
|
98
|
+
"path": "../../common-types",
|
|
99
|
+
"id": "src/common-types.d.ts::DuetTheme"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"optional": false,
|
|
105
|
+
"docs": {
|
|
106
|
+
"tags": [],
|
|
107
|
+
"text": "Theme of the component."
|
|
108
|
+
},
|
|
109
|
+
"getter": false,
|
|
110
|
+
"setter": false,
|
|
111
|
+
"reflect": false,
|
|
112
|
+
"defaultValue": "\"\""
|
|
113
|
+
},
|
|
114
|
+
"unit": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"attribute": "unit",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "string",
|
|
120
|
+
"resolved": "string",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "The string to show after each items value. When using \"%\" the enclosed items' values should add up to 100."
|
|
128
|
+
},
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false,
|
|
131
|
+
"reflect": false,
|
|
132
|
+
"defaultValue": "\"%\""
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static get states() {
|
|
137
|
+
return {
|
|
138
|
+
"items": {}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
static get elementRef() { return "element"; }
|
|
142
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
export class DuetShareChartItem {
|
|
6
|
+
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* The value of the item.
|
|
9
|
+
*/
|
|
10
|
+
this.value = 0;
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, { key: '4ba5a4ae29d40c6f06f4baabeff0b2d421d2fe32' }, h("div", { key: '2f001235b3069b2e77312156802aca83583f72d7', hidden: true }, h("slot", { key: '023986d23e42609f106de5b4e16d9bc59c30d605' }))));
|
|
14
|
+
}
|
|
15
|
+
static get is() { return "duet-share-chart-item"; }
|
|
16
|
+
static get encapsulation() { return "shadow"; }
|
|
17
|
+
static get properties() {
|
|
18
|
+
return {
|
|
19
|
+
"value": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"attribute": "value",
|
|
22
|
+
"mutable": false,
|
|
23
|
+
"complexType": {
|
|
24
|
+
"original": "number",
|
|
25
|
+
"resolved": "number",
|
|
26
|
+
"references": {}
|
|
27
|
+
},
|
|
28
|
+
"required": false,
|
|
29
|
+
"optional": false,
|
|
30
|
+
"docs": {
|
|
31
|
+
"tags": [],
|
|
32
|
+
"text": "The value of the item."
|
|
33
|
+
},
|
|
34
|
+
"getter": false,
|
|
35
|
+
"setter": false,
|
|
36
|
+
"reflect": false,
|
|
37
|
+
"defaultValue": "0"
|
|
38
|
+
},
|
|
39
|
+
"color": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"attribute": "color",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "DuetColor",
|
|
45
|
+
"resolved": "string",
|
|
46
|
+
"references": {
|
|
47
|
+
"DuetColor": {
|
|
48
|
+
"location": "import",
|
|
49
|
+
"path": "../../common-types",
|
|
50
|
+
"id": "src/common-types.d.ts::DuetColor"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"required": false,
|
|
55
|
+
"optional": false,
|
|
56
|
+
"docs": {
|
|
57
|
+
"tags": [],
|
|
58
|
+
"text": "The color to use in the graph given as a Duet color token. If left out, the Share chart picks a color from a default set."
|
|
59
|
+
},
|
|
60
|
+
"getter": false,
|
|
61
|
+
"setter": false,
|
|
62
|
+
"reflect": false
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
static get elementRef() { return "element"; }
|
|
67
|
+
}
|
|
@@ -136,12 +136,12 @@ export class DuetShowMore {
|
|
|
136
136
|
* Always the last one of the class.
|
|
137
137
|
*/
|
|
138
138
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: 'c72a4a66bcedd71aaa4de71227da44163b6691c7' }, h("div", { key: '7f229c8848525ff7c081ee34fa1044f837c1079f', class: {
|
|
140
140
|
"duet-show-more": true,
|
|
141
141
|
"duet-theme-turva": this.theme === "turva",
|
|
142
142
|
"duet-m-0": this.margin === "none",
|
|
143
143
|
open: this.open,
|
|
144
|
-
} }, h("div", { key: '
|
|
144
|
+
} }, h("div", { key: '6f3aca5e04f4862578d92be1cfafc31de40a8742', ref: ref => (this.contentElement = ref), class: { content: true }, id: this.contentId, tabindex: this.open ? "-1" : "" }, h("div", { key: 'e3d983d64cb3cce593c8af76bcb73a3cbe79202f', class: { "slotted-content": true } }, h("slot", { key: 'a0070a27d8774d45a112c969d7302e1d82327500' }))), h("duet-button", { key: 'faf518247c7d13158e51c77a5e044882942642f6', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, h("span", { key: 'e0d03636ec1022c28fead58cb4807d371f0e9b62' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "duet-show-more"; }
|
|
147
147
|
static get encapsulation() { return "shadow"; }
|
|
@@ -174,4 +174,32 @@ slot {
|
|
|
174
174
|
}
|
|
175
175
|
.duet-theme-turva slot {
|
|
176
176
|
color: rgb(23, 28, 58);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva {
|
|
180
|
+
color: rgb(35, 46, 61);
|
|
181
|
+
}
|
|
182
|
+
@media (min-width: 62em) {
|
|
183
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .desktop-bg {
|
|
184
|
+
background: rgb(35, 46, 61);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button {
|
|
188
|
+
color: rgb(35, 46, 61);
|
|
189
|
+
}
|
|
190
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button.active {
|
|
191
|
+
color: rgb(197, 29, 65);
|
|
192
|
+
}
|
|
193
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button.active::after {
|
|
194
|
+
background: rgb(197, 29, 65);
|
|
195
|
+
}
|
|
196
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .has-sticky-header-slot .top {
|
|
197
|
+
background: rgb(253, 247, 242);
|
|
198
|
+
}
|
|
199
|
+
:host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .has-sticky-header-slot .sticky-header {
|
|
200
|
+
background: rgb(253, 247, 242);
|
|
201
|
+
border-bottom-color: rgb(248, 229, 217);
|
|
202
|
+
}
|
|
203
|
+
:host(.duet-theme-turva2) slot {
|
|
204
|
+
color: rgb(35, 46, 61);
|
|
177
205
|
}
|
|
@@ -294,16 +294,16 @@ export class DuetSlideout {
|
|
|
294
294
|
};
|
|
295
295
|
const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
|
|
296
296
|
const exitTranslation = getLocaleString(this.exitLangObject);
|
|
297
|
-
return (h(Host, { key: '
|
|
297
|
+
return (h(Host, { key: 'd5fc5379a48de292b10c704161a4992c10eedf48' }, h("div", { key: 'd8b63e68d03786884a34dd8df9d7d03bc0c4554d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && h("duet-overlay", { key: '073ac973858525fbb37d68e5528b552684000c81', visible: this.open, "display-device": "large", zIndex: "600" }), h("div", { key: 'ded136e561639dba54984936537c8359da325df0', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
|
|
298
298
|
dialog: true,
|
|
299
299
|
hidden: !this.open,
|
|
300
300
|
modal: this.modal,
|
|
301
|
-
}, style: styles }, h(FocusGuard, { key: '
|
|
301
|
+
}, style: styles }, h(FocusGuard, { key: '86ee0669e0c080a053b332368b3bfba35b30cc8c', moveFocusTo: this.closeButton }), h("div", { key: '50b95210bd617e9807e8f94f7bc9c96f9ea6a8ff', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, h("div", { key: '0c61ffe50dc9abb4ca5e59d78c069de25d05f90e', class: "top" }, h("button", { key: '7db284cfc9e1decf6d592882710761227519dd93', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
|
|
302
302
|
"slideout-close": true,
|
|
303
303
|
active: this.open,
|
|
304
|
-
}, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: '
|
|
304
|
+
}, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: '83fa3337162f14e0f8126ea981972776de18f186', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { key: '4e73db5953ed25c6eb57f150dc911304420222e3', class: "sticky-header" }, h("slot", { key: '430f0f35f35e9df8952e7f5cfdabad4cfb4f94dc', name: "sticky-header" }))), h("div", { key: '5b5e438600a0d2cd85fe041bfd84d1bbcd54d716', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
|
|
305
305
|
items: true,
|
|
306
|
-
} }, h("slot", { key: '
|
|
306
|
+
} }, h("slot", { key: '0e7ab1f88b776f8b477b7f115c83472f0d5fae10' })), h(FocusGuard, { key: '4294b263eede7fa45c6828f3ba486a56a9ce1564', moveFocusTo: this.closeButton })))));
|
|
307
307
|
}
|
|
308
308
|
static get is() { return "duet-slideout"; }
|
|
309
309
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class DuetSlideoutLang {
|
|
|
38
38
|
*/
|
|
39
39
|
render() {
|
|
40
40
|
const langTranslation = getLocaleString(this.chooseLangObject);
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '42d97d6392e13c989b34c9a47c81ea725f6f9bfa' }, h("div", { key: 'a0852b95d079f61557b3673870f03409972f5786', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, h("duet-icon", { key: 'd3ecc2574ac64f2d911118054e3873b9ede245fb', name: "navigation-language", margin: "none", color: "secondary" }), h("slot", { key: '9735206820035e046d83f2dd2bce49137dea8108' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "duet-slideout-lang"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,4 +118,14 @@ slot[name=description]::slotted(*) {
|
|
|
118
118
|
}
|
|
119
119
|
.duet-theme-turva slot[name=description]::slotted(*) {
|
|
120
120
|
color: rgb(113, 118, 132);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva {
|
|
124
|
+
color: rgb(35, 46, 61);
|
|
125
|
+
}
|
|
126
|
+
:host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva.active .label-content::after {
|
|
127
|
+
background: rgb(197, 29, 65);
|
|
128
|
+
}
|
|
129
|
+
:host(.duet-theme-turva2) slot[name=description]::slotted(*) {
|
|
130
|
+
color: rgb(35, 46, 61);
|
|
121
131
|
}
|