@duetds/components 6.7.0 → 6.8.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/hydrate/index.d.ts +17 -16
- package/hydrate/index.js +282 -142
- package/lib/cjs/action-arrow-right-24fe06be.js +8 -0
- package/lib/cjs/{dom-b340f674.js → dom-c42e1019.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-alert.cjs.entry.js +8 -2
- package/lib/cjs/duet-badge.cjs.entry.js +2 -2
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +4 -3
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +23 -7
- package/lib/cjs/duet-card.cjs.entry.js +12 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
- package/lib/cjs/duet-choice_2.cjs.entry.js +13 -5
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +9 -3
- package/lib/cjs/duet-contact-card.cjs.entry.js +66 -0
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
- package/lib/cjs/duet-date-picker.cjs.entry.js +3 -3
- package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -3
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +4 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +5 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +6 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +6 -2
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar.cjs.entry.js +9 -3
- package/lib/cjs/duet-modal.cjs.entry.js +14 -13
- package/lib/cjs/duet-multiselect.cjs.entry.js +2 -2
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-number-input.cjs.entry.js +2 -2
- package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
- package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +2 -2
- package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +2 -2
- package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
- package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +15 -6
- package/lib/cjs/{focus-utils-0dd9281d.js → focus-utils-8777d943.js} +1 -1
- package/lib/cjs/{index-3d0845f0.js → index-26abcddc.js} +18 -4
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/{shadow-css-cce1abf1.js → shadow-css-6c99270e.js} +1 -1
- package/lib/collection/collection-manifest.json +5 -4
- package/lib/collection/common/index.js +1 -0
- package/lib/collection/common/runtime-types.js +5 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +10 -10
- package/lib/collection/components/duet-action-button/duet-action-button.js +4 -2
- package/lib/collection/components/duet-alert/duet-alert.css +12 -12
- package/lib/collection/components/duet-alert/duet-alert.js +10 -3
- package/lib/collection/components/duet-badge/duet-badge.css +2 -2
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +16 -6
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +2 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +11 -5
- package/lib/collection/components/duet-button/duet-button.css +80 -80
- package/lib/collection/components/duet-button/duet-button.js +10 -5
- package/lib/collection/components/duet-caption/duet-caption.css +4 -4
- package/lib/collection/components/duet-caption/duet-caption.js +2 -1
- package/lib/collection/components/duet-card/duet-card.css +26 -17
- package/lib/collection/components/duet-card/duet-card.js +40 -10
- package/lib/collection/components/duet-checkbox/duet-checkbox.css +19 -19
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +6 -3
- package/lib/collection/components/duet-choice/duet-checkmark.css +12 -12
- package/lib/collection/components/duet-choice/duet-checkmark.js +1 -1
- package/lib/collection/components/duet-choice/duet-choice.css +74 -74
- package/lib/collection/components/duet-choice/duet-choice.js +8 -4
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +46 -2
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +32 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +9 -9
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +6 -3
- package/lib/collection/components/duet-combobox/duet-combobox.css +18 -18
- package/lib/collection/components/duet-combobox/duet-combobox.js +31 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +85 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +263 -0
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +6 -6
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +2 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.css +56 -56
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +8 -4
- package/lib/collection/components/duet-divider/duet-divider.css +2 -2
- package/lib/collection/components/duet-divider/duet-divider.js +2 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +13 -8
- package/lib/collection/components/duet-empty-state/duet-empty-state.css +4 -4
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +4 -4
- package/lib/collection/components/duet-footer/duet-footer.css +19 -19
- package/lib/collection/components/duet-footer/duet-footer.js +14 -7
- package/lib/collection/components/duet-grid/duet-grid.css +83 -0
- package/lib/collection/components/duet-grid/duet-grid.js +9 -4
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +2 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +1 -1
- package/lib/collection/components/duet-header/duet-header.css +105 -105
- package/lib/collection/components/duet-header/duet-header.js +30 -15
- package/lib/collection/components/duet-heading/duet-heading.css +7 -4
- package/lib/collection/components/duet-heading/duet-heading.js +2 -1
- package/lib/collection/components/duet-hero/duet-hero.css +40 -42
- package/lib/collection/components/duet-hero/duet-hero.js +10 -5
- package/lib/collection/components/duet-icon/duet-icon.css +11 -4
- package/lib/collection/components/duet-icon/duet-icon.js +8 -5
- package/lib/collection/components/duet-input/duet-input.css +66 -66
- package/lib/collection/components/duet-input/duet-input.js +17 -9
- package/lib/collection/components/duet-label/duet-label.css +2 -2
- package/lib/collection/components/duet-label/duet-label.js +4 -2
- package/lib/collection/components/duet-layout/duet-layout.js +2 -1
- package/lib/collection/components/duet-link/duet-link.css +36 -9
- package/lib/collection/components/duet-link/duet-link.js +86 -2
- package/lib/collection/components/duet-list/duet-list.js +13 -5
- package/lib/collection/components/duet-list-item/duet-list-item.css +32 -8
- package/lib/collection/components/duet-logo/duet-logo.css +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +8 -8
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +9 -2
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +13 -13
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +8 -8
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +6 -6
- package/lib/collection/components/duet-modal/duet-modal.css +4 -4
- package/lib/collection/components/duet-modal/duet-modal.js +39 -13
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +40 -40
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +10 -5
- package/lib/collection/components/duet-nav/duet-nav.css +0 -1
- package/lib/collection/components/duet-notification/duet-notification.css +14 -14
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +25 -25
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -1
- package/lib/collection/components/duet-number-input/duet-number-input.css +5 -5
- package/lib/collection/components/duet-number-input/duet-number-input.js +8 -4
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +4 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +4 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.css +6 -6
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +6 -3
- package/lib/collection/components/duet-progress/duet-progress.css +12 -12
- package/lib/collection/components/duet-radio/duet-radio.css +17 -17
- package/lib/collection/components/duet-radio/duet-radio.js +6 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.css +30 -30
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -1
- package/lib/collection/components/duet-select/duet-select.css +38 -38
- package/lib/collection/components/duet-select/duet-select.js +10 -5
- package/lib/collection/components/duet-slideout/duet-slideout.css +5 -5
- package/lib/collection/components/duet-slideout/duet-slideout.js +2 -1
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +2 -2
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +11 -4
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +9 -9
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +5 -5
- package/lib/collection/components/duet-spacer/duet-spacer.js +4 -2
- package/lib/collection/components/duet-spinner/duet-spinner.css +3 -3
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -1
- package/lib/collection/components/duet-step/duet-step.css +10 -10
- package/lib/collection/components/duet-step/duet-step.js +4 -2
- package/lib/collection/components/duet-stepper/duet-stepper.css +1 -1
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +10 -10
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +18 -18
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +8 -8
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +8 -8
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +46 -49
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +8 -4
- package/lib/collection/components/duet-table/duet-table.css +44 -33
- package/lib/collection/components/duet-table/duet-table.js +26 -3
- package/lib/collection/components/duet-textarea/duet-textarea.css +39 -39
- package/lib/collection/components/duet-textarea/duet-textarea.js +8 -4
- package/lib/collection/components/duet-toggle/duet-toggle.css +12 -12
- package/lib/collection/components/duet-toggle/duet-toggle.js +2 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +4 -4
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +13 -13
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +8 -8
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +11 -11
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +26 -26
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +2 -1
- package/lib/collection/components/duet-tray/duet-tray.css +14 -14
- package/lib/collection/components/duet-upload/duet-upload.css +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +27 -14
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +2 -1
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-breadcrumb.js +5 -4
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +16 -7
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +17 -8
- package/lib/dist-custom-elements/duet-choice.js +7 -7
- package/lib/dist-custom-elements/duet-collapsible.js +4 -4
- package/lib/dist-custom-elements/duet-combobox.js +12 -5
- package/lib/dist-custom-elements/duet-contact-card.d.ts +11 -0
- package/lib/dist-custom-elements/duet-contact-card.js +133 -0
- package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
- package/lib/dist-custom-elements/duet-date-picker.js +13 -13
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +6 -7
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +11 -11
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +11 -5
- package/lib/dist-custom-elements/duet-modal.js +21 -19
- package/lib/dist-custom-elements/duet-multiselect.js +9 -9
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
- package/lib/dist-custom-elements/duet-notification.js +3 -3
- package/lib/dist-custom-elements/duet-number-input.js +10 -10
- package/lib/dist-custom-elements/duet-page-heading.js +3 -3
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +2 -2
- package/lib/dist-custom-elements/duet-range-slider.js +4 -4
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-panel.js +5 -5
- package/lib/dist-custom-elements/duet-slideout.js +5 -5
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +5 -5
- package/lib/dist-custom-elements/duet-stepper.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +3 -3
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-tab-group.js +10 -10
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +9 -9
- package/lib/dist-custom-elements/duet-toggle.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar-link.js +3 -3
- package/lib/dist-custom-elements/duet-toolbar.js +2 -2
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +5 -5
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +20 -20
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.d.ts +0 -86
- package/lib/dist-custom-elements/index.js +1 -84
- package/lib/dist-custom-elements/p-02a40751.js +123 -0
- package/lib/dist-custom-elements/p-064a8802.js +188 -0
- package/lib/dist-custom-elements/{p-ae149130.js → p-076c04fa.js} +3 -3
- package/lib/dist-custom-elements/{p-5084748e.js → p-152ee893.js} +7 -0
- package/lib/dist-custom-elements/p-1a45a20a.js +178 -0
- package/lib/dist-custom-elements/{p-4e752d2d.js → p-1f9f67e3.js} +4 -4
- package/lib/dist-custom-elements/{p-267801f1.js → p-27f477bd.js} +3 -3
- package/lib/dist-custom-elements/{p-e47da081.js → p-308a73c1.js} +18 -5
- package/lib/dist-custom-elements/{p-55325c49.js → p-33e00967.js} +1 -1
- package/lib/dist-custom-elements/{p-c9a16897.js → p-344f54cf.js} +3 -3
- package/lib/dist-custom-elements/{p-ad4c031f.js → p-39b4e372.js} +5 -5
- package/lib/dist-custom-elements/{p-13b6dd90.js → p-3c792743.js} +2 -2
- package/lib/dist-custom-elements/p-3e094f25.js +37 -0
- package/lib/dist-custom-elements/{p-f7da07ee.js → p-48e0be9b.js} +10 -10
- package/lib/dist-custom-elements/{p-f6a5967a.js → p-52306a3d.js} +2 -2
- package/lib/dist-custom-elements/{p-2b6f6cba.js → p-5b6ac919.js} +2 -2
- package/lib/dist-custom-elements/p-61015063.js +113 -0
- package/lib/{esm/shadow-css-e76e6e1c.js → dist-custom-elements/p-6ee53ac3.js} +1 -1
- package/lib/dist-custom-elements/p-6fa39608.js +6 -0
- package/lib/dist-custom-elements/p-70db80cb.js +76 -0
- package/lib/dist-custom-elements/{p-4e9d1f9b.js → p-7918f243.js} +1 -1
- package/lib/dist-custom-elements/{p-c91ba42a.js → p-7c4a2620.js} +2 -2
- package/lib/dist-custom-elements/{p-767cc415.js → p-7f907b5b.js} +7 -7
- package/lib/dist-custom-elements/{p-504f30a0.js → p-823ea8c0.js} +1 -1
- package/lib/dist-custom-elements/{p-c203ef96.js → p-8fc068d5.js} +2 -2
- package/lib/dist-custom-elements/{p-22eba43b.js → p-907402d2.js} +8 -8
- package/lib/dist-custom-elements/{p-7857fd92.js → p-91f5a857.js} +2 -2
- package/lib/dist-custom-elements/p-923a997f.js +265 -0
- package/lib/dist-custom-elements/{p-aa1ab20d.js → p-9b59f666.js} +3 -3
- package/lib/dist-custom-elements/{p-535ce3ec.js → p-9ed347f9.js} +1 -1
- package/lib/dist-custom-elements/p-b14db39f.js +54 -0
- package/lib/dist-custom-elements/{p-e36eb97d.js → p-b48f1e4d.js} +3 -3
- package/lib/dist-custom-elements/{p-ba2d607e.js → p-ba41b009.js} +12 -6
- package/lib/dist-custom-elements/{p-738bd3c5.js → p-c4d8cad0.js} +1 -1
- package/lib/dist-custom-elements/{p-2b3a8e8c.js → p-ca57b6a2.js} +3 -3
- package/lib/dist-custom-elements/{p-0d2d0d0e.js → p-e15832f2.js} +3 -3
- package/lib/dist-custom-elements/{p-47f3085b.js → p-ed7527c2.js} +5 -1
- package/lib/dist-custom-elements/{p-9d0348a4.js → p-efaad71c.js} +1 -1
- package/lib/dist-custom-elements/{p-756308c3.js → p-f40a2146.js} +2 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/p-06999788.system.entry.js +4 -0
- package/lib/duet/{p-dbf0d77a.system.entry.js → p-06d05f65.system.entry.js} +1 -1
- package/lib/duet/p-09e82523.system.entry.js +4 -0
- package/lib/duet/p-0b711d1c.system.entry.js +4 -0
- package/lib/duet/{p-dd3b2f92.entry.js → p-0bf8affc.entry.js} +1 -1
- package/lib/duet/p-0d8f0b71.entry.js +4 -0
- package/lib/duet/p-10d906a0.entry.js +4 -0
- package/lib/duet/{p-f2c39318.entry.js → p-133bf320.entry.js} +1 -1
- package/lib/duet/p-1526bcd9.system.entry.js +4 -0
- package/lib/duet/p-188a99a6.system.entry.js +4 -0
- package/lib/duet/p-1cdfa320.system.entry.js +4 -0
- package/lib/duet/p-1de2679d.system.entry.js +4 -0
- package/lib/duet/p-1eb57d18.entry.js +4 -0
- package/lib/duet/p-1f8e5ae9.entry.js +4 -0
- package/lib/duet/p-1ffb06ae.system.entry.js +4 -0
- package/lib/duet/p-224d5bbf.system.entry.js +4 -0
- package/lib/duet/p-22568e46.system.entry.js +4 -0
- package/lib/duet/p-24fb2c26.entry.js +4 -0
- package/lib/duet/p-268453f2.system.entry.js +4 -0
- package/lib/duet/p-27796763.system.entry.js +4 -0
- package/lib/duet/{p-aa46e5b8.system.js → p-2938697f.system.js} +1 -1
- package/lib/duet/p-2d037cf4.entry.js +4 -0
- package/lib/duet/p-2e32575f.system.entry.js +4 -0
- package/lib/duet/{p-d989bb64.entry.js → p-3133c0d8.entry.js} +1 -1
- package/lib/duet/p-317c4aaf.entry.js +4 -0
- package/lib/duet/{p-e447d590.entry.js → p-3ab4aa13.entry.js} +1 -1
- package/lib/duet/p-3e66c4a4.system.entry.js +4 -0
- package/lib/duet/p-3ea21c66.system.entry.js +4 -0
- package/lib/duet/p-3ee8a44e.entry.js +4 -0
- package/lib/duet/p-4410272c.entry.js +4 -0
- package/lib/duet/p-45956e97.system.entry.js +4 -0
- package/lib/duet/p-49484735.system.entry.js +4 -0
- package/lib/duet/p-4a669f88.entry.js +4 -0
- package/lib/duet/{p-ab72659c.entry.js → p-50df7077.entry.js} +1 -1
- package/lib/duet/p-5264d038.entry.js +4 -0
- package/lib/duet/p-565e48b0.system.entry.js +4 -0
- package/lib/duet/{p-14b1e688.js → p-5933217a.js} +1 -1
- package/lib/duet/{p-54c2f367.entry.js → p-5a549387.entry.js} +1 -1
- package/lib/duet/{p-c1a863fa.entry.js → p-5c661590.entry.js} +1 -1
- package/lib/duet/p-5c7f8587.system.entry.js +4 -0
- package/lib/duet/p-608bd184.system.entry.js +4 -0
- package/lib/duet/{p-c8946e4e.entry.js → p-6533c6f5.entry.js} +1 -1
- package/lib/duet/{p-be3de0f9.entry.js → p-654669e3.entry.js} +1 -1
- package/lib/duet/p-6a82c77b.system.entry.js +4 -0
- package/lib/duet/p-6b276d28.entry.js +4 -0
- package/lib/duet/{p-393e06fc.entry.js → p-6b5135e3.entry.js} +1 -1
- package/lib/duet/p-6c4d4f85.entry.js +4 -0
- package/lib/duet/p-6d16e6f6.entry.js +4 -0
- package/lib/duet/p-6fa39608.js +4 -0
- package/lib/duet/p-70dcd397.entry.js +4 -0
- package/lib/duet/p-71fc5b0d.system.entry.js +4 -0
- package/lib/duet/p-72467078.system.entry.js +4 -0
- package/lib/duet/p-74d0f576.system.entry.js +4 -0
- package/lib/duet/{p-94aed15c.entry.js → p-76d34cb0.entry.js} +1 -1
- package/lib/duet/{p-eb54ff63.entry.js → p-77d1aa11.entry.js} +1 -1
- package/lib/duet/{p-33ef2855.system.entry.js → p-7a2b3365.system.entry.js} +1 -1
- package/lib/duet/p-7af51cf6.system.entry.js +4 -0
- package/lib/duet/p-7b855f82.system.entry.js +4 -0
- package/lib/duet/p-7cb63887.system.entry.js +4 -0
- package/lib/duet/p-7ea38691.system.entry.js +4 -0
- package/lib/duet/{p-f795fec5.system.entry.js → p-7fae4a26.system.entry.js} +1 -1
- package/lib/duet/{p-563485d2.entry.js → p-8177dde3.entry.js} +1 -1
- package/lib/duet/p-819d4a4e.entry.js +4 -0
- package/lib/duet/p-820a474b.entry.js +4 -0
- package/lib/duet/{p-b32f4c37.system.js → p-84ec82b2.system.js} +1 -1
- package/lib/duet/p-8986b6b1.entry.js +4 -0
- package/lib/duet/p-8bec0e9d.system.entry.js +4 -0
- package/lib/duet/p-8d13f689.system.entry.js +4 -0
- package/lib/duet/p-8ec95d2c.system.entry.js +4 -0
- package/lib/duet/p-8ed08ddf.system.entry.js +4 -0
- package/lib/duet/{p-1787fb22.entry.js → p-8fcbc008.entry.js} +1 -1
- package/lib/duet/p-90f9e03f.system.entry.js +4 -0
- package/lib/duet/p-91e8f5cd.system.entry.js +4 -0
- package/lib/duet/p-99628541.entry.js +4 -0
- package/lib/duet/p-99e5bbdc.entry.js +4 -0
- package/lib/duet/p-9ac03a4a.system.entry.js +4 -0
- package/lib/duet/{p-d56140a2.entry.js → p-9ade0707.entry.js} +1 -1
- package/lib/duet/p-9b905c99.system.entry.js +4 -0
- package/lib/duet/{p-6f0ce728.system.entry.js → p-9c2f07c6.system.entry.js} +1 -1
- package/lib/duet/p-9d992f8a.system.entry.js +4 -0
- package/lib/duet/p-9e5cf474.entry.js +4 -0
- package/lib/duet/{p-7c21c7b2.system.entry.js → p-a1898f56.system.entry.js} +1 -1
- package/lib/duet/p-a6147e56.system.entry.js +4 -0
- package/lib/duet/p-a8dc08e8.system.js +4 -0
- package/lib/duet/{p-2c74f36a.entry.js → p-acd1b6b5.entry.js} +1 -1
- package/lib/duet/p-aefa4b69.entry.js +4 -0
- package/lib/duet/p-af12e6cf.system.entry.js +4 -0
- package/lib/duet/p-b1db3006.js +1 -1
- package/lib/duet/p-b35b5e57.entry.js +4 -0
- package/lib/duet/{p-c27afab2.entry.js → p-b3c81888.entry.js} +1 -1
- package/lib/duet/p-b433984a.system.entry.js +4 -0
- package/lib/duet/p-b638b8ed.entry.js +4 -0
- package/lib/duet/{p-40276f4e.entry.js → p-b74131aa.entry.js} +1 -1
- package/lib/duet/p-b7438813.entry.js +4 -0
- package/lib/duet/p-b780a881.entry.js +4 -0
- package/lib/duet/p-bbd3b919.system.entry.js +4 -0
- package/lib/duet/{p-0cefe244.entry.js → p-bdfb63cd.entry.js} +1 -1
- package/lib/duet/{p-5c3be505.entry.js → p-bee1823d.entry.js} +1 -1
- package/lib/duet/p-bf1ab1eb.system.entry.js +4 -0
- package/lib/duet/p-bf8105a5.system.entry.js +4 -0
- package/lib/duet/{p-a27366e9.entry.js → p-c07eb423.entry.js} +1 -1
- package/lib/duet/p-c09869cd.entry.js +4 -0
- package/lib/duet/p-c0c65bf7.system.entry.js +4 -0
- package/lib/duet/p-c1028548.system.entry.js +4 -0
- package/lib/duet/p-c2a73338.system.entry.js +4 -0
- package/lib/duet/p-c3a337a2.entry.js +4 -0
- package/lib/duet/p-c3ce052c.entry.js +4 -0
- package/lib/duet/{p-4fafb7d6.entry.js → p-c5c44c35.entry.js} +1 -1
- package/lib/duet/{p-427cbdfe.entry.js → p-c5d84b37.entry.js} +1 -1
- package/lib/duet/{p-35539173.entry.js → p-c6f2b220.entry.js} +1 -1
- package/lib/duet/p-c9789028.system.entry.js +4 -0
- package/lib/duet/{p-5607a0a7.system.entry.js → p-cdad6821.system.entry.js} +1 -1
- package/lib/duet/{p-c6612c3f.entry.js → p-cdf08c39.entry.js} +1 -1
- package/lib/duet/p-d02c9f15.entry.js +4 -0
- package/lib/duet/p-d328f324.entry.js +4 -0
- package/lib/duet/{p-4be8874a.entry.js → p-d4671eab.entry.js} +1 -1
- package/lib/duet/p-d698e995.system.entry.js +4 -0
- package/lib/duet/p-d77241fe.system.entry.js +4 -0
- package/lib/duet/p-d97befa1.entry.js +4 -0
- package/lib/duet/{p-8694aa9f.entry.js → p-da274cd4.entry.js} +1 -1
- package/lib/duet/{p-04ca6ed4.entry.js → p-db19ddd2.entry.js} +1 -1
- package/lib/duet/p-db1f1851.system.entry.js +4 -0
- package/lib/duet/p-dbb02995.js +4 -0
- package/lib/duet/p-dbc22e0a.system.entry.js +4 -0
- package/lib/duet/p-dc4f841e.system.entry.js +4 -0
- package/lib/duet/p-dd994793.system.js +4 -0
- package/lib/duet/p-e1239725.system.entry.js +4 -0
- package/lib/duet/{p-39a2d6f7.system.entry.js → p-e154f21d.system.entry.js} +1 -1
- package/lib/duet/p-e208fd69.entry.js +4 -0
- package/lib/duet/p-e73ebb36.system.entry.js +4 -0
- package/lib/duet/{p-9285796a.system.entry.js → p-ed1085eb.system.entry.js} +1 -1
- package/lib/duet/p-eeaa43d1.entry.js +4 -0
- package/lib/duet/p-f17b0e53.entry.js +4 -0
- package/lib/duet/p-f1ca6939.system.entry.js +4 -0
- package/lib/duet/p-f6001531.entry.js +4 -0
- package/lib/duet/{p-5fe54705.entry.js → p-f6e69972.entry.js} +1 -1
- package/lib/duet/p-f7efac05.system.entry.js +4 -0
- package/lib/duet/p-fa648209.entry.js +4 -0
- package/lib/duet/p-fc800029.system.entry.js +4 -0
- package/lib/duet/p-fef626b8.system.entry.js +4 -0
- package/lib/esm/action-arrow-right-f7d56681.js +6 -0
- package/lib/esm/{dom-d10a1938.js → dom-ae12a113.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +2 -2
- package/lib/esm/duet-alert.entry.js +8 -2
- package/lib/esm/duet-badge.entry.js +2 -2
- package/lib/esm/duet-breadcrumb.entry.js +4 -3
- package/lib/esm/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +23 -7
- package/lib/esm/duet-card.entry.js +12 -4
- package/lib/esm/duet-checkbox.entry.js +2 -2
- package/lib/esm/duet-checkmark.entry.js +2 -2
- package/lib/esm/duet-choice_2.entry.js +13 -5
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +9 -3
- package/lib/esm/duet-contact-card.entry.js +62 -0
- package/lib/esm/duet-cookie-consent.entry.js +2 -2
- package/lib/esm/duet-date-picker.entry.js +3 -3
- package/lib/esm/duet-divider_2.entry.js +2 -2
- package/lib/esm/duet-editable-table_3.entry.js +5 -3
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +3 -4
- package/lib/esm/duet-grid_2.entry.js +5 -3
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +6 -4
- package/lib/esm/duet-input_2.entry.js +4 -4
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +6 -2
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-menu-bar-link.entry.js +2 -2
- package/lib/esm/duet-menu-bar.entry.js +9 -3
- package/lib/esm/duet-modal.entry.js +14 -13
- package/lib/esm/duet-multiselect.entry.js +2 -2
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +3 -3
- package/lib/esm/duet-number-input.entry.js +2 -2
- package/lib/esm/duet-page-heading.entry.js +2 -2
- package/lib/esm/duet-pagination_2.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +2 -2
- package/lib/esm/duet-radio_2.entry.js +2 -2
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +2 -2
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +2 -2
- package/lib/esm/duet-slideout-lang.entry.js +2 -2
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm/duet-slideout-panel.entry.js +3 -3
- package/lib/esm/duet-slideout.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +3 -3
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
- package/lib/esm/duet-submenu-bar.entry.js +2 -2
- package/lib/esm/duet-textarea.entry.js +2 -2
- package/lib/esm/duet-toggle.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
- package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm/duet-toolbar-link.entry.js +2 -2
- package/lib/esm/duet-toolbar.entry.js +2 -2
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +16 -7
- package/lib/esm/{focus-utils-7b317f32.js → focus-utils-8579107c.js} +1 -1
- package/lib/esm/{index-849c698d.js → index-1c0e9f7c.js} +18 -4
- package/lib/esm/loader.js +4 -4
- package/lib/{dist-custom-elements/p-5a17a015.js → esm/shadow-css-66bc7949.js} +1 -1
- package/lib/esm-es5/action-arrow-right-f7d56681.js +4 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +2 -2
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm-es5/duet-button_2.entry.js +2 -2
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- package/lib/esm-es5/duet-contact-card.entry.js +4 -0
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +2 -2
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +2 -2
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +2 -2
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +2 -2
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +2 -2
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +2 -2
- package/lib/esm-es5/duet-range-slider.entry.js +2 -2
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +2 -2
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +2 -2
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-8579107c.js +4 -0
- package/lib/esm-es5/{index-849c698d.js → index-1c0e9f7c.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/common/runtime-types.d.ts +2 -0
- package/lib/types/common-types.d.ts +25 -1
- package/lib/types/components/duet-alert/duet-alert.d.ts +6 -0
- package/lib/types/components/duet-card/duet-card.d.ts +10 -2
- package/lib/types/components/duet-choice/duet-checkmark.d.ts +1 -2
- package/lib/types/components/duet-choice/duet-choice.d.ts +1 -2
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +6 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +4 -0
- package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +64 -0
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -2
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +15 -1
- package/lib/types/components/duet-list/duet-list.d.ts +1 -1
- package/lib/types/components/duet-modal/duet-modal.d.ts +8 -1
- package/lib/types/components/duet-table/duet-table.d.ts +5 -4
- package/lib/types/components/duet-upload/duet-upload.d.ts +1 -2
- package/lib/types/components/duet-upload-aria-status/duet-upload-aria-status.d.ts +1 -8
- package/lib/types/components.d.ts +222 -13
- package/lib/types/stencil-public-runtime.d.ts +12 -12
- package/package.json +7 -7
- package/lib/dist-custom-elements/p-2228bf13.js +0 -186
- package/lib/dist-custom-elements/p-364cfb78.js +0 -54
- package/lib/dist-custom-elements/p-447ea0a6.js +0 -94
- package/lib/dist-custom-elements/p-85f97595.js +0 -176
- package/lib/dist-custom-elements/p-c0878e32.js +0 -265
- package/lib/dist-custom-elements/p-e201a19a.js +0 -76
- package/lib/dist-custom-elements/p-e38fc76d.js +0 -37
- package/lib/dist-custom-elements/p-e6b8ebb0.js +0 -120
- package/lib/duet/p-00a53506.system.entry.js +0 -4
- package/lib/duet/p-010cbd87.system.entry.js +0 -4
- package/lib/duet/p-0339a6ba.system.entry.js +0 -4
- package/lib/duet/p-0480457b.system.entry.js +0 -4
- package/lib/duet/p-0783af51.system.entry.js +0 -4
- package/lib/duet/p-0875374b.entry.js +0 -4
- package/lib/duet/p-0b08aa13.system.entry.js +0 -4
- package/lib/duet/p-0de644e5.entry.js +0 -4
- package/lib/duet/p-0f4aff17.entry.js +0 -4
- package/lib/duet/p-12593e03.entry.js +0 -4
- package/lib/duet/p-14c4c15a.system.entry.js +0 -4
- package/lib/duet/p-165f0e7c.system.entry.js +0 -4
- package/lib/duet/p-1b8a8804.system.entry.js +0 -4
- package/lib/duet/p-1c952867.system.entry.js +0 -4
- package/lib/duet/p-1e2595e2.system.entry.js +0 -4
- package/lib/duet/p-1eed2800.entry.js +0 -4
- package/lib/duet/p-2ae7d801.entry.js +0 -4
- package/lib/duet/p-2ae9d336.system.entry.js +0 -4
- package/lib/duet/p-2b1ddf25.js +0 -4
- package/lib/duet/p-2c170dc6.system.entry.js +0 -4
- package/lib/duet/p-2ca556bd.entry.js +0 -4
- package/lib/duet/p-2ebfba54.system.entry.js +0 -4
- package/lib/duet/p-31252f4a.system.entry.js +0 -4
- package/lib/duet/p-33f2a44e.entry.js +0 -4
- package/lib/duet/p-3406f73d.system.entry.js +0 -4
- package/lib/duet/p-35ba9699.system.entry.js +0 -4
- package/lib/duet/p-38547565.system.entry.js +0 -4
- package/lib/duet/p-396dce30.entry.js +0 -4
- package/lib/duet/p-3a3bd672.system.entry.js +0 -4
- package/lib/duet/p-3eb94a67.entry.js +0 -4
- package/lib/duet/p-3f45ca7b.entry.js +0 -4
- package/lib/duet/p-4444cfb8.system.entry.js +0 -4
- package/lib/duet/p-452cb659.system.entry.js +0 -4
- package/lib/duet/p-47f3c160.system.entry.js +0 -4
- package/lib/duet/p-495582a5.entry.js +0 -4
- package/lib/duet/p-4c699ac2.system.entry.js +0 -4
- package/lib/duet/p-4c6d9583.entry.js +0 -4
- package/lib/duet/p-52148128.entry.js +0 -4
- package/lib/duet/p-55cbf1e0.system.entry.js +0 -4
- package/lib/duet/p-5a0333a6.entry.js +0 -4
- package/lib/duet/p-5b5bdf1a.entry.js +0 -4
- package/lib/duet/p-630b0aee.system.entry.js +0 -4
- package/lib/duet/p-6705969f.system.entry.js +0 -4
- package/lib/duet/p-67e40f5a.system.entry.js +0 -4
- package/lib/duet/p-6fe86c6a.system.entry.js +0 -4
- package/lib/duet/p-7385646e.system.entry.js +0 -4
- package/lib/duet/p-7881585e.entry.js +0 -4
- package/lib/duet/p-79230071.system.entry.js +0 -4
- package/lib/duet/p-7a6d0da2.entry.js +0 -4
- package/lib/duet/p-7b0e565a.system.entry.js +0 -4
- package/lib/duet/p-7e177248.entry.js +0 -4
- package/lib/duet/p-812b157d.entry.js +0 -4
- package/lib/duet/p-815ba656.system.entry.js +0 -4
- package/lib/duet/p-81a9673b.entry.js +0 -4
- package/lib/duet/p-83e0a386.system.entry.js +0 -4
- package/lib/duet/p-88b30828.system.entry.js +0 -4
- package/lib/duet/p-8ce83440.system.entry.js +0 -4
- package/lib/duet/p-9938e39c.entry.js +0 -4
- package/lib/duet/p-9b062a1c.system.entry.js +0 -4
- package/lib/duet/p-a3eb0816.system.entry.js +0 -4
- package/lib/duet/p-aa915061.system.entry.js +0 -4
- package/lib/duet/p-aa9eef98.system.entry.js +0 -4
- package/lib/duet/p-ae3234af.system.entry.js +0 -4
- package/lib/duet/p-b0361d6a.system.entry.js +0 -4
- package/lib/duet/p-b55995ae.system.entry.js +0 -4
- package/lib/duet/p-b6d674ce.system.entry.js +0 -4
- package/lib/duet/p-b744dbba.system.entry.js +0 -4
- package/lib/duet/p-b791aabb.entry.js +0 -4
- package/lib/duet/p-b868a149.entry.js +0 -4
- package/lib/duet/p-b89a4172.entry.js +0 -4
- package/lib/duet/p-bbd64ff4.entry.js +0 -4
- package/lib/duet/p-bbf6eb36.system.entry.js +0 -4
- package/lib/duet/p-cbc1cdf4.system.entry.js +0 -4
- package/lib/duet/p-ccc3f9e9.entry.js +0 -4
- package/lib/duet/p-cdf070ab.system.entry.js +0 -4
- package/lib/duet/p-ced14b92.system.entry.js +0 -4
- package/lib/duet/p-d7713234.system.entry.js +0 -4
- package/lib/duet/p-d7ef7aa4.system.entry.js +0 -4
- package/lib/duet/p-da36ba6e.system.entry.js +0 -4
- package/lib/duet/p-da4cf292.entry.js +0 -4
- package/lib/duet/p-dbe40b10.entry.js +0 -4
- package/lib/duet/p-de57ee9e.entry.js +0 -4
- package/lib/duet/p-e0628a33.system.entry.js +0 -4
- package/lib/duet/p-e0a6ce6f.entry.js +0 -4
- package/lib/duet/p-e36abf9f.system.entry.js +0 -4
- package/lib/duet/p-eb7d40bf.system.entry.js +0 -4
- package/lib/duet/p-ed665738.entry.js +0 -4
- package/lib/duet/p-ee43b8cc.entry.js +0 -4
- package/lib/duet/p-eebe30a6.system.entry.js +0 -4
- package/lib/duet/p-f2654f02.entry.js +0 -4
- package/lib/duet/p-f46d2cdf.system.entry.js +0 -4
- package/lib/duet/p-f4c24c1a.system.entry.js +0 -4
- package/lib/duet/p-f74665b5.entry.js +0 -4
- package/lib/duet/p-f7781ab9.system.js +0 -4
- package/lib/duet/p-fcac77ef.entry.js +0 -4
- package/lib/esm-es5/focus-utils-7b317f32.js +0 -4
- /package/lib/duet/{p-524ad48c.system.js → p-6cf44bfa.system.js} +0 -0
- /package/lib/duet/{p-5a17a015.js → p-6ee53ac3.js} +0 -0
- /package/lib/duet/{p-49dfa097.js → p-9c159fd4.js} +0 -0
- /package/lib/duet/{p-43179518.system.js → p-9d9204af.system.js} +0 -0
- /package/lib/esm-es5/{dom-d10a1938.js → dom-ae12a113.js} +0 -0
- /package/lib/esm-es5/{shadow-css-e76e6e1c.js → shadow-css-66bc7949.js} +0 -0
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-e47da081.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { D as DuetStringsExternalDefaults } from './p-76f00bd5.js';
|
|
7
|
-
import { a as getLanguage, g as getLocaleString } from './p-6c05e879.js';
|
|
8
|
-
import { g as getColorByName } from './p-535ce3ec.js';
|
|
9
|
-
import { d as defineCustomElement$3 } from './p-2228bf13.js';
|
|
10
|
-
import { d as defineCustomElement$2 } from './p-e36eb97d.js';
|
|
11
|
-
import { d as defineCustomElement$1 } from './p-4e9d1f9b.js';
|
|
12
|
-
|
|
13
|
-
const duetButtonCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.input-button){z-index:250}:host(.duet-small){margin-right:2px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small){width:auto}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;width:100%}.duet-button{padding:14px 27px 15px !important;-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#0077b3 !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:2px;border-radius:20rem;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){padding:9px 19px 10px !important;min-width:5.3333333333rem;font-size:0.875rem}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon{padding-left:48px !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right{padding-right:48px !important;padding-left:20px !important}.duet-theme-turva .duet-button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#c60c30 !important}.duet-button .duet-button-contents{position:relative;display:inline-block;margin:0 auto;pointer-events:none}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button.icon{padding-left:52px !important}.duet-button.icon-right{padding-right:52px !important;padding-left:28px !important}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{position:absolute;top:50%;left:-28px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 !important;transform:translateY(-50%)}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.right{right:-28px;left:auto}.duet-button .duet-button-icon.large{left:-32px;width:20px;height:20px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.large.right{right:-32px;left:auto}.duet-button .duet-button-icon.medium-small{left:-16px;width:10px;height:10px;padding-top:1px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.medium-small.right{right:-16px;left:auto}.duet-button .duet-button-icon.small{left:-16px;width:7px;height:7px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button .duet-button-icon.small.right{right:-16px;left:auto}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{border-color:#e1e3e6}.duet-theme-turva .duet-button.default{color:#c60c30 !important;border-color:#e4e4e6}.duet-button.default:hover{border-color:#0077b3}.duet-theme-turva .duet-button.default:hover{border-color:#c60c30}.duet-button.default.duet-button-negative{background-color:white}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:#e4e4e6 !important}.duet-button.default.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.primary,.duet-button.input-button-primary{color:white !important;background:#0077b3;border-color:#0077b3}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary{color:white !important;background:#c60c30;border-color:#c60c30}.duet-button.primary:hover,.duet-button.input-button-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover{background:#940925;border-color:#940925}.duet-button.primary:focus,.duet-button.input-button-primary:focus{outline:0;box-shadow:0 0 0 1px white, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus,.duet-theme-turva .duet-button.input-button-primary:focus{box-shadow:0 0 0 1px white, 0 0 0 4px rgba(23, 28, 58, 0.7)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-embedded{color:#00294d !important;background:transparent;border-color:#00294d}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:#171c3a !important;border-color:#171c3a}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-embedded:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:#e1e3e6 !important;border-color:white}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:#e4e4e6 !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:#0077b3 !important;border-color:#0077b3}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:#c60c30 !important;border-color:#c60c30}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.negative{color:#00294d !important;background:white;border-color:white}.duet-theme-turva .duet-button.negative{color:#171c3a !important}.duet-button.negative:hover{color:white !important;background:transparent;border-color:white}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #171c3a, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:white !important;background:#de2362;border-color:#de2362}.duet-theme-turva .duet-button.destructive-primary{color:white !important;background:#e02a0d;border-color:#e02a0d}.duet-button.destructive-primary:hover{background:#b21c4e;border-color:#b21c4e;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#b3220a}.duet-button.destructive,.duet-button.destructive-secondary{color:#de2362 !important;background:white;border-color:#de2362}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:#e02a0d !important;background:white;border-color:#e02a0d}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:white !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:white !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:#c60c30 !important;background:transparent;border-color:transparent}.duet-button.plain.icon{padding-left:20px !important}.duet-button.plain.icon.icon-right{padding-right:20px !important;padding-left:0 !important}.duet-button.plain.icon.medium{padding-left:24px !important}.duet-button.plain.icon.medium.icon-right{padding-right:24px !important;padding-left:0 !important}.duet-button.plain.icon.large{padding-left:30px !important}.duet-button.plain.icon.large.icon-right{padding-right:30px !important;padding-left:0 !important}.duet-button.plain .duet-button-icon.left{left:-16.6666666667px !important}.duet-button.plain .duet-button-icon.left.medium{left:-24px !important}.duet-button.plain .duet-button-icon.left.large{left:-30px !important}.duet-button.plain .duet-button-icon.right{right:-16.6666666667px !important}.duet-button.plain .duet-button-icon.right.medium{right:-24px !important}.duet-button.plain .duet-button-icon.right.large{right:-30px !important}.duet-button.plain[disabled]{color:#657787 !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;cursor:not-allowed;background:transparent !important;border-color:#e4e4e6 !important}.duet-button.plain:hover{color:#004d80 !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:#940925 !important}.duet-button.plain.duet-button-negative{color:white !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:#e4e4e6 !important}.duet-button.plain.duet-button-negative:hover{color:#0077b3 !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:#c60c30 !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px;border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:#657787 !important;cursor:not-allowed;background:#e1e3e6 !important;border-color:#e1e3e6 !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:#747475 !important;cursor:not-allowed;background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:white}.duet-button-is-loading.default{color:#0077b3}.duet-button-is-loading.default.duet-theme-turva{color:#c60c30}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}";
|
|
14
|
-
|
|
15
|
-
const DuetButton = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this.__registerHost();
|
|
19
|
-
this.__attachShadow();
|
|
20
|
-
this.duetFocus = createEvent(this, "duetFocus", 7);
|
|
21
|
-
this.duetBlur = createEvent(this, "duetBlur", 7);
|
|
22
|
-
/**
|
|
23
|
-
* Component event handling.
|
|
24
|
-
*/
|
|
25
|
-
this.handleClick = (ev) => {
|
|
26
|
-
// If this button wants to specifically submit a form
|
|
27
|
-
// climb up the dom to see if we're in a <form>
|
|
28
|
-
// and if so, then use JS to submit it.
|
|
29
|
-
// To understand better, see: https://www.hjorthhansen.dev/shadow-dom-form-participation/
|
|
30
|
-
if (!this.url && this.element.closest("form")) {
|
|
31
|
-
ev.preventDefault();
|
|
32
|
-
this.proxyButton.click();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
this.onFocus = () => {
|
|
36
|
-
this.duetFocus.emit();
|
|
37
|
-
};
|
|
38
|
-
this.onBlur = () => {
|
|
39
|
-
this.duetBlur.emit();
|
|
40
|
-
};
|
|
41
|
-
this.accessibleLabel = undefined;
|
|
42
|
-
this.accessibleControls = undefined;
|
|
43
|
-
this.accessiblePopup = "false";
|
|
44
|
-
this.accessibleActiveDescendant = undefined;
|
|
45
|
-
this.accessibleOwns = undefined;
|
|
46
|
-
this.accessibleDescribedBy = undefined;
|
|
47
|
-
this.accessibleDetails = undefined;
|
|
48
|
-
this.accessibleLabelledBy = undefined;
|
|
49
|
-
this.accessibleDescription = undefined;
|
|
50
|
-
this.accessibleExpanded = undefined;
|
|
51
|
-
this.accessiblePressed = undefined;
|
|
52
|
-
this.loading = false;
|
|
53
|
-
this.variation = "default";
|
|
54
|
-
this.negative = false;
|
|
55
|
-
this.theme = "";
|
|
56
|
-
this.margin = "auto";
|
|
57
|
-
this.padding = "auto";
|
|
58
|
-
this.centerText = false;
|
|
59
|
-
this.wrapping = "auto";
|
|
60
|
-
this.expand = false;
|
|
61
|
-
this.fixed = false;
|
|
62
|
-
this.disabled = false;
|
|
63
|
-
this.name = undefined;
|
|
64
|
-
this.value = undefined;
|
|
65
|
-
this.identifier = undefined;
|
|
66
|
-
this.submit = false;
|
|
67
|
-
this.external = false;
|
|
68
|
-
this.language = getLanguage();
|
|
69
|
-
this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
|
|
70
|
-
this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
|
|
71
|
-
this.icon = "";
|
|
72
|
-
this.color = "";
|
|
73
|
-
this.iconRight = false;
|
|
74
|
-
this.iconSize = "medium";
|
|
75
|
-
this.size = "medium";
|
|
76
|
-
this.iconOnly = false;
|
|
77
|
-
this.url = undefined;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Component lifecycle events.
|
|
81
|
-
*/
|
|
82
|
-
componentWillLoad() {
|
|
83
|
-
inheritGlobalTheme(this);
|
|
84
|
-
if (this.url && this.external && this.icon) {
|
|
85
|
-
console.warn("[DUET]: Button used as an external link will override any icon that is set");
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
connectedCallback() {
|
|
89
|
-
this.proxyButton = document.createElement("button");
|
|
90
|
-
this.proxyButton.style.display = "none";
|
|
91
|
-
this.syncToProxyButton();
|
|
92
|
-
if (!this.url && this.element.closest("form")) {
|
|
93
|
-
this.element.insertAdjacentElement("beforebegin", this.proxyButton);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
disconnectedCallback() {
|
|
97
|
-
this.proxyButton.remove();
|
|
98
|
-
this.proxyButton = null;
|
|
99
|
-
}
|
|
100
|
-
syncToProxyButton() {
|
|
101
|
-
this.proxyButton.type = this.getButtonType();
|
|
102
|
-
this.proxyButton.disabled = this.disabled;
|
|
103
|
-
// attributes should be removed in cases where name/value is not set
|
|
104
|
-
if (this.name != null) {
|
|
105
|
-
this.proxyButton.name = this.name;
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
this.proxyButton.removeAttribute("name");
|
|
109
|
-
}
|
|
110
|
-
if (this.value != null) {
|
|
111
|
-
this.proxyButton.value = this.value;
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
this.proxyButton.removeAttribute("value");
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
getButtonType() {
|
|
118
|
-
return this.submit ? "submit" : "button";
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Sets focus on the specified `duet-button`. Use this method instead of the global
|
|
122
|
-
* `button.focus()`.
|
|
123
|
-
*/
|
|
124
|
-
async setFocus(options) {
|
|
125
|
-
if (this.nativeButton) {
|
|
126
|
-
this.nativeButton.focus(options);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* render() function.
|
|
131
|
-
* Always the last one in the class.
|
|
132
|
-
*/
|
|
133
|
-
render() {
|
|
134
|
-
const isExternalLink = this.external && this.url;
|
|
135
|
-
// enforce consistency for external links
|
|
136
|
-
const icon = isExternalLink ? "action-new-window" : this.icon;
|
|
137
|
-
const iconRight = isExternalLink ? true : this.iconRight;
|
|
138
|
-
const commonChildren = (h("span", { class: "duet-button-contents", style: { color: getColorByName(this.color) } }, icon && (h("div", { "aria-hidden": "true", class: {
|
|
139
|
-
"duet-button-icon": true,
|
|
140
|
-
left: !iconRight,
|
|
141
|
-
right: iconRight,
|
|
142
|
-
[this.iconSize]: true,
|
|
143
|
-
} }, h("duet-icon", { size: "auto", margin: "none", name: icon, color: "currentColor" }))), h("slot", null)));
|
|
144
|
-
const commonProps = {
|
|
145
|
-
onFocus: this.onFocus,
|
|
146
|
-
onBlur: this.onBlur,
|
|
147
|
-
ref: button => (this.nativeButton = button),
|
|
148
|
-
id: this.identifier,
|
|
149
|
-
class: {
|
|
150
|
-
"duet-m-0": this.margin === "none",
|
|
151
|
-
"duet-p-0": this.padding === "none",
|
|
152
|
-
"duet-no-wrap": this.wrapping === "none",
|
|
153
|
-
"duet-button": true,
|
|
154
|
-
"duet-button-is-small": this.size === "small",
|
|
155
|
-
"duet-button-icon-only": this.iconOnly,
|
|
156
|
-
"duet-button-text-center": this.centerText,
|
|
157
|
-
"duet-button-negative": this.negative || this.variation === "negative",
|
|
158
|
-
[this.variation]: true,
|
|
159
|
-
disabled: this.disabled,
|
|
160
|
-
icon: !!icon,
|
|
161
|
-
"icon-right": iconRight,
|
|
162
|
-
[this.iconSize]: true,
|
|
163
|
-
},
|
|
164
|
-
"aria-controls": this.accessibleControls,
|
|
165
|
-
"aria-label": this.accessibleLabel,
|
|
166
|
-
"aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined,
|
|
167
|
-
"aria-activedescendant": this.accessibleActiveDescendant,
|
|
168
|
-
"aria-owns": this.accessibleOwns,
|
|
169
|
-
"aria-describedby": this.accessibleDescribedBy,
|
|
170
|
-
"aria-labelledby": this.accessibleLabelledBy,
|
|
171
|
-
"aria-details": this.accessibleDetails,
|
|
172
|
-
"aria-description": this.accessibleDescription,
|
|
173
|
-
};
|
|
174
|
-
return (h(Host, { onClick: this.handleClick, class: {
|
|
175
|
-
"duet-m-0": this.margin === "none",
|
|
176
|
-
"duet-small": this.size === "small",
|
|
177
|
-
"duet-fixed": this.fixed,
|
|
178
|
-
"duet-expand": this.expand,
|
|
179
|
-
"input-button": this.variation.startsWith("input-button"),
|
|
180
|
-
} }, h("div", { class: {
|
|
181
|
-
"duet-button-container": true,
|
|
182
|
-
"duet-button-is-loading": this.loading,
|
|
183
|
-
"duet-theme-turva": this.theme === "turva",
|
|
184
|
-
"duet-button-negative": this.negative || this.variation === "negative",
|
|
185
|
-
[this.variation]: true,
|
|
186
|
-
} }, this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }), commonChildren, this.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren)), this.loading && h("duet-spinner", { color: "currentColor" }))));
|
|
187
|
-
}
|
|
188
|
-
get element() { return this; }
|
|
189
|
-
static get watchers() { return {
|
|
190
|
-
"disabled": ["syncToProxyButton"],
|
|
191
|
-
"submit": ["syncToProxyButton"],
|
|
192
|
-
"value": ["syncToProxyButton"],
|
|
193
|
-
"name": ["syncToProxyButton"]
|
|
194
|
-
}; }
|
|
195
|
-
static get style() { return duetButtonCss; }
|
|
196
|
-
}, [1, "duet-button", {
|
|
197
|
-
"accessibleLabel": [1, "accessible-label"],
|
|
198
|
-
"accessibleControls": [1, "accessible-controls"],
|
|
199
|
-
"accessiblePopup": [1, "accessible-popup"],
|
|
200
|
-
"accessibleActiveDescendant": [1, "accessible-active-descendant"],
|
|
201
|
-
"accessibleOwns": [1, "accessible-owns"],
|
|
202
|
-
"accessibleDescribedBy": [1, "accessible-described-by"],
|
|
203
|
-
"accessibleDetails": [1, "accessible-details"],
|
|
204
|
-
"accessibleLabelledBy": [1, "accessible-labelled-by"],
|
|
205
|
-
"accessibleDescription": [1, "accessible-description"],
|
|
206
|
-
"accessibleExpanded": [4, "accessible-expanded"],
|
|
207
|
-
"accessiblePressed": [4, "accessible-pressed"],
|
|
208
|
-
"loading": [4],
|
|
209
|
-
"variation": [1],
|
|
210
|
-
"negative": [4],
|
|
211
|
-
"theme": [1025],
|
|
212
|
-
"margin": [1],
|
|
213
|
-
"padding": [1],
|
|
214
|
-
"centerText": [4, "center-text"],
|
|
215
|
-
"wrapping": [1],
|
|
216
|
-
"expand": [4],
|
|
217
|
-
"fixed": [4],
|
|
218
|
-
"disabled": [516],
|
|
219
|
-
"name": [1],
|
|
220
|
-
"value": [1],
|
|
221
|
-
"identifier": [1],
|
|
222
|
-
"submit": [516],
|
|
223
|
-
"external": [4],
|
|
224
|
-
"language": [1],
|
|
225
|
-
"accessibleLabelExternalDefaults": [1, "accessible-label-external-default"],
|
|
226
|
-
"accessibleLabelExternal": [1, "accessible-label-external"],
|
|
227
|
-
"icon": [1],
|
|
228
|
-
"color": [1],
|
|
229
|
-
"iconRight": [4, "icon-right"],
|
|
230
|
-
"iconSize": [1, "icon-size"],
|
|
231
|
-
"size": [1],
|
|
232
|
-
"iconOnly": [4, "icon-only"],
|
|
233
|
-
"url": [513],
|
|
234
|
-
"setFocus": [64]
|
|
235
|
-
}]);
|
|
236
|
-
function defineCustomElement() {
|
|
237
|
-
if (typeof customElements === "undefined") {
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
const components = ["duet-button", "duet-icon", "duet-spinner", "duet-visually-hidden"];
|
|
241
|
-
components.forEach(tagName => { switch (tagName) {
|
|
242
|
-
case "duet-button":
|
|
243
|
-
if (!customElements.get(tagName)) {
|
|
244
|
-
customElements.define(tagName, DuetButton);
|
|
245
|
-
}
|
|
246
|
-
break;
|
|
247
|
-
case "duet-icon":
|
|
248
|
-
if (!customElements.get(tagName)) {
|
|
249
|
-
defineCustomElement$3();
|
|
250
|
-
}
|
|
251
|
-
break;
|
|
252
|
-
case "duet-spinner":
|
|
253
|
-
if (!customElements.get(tagName)) {
|
|
254
|
-
defineCustomElement$2();
|
|
255
|
-
}
|
|
256
|
-
break;
|
|
257
|
-
case "duet-visually-hidden":
|
|
258
|
-
if (!customElements.get(tagName)) {
|
|
259
|
-
defineCustomElement$1();
|
|
260
|
-
}
|
|
261
|
-
break;
|
|
262
|
-
} });
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export { DuetButton as D, defineCustomElement as d };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h } from './p-e47da081.js';
|
|
5
|
-
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
7
|
-
import { g as getColorByName } from './p-535ce3ec.js';
|
|
8
|
-
|
|
9
|
-
const duetHeadingCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:#00294d;text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-heading.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:italic;font-weight:700;color:#171c3a}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid #e1e3e6}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:#657787}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h1{font-size:7vw}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h2{font-size:5.8vw}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}";
|
|
10
|
-
|
|
11
|
-
const DuetHeading = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.level = "h2";
|
|
17
|
-
this.margin = "auto";
|
|
18
|
-
this.visualLevel = undefined;
|
|
19
|
-
this.border = false;
|
|
20
|
-
this.weight = "auto";
|
|
21
|
-
this.color = "";
|
|
22
|
-
this.theme = "";
|
|
23
|
-
this.hyphenate = false;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Component lifecycle events.
|
|
27
|
-
*/
|
|
28
|
-
componentWillLoad() {
|
|
29
|
-
inheritGlobalTheme(this);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* render() function
|
|
33
|
-
* Always the last one in the class.
|
|
34
|
-
*/
|
|
35
|
-
render() {
|
|
36
|
-
const TagName = sanitizeString(this.level);
|
|
37
|
-
const color = getColorByName(this.color);
|
|
38
|
-
return (h(TagName, { class: {
|
|
39
|
-
"duet-heading": true,
|
|
40
|
-
"duet-heading-border": this.border !== false,
|
|
41
|
-
"duet-heading-border-solid": this.border === "solid",
|
|
42
|
-
"duet-normal": this.weight === "normal",
|
|
43
|
-
"duet-semibold": this.weight === "semibold",
|
|
44
|
-
"duet-heading-hyphenate": this.hyphenate,
|
|
45
|
-
"duet-m-0": this.margin === "none",
|
|
46
|
-
[this.visualLevel ? this.visualLevel : this.level]: true,
|
|
47
|
-
"duet-theme-turva": this.theme === "turva",
|
|
48
|
-
}, style: { color } }, h("slot", null)));
|
|
49
|
-
}
|
|
50
|
-
get element() { return this; }
|
|
51
|
-
static get style() { return duetHeadingCss; }
|
|
52
|
-
}, [1, "duet-heading", {
|
|
53
|
-
"level": [513],
|
|
54
|
-
"margin": [1],
|
|
55
|
-
"visualLevel": [1, "visual-level"],
|
|
56
|
-
"border": [8],
|
|
57
|
-
"weight": [1],
|
|
58
|
-
"color": [1],
|
|
59
|
-
"theme": [1025],
|
|
60
|
-
"hyphenate": [4]
|
|
61
|
-
}]);
|
|
62
|
-
function defineCustomElement() {
|
|
63
|
-
if (typeof customElements === "undefined") {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const components = ["duet-heading"];
|
|
67
|
-
components.forEach(tagName => { switch (tagName) {
|
|
68
|
-
case "duet-heading":
|
|
69
|
-
if (!customElements.get(tagName)) {
|
|
70
|
-
customElements.define(tagName, DuetHeading);
|
|
71
|
-
}
|
|
72
|
-
break;
|
|
73
|
-
} });
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { DuetHeading as D, defineCustomElement as d };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, c as Host } from './p-e47da081.js';
|
|
5
|
-
|
|
6
|
-
const duetListItemCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-flow:row;width:100%;overflow:visible;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:#00294d}@media (max-width: 35.9375em){:host{flex-wrap:wrap}}:host dt,:host dd{margin-inline-start:0;-webkit-hyphens:auto;hyphens:auto;text-align:left;word-break:break-all;word-break:break-word}@media (max-width: 35.9375em){:host dt,:host dd{flex:inherit;flex-basis:100% !important;width:100%;padding-bottom:4px !important}}:host dt{padding:16px !important;font-weight:600}@media (max-width: 35.9375em){:host dt{padding-bottom:4px !important}}.duet-theme-turva :host dt{font-weight:700}:host dd{padding:16px !important;margin-left:auto;text-align:left}@media (max-width: 35.9375em){:host dd{padding-top:0 !important}}:host(:not(.duet-list-striped)) dt{padding:8px !important;padding-left:0 !important}@media (max-width: 35.9375em){:host(:not(.duet-list-striped)) dt{padding-bottom:4px !important}}:host(:not(.duet-list-striped)) dd{padding:8px !important;padding-left:0 !important}@media (max-width: 35.9375em){:host(:not(.duet-list-striped)) dd{padding-top:0 !important}}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a}:host(.duet-list-striped:nth-child(odd)) dt,:host(.duet-list-striped:nth-child(odd)) dd{background:#f5f8fa}:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:#f5f5f7}:host(.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-width-70) dd{flex-basis:35%}:host(.duet-p-0) dt,:host(.duet-p-0) dd{padding-top:0 !important;padding-bottom:4px !important}@media (max-width: 35.9375em){:host(.duet-list-mobile-center) dt,:host(.duet-list-mobile-center) dd{text-align:center}}@media (max-width: 61.9375em){:host(.duet-list-breakpoint-large){flex-wrap:wrap}:host(.duet-list-breakpoint-large) dt,:host(.duet-list-breakpoint-large) dd{flex:inherit;flex-basis:100% !important;width:100%;padding-bottom:4px !important}:host(.duet-list-breakpoint-large) dd{padding-top:0 !important}}:host(.duet-list-breakpoint-large.duet-list-striped) dd{padding-bottom:16px !important}@media (max-width: 61.9375em){:host(.duet-list-breakpoint-large.duet-list-mobile-center) dt,:host(.duet-list-breakpoint-large.duet-list-mobile-center) dd{text-align:center !important}}";
|
|
7
|
-
|
|
8
|
-
const DuetListItem = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* render() function
|
|
16
|
-
* Always the last one in the class.
|
|
17
|
-
*/
|
|
18
|
-
render() {
|
|
19
|
-
return (h(Host, null, h("dt", null, h("slot", { name: "label" })), h("dd", null, h("slot", { name: "value" }))));
|
|
20
|
-
}
|
|
21
|
-
static get style() { return duetListItemCss; }
|
|
22
|
-
}, [1, "duet-list-item"]);
|
|
23
|
-
function defineCustomElement() {
|
|
24
|
-
if (typeof customElements === "undefined") {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const components = ["duet-list-item"];
|
|
28
|
-
components.forEach(tagName => { switch (tagName) {
|
|
29
|
-
case "duet-list-item":
|
|
30
|
-
if (!customElements.get(tagName)) {
|
|
31
|
-
customElements.define(tagName, DuetListItem);
|
|
32
|
-
}
|
|
33
|
-
break;
|
|
34
|
-
} });
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { DuetListItem as D, defineCustomElement as d };
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, c as Host } from './p-e47da081.js';
|
|
5
|
-
import { h as sizeNavigation, s as sizeHeader } from './p-55325c49.js';
|
|
6
|
-
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
7
|
-
import { d as debounce } from './p-0b3f675e.js';
|
|
8
|
-
import { b as breakpointToToken } from './p-535ce3ec.js';
|
|
9
|
-
|
|
10
|
-
const duetTableCss = "duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-theme-turva table{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:#00294d}duet-table.duet-theme-turva td{color:#171c3a}duet-table th{font-weight:600;line-height:1.25;color:#657787;text-align:left}duet-table.duet-theme-turva th{color:#747475}duet-table tbody th{font-weight:600;color:#00294d}duet-table.duet-theme-turva tbody th{color:#171c3a}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:#657787;text-align:left}.duet-table-flattened td[data-heading]::before{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:#00294d;content:attr(data-heading)}.duet-table-flattened.duet-theme-turva td[data-heading]::before{color:#171c3a}.duet-table-sticky thead th{position:sticky;top:0;background:white}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:white}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid #e1e3e6}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:#e4e4e6}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid #e1e3e6}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#e4e4e6}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid #e1e3e6}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#e4e4e6}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid #657787}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:#444445}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:#e1e3e6}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:#e4e4e6}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid #e1e3e6}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:#e4e4e6}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid #e1e3e6}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#e4e4e6}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid #e1e3e6}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid #e1e3e6}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#e4e4e6}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid #e1e3e6}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:#e4e4e6}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid #e1e3e6}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:#e4e4e6}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:\"\"}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}";
|
|
11
|
-
|
|
12
|
-
const stickyTopValues = {
|
|
13
|
-
none: 0,
|
|
14
|
-
"with-links": parseFloat(sizeNavigation) * 16,
|
|
15
|
-
"without-links": parseFloat(sizeHeader) * 16,
|
|
16
|
-
};
|
|
17
|
-
const DuetTable = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
18
|
-
constructor() {
|
|
19
|
-
super();
|
|
20
|
-
this.__registerHost();
|
|
21
|
-
this.headingSelector = "thead tr > :not(*.duet-editable-table-actions-menu)";
|
|
22
|
-
this.handleMediaQueryChange = (mq) => {
|
|
23
|
-
this.matchesBreakpoint = mq.matches;
|
|
24
|
-
};
|
|
25
|
-
this.matchesBreakpoint = true;
|
|
26
|
-
this.theme = undefined;
|
|
27
|
-
this.margin = "auto";
|
|
28
|
-
this.variation = "striped";
|
|
29
|
-
this.sticky = false;
|
|
30
|
-
this.stickyDistance = "with-links";
|
|
31
|
-
this.breakpoint = "small";
|
|
32
|
-
}
|
|
33
|
-
connectedCallback() {
|
|
34
|
-
const token = this.breakpoint === "none" || this.breakpoint === "none-scrollable" ? "all" : breakpointToToken[this.breakpoint];
|
|
35
|
-
this.mq = matchMedia(token);
|
|
36
|
-
this.mq.addEventListener("change", debounce(this.handleMediaQueryChange, 50));
|
|
37
|
-
this.handleMediaQueryChange(this.mq);
|
|
38
|
-
this.observer = new MutationObserver(() => debounce(this.copyHeadingsToCells(), 50));
|
|
39
|
-
this.observer.observe(this.element, {
|
|
40
|
-
childList: true,
|
|
41
|
-
subtree: true,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
componentWillLoad() {
|
|
45
|
-
inheritGlobalTheme(this);
|
|
46
|
-
this.copyHeadingsToCells();
|
|
47
|
-
if (this.sticky && this.breakpoint === "none-scrollable") {
|
|
48
|
-
console.warn(`[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence`);
|
|
49
|
-
}
|
|
50
|
-
if (this.sticky) {
|
|
51
|
-
const stickyTop = stickyTopValues[this.stickyDistance];
|
|
52
|
-
const headingElements = this.element.querySelectorAll(this.headingSelector);
|
|
53
|
-
headingElements.forEach(th => (th.style.top = `${stickyTop}px`));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
componentDidLoad() {
|
|
57
|
-
// this clears all pending mutations,
|
|
58
|
-
// that way we avoid dealing with any initial changes
|
|
59
|
-
// and only get genuine mutations as rows are added/removed
|
|
60
|
-
this.observer ? this.observer.takeRecords() : null;
|
|
61
|
-
}
|
|
62
|
-
disconnectedCallback() {
|
|
63
|
-
this.observer.disconnect();
|
|
64
|
-
this.observer = null;
|
|
65
|
-
this.mq.removeListener(this.handleMediaQueryChange);
|
|
66
|
-
this.mq = null;
|
|
67
|
-
this.matchesBreakpoint = true;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Local methods.
|
|
71
|
-
*/
|
|
72
|
-
copyHeadingsToCells() {
|
|
73
|
-
const headingElements = this.element.querySelectorAll(this.headingSelector);
|
|
74
|
-
const rowElements = this.element.querySelectorAll("tbody tr");
|
|
75
|
-
const headings = Array.from(headingElements).map(th => th.textContent.trim());
|
|
76
|
-
rowElements.forEach(tr => {
|
|
77
|
-
tr.querySelectorAll("td").forEach((td, i) => {
|
|
78
|
-
if (headings[i]) {
|
|
79
|
-
td.dataset.heading = headings[i];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
render() {
|
|
85
|
-
return (h(Host, { class: {
|
|
86
|
-
[`duet-table-${this.variation}`]: true,
|
|
87
|
-
"duet-table-flattened": !this.matchesBreakpoint,
|
|
88
|
-
// sticky only valid when in regular table layout
|
|
89
|
-
"duet-table-sticky": this.matchesBreakpoint && this.sticky,
|
|
90
|
-
"duet-table-scrollable": this.breakpoint === "none-scrollable",
|
|
91
|
-
"duet-m-0": this.margin === "none",
|
|
92
|
-
"duet-theme-turva": this.theme === "turva",
|
|
93
|
-
} }, h("slot", null)));
|
|
94
|
-
}
|
|
95
|
-
get element() { return this; }
|
|
96
|
-
static get style() { return duetTableCss; }
|
|
97
|
-
}, [4, "duet-table", {
|
|
98
|
-
"theme": [1025],
|
|
99
|
-
"margin": [1],
|
|
100
|
-
"variation": [1],
|
|
101
|
-
"sticky": [4],
|
|
102
|
-
"stickyDistance": [1, "sticky-distance"],
|
|
103
|
-
"breakpoint": [1],
|
|
104
|
-
"matchesBreakpoint": [32]
|
|
105
|
-
}]);
|
|
106
|
-
function defineCustomElement() {
|
|
107
|
-
if (typeof customElements === "undefined") {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
const components = ["duet-table"];
|
|
111
|
-
components.forEach(tagName => { switch (tagName) {
|
|
112
|
-
case "duet-table":
|
|
113
|
-
if (!customElements.get(tagName)) {
|
|
114
|
-
customElements.define(tagName, DuetTable);
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
} });
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { DuetTable as D, defineCustomElement as d };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,c,o){function i(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,n){function a(e){try{d(o.next(e))}catch(t){n(t)}}function s(e){try{d(o["throw"](e))}catch(t){n(t)}}function d(e){e.done?c(e.value):i(e.value).then(a,s)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var c={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return d([e,t])}}function d(s){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(c=0)),c)try{if(o=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:c.label++;return{value:s[1],done:false};case 5:c.label++;i=s[1];s=[0];continue;case 7:s=c.ops.pop();c.trys.pop();continue;default:if(!(n=c.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){c=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){c.label=s[1];break}if(s[0]===6&&c.label<n[1]){c.label=n[1];n=s;break}if(n&&c.label<n[2]){c.label=n[2];c.ops.push(s);break}if(n[2])c.ops.pop();c.trys.pop();continue}s=t.call(e,c)}catch(d){s=[6,d];i=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-b32f4c37.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js"],(function(e){"use strict";var t,c,o,i,n,a,s;return{setters:[function(e){t=e.r;c=e.c;o=e.h;i=e.H;n=e.g},function(e){a=e.i},function(e){s=e.c}],execute:function(){var d='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#00294d;vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#171c3a}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:white;border:1px solid #00294d;border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#171c3a}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#00294d;border:1px solid #00294d}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#171c3a;border-color:#171c3a}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:#657787}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:#747475}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#cfd2d4}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:#cfcfd1}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#657787;border:1px solid #657787}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:#747475;border-color:#747475}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var r=e("duet_checkbox",function(){function e(e){var o=this;t(this,e);this.duetChange=c(this,"duetChange",3);this.duetFocus=c(this,"duetFocus",7);this.duetBlur=c(this,"duetBlur",7);this.checkboxId=s("DuetCheckbox");this.onChange=function(e){o.checked=!o.checked;o.duetChange.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-checkbox"})};this.onBlur=function(e){o.duetBlur.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-checkbox"})};this.onFocus=function(e){o.duetFocus.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-checkbox"})};this.accessibleActiveDescendant=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleIndex=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleSelected=undefined;this.required=false;this.theme="";this.disabled=false;this.identifier=undefined;this.label="label";this.labelHidden=false;this.name=undefined;this.role=undefined;this.checked=false;this.value=undefined}e.prototype.componentWillLoad=function(){a(this);if(this.value===undefined){this.value=this.identifier}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.checkboxId;return o(i,{class:{"duet-m-0":this.margin==="none"}},o("div",{class:{"duet-checkbox-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"}},o("input",{ref:function(t){return e.nativeInput=t},type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":true,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-selected":this.accessibleSelected,required:this.required,role:this.role,name:this.name,id:t}),o("label",{class:"duet-label",htmlFor:t},o("span",null,this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());r.style=d}}}));
|