@duetds/components 6.1.0 → 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +1156 -227
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +10 -4
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -17
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +4 -4
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
- package/lib/cjs/duet-layout.cjs.entry.js +8 -2
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +49 -0
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +46 -0
- package/lib/cjs/duet-menu-bar-menu-dropdown-link.cjs.entry.js +58 -0
- package/lib/cjs/duet-menu-bar-menu-dropdown.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar-menu-link.cjs.entry.js +50 -0
- package/lib/cjs/duet-menu-bar-menu.cjs.entry.js +65 -0
- package/lib/cjs/duet-menu-bar.cjs.entry.js +76 -0
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +9 -6
- package/lib/cjs/duet-nav.cjs.entry.js +116 -0
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +42 -0
- package/lib/cjs/duet-select.cjs.entry.js +4 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +54 -0
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +78 -0
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +50 -0
- package/lib/cjs/duet-toolbar.cjs.entry.js +38 -0
- package/lib/cjs/duet-tooltip.cjs.entry.js +38 -16
- 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 +2 -2
- package/lib/cjs/{focus-utils-5bf92cc0.js → focus-utils-f315752c.js} +1 -1
- package/lib/cjs/{index-d380d72b.js → index-8b766a00.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-f6e2f4ef.js → token-utils-2e10264d.js} +17 -1
- package/lib/cjs/{tokens-4c69b122.js → tokens-21b244ee.js} +1 -0
- package/lib/cjs/{tokens.module-1bb2d45e.js → tokens.module-69170ddd.js} +3 -0
- package/lib/collection/collection-manifest.json +19 -0
- package/lib/collection/components/duet-card/duet-card.css +45 -0
- package/lib/collection/components/duet-card/duet-card.js +29 -0
- package/lib/collection/components/duet-choice/duet-choice.css +3 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.css +1 -0
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +2 -2
- package/lib/collection/components/duet-input/duet-input.js +3 -3
- package/lib/collection/components/duet-layout/duet-layout.css +45 -0
- package/lib/collection/components/duet-layout/duet-layout.js +29 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +62 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +109 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +125 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +150 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +52 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +110 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +61 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +107 -0
- package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.css +113 -0
- package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.js +147 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.css +113 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.js +150 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.css +60 -0
- package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.js +156 -0
- package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.css +65 -0
- package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.js +129 -0
- package/lib/collection/components/duet-multiselect/duet-multiselect.css +1 -4
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +15 -5
- package/lib/collection/components/duet-nav/duet-nav.css +24 -0
- package/lib/collection/components/duet-nav/duet-nav.js +177 -0
- package/lib/collection/components/duet-section-layout/duet-section-layout.css +100 -0
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +85 -0
- package/lib/collection/components/duet-select/duet-select.css +1 -0
- package/lib/collection/components/duet-select/duet-select.js +2 -2
- package/lib/collection/components/duet-table/duet-table.js +4 -16
- package/lib/collection/components/duet-textarea/duet-textarea.css +5 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +5 -5
- package/lib/collection/components/duet-toolbar/duet-toolbar.css +43 -0
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +67 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +117 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +181 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +60 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +133 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +78 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +129 -0
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +41 -17
- package/lib/collection/utils/token-utils.js +15 -0
- 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 +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- 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 +12 -5
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +3 -3
- package/lib/dist-custom-elements/duet-combobox.js +3 -3
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +8 -8
- 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 +4 -4
- 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 +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- 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 +10 -3
- 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-dropdown-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +73 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +89 -0
- package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-link.js +70 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.js +84 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.js +89 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu-link.js +75 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar-menu.js +83 -0
- package/lib/dist-custom-elements/duet-menu-bar.d.ts +11 -0
- package/lib/dist-custom-elements/duet-menu-bar.js +99 -0
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +17 -14
- package/lib/dist-custom-elements/duet-nav.d.ts +11 -0
- package/lib/dist-custom-elements/duet-nav.js +132 -0
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +7 -7
- 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 +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.d.ts +11 -0
- package/lib/dist-custom-elements/duet-section-layout.js +59 -0
- package/lib/dist-custom-elements/duet-select.js +1 -1
- 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 +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +8 -8
- 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 +12 -12
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +79 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +103 -0
- package/lib/dist-custom-elements/duet-toolbar-link.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar-link.js +75 -0
- package/lib/dist-custom-elements/duet-toolbar.d.ts +11 -0
- package/lib/dist-custom-elements/duet-toolbar.js +54 -0
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +4 -4
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +18 -18
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-4dd0d2e0.js → p-0d0af8e2.js} +1 -1
- package/lib/dist-custom-elements/{p-a10df7a8.js → p-0dbd8ead.js} +1 -1
- package/lib/dist-custom-elements/{p-eef3373f.js → p-1660a543.js} +5 -17
- package/lib/dist-custom-elements/{p-5368b90e.js → p-16bbf7e7.js} +1 -1
- package/lib/dist-custom-elements/{p-3f5248cc.js → p-16d983ad.js} +9 -9
- package/lib/dist-custom-elements/{p-c2c3e421.js → p-1f959cea.js} +2 -2
- package/lib/dist-custom-elements/{p-15cca1fa.js → p-2a5e75c0.js} +2 -2
- package/lib/dist-custom-elements/{p-a0188402.js → p-2d1cf7e3.js} +5 -5
- package/lib/dist-custom-elements/{p-c2260d50.js → p-31f00dce.js} +5 -5
- package/lib/{esm/tokens.module-385c4cf8.js → dist-custom-elements/p-33e00967.js} +1 -1
- package/lib/dist-custom-elements/{p-a19a3c64.js → p-3bec3104.js} +2 -2
- package/lib/dist-custom-elements/{p-76a12869.js → p-3e0ead30.js} +2 -2
- package/lib/dist-custom-elements/{p-a720eb56.js → p-3ed61ce7.js} +2 -2
- package/lib/dist-custom-elements/{p-40964c90.js → p-53eddb5a.js} +2 -2
- package/lib/dist-custom-elements/{p-2b6e0098.js → p-5bdcbd0e.js} +1 -1
- package/lib/dist-custom-elements/{p-3f9960ee.js → p-6081cf65.js} +1 -1
- package/lib/dist-custom-elements/{p-e436e97c.js → p-66fc1eed.js} +5 -5
- package/lib/dist-custom-elements/{p-df05a117.js → p-6ece5282.js} +1 -1
- package/lib/dist-custom-elements/{p-f5d54803.js → p-707df62e.js} +2 -2
- package/lib/dist-custom-elements/{p-025242f2.js → p-9a47afcf.js} +9 -9
- package/lib/dist-custom-elements/{p-260d7413.js → p-9a796e5f.js} +2 -2
- package/lib/{esm/token-utils-ebf797ab.js → dist-custom-elements/p-9ed347f9.js} +17 -2
- package/lib/dist-custom-elements/{p-f06badc1.js → p-9f2c945f.js} +4 -4
- package/lib/dist-custom-elements/{p-84036192.js → p-a1ee57d9.js} +3 -3
- package/lib/dist-custom-elements/{p-b828da80.js → p-a2eb4904.js} +7 -7
- package/lib/dist-custom-elements/{p-b125807e.js → p-ab4d6c41.js} +1 -1
- package/lib/dist-custom-elements/{p-e06d804b.js → p-b0d3c21f.js} +1 -1
- package/lib/dist-custom-elements/{p-dde39f08.js → p-b8f705bf.js} +2 -2
- package/lib/dist-custom-elements/{p-5c30c1e6.js → p-bf5ba2a1.js} +43 -19
- package/lib/dist-custom-elements/{p-02305a1e.js → p-c4d8cad0.js} +1 -1
- package/lib/dist-custom-elements/{p-35856a5f.js → p-c7aa42d8.js} +1 -1
- package/lib/dist-custom-elements/{p-6352244e.js → p-e1f6ab98.js} +1 -1
- package/lib/dist-custom-elements/{p-983633e4.js → p-e2f50452.js} +2 -2
- package/lib/dist-custom-elements/{p-14799264.js → p-f052029f.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-fb97dc52.entry.js → p-003cf430.entry.js} +1 -1
- package/lib/duet/{p-9ff90002.entry.js → p-00535da0.entry.js} +1 -1
- package/lib/duet/{p-bedf7cb7.system.entry.js → p-0374ca9f.system.entry.js} +1 -1
- package/lib/duet/p-04194ad5.js +4 -0
- package/lib/duet/{p-8db9e436.system.entry.js → p-04ca1bb2.system.entry.js} +1 -1
- package/lib/duet/p-102bbb59.system.entry.js +4 -0
- package/lib/duet/p-10688c3d.system.entry.js +4 -0
- package/lib/duet/{p-d4a24199.entry.js → p-13492066.entry.js} +1 -1
- package/lib/duet/{p-55f8c851.system.entry.js → p-144b1e79.system.entry.js} +1 -1
- package/lib/duet/{p-6cc20670.system.entry.js → p-1602c1fc.system.entry.js} +1 -1
- package/lib/duet/p-17063917.system.js +4 -0
- package/lib/duet/p-17ae7919.system.entry.js +4 -0
- package/lib/duet/p-18520e88.entry.js +4 -0
- package/lib/duet/{p-f01eb4ea.system.entry.js → p-19473005.system.entry.js} +1 -1
- package/lib/duet/{p-3ab707be.system.entry.js → p-210f384c.system.entry.js} +1 -1
- package/lib/duet/{p-1034d5d8.system.entry.js → p-21cd817d.system.entry.js} +1 -1
- package/lib/duet/{p-48f15ed7.entry.js → p-22702ae6.entry.js} +1 -1
- package/lib/duet/p-23dc1c60.entry.js +4 -0
- package/lib/duet/p-250895df.system.entry.js +4 -0
- package/lib/duet/p-2da25166.entry.js +4 -0
- package/lib/duet/{p-6d2d9897.entry.js → p-2e4ea7e1.entry.js} +1 -1
- package/lib/duet/p-2f344dbb.system.entry.js +4 -0
- package/lib/duet/{p-5f4a200f.system.entry.js → p-3050a8e3.system.entry.js} +1 -1
- package/lib/duet/{p-3287e496.entry.js → p-31c64b6b.entry.js} +1 -1
- package/lib/duet/p-31e85d0f.entry.js +4 -0
- package/lib/duet/p-3278bc0e.entry.js +4 -0
- package/lib/duet/p-33c4ce85.system.js +5 -0
- package/lib/duet/{p-0c1fdd7c.entry.js → p-36f24299.entry.js} +1 -1
- package/lib/duet/p-37f784b3.system.entry.js +4 -0
- package/lib/duet/p-38aab2f6.entry.js +4 -0
- package/lib/duet/{p-f6240801.system.entry.js → p-392ad86e.system.entry.js} +1 -1
- package/lib/duet/{p-0bc10576.system.entry.js → p-3a4b3061.system.entry.js} +1 -1
- package/lib/duet/{p-88e3d858.entry.js → p-3af68d87.entry.js} +1 -1
- package/lib/duet/p-3d51c851.entry.js +4 -0
- package/lib/duet/{p-5174a8af.system.entry.js → p-4115c4f6.system.entry.js} +1 -1
- package/lib/duet/{p-89b3c614.entry.js → p-44b472d6.entry.js} +1 -1
- package/lib/duet/{p-33bbde60.entry.js → p-4502c616.entry.js} +1 -1
- package/lib/duet/{p-08c8edc7.system.js → p-45d0dfd1.system.js} +1 -1
- package/lib/duet/{p-3f6487d8.entry.js → p-470004db.entry.js} +1 -1
- package/lib/duet/{p-69d0a2ce.system.entry.js → p-4ab63c96.system.entry.js} +1 -1
- package/lib/duet/{p-1e8365c3.entry.js → p-4b423e3b.entry.js} +1 -1
- package/lib/duet/{p-a4acf397.entry.js → p-4e95b48e.entry.js} +1 -1
- package/lib/duet/{p-db9db173.system.entry.js → p-525d2afb.system.entry.js} +1 -1
- package/lib/duet/{p-2957055a.system.entry.js → p-52666cd9.system.entry.js} +1 -1
- package/lib/duet/{p-d2a55128.system.entry.js → p-56e96787.system.entry.js} +1 -1
- package/lib/duet/{p-4fee02ae.system.entry.js → p-59015b45.system.entry.js} +1 -1
- package/lib/duet/p-5ad3ed6b.entry.js +4 -0
- package/lib/duet/p-5aec4a35.entry.js +4 -0
- package/lib/duet/p-5d46f619.system.js +4 -0
- package/lib/duet/{p-33814c22.entry.js → p-5efa213f.entry.js} +1 -1
- package/lib/duet/p-6080d9b5.system.entry.js +4 -0
- package/lib/duet/{p-134bbc67.entry.js → p-60a566c1.entry.js} +1 -1
- package/lib/duet/p-6151b365.entry.js +4 -0
- package/lib/duet/{p-c055fcd1.entry.js → p-617b1da2.entry.js} +1 -1
- package/lib/duet/{p-351fbda4.entry.js → p-712b5542.entry.js} +1 -1
- package/lib/duet/{p-88eabc52.entry.js → p-731712d2.entry.js} +1 -1
- package/lib/duet/{p-20df1f28.entry.js → p-75c19e1c.entry.js} +1 -1
- package/lib/duet/p-77415057.entry.js +4 -0
- package/lib/duet/p-77fb82af.entry.js +4 -0
- package/lib/duet/{p-c8e84baf.entry.js → p-7950ec0a.entry.js} +1 -1
- package/lib/duet/p-79a9746e.js +4 -0
- package/lib/duet/{p-a8e38895.system.entry.js → p-7b5c6a76.system.entry.js} +1 -1
- package/lib/duet/p-7b5e9d57.system.entry.js +4 -0
- package/lib/duet/{p-be9d7718.entry.js → p-7dc684c1.entry.js} +1 -1
- package/lib/duet/p-8078b081.system.js +4 -0
- package/lib/duet/p-82b158e7.system.entry.js +4 -0
- package/lib/duet/p-85eb473a.entry.js +4 -0
- package/lib/duet/{p-10a9fe19.system.entry.js → p-88f3ef96.system.entry.js} +1 -1
- package/lib/duet/{p-d50688a8.entry.js → p-89635fde.entry.js} +1 -1
- package/lib/duet/{p-2b7f998c.system.entry.js → p-8c846d3c.system.entry.js} +1 -1
- package/lib/duet/{p-73c3092e.system.entry.js → p-8eb24fb8.system.entry.js} +1 -1
- package/lib/duet/{p-db2cfc87.system.entry.js → p-8fbb8b77.system.entry.js} +2 -2
- package/lib/duet/p-8fbd4fc0.system.entry.js +4 -0
- package/lib/duet/p-9052b6f5.js +4 -0
- package/lib/duet/p-9153e014.entry.js +4 -0
- package/lib/duet/{p-fd1ed521.entry.js → p-91a3a356.entry.js} +1 -1
- package/lib/duet/p-94d5a7bd.entry.js +4 -0
- package/lib/duet/{p-97b281b2.system.entry.js → p-964b34f4.system.entry.js} +1 -1
- package/lib/duet/p-97e43d0c.entry.js +4 -0
- package/lib/duet/{p-a883b01d.entry.js → p-9b0a412d.entry.js} +1 -1
- package/lib/duet/p-9b0f8f98.system.entry.js +4 -0
- package/lib/duet/p-a404df7a.system.entry.js +4 -0
- package/lib/duet/p-a9b03459.entry.js +4 -0
- package/lib/duet/{p-4d6b04f1.system.entry.js → p-aae0b654.system.entry.js} +1 -1
- package/lib/duet/p-ae290a42.system.entry.js +4 -0
- package/lib/duet/p-af18ff58.entry.js +4 -0
- package/lib/duet/p-b062dc37.entry.js +4 -0
- package/lib/duet/{p-e19ba091.entry.js → p-b0962b4e.entry.js} +1 -1
- package/lib/duet/p-b1ae18f7.js +5 -0
- package/lib/duet/{p-07c53212.entry.js → p-b4e086e7.entry.js} +1 -1
- package/lib/duet/p-b559c7ab.entry.js +4 -0
- package/lib/duet/{p-4a97bbae.system.entry.js → p-b73840c1.system.entry.js} +1 -1
- package/lib/duet/{p-2d906752.entry.js → p-b8ad772d.entry.js} +1 -1
- package/lib/duet/{p-bdbe682d.system.entry.js → p-b910648a.system.entry.js} +2 -2
- package/lib/duet/{p-7ed493e6.system.entry.js → p-b993ab57.system.entry.js} +1 -1
- package/lib/duet/p-c4d8cad0.js +4 -0
- package/lib/duet/p-c5f2418b.entry.js +4 -0
- package/lib/duet/p-c619dc03.system.entry.js +4 -0
- package/lib/duet/{p-18c2588a.entry.js → p-c6fb22f9.entry.js} +1 -1
- package/lib/duet/{p-2a2b5109.entry.js → p-c8dbf785.entry.js} +1 -1
- package/lib/duet/{p-b2da699d.system.entry.js → p-c9df8e9f.system.entry.js} +1 -1
- package/lib/duet/{p-79eada30.system.entry.js → p-cae5ab1c.system.entry.js} +1 -1
- package/lib/duet/{p-6def950d.system.entry.js → p-ce456bdb.system.entry.js} +1 -1
- package/lib/duet/p-d0550118.entry.js +4 -0
- package/lib/duet/p-d1a97884.entry.js +4 -0
- package/lib/duet/p-d3bdb846.system.entry.js +4 -0
- package/lib/duet/{p-2b822122.entry.js → p-d6194a62.entry.js} +1 -1
- package/lib/duet/{p-e4c320e2.system.entry.js → p-d72eb61f.system.entry.js} +1 -1
- package/lib/duet/p-d7848577.entry.js +4 -0
- package/lib/duet/p-d82c8036.system.entry.js +4 -0
- package/lib/duet/{p-8c17003f.system.entry.js → p-da204830.system.entry.js} +1 -1
- package/lib/duet/{p-35351cf2.system.entry.js → p-dbd3f4fb.system.entry.js} +1 -1
- package/lib/duet/{p-24b890e9.entry.js → p-dc3768df.entry.js} +1 -1
- package/lib/duet/{p-c8a46ebb.system.entry.js → p-e05b7ca5.system.entry.js} +1 -1
- package/lib/duet/p-e29e2e8a.system.entry.js +4 -0
- package/lib/duet/p-e6f8da2c.system.entry.js +4 -0
- package/lib/duet/{p-e13a54c8.system.entry.js → p-ebad8ba3.system.entry.js} +1 -1
- package/lib/duet/p-ebd46875.entry.js +4 -0
- package/lib/duet/{p-9343afe6.system.entry.js → p-ecdeabef.system.entry.js} +1 -1
- package/lib/duet/p-eef165b8.system.js +4 -0
- package/lib/duet/p-f4601404.system.entry.js +4 -0
- package/lib/duet/p-f5001902.entry.js +4 -0
- package/lib/duet/{p-17213a02.system.entry.js → p-f8b63e2b.system.entry.js} +1 -1
- package/lib/duet/{p-e86917b0.system.entry.js → p-fbdc3487.system.entry.js} +1 -1
- package/lib/duet/{p-b0b61064.system.entry.js → p-ff6accaf.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +3 -3
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +10 -4
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +3 -3
- package/lib/esm/duet-collapsible.entry.js +2 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +5 -17
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +4 -4
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +2 -2
- package/lib/esm/duet-header_2.entry.js +3 -3
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +4 -4
- package/lib/esm/duet-layout.entry.js +8 -2
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +45 -0
- package/lib/esm/duet-menu-bar-dropdown.entry.js +61 -0
- package/lib/esm/duet-menu-bar-link.entry.js +42 -0
- package/lib/esm/duet-menu-bar-menu-dropdown-link.entry.js +54 -0
- package/lib/esm/duet-menu-bar-menu-dropdown.entry.js +61 -0
- package/lib/esm/duet-menu-bar-menu-link.entry.js +46 -0
- package/lib/esm/duet-menu-bar-menu.entry.js +61 -0
- package/lib/esm/duet-menu-bar.entry.js +72 -0
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +9 -6
- package/lib/esm/duet-nav.entry.js +112 -0
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +38 -0
- package/lib/esm/duet-select.entry.js +4 -4
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +5 -5
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +50 -0
- package/lib/esm/duet-toolbar-dropdown.entry.js +74 -0
- package/lib/esm/duet-toolbar-link.entry.js +46 -0
- package/lib/esm/duet-toolbar.entry.js +34 -0
- package/lib/esm/duet-tooltip.entry.js +38 -16
- 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 +2 -2
- package/lib/esm/{focus-utils-f6146965.js → focus-utils-6d867f9e.js} +1 -1
- package/lib/esm/{index-81967d12.js → index-85cd77f2.js} +1 -1
- package/lib/esm/loader.js +2 -2
- package/lib/{dist-custom-elements/p-86faf728.js → esm/token-utils-b531747a.js} +17 -2
- package/lib/esm/{tokens-b9d87fda.js → tokens-0963dc8b.js} +1 -1
- package/lib/{dist-custom-elements/p-266411cf.js → esm/tokens.module-d3321092.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- 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-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu-link.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar-menu.entry.js +4 -0
- package/lib/esm-es5/duet-menu-bar.entry.js +4 -0
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +4 -0
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.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 +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +4 -0
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar-link.entry.js +4 -0
- package/lib/esm-es5/duet-toolbar.entry.js +4 -0
- 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-f6146965.js → focus-utils-6d867f9e.js} +1 -1
- package/lib/esm-es5/index-85cd77f2.js +5 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-b531747a.js +4 -0
- package/lib/esm-es5/{tokens-b9d87fda.js → tokens-0963dc8b.js} +1 -1
- package/lib/esm-es5/{tokens.module-385c4cf8.js → tokens.module-d3321092.js} +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +6 -0
- package/lib/types/components/duet-layout/duet-layout.d.ts +6 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +35 -0
- package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +32 -0
- package/lib/types/components/duet-menu-bar-link/duet-menu-bar-link.d.ts +32 -0
- package/lib/types/components/duet-menu-bar-menu/duet-menu-bar-menu.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.d.ts +49 -0
- package/lib/types/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.d.ts +40 -0
- package/lib/types/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.d.ts +36 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +1 -1
- package/lib/types/components/duet-nav/duet-nav.d.ts +42 -0
- package/lib/types/components/duet-section-layout/duet-section-layout.d.ts +21 -0
- package/lib/types/components/duet-table/duet-table.d.ts +1 -12
- package/lib/types/components/duet-toolbar/duet-toolbar.d.ts +28 -0
- package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +53 -0
- package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +36 -0
- package/lib/types/components/duet-toolbar-link/duet-toolbar-link.d.ts +36 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +6 -2
- package/lib/types/components.d.ts +563 -0
- package/lib/types/utils/token-utils.d.ts +12 -0
- package/package.json +5 -5
- package/lib/duet/p-02305a1e.js +0 -4
- package/lib/duet/p-1fc60a60.system.js +0 -4
- package/lib/duet/p-2f183314.js +0 -4
- package/lib/duet/p-3166de44.entry.js +0 -4
- package/lib/duet/p-32f7178a.system.js +0 -4
- package/lib/duet/p-363c6807.entry.js +0 -4
- package/lib/duet/p-4056c348.entry.js +0 -4
- package/lib/duet/p-4c3bfd8a.entry.js +0 -4
- package/lib/duet/p-532e9db7.js +0 -4
- package/lib/duet/p-545177af.entry.js +0 -4
- package/lib/duet/p-588be556.js +0 -4
- package/lib/duet/p-709654f2.entry.js +0 -4
- package/lib/duet/p-8c2a2440.entry.js +0 -4
- package/lib/duet/p-8cea8546.system.js +0 -4
- package/lib/duet/p-95340ddf.system.entry.js +0 -4
- package/lib/duet/p-9c2d276b.entry.js +0 -4
- package/lib/duet/p-9e9b3182.system.js +0 -5
- package/lib/duet/p-aba4b236.entry.js +0 -4
- package/lib/duet/p-b2a940b5.system.entry.js +0 -4
- package/lib/duet/p-cc7f44f9.system.entry.js +0 -4
- package/lib/duet/p-cf9027e3.system.entry.js +0 -4
- package/lib/duet/p-d209191d.system.js +0 -4
- package/lib/duet/p-d8ae3650.system.entry.js +0 -4
- package/lib/duet/p-dc6fd9c6.js +0 -5
- package/lib/duet/p-e2adbecc.entry.js +0 -4
- package/lib/duet/p-f493ae81.entry.js +0 -4
- package/lib/duet/p-f827b4b6.entry.js +0 -4
- package/lib/esm-es5/index-81967d12.js +0 -5
- package/lib/esm-es5/token-utils-ebf797ab.js +0 -4
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Prop } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
export class DuetMenuBarMenuLink {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Theme.
|
|
10
|
+
*/
|
|
11
|
+
this.theme = "";
|
|
12
|
+
/**
|
|
13
|
+
* Active
|
|
14
|
+
*/
|
|
15
|
+
this.active = false;
|
|
16
|
+
/**
|
|
17
|
+
* Href
|
|
18
|
+
*/
|
|
19
|
+
this.href = "#";
|
|
20
|
+
/**
|
|
21
|
+
* Icon
|
|
22
|
+
*/
|
|
23
|
+
this.icon = undefined;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Component lifecycle events.
|
|
27
|
+
*/
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
inheritGlobalTheme(this);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* render() function
|
|
33
|
+
* Always the last one in the class.
|
|
34
|
+
*/
|
|
35
|
+
render() {
|
|
36
|
+
return (h(Host, null,
|
|
37
|
+
h("a", { class: { "duet-menu-bar-menu-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, role: "menuitem" },
|
|
38
|
+
this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none" }),
|
|
39
|
+
h("slot", null))));
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "duet-menu-bar-menu-link"; }
|
|
42
|
+
static get encapsulation() { return "shadow"; }
|
|
43
|
+
static get originalStyleUrls() { return {
|
|
44
|
+
"$": ["duet-menu-bar-menu-link.scss"]
|
|
45
|
+
}; }
|
|
46
|
+
static get styleUrls() { return {
|
|
47
|
+
"$": ["duet-menu-bar-menu-link.css"]
|
|
48
|
+
}; }
|
|
49
|
+
static get properties() { return {
|
|
50
|
+
"theme": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"mutable": true,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "DuetTheme",
|
|
55
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
56
|
+
"references": {
|
|
57
|
+
"DuetTheme": {
|
|
58
|
+
"location": "import",
|
|
59
|
+
"path": "../../common-types"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": "Theme."
|
|
68
|
+
},
|
|
69
|
+
"attribute": "theme",
|
|
70
|
+
"reflect": false,
|
|
71
|
+
"defaultValue": "\"\""
|
|
72
|
+
},
|
|
73
|
+
"active": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"mutable": true,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "boolean",
|
|
78
|
+
"resolved": "boolean",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": false,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": "Active"
|
|
86
|
+
},
|
|
87
|
+
"attribute": "active",
|
|
88
|
+
"reflect": false,
|
|
89
|
+
"defaultValue": "false"
|
|
90
|
+
},
|
|
91
|
+
"href": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"mutable": true,
|
|
94
|
+
"complexType": {
|
|
95
|
+
"original": "string",
|
|
96
|
+
"resolved": "string",
|
|
97
|
+
"references": {}
|
|
98
|
+
},
|
|
99
|
+
"required": false,
|
|
100
|
+
"optional": false,
|
|
101
|
+
"docs": {
|
|
102
|
+
"tags": [],
|
|
103
|
+
"text": "Href"
|
|
104
|
+
},
|
|
105
|
+
"attribute": "href",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "\"#\""
|
|
108
|
+
},
|
|
109
|
+
"icon": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": true,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Icon"
|
|
122
|
+
},
|
|
123
|
+
"attribute": "icon",
|
|
124
|
+
"reflect": true,
|
|
125
|
+
"defaultValue": "undefined"
|
|
126
|
+
}
|
|
127
|
+
}; }
|
|
128
|
+
static get elementRef() { return "element"; }
|
|
129
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
*,
|
|
3
2
|
*::after,
|
|
4
3
|
*::before {
|
|
@@ -88,9 +87,6 @@
|
|
|
88
87
|
.duet-theme-turva .duet-multiselect-wrapper {
|
|
89
88
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
90
89
|
}
|
|
91
|
-
.duet-multiselect-wrapper::after {
|
|
92
|
-
content: " ";
|
|
93
|
-
}
|
|
94
90
|
|
|
95
91
|
.duet-multiselect {
|
|
96
92
|
display: flex;
|
|
@@ -240,6 +236,7 @@
|
|
|
240
236
|
margin-top: 8px;
|
|
241
237
|
}
|
|
242
238
|
.duet-theme-turva .duet-multiselect-help {
|
|
239
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
243
240
|
color: #747475;
|
|
244
241
|
}
|
|
245
242
|
.has-error .duet-multiselect-help {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
4
|
+
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
6
|
import { createID } from "../../utils/create-id";
|
|
7
7
|
import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isEnterKey, isEscapeKey, isTabKey, } from "../../utils/keyboard-utils";
|
|
@@ -84,9 +84,6 @@ export class DuetMultiselect {
|
|
|
84
84
|
/**
|
|
85
85
|
* Component event handling.
|
|
86
86
|
*/
|
|
87
|
-
this.onClick = (ev) => {
|
|
88
|
-
ev.stopPropagation();
|
|
89
|
-
};
|
|
90
87
|
this.onChange = (ev) => {
|
|
91
88
|
this.duetChange.emit({
|
|
92
89
|
originalEvent: ev,
|
|
@@ -156,6 +153,12 @@ export class DuetMultiselect {
|
|
|
156
153
|
return `${this.identifier}-option-${key}`;
|
|
157
154
|
};
|
|
158
155
|
}
|
|
156
|
+
handleFocus(e) {
|
|
157
|
+
const isClickOutside = e.composedPath().every(node => node !== this.element);
|
|
158
|
+
if (isClickOutside) {
|
|
159
|
+
this.checkboxesVisible = false;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
159
162
|
/**
|
|
160
163
|
* Component lifecycle events.
|
|
161
164
|
*/
|
|
@@ -185,7 +188,7 @@ export class DuetMultiselect {
|
|
|
185
188
|
*/
|
|
186
189
|
render() {
|
|
187
190
|
const selectedTranslation = getLocaleString(this.selectedLangObject);
|
|
188
|
-
return (h(Host, {
|
|
191
|
+
return (h(Host, { class: {
|
|
189
192
|
"duet-m-0": this.margin === "none",
|
|
190
193
|
"duet-expand": this.expand,
|
|
191
194
|
} },
|
|
@@ -594,4 +597,11 @@ export class DuetMultiselect {
|
|
|
594
597
|
"propName": "items",
|
|
595
598
|
"methodName": "refresh"
|
|
596
599
|
}]; }
|
|
600
|
+
static get listeners() { return [{
|
|
601
|
+
"name": "click",
|
|
602
|
+
"method": "handleFocus",
|
|
603
|
+
"target": "window",
|
|
604
|
+
"capture": false,
|
|
605
|
+
"passive": false
|
|
606
|
+
}]; }
|
|
597
607
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Listen, Prop } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
export class DuetMenuBar {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Theme.
|
|
10
|
+
*/
|
|
11
|
+
this.theme = "";
|
|
12
|
+
this.getToolbarDropdowns = () => this.element.querySelectorAll("duet-toolbar-dropdown");
|
|
13
|
+
this.getMenuBarMenus = () => this.element.querySelectorAll("duet-menu-bar-menu");
|
|
14
|
+
this.getActiveMenu = () => this.element.querySelector("duet-menu-bar-menu[active]");
|
|
15
|
+
this.getActiveTool = () => this.element.querySelector("duet-toolbar-link[active],duet-toolbar-dropdown[active]");
|
|
16
|
+
this.getMenuBarMenuDropdowns = () => this.element.querySelectorAll("duet-menu-bar-menu-dropdown");
|
|
17
|
+
this.getMenuBarDropdowns = () => this.element.querySelectorAll("duet-menu-bar-dropdown");
|
|
18
|
+
this.toggleActiveMenu = (active) => {
|
|
19
|
+
const activeMenu = this.getActiveMenu();
|
|
20
|
+
if (activeMenu) {
|
|
21
|
+
activeMenu.setAttribute("active", active ? "true" : "false");
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.toggleActiveTool = (active) => {
|
|
25
|
+
const activeTool = this.getActiveTool();
|
|
26
|
+
if (activeTool) {
|
|
27
|
+
activeTool.setAttribute("active", active ? "true" : "false");
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.close = (elementGetter, elementToKeepOpen) => {
|
|
31
|
+
elementGetter().forEach(element => {
|
|
32
|
+
if (elementToKeepOpen) {
|
|
33
|
+
if (element !== elementToKeepOpen) {
|
|
34
|
+
element.setAttribute("open", "false");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
element.setAttribute("open", "false");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Component lifecycle events.
|
|
45
|
+
*/
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
inheritGlobalTheme(this);
|
|
48
|
+
}
|
|
49
|
+
handleToolbarDropdownEvent(e) {
|
|
50
|
+
if (e.detail.data.element) {
|
|
51
|
+
if (e.detail.data.open) {
|
|
52
|
+
this.close(this.getMenuBarMenus);
|
|
53
|
+
this.close(this.getToolbarDropdowns, e.detail.data.element);
|
|
54
|
+
this.close(this.getMenuBarMenuDropdowns);
|
|
55
|
+
this.close(this.getMenuBarDropdowns);
|
|
56
|
+
}
|
|
57
|
+
this.toggleActiveMenu(true);
|
|
58
|
+
this.toggleActiveTool(!e.detail.data.open);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
handleMenuEvent(e) {
|
|
62
|
+
if (e.detail.data.element) {
|
|
63
|
+
if (e.detail.data.open) {
|
|
64
|
+
this.close(this.getMenuBarMenus, e.detail.data.element);
|
|
65
|
+
this.close(this.getToolbarDropdowns);
|
|
66
|
+
this.close(this.getMenuBarMenuDropdowns);
|
|
67
|
+
this.close(this.getMenuBarDropdowns);
|
|
68
|
+
}
|
|
69
|
+
this.toggleActiveMenu(!e.detail.data.open);
|
|
70
|
+
this.toggleActiveTool(true);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
handleMenuDropdownEvent(e) {
|
|
74
|
+
if (e.detail.data.element && e.detail.data.open) {
|
|
75
|
+
this.close(this.getMenuBarMenuDropdowns, e.detail.data.element);
|
|
76
|
+
this.close(this.getMenuBarDropdowns);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
handleDropdownEvent(e) {
|
|
80
|
+
if (e.detail.data.element && e.detail.data.open) {
|
|
81
|
+
this.close(this.getMenuBarDropdowns, e.detail.data.element);
|
|
82
|
+
this.close(this.getToolbarDropdowns);
|
|
83
|
+
this.close(this.getMenuBarMenus);
|
|
84
|
+
this.close(this.getMenuBarMenuDropdowns);
|
|
85
|
+
}
|
|
86
|
+
this.toggleActiveMenu(!e.detail.data.open);
|
|
87
|
+
this.toggleActiveTool(true);
|
|
88
|
+
}
|
|
89
|
+
handleFocus() {
|
|
90
|
+
this.toggleActiveMenu(true);
|
|
91
|
+
this.toggleActiveTool(true);
|
|
92
|
+
this.close(this.getToolbarDropdowns);
|
|
93
|
+
this.close(this.getMenuBarMenus);
|
|
94
|
+
this.close(this.getMenuBarMenuDropdowns);
|
|
95
|
+
this.close(this.getMenuBarDropdowns);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* render() function
|
|
99
|
+
* Always the last one in the class.
|
|
100
|
+
*/
|
|
101
|
+
render() {
|
|
102
|
+
return (h(Host, null,
|
|
103
|
+
h("nav", null,
|
|
104
|
+
h("slot", null))));
|
|
105
|
+
}
|
|
106
|
+
static get is() { return "duet-nav"; }
|
|
107
|
+
static get encapsulation() { return "shadow"; }
|
|
108
|
+
static get originalStyleUrls() { return {
|
|
109
|
+
"$": ["duet-nav.scss"]
|
|
110
|
+
}; }
|
|
111
|
+
static get styleUrls() { return {
|
|
112
|
+
"$": ["duet-nav.css"]
|
|
113
|
+
}; }
|
|
114
|
+
static get properties() { return {
|
|
115
|
+
"theme": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"mutable": true,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "DuetTheme",
|
|
120
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
121
|
+
"references": {
|
|
122
|
+
"DuetTheme": {
|
|
123
|
+
"location": "import",
|
|
124
|
+
"path": "../../common-types"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": false,
|
|
129
|
+
"optional": false,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": "Theme."
|
|
133
|
+
},
|
|
134
|
+
"attribute": "theme",
|
|
135
|
+
"reflect": false,
|
|
136
|
+
"defaultValue": "\"\""
|
|
137
|
+
}
|
|
138
|
+
}; }
|
|
139
|
+
static get elementRef() { return "element"; }
|
|
140
|
+
static get listeners() { return [{
|
|
141
|
+
"name": "duetToolbarDropdownEvent",
|
|
142
|
+
"method": "handleToolbarDropdownEvent",
|
|
143
|
+
"target": undefined,
|
|
144
|
+
"capture": false,
|
|
145
|
+
"passive": false
|
|
146
|
+
}, {
|
|
147
|
+
"name": "duetMenuBarMenuEvent",
|
|
148
|
+
"method": "handleMenuEvent",
|
|
149
|
+
"target": undefined,
|
|
150
|
+
"capture": false,
|
|
151
|
+
"passive": false
|
|
152
|
+
}, {
|
|
153
|
+
"name": "duetMenuBarMenuDropdownEvent",
|
|
154
|
+
"method": "handleMenuDropdownEvent",
|
|
155
|
+
"target": undefined,
|
|
156
|
+
"capture": false,
|
|
157
|
+
"passive": false
|
|
158
|
+
}, {
|
|
159
|
+
"name": "duetMenuBarDropdownEvent",
|
|
160
|
+
"method": "handleDropdownEvent",
|
|
161
|
+
"target": undefined,
|
|
162
|
+
"capture": false,
|
|
163
|
+
"passive": false
|
|
164
|
+
}, {
|
|
165
|
+
"name": "click",
|
|
166
|
+
"method": "handleFocus",
|
|
167
|
+
"target": "document",
|
|
168
|
+
"capture": false,
|
|
169
|
+
"passive": false
|
|
170
|
+
}, {
|
|
171
|
+
"name": "focus",
|
|
172
|
+
"method": "handleFocus",
|
|
173
|
+
"target": "document",
|
|
174
|
+
"capture": false,
|
|
175
|
+
"passive": false
|
|
176
|
+
}]; }
|
|
177
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
display: block;
|
|
24
|
+
flex: 1 0 auto;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(.duet-middle) {
|
|
29
|
+
display: flex;
|
|
30
|
+
}
|
|
31
|
+
:host(.duet-middle) .duet-layout {
|
|
32
|
+
padding: 36px 28px !important;
|
|
33
|
+
}
|
|
34
|
+
@media (min-width: 36em) {
|
|
35
|
+
:host(.duet-middle) .duet-layout {
|
|
36
|
+
padding: 48px 36px !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@media (min-width: 62em) {
|
|
40
|
+
:host(.duet-middle) .duet-layout {
|
|
41
|
+
padding: 56px !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host(.duet-ie) {
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:host(.duet-middle.duet-ie) {
|
|
50
|
+
height: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.duet-layout {
|
|
54
|
+
position: relative;
|
|
55
|
+
padding: 0 16px;
|
|
56
|
+
margin: 48px auto 36px;
|
|
57
|
+
}
|
|
58
|
+
@media (min-width: 36em) {
|
|
59
|
+
.duet-layout {
|
|
60
|
+
margin-top: 72px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.duet-layout.duet-m-0 {
|
|
64
|
+
margin-top: 0 !important;
|
|
65
|
+
margin-bottom: 0 !important;
|
|
66
|
+
}
|
|
67
|
+
@media (min-width: 36em) {
|
|
68
|
+
.duet-layout {
|
|
69
|
+
padding: 0 28px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@media (min-width: 62em) {
|
|
73
|
+
.duet-layout {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: row;
|
|
76
|
+
padding: 0 56px;
|
|
77
|
+
margin-bottom: 48px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@media (min-width: 76.25em) {
|
|
81
|
+
.duet-layout {
|
|
82
|
+
max-width: 1110px;
|
|
83
|
+
padding: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.duet-main {
|
|
88
|
+
display: block;
|
|
89
|
+
width: 100%;
|
|
90
|
+
}
|
|
91
|
+
@media (min-width: 62em) {
|
|
92
|
+
.duet-main {
|
|
93
|
+
min-width: 600px;
|
|
94
|
+
margin: 0 auto;
|
|
95
|
+
}
|
|
96
|
+
.has-sidebar .duet-main {
|
|
97
|
+
max-width: 734px;
|
|
98
|
+
margin-right: 20px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Element, h, Host, Prop } from "@stencil/core";
|
|
5
|
+
import isInternetExplorer from "../../utils/is-internet-explorer";
|
|
6
|
+
export class DuetSectionLayout {
|
|
7
|
+
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Controls the margin of the component.
|
|
10
|
+
*/
|
|
11
|
+
this.margin = "auto";
|
|
12
|
+
/**
|
|
13
|
+
* Align container vertically in the middle when the space allows it.
|
|
14
|
+
*/
|
|
15
|
+
this.middle = false;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* render() function.
|
|
19
|
+
* Always the last one in the class.
|
|
20
|
+
*/
|
|
21
|
+
render() {
|
|
22
|
+
return (h(Host, { class: {
|
|
23
|
+
"duet-middle": this.middle,
|
|
24
|
+
"duet-ie": isInternetExplorer(),
|
|
25
|
+
} },
|
|
26
|
+
h("div", { class: {
|
|
27
|
+
"duet-layout": true,
|
|
28
|
+
"duet-m-0": this.margin === "none",
|
|
29
|
+
} },
|
|
30
|
+
h("section", { class: "duet-main" },
|
|
31
|
+
h("slot", null)))));
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "duet-section-layout"; }
|
|
34
|
+
static get encapsulation() { return "shadow"; }
|
|
35
|
+
static get originalStyleUrls() { return {
|
|
36
|
+
"$": ["duet-section-layout.scss"]
|
|
37
|
+
}; }
|
|
38
|
+
static get styleUrls() { return {
|
|
39
|
+
"$": ["duet-section-layout.css"]
|
|
40
|
+
}; }
|
|
41
|
+
static get properties() { return {
|
|
42
|
+
"margin": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "DuetMargin",
|
|
47
|
+
"resolved": "\"auto\" | \"none\"",
|
|
48
|
+
"references": {
|
|
49
|
+
"DuetMargin": {
|
|
50
|
+
"location": "import",
|
|
51
|
+
"path": "../../common-types"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Controls the margin of the component."
|
|
60
|
+
},
|
|
61
|
+
"attribute": "margin",
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"defaultValue": "\"auto\""
|
|
64
|
+
},
|
|
65
|
+
"middle": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "boolean",
|
|
70
|
+
"resolved": "boolean",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "Align container vertically in the middle when the space allows it."
|
|
78
|
+
},
|
|
79
|
+
"attribute": "middle",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "false"
|
|
82
|
+
}
|
|
83
|
+
}; }
|
|
84
|
+
static get elementRef() { return "element"; }
|
|
85
|
+
}
|
|
@@ -267,6 +267,7 @@ duet-tooltip {
|
|
|
267
267
|
margin-top: 8px;
|
|
268
268
|
}
|
|
269
269
|
.duet-theme-turva .duet-select-help {
|
|
270
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
270
271
|
color: #747475;
|
|
271
272
|
}
|
|
272
273
|
.has-error .duet-select-help {
|
|
@@ -187,7 +187,7 @@ export class DuetSelect {
|
|
|
187
187
|
this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
|
|
188
188
|
h("div", { class: "duet-select-wrapper" },
|
|
189
189
|
this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)),
|
|
190
|
-
h("select", { ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": `${this.
|
|
190
|
+
h("select", { ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": `${this.errorId} ${this.labelId}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-errormessage": this.error ? this.errorId : null, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required, "aria-describedby": this.accessibleDescribedBy },
|
|
191
191
|
this.placeholder && (h("option", { disabled: true, selected: true, value: "" }, this.placeholder)),
|
|
192
192
|
!this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
|
|
193
193
|
return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
|
|
@@ -200,7 +200,7 @@ export class DuetSelect {
|
|
|
200
200
|
this.variation !== "tiny" && (h("svg", { role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
201
201
|
h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))),
|
|
202
202
|
this.variation === "tiny" && (h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xx-small" })))),
|
|
203
|
-
h("span", { class: "duet-select-help", id: this.errorId, "aria-live": "
|
|
203
|
+
h("span", { class: "duet-select-help", id: this.errorId, "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
|
|
204
204
|
}
|
|
205
205
|
static get is() { return "duet-select"; }
|
|
206
206
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { sizeHeader, sizeNavigation } from "@duetds/tokens";
|
|
5
5
|
import { Build, Component, Element, h, Host, Prop, State } from "@stencil/core";
|
|
6
6
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
7
|
import { debounce } from "../../utils/js-utils";
|
|
8
|
-
|
|
9
|
-
// media query tokens are wrapped in speech marks,
|
|
10
|
-
// which need to be removed before use with matchMedia.
|
|
11
|
-
const unwrap = (str) => str.substring(1, str.length - 1);
|
|
12
|
-
const breakpointToToken = {
|
|
13
|
-
none: "all",
|
|
14
|
-
"none-scrollable": "all",
|
|
15
|
-
small: unwrap(mediaQuerySmall),
|
|
16
|
-
medium: unwrap(mediaQueryMedium),
|
|
17
|
-
large: unwrap(mediaQueryLarge),
|
|
18
|
-
"x-large": unwrap(mediaQueryXLarge),
|
|
19
|
-
"xx-large": unwrap(mediaQueryXxLarge),
|
|
20
|
-
"xxx-large": unwrap(mediaQueryXxxLarge),
|
|
21
|
-
};
|
|
8
|
+
import { breakpointToToken } from "../../utils/token-utils";
|
|
22
9
|
const stickyTopValues = {
|
|
23
10
|
none: 0,
|
|
24
11
|
"with-links": parseFloat(sizeNavigation) * 16,
|
|
@@ -69,7 +56,8 @@ export class DuetTable {
|
|
|
69
56
|
if (Build.isServer) {
|
|
70
57
|
return;
|
|
71
58
|
}
|
|
72
|
-
this.
|
|
59
|
+
const token = this.breakpoint === "none" || this.breakpoint === "none-scrollable" ? "all" : breakpointToToken[this.breakpoint];
|
|
60
|
+
this.mq = matchMedia(token);
|
|
73
61
|
this.mq.addEventListener("change", debounce(this.handleMediaQueryChange, 50));
|
|
74
62
|
this.handleMediaQueryChange(this.mq);
|
|
75
63
|
this.observer = new MutationObserver(() => debounce(this.copyHeadingsToCells(), 50));
|
|
@@ -201,6 +201,7 @@ duet-tooltip {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.duet-textarea-help {
|
|
204
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
204
205
|
font-size: 0.875rem;
|
|
205
206
|
line-height: 1.25;
|
|
206
207
|
}
|
|
@@ -208,6 +209,10 @@ duet-tooltip {
|
|
|
208
209
|
display: block;
|
|
209
210
|
margin-top: 8px;
|
|
210
211
|
}
|
|
212
|
+
.duet-theme-turva .duet-textarea-help {
|
|
213
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
214
|
+
color: #747475;
|
|
215
|
+
}
|
|
211
216
|
.has-error .duet-textarea-help {
|
|
212
217
|
color: #de2362;
|
|
213
218
|
}
|