@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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-308a73c1.js';
|
|
5
|
+
import { s as sizeNavigation, i as sizeHeader } from './p-33e00967.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-9ed347f9.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-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{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.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:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}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:rgb(101, 119, 135);text-align:left}.duet-table-flattened td[data-heading]::before{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);content:attr(data-heading)}.duet-table-flattened.duet-theme-turva td[data-heading]::before{color:rgb(23, 28, 58)}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.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:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.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:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.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:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.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:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.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 rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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 rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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
|
+
this.hideHeadVisually = false;
|
|
33
|
+
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
const token = this.breakpoint === "none" || this.breakpoint === "none-scrollable" ? "all" : breakpointToToken[this.breakpoint];
|
|
36
|
+
this.mq = matchMedia(token);
|
|
37
|
+
this.mq.addEventListener("change", debounce(this.handleMediaQueryChange, 50));
|
|
38
|
+
this.handleMediaQueryChange(this.mq);
|
|
39
|
+
this.observer = new MutationObserver(() => debounce(this.copyHeadingsToCells(), 50));
|
|
40
|
+
this.observer.observe(this.element, {
|
|
41
|
+
childList: true,
|
|
42
|
+
subtree: true,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
componentWillLoad() {
|
|
46
|
+
inheritGlobalTheme(this);
|
|
47
|
+
this.copyHeadingsToCells();
|
|
48
|
+
if (this.sticky && this.breakpoint === "none-scrollable") {
|
|
49
|
+
console.warn(`[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence`);
|
|
50
|
+
}
|
|
51
|
+
if (this.sticky) {
|
|
52
|
+
const stickyTop = stickyTopValues[this.stickyDistance];
|
|
53
|
+
const headingElements = this.element.querySelectorAll(this.headingSelector);
|
|
54
|
+
headingElements.forEach(th => (th.style.top = `${stickyTop}px`));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
componentDidLoad() {
|
|
58
|
+
// this clears all pending mutations,
|
|
59
|
+
// that way we avoid dealing with any initial changes
|
|
60
|
+
// and only get genuine mutations as rows are added/removed
|
|
61
|
+
this.observer ? this.observer.takeRecords() : null;
|
|
62
|
+
}
|
|
63
|
+
disconnectedCallback() {
|
|
64
|
+
this.observer.disconnect();
|
|
65
|
+
this.observer = null;
|
|
66
|
+
this.mq.removeListener(this.handleMediaQueryChange);
|
|
67
|
+
this.mq = null;
|
|
68
|
+
this.matchesBreakpoint = true;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Local methods.
|
|
72
|
+
*/
|
|
73
|
+
copyHeadingsToCells() {
|
|
74
|
+
const headingElements = this.element.querySelectorAll(this.headingSelector);
|
|
75
|
+
const rowElements = this.element.querySelectorAll("tbody tr");
|
|
76
|
+
const headings = Array.from(headingElements).map(th => th.textContent.trim());
|
|
77
|
+
rowElements.forEach(tr => {
|
|
78
|
+
tr.querySelectorAll("td").forEach((td, i) => {
|
|
79
|
+
if (headings[i]) {
|
|
80
|
+
td.dataset.heading = headings[i];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return (h(Host, { class: {
|
|
87
|
+
[`duet-table-${this.variation}`]: true,
|
|
88
|
+
"duet-table-flattened": !this.matchesBreakpoint,
|
|
89
|
+
// sticky only valid when in regular table layout
|
|
90
|
+
"duet-table-sticky": this.matchesBreakpoint && this.sticky,
|
|
91
|
+
"duet-table-scrollable": this.breakpoint === "none-scrollable",
|
|
92
|
+
"duet-m-0": this.margin === "none",
|
|
93
|
+
"duet-theme-turva": this.theme === "turva",
|
|
94
|
+
"duet-table-hide-head-visually": this.hideHeadVisually,
|
|
95
|
+
} }, h("slot", null)));
|
|
96
|
+
}
|
|
97
|
+
get element() { return this; }
|
|
98
|
+
static get style() { return duetTableCss; }
|
|
99
|
+
}, [4, "duet-table", {
|
|
100
|
+
"theme": [1025],
|
|
101
|
+
"margin": [1],
|
|
102
|
+
"variation": [1],
|
|
103
|
+
"sticky": [4],
|
|
104
|
+
"stickyDistance": [1, "sticky-distance"],
|
|
105
|
+
"breakpoint": [1],
|
|
106
|
+
"hideHeadVisually": [4, "hide-head-visually"],
|
|
107
|
+
"matchesBreakpoint": [32]
|
|
108
|
+
}]);
|
|
109
|
+
function defineCustomElement() {
|
|
110
|
+
if (typeof customElements === "undefined") {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const components = ["duet-table"];
|
|
114
|
+
components.forEach(tagName => { switch (tagName) {
|
|
115
|
+
case "duet-table":
|
|
116
|
+
if (!customElements.get(tagName)) {
|
|
117
|
+
customElements.define(tagName, DuetTable);
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
} });
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { DuetTable as D, defineCustomElement as d };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { E as Env, p as proxyCustomElement, H, h, d as Host } from './p-308a73c1.js';
|
|
5
|
+
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
+
import { g as getColorByName } from './p-9ed347f9.js';
|
|
7
|
+
|
|
8
|
+
const cleanupSvg = (svgContent) => {
|
|
9
|
+
if (typeof document === "undefined" || !svgContent) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const div = document.createElement("div");
|
|
13
|
+
div.innerHTML = svgContent;
|
|
14
|
+
// setup this way to ensure it works on our buddy IE
|
|
15
|
+
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
|
16
|
+
const child = div.childNodes[i];
|
|
17
|
+
if (child.nodeName.toLowerCase() !== "svg") {
|
|
18
|
+
div.removeChild(div.childNodes[i]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return div.firstElementChild;
|
|
22
|
+
};
|
|
23
|
+
const isValid = (elm) => {
|
|
24
|
+
if (elm.nodeName.toLowerCase() === "script") {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
for (let i = 0; i < elm.attributes.length; i++) {
|
|
28
|
+
const attribute = elm.attributes[i];
|
|
29
|
+
if (attribute.name.toLowerCase().indexOf("on") === 0) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (elm.children) {
|
|
34
|
+
for (let i = 0; i < elm.children.length; i++) {
|
|
35
|
+
if (!isValid(elm.children[i])) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return true;
|
|
41
|
+
};
|
|
42
|
+
const buildIconUrl = (iconName) => {
|
|
43
|
+
// under normal operations the Icons should always be loaded from the CDN
|
|
44
|
+
{
|
|
45
|
+
return `${Env.cdnURIProd}/icons/${Env.duetIconVersion}/lib/assets/${iconName}.svg`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const iconCache = {};
|
|
49
|
+
function fetchIconByUrl(url) {
|
|
50
|
+
if (iconCache[url]) {
|
|
51
|
+
return iconCache[url];
|
|
52
|
+
}
|
|
53
|
+
// we create a function that covers all the fetching, cleanup, validation etc,
|
|
54
|
+
// this way we can perform that work just once, and then return the same promise in future.
|
|
55
|
+
async function doFetch() {
|
|
56
|
+
const res = await fetch(url);
|
|
57
|
+
if (!res.ok) {
|
|
58
|
+
throw new Error(`SVG request failed: ${res.status} ${res.statusText}`);
|
|
59
|
+
}
|
|
60
|
+
const responseText = await res.text();
|
|
61
|
+
const svgElement = cleanupSvg(responseText);
|
|
62
|
+
if (!isValid(svgElement)) {
|
|
63
|
+
throw new Error("SVG validation failed");
|
|
64
|
+
}
|
|
65
|
+
// OuterHTML does not unfortunately work here with IE11
|
|
66
|
+
// was previously: resolve(svgElement.outerHTML)
|
|
67
|
+
const div = document.createElement("div");
|
|
68
|
+
div.appendChild(svgElement);
|
|
69
|
+
return div.innerHTML;
|
|
70
|
+
}
|
|
71
|
+
// we do not `await` the fetch, as we only care about initiating the work,
|
|
72
|
+
// it's the responsibility of the calling code to wait for the response.
|
|
73
|
+
const req = doFetch();
|
|
74
|
+
// cache for the repeat requests
|
|
75
|
+
return (iconCache[url] = req);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const duetIconCss = "*,*::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-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}.duet-icon.duet-icon-has-background.xxx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xxx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xx-small .duet-icon-svg{width:16px;height:16px}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.auto .duet-icon-svg{width:100%;height:100%}.duet-icon.xxx-small .duet-icon-svg{width:7px;height:7px}.duet-icon.duet-icon-has-background.xxx-small{padding:6px}.duet-icon.duet-icon-has-outline.xxx-small{padding:4px}.duet-icon.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small{padding:8px}.duet-icon.duet-icon-has-outline.xx-small{padding:7px}.duet-icon.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-has-outline.x-small{padding:10px}.duet-icon.duet-icon-has-background.x-small{padding:12px}.duet-icon.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-has-background.small{padding:14px}.duet-icon.large .duet-icon-svg{width:30px;height:30px}.duet-icon.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.xxx-large .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){.duet-icon.xxx-large .duet-icon-svg{width:72px;height:72px}}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(20deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-small{width:18px;height:15px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-small{width:32px;height:30px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.small{width:36px;height:34px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.medium{width:48px;height:44px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.large{width:62px;height:56px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-large{width:76px;height:68px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-large{width:95px;height:86px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xxx-large{width:144px;height:130px;padding:0}.duet-icon.duet-icon-shape-brand.xxx-small{padding:0}.duet-icon.duet-icon-shape-brand.xxx-small .duet-icon-svg{width:0;height:0}.duet-icon.duet-icon-shape-brand.xx-small{padding:4px}.duet-icon.duet-icon-shape-brand.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-shape-brand.x-small{padding:8px}.duet-icon.duet-icon-shape-brand.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-shape-brand.small{padding:8px}.duet-icon.duet-icon-shape-brand.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-shape-brand.medium{padding:12px}.duet-icon.duet-icon-shape-brand.medium .duet-icon-svg{width:24px;height:24px}.duet-icon.duet-icon-shape-brand.large{padding:16px}.duet-icon.duet-icon-shape-brand.large .duet-icon-svg{width:30px;height:30px}.duet-icon.duet-icon-shape-brand.x-large{padding:20px}.duet-icon.duet-icon-shape-brand.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.duet-icon-shape-brand.xx-large{padding:24px}.duet-icon.duet-icon-shape-brand.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.duet-icon-shape-brand.xxx-large{padding:36px}.duet-icon.duet-icon-shape-brand.xxx-large .duet-icon-svg{width:72px;height:72px}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-20deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;fill:currentColor}";
|
|
79
|
+
|
|
80
|
+
const DuetIcon = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
81
|
+
constructor() {
|
|
82
|
+
super();
|
|
83
|
+
this.__registerHost();
|
|
84
|
+
this.__attachShadow();
|
|
85
|
+
this.svgContent = undefined;
|
|
86
|
+
this.theme = "";
|
|
87
|
+
this.icon = undefined;
|
|
88
|
+
this.src = undefined;
|
|
89
|
+
this.name = "action-add";
|
|
90
|
+
this.margin = "auto";
|
|
91
|
+
this.responsive = true;
|
|
92
|
+
this.color = "";
|
|
93
|
+
this.background = "";
|
|
94
|
+
this.size = "medium";
|
|
95
|
+
this.outline = "";
|
|
96
|
+
this.shape = "circle";
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Component lifecycle events.
|
|
100
|
+
*/
|
|
101
|
+
componentWillLoad() {
|
|
102
|
+
inheritGlobalTheme(this);
|
|
103
|
+
if (this.src && this.icon) {
|
|
104
|
+
console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence", "icon:", this.icon, "src:", this.src);
|
|
105
|
+
}
|
|
106
|
+
this.loadIcon();
|
|
107
|
+
}
|
|
108
|
+
async loadIcon() {
|
|
109
|
+
// static icon known at build-time, so we can set it synchronously
|
|
110
|
+
if (this.icon) {
|
|
111
|
+
this.svgContent = this.icon;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// dynamically load icon from url
|
|
115
|
+
const src = this.src ? this.src : buildIconUrl(this.name);
|
|
116
|
+
try {
|
|
117
|
+
this.svgContent = await fetchIconByUrl(src);
|
|
118
|
+
}
|
|
119
|
+
catch (e) {
|
|
120
|
+
console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${src}.`, e);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* render() function.
|
|
125
|
+
* Always the last one in the class.
|
|
126
|
+
*/
|
|
127
|
+
render() {
|
|
128
|
+
const color = this.color === "currentColor"
|
|
129
|
+
? "currentColor"
|
|
130
|
+
: getColorByName(this.color, this.theme) || getColorByName(this.outline, this.theme);
|
|
131
|
+
const styles = {
|
|
132
|
+
color,
|
|
133
|
+
background: getColorByName(this.background, this.theme),
|
|
134
|
+
"border-color": getColorByName(this.outline, this.theme),
|
|
135
|
+
};
|
|
136
|
+
const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
|
|
137
|
+
return (h(Host, { class: {
|
|
138
|
+
"duet-m-0": this.margin === "none",
|
|
139
|
+
"duet-icon-has-outline": !!this.outline,
|
|
140
|
+
"duet-icon-has-background": !!this.background,
|
|
141
|
+
} }, h("div", { "aria-hidden": "true", style: styles, class: {
|
|
142
|
+
"duet-icon": true,
|
|
143
|
+
[this.size]: true,
|
|
144
|
+
"duet-theme-turva": this.theme === "turva",
|
|
145
|
+
"duet-theme-default": this.theme === "default",
|
|
146
|
+
"duet-icon-has-outline": !!this.outline,
|
|
147
|
+
"duet-icon-has-background": !!this.background,
|
|
148
|
+
[shapeStyle]: true,
|
|
149
|
+
rotated: this.shape === "brand-rotated" && this.theme !== "turva",
|
|
150
|
+
"duet-icon-not-responsive": !this.responsive,
|
|
151
|
+
} }, h("span", { "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, innerHTML: this.svgContent }))));
|
|
152
|
+
}
|
|
153
|
+
get element() { return this; }
|
|
154
|
+
static get watchers() { return {
|
|
155
|
+
"src": ["loadIcon"],
|
|
156
|
+
"icon": ["loadIcon"],
|
|
157
|
+
"name": ["loadIcon"]
|
|
158
|
+
}; }
|
|
159
|
+
static get style() { return duetIconCss; }
|
|
160
|
+
}, [1, "duet-icon", {
|
|
161
|
+
"theme": [1025],
|
|
162
|
+
"icon": [1],
|
|
163
|
+
"src": [1],
|
|
164
|
+
"name": [1],
|
|
165
|
+
"margin": [1],
|
|
166
|
+
"responsive": [4],
|
|
167
|
+
"color": [513],
|
|
168
|
+
"background": [1],
|
|
169
|
+
"size": [1],
|
|
170
|
+
"outline": [1],
|
|
171
|
+
"shape": [1],
|
|
172
|
+
"svgContent": [32]
|
|
173
|
+
}]);
|
|
174
|
+
function defineCustomElement() {
|
|
175
|
+
if (typeof customElements === "undefined") {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const components = ["duet-icon"];
|
|
179
|
+
components.forEach(tagName => { switch (tagName) {
|
|
180
|
+
case "duet-icon":
|
|
181
|
+
if (!customElements.get(tagName)) {
|
|
182
|
+
customElements.define(tagName, DuetIcon);
|
|
183
|
+
}
|
|
184
|
+
break;
|
|
185
|
+
} });
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export { DuetIcon as D, defineCustomElement as d };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h } from './p-308a73c1.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { g as getColorByName } from './p-
|
|
6
|
+
import { g as getColorByName } from './p-9ed347f9.js';
|
|
7
7
|
|
|
8
|
-
const duetParagraphCss = "*,*::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-paragraph{margin-bottom:16px !important;display:block;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;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color
|
|
8
|
+
const duetParagraphCss = "*,*::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-paragraph{margin-bottom:16px !important;display:block;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;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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:rgb(23, 28, 58)}.duet-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){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:400;color:rgb(0, 119, 179);text-decoration:underline;transition:300ms ease}::slotted(a).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:rgb(198, 12, 48)}::slotted(a):hover{color:rgb(0, 77, 128);text-decoration:none}::slotted(a):hover.duet-theme-turva{color:rgb(148, 9, 37)}::slotted(a):active{opacity:0.75;transition:none}";
|
|
9
9
|
|
|
10
10
|
const DuetParagraph = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
11
11
|
constructor() {
|
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Modified for Stencil's renderer and slot projection
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
14
|
+
* function.
|
|
15
|
+
*
|
|
16
|
+
* @param o the value to check
|
|
17
|
+
* @returns whether it's a complex type or not
|
|
18
|
+
*/
|
|
12
19
|
const isComplexType = (o) => {
|
|
13
20
|
// https://jsperf.com/typeof-fn-object/5
|
|
14
21
|
o = typeof o;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-308a73c1.js';
|
|
5
|
+
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './p-c4d8cad0.js';
|
|
6
|
+
import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
|
|
7
|
+
|
|
8
|
+
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
9
|
+
|
|
10
|
+
function isGridItem(element) {
|
|
11
|
+
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
12
|
+
}
|
|
13
|
+
const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.mql = [
|
|
18
|
+
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
19
|
+
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
20
|
+
window.matchMedia(media_query_small.replace(/'/g, "")),
|
|
21
|
+
];
|
|
22
|
+
this.distributeFormElement = false;
|
|
23
|
+
this.responsive = false;
|
|
24
|
+
this.breakpoint = "small";
|
|
25
|
+
this.direction = "horizontal";
|
|
26
|
+
this.alignment = "top";
|
|
27
|
+
this.distribution = "default";
|
|
28
|
+
this.mobile = "";
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Private functions
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Returns the element height including margins
|
|
35
|
+
* @param element - element
|
|
36
|
+
* @returns {number}
|
|
37
|
+
*/
|
|
38
|
+
outerHeight(element) {
|
|
39
|
+
const height = element.offsetHeight, style = window.getComputedStyle(element);
|
|
40
|
+
return ["top", "bottom"]
|
|
41
|
+
.map(side => parseInt(style[`margin-${side}`]))
|
|
42
|
+
.reduce((total, side) => total + side, height);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Component lifecycle events.
|
|
46
|
+
*/
|
|
47
|
+
async connectedCallback() {
|
|
48
|
+
const el = this.element;
|
|
49
|
+
this.distributeFormElement = this.alignment === "form_distribute";
|
|
50
|
+
this.mutationO = watchForOptions(el, "duet-grid-item", () => {
|
|
51
|
+
this.updateGridItems();
|
|
52
|
+
});
|
|
53
|
+
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
54
|
+
if (this.distributeFormElement) {
|
|
55
|
+
this.mutation1 = watchForElement(el, "duet-input", () => {
|
|
56
|
+
this.updateGridItemsWithInputFields();
|
|
57
|
+
});
|
|
58
|
+
// listen for potential mediaquery changes and reset layout
|
|
59
|
+
for (let i = 0; i < this.mql.length; i++) {
|
|
60
|
+
// addEventListener is not available in Stencil hydrate
|
|
61
|
+
if (this.mql[i].addEventListener) {
|
|
62
|
+
this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
this.updateGridItems();
|
|
67
|
+
}
|
|
68
|
+
disconnectedCallback() {
|
|
69
|
+
if (this.mutationO) {
|
|
70
|
+
this.mutationO.disconnect();
|
|
71
|
+
this.mutationO = undefined;
|
|
72
|
+
}
|
|
73
|
+
if (this.mutation1) {
|
|
74
|
+
this.mutation1.disconnect();
|
|
75
|
+
this.mutation1 = undefined;
|
|
76
|
+
}
|
|
77
|
+
// listen for potential mediaquery changes and reset layout
|
|
78
|
+
for (let i = 0; i < this.mql.length; i++) {
|
|
79
|
+
// addEventListener is not available in Stencil hydrate
|
|
80
|
+
if (this.mql[i].removeEventListener) {
|
|
81
|
+
this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Local methods
|
|
87
|
+
*/
|
|
88
|
+
async updateGridItems() {
|
|
89
|
+
const items = Array.from(this.element.children).filter(isGridItem);
|
|
90
|
+
items.forEach(item => {
|
|
91
|
+
item.responsive = this.responsive;
|
|
92
|
+
item.breakpoint = this.breakpoint;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async updateGridItemsWithInputFields() {
|
|
96
|
+
const items = Array.from(this.element.children).filter(isGridItem);
|
|
97
|
+
// if layout changes to columns instead of row, remove all padding
|
|
98
|
+
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
99
|
+
let maxHeight = 0;
|
|
100
|
+
const sizes = [];
|
|
101
|
+
items.forEach(item => {
|
|
102
|
+
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
103
|
+
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
104
|
+
sizes.push(height);
|
|
105
|
+
});
|
|
106
|
+
maxHeight = Math.max(...sizes);
|
|
107
|
+
items.forEach(item => {
|
|
108
|
+
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
109
|
+
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
110
|
+
if (height < maxHeight && !hasColumnLayout) {
|
|
111
|
+
item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
|
|
112
|
+
}
|
|
113
|
+
else if (height === maxHeight || hasColumnLayout) {
|
|
114
|
+
item.setAttribute("style", `padding-bottom: 0px;`);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* render() function
|
|
120
|
+
* Always the last one in the class.
|
|
121
|
+
*/
|
|
122
|
+
render() {
|
|
123
|
+
return (h(Host, { class: {
|
|
124
|
+
"duet-grid": true,
|
|
125
|
+
"duet-no-stacking": !this.responsive,
|
|
126
|
+
"duet-grid-align-top": this.alignment === "top",
|
|
127
|
+
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
|
|
128
|
+
"duet-grid-align-center": this.alignment === "center",
|
|
129
|
+
"duet-grid-align-stretch": this.alignment === "stretch",
|
|
130
|
+
"duet-grid-align-baseline": this.alignment === "baseline",
|
|
131
|
+
"duet-grid-distribution-left": this.distribution === "left",
|
|
132
|
+
"duet-grid-distribution-right": this.distribution === "right",
|
|
133
|
+
"duet-grid-distribution-center": this.distribution === "center",
|
|
134
|
+
"duet-grid-distribution-between": this.distribution === "space-between",
|
|
135
|
+
"duet-grid-distribution-around": this.distribution === "space-around",
|
|
136
|
+
"duet-grid-distribution-evenly": this.distribution === "space-evenly",
|
|
137
|
+
"duet-grid-mobile-left": this.mobile === "left",
|
|
138
|
+
"duet-grid-mobile-center": this.mobile === "center",
|
|
139
|
+
"duet-grid-mobile-right": this.mobile === "right",
|
|
140
|
+
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
141
|
+
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
142
|
+
"duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
|
|
143
|
+
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
144
|
+
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
145
|
+
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
146
|
+
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
147
|
+
} }));
|
|
148
|
+
}
|
|
149
|
+
get element() { return this; }
|
|
150
|
+
static get watchers() { return {
|
|
151
|
+
"responsive": ["updateGridItems"],
|
|
152
|
+
"breakpoint": ["updateGridItems"]
|
|
153
|
+
}; }
|
|
154
|
+
static get style() { return duetGridCss; }
|
|
155
|
+
}, [2, "duet-grid", {
|
|
156
|
+
"responsive": [4],
|
|
157
|
+
"breakpoint": [1],
|
|
158
|
+
"direction": [1],
|
|
159
|
+
"alignment": [1],
|
|
160
|
+
"distribution": [1],
|
|
161
|
+
"mobile": [1],
|
|
162
|
+
"distributeFormElement": [32]
|
|
163
|
+
}]);
|
|
164
|
+
function defineCustomElement() {
|
|
165
|
+
if (typeof customElements === "undefined") {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const components = ["duet-grid"];
|
|
169
|
+
components.forEach(tagName => { switch (tagName) {
|
|
170
|
+
case "duet-grid":
|
|
171
|
+
if (!customElements.get(tagName)) {
|
|
172
|
+
customElements.define(tagName, DuetGrid);
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
} });
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export { DuetGrid as D, defineCustomElement as d };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h,
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-308a73c1.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { a as getLanguage, g as getLocaleString } from './p-6c05e879.js';
|
|
8
|
-
import { d as defineCustomElement$2 } from './p-
|
|
9
|
-
import { d as defineCustomElement$1 } from './p-
|
|
8
|
+
import { d as defineCustomElement$2 } from './p-064a8802.js';
|
|
9
|
+
import { d as defineCustomElement$1 } from './p-7918f243.js';
|
|
10
10
|
|
|
11
|
-
const duetTooltipCss = "*,*::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;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;right:-141px;bottom:100%;z-index:950;display:block;width:282px;min-height:48px;max-height:340px;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:0.875rem;font-weight:400;line-height:1.25;color
|
|
11
|
+
const duetTooltipCss = "*,*::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;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;right:-141px;bottom:100%;z-index:950;display:block;width:282px;min-height:48px;max-height:340px;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:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform:scale(0.9) translateZ(0) translateY(20px);transform-origin:100% 100%}.duet-tooltip.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:rgb(23, 28, 58);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip::after{position:absolute;right:142px;bottom:-20px;z-index:200;width:0;height:0;content:\"\";border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip::before{position:absolute;right:141px;bottom:-22px;z-index:100;width:0;height:0;content:\"\";border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-down{top:100%;bottom:auto;transform:scale(0.9) translateZ(0) translateY(-20px);transform-origin:100% 0}.duet-tooltip.duet-tooltip-down::after{top:-20px;bottom:auto;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip.duet-tooltip-down::before{top:-22px;bottom:auto;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip.duet-tooltip-down::before{border-bottom:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-left{right:-21px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-left::after{right:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-left::before{right:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-right{right:auto !important;left:-9px !important;transform-origin:100% 100% !important}.duet-tooltip.duet-tooltip-right::after{right:auto !important;left:22px !important;transform:none !important}.duet-tooltip.duet-tooltip-right::before{right:auto !important;left:21px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-has-label::after{right:auto !important;left:1px !important;transform:none !important}.duet-tooltip.duet-tooltip-has-label::before{right:auto !important;left:0 !important;transform:none !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(-8px)}.duet-tooltip.duet-tooltip-active.duet-tooltip-down{transform:scale(1.0001) translateZ(0) translateY(8px)}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}@media (min-width: 48em){.duet-tooltip.duet-mq-medium{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-medium::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-medium.duet-tooltip-down{transform-origin:50% 0}}@media (min-width: 62em){.duet-tooltip.duet-mq-large{right:-148px;width:320px;transform-origin:50% 100%}.duet-tooltip.duet-mq-large::after{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large::before{right:50%;transform:translateX(50%)}.duet-tooltip.duet-mq-large.duet-tooltip-down{transform-origin:50% 0}}";
|
|
12
12
|
|
|
13
13
|
const DuetTooltip = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
14
|
constructor() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h,
|
|
5
|
-
import {
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-308a73c1.js';
|
|
5
|
+
import { j as colorGrayLightest, k as colorBrandGrayTurva, l as colorPrimaryTurva, n as colorBrandBlue } from './p-33e00967.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
7
7
|
import { c as createID } from './p-c1325e35.js';
|
|
8
8
|
import { a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-6c05e879.js';
|
|
9
9
|
|
|
10
|
-
const duetLogoCss = "*,*::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;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-logo{-webkit-user-select:none;user-select:none;display:block;width:154px;height:40px;border-radius:4px}.duet-logo:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px
|
|
10
|
+
const duetLogoCss = "*,*::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;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-logo{-webkit-user-select:none;user-select:none;display:block;width:154px;height:40px;border-radius:4px}.duet-logo:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva .duet-logo:focus,.duet-logo:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-logo.duet-logo-en{width:166px}.duet-logo.duet-logo-sv{width:167px}.duet-logo.duet-theme-turva{width:110px;height:40px}.duet-logo svg{display:block;width:100%;height:auto}.duet-logo.large{width:184.8px;height:48px}.duet-logo.large.duet-logo-en{width:199.2px}.duet-logo.large.duet-logo-sv{width:200.4px}.duet-logo.large.duet-theme-turva{width:149.6px;height:54.4px}";
|
|
11
11
|
|
|
12
12
|
const TurvaLogo = ({ inverse, logoId }) => {
|
|
13
13
|
const logoColor = inverse ? colorGrayLightest : colorBrandGrayTurva;
|