@duetds/components 4.35.3 → 4.36.1
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 +517 -15
- 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 +8 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- 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 +3 -3
- 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-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-editable-table_4.cjs.entry.js +4 -13
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +2 -2
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +2 -2
- package/lib/cjs/duet-pagination_2.cjs.entry.js +448 -0
- 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 +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-select.cjs.entry.js +16 -4
- package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- 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-5cc92935.js → focus-utils-dfd718e8.js} +1 -1
- package/lib/cjs/{index-f863de47.js → index-4f342f1c.js} +4 -1
- package/lib/cjs/js-utils-33a9dbe3.js +16 -0
- package/lib/cjs/{keyboard-utils-b4e3d1d3.js → keyboard-utils-898cfe14.js} +8 -0
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-05bd23b4.js → token-utils-f402e205.js} +9 -6
- package/lib/collection/collection-manifest.json +8 -0
- package/lib/collection/components/duet-button/duet-button.css +3 -0
- package/lib/collection/components/duet-button/duet-button.js +27 -0
- package/lib/collection/components/duet-card/duet-card.js +1 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -1
- package/lib/collection/components/duet-pagination/duet-pagination-utils.js +9 -0
- package/lib/collection/components/duet-pagination/duet-pagination.css +120 -0
- package/lib/collection/components/duet-pagination/duet-pagination.js +511 -0
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +100 -0
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +342 -0
- package/lib/collection/components/duet-select/duet-select.css +26 -0
- package/lib/collection/components/duet-select/duet-select.js +39 -4
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -1
- package/lib/collection/utils/fixture-utils.js +0 -4
- package/lib/collection/utils/keyboard-utils.js +4 -0
- package/lib/collection/utils/test-utils.js +2 -1
- package/lib/collection/utils/token-utils.js +33 -6
- package/lib/custom-elements-bundle/index.d.ts +12 -0
- package/lib/custom-elements-bundle/index.js +482 -16
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-4dee11c0.system.entry.js → p-0366552b.system.entry.js} +1 -1
- package/lib/duet/{p-c999b0a0.entry.js → p-03cf3ebf.entry.js} +1 -1
- package/lib/duet/{p-89b641c1.system.entry.js → p-05e2c680.system.entry.js} +1 -1
- package/lib/duet/{p-20770074.system.entry.js → p-061835f3.system.entry.js} +1 -1
- package/lib/duet/p-063fe96d.entry.js +4 -0
- package/lib/duet/{p-04db8923.system.entry.js → p-12941aef.system.entry.js} +2 -2
- package/lib/duet/{p-112ae31f.system.entry.js → p-164a7037.system.entry.js} +1 -1
- package/lib/duet/{p-5a5c0f82.entry.js → p-1a95aeb6.entry.js} +1 -1
- package/lib/duet/{p-719aa1cf.entry.js → p-1c4721a1.entry.js} +1 -1
- package/lib/duet/{p-999bd008.entry.js → p-1db7a35b.entry.js} +1 -1
- package/lib/duet/{p-a31b1d0c.entry.js → p-20cdb787.entry.js} +1 -1
- package/lib/duet/{p-e228c0a0.system.entry.js → p-210d739c.system.entry.js} +1 -1
- package/lib/duet/{p-4429cdb2.system.entry.js → p-211b4485.system.entry.js} +1 -1
- package/lib/duet/{p-e80b0c03.system.entry.js → p-22baf1f8.system.entry.js} +1 -1
- package/lib/duet/{p-3ae153aa.entry.js → p-2361986e.entry.js} +1 -1
- package/lib/duet/{p-4ca7a496.entry.js → p-24b9e806.entry.js} +1 -1
- package/lib/duet/{p-fc1e77a4.system.entry.js → p-286d2ad2.system.entry.js} +1 -1
- package/lib/duet/{p-f0732de0.entry.js → p-29255af8.entry.js} +1 -1
- package/lib/duet/p-2eeacf1a.entry.js +4 -0
- package/lib/duet/p-3547d108.entry.js +4 -0
- package/lib/duet/{p-264d0b24.system.entry.js → p-3900577d.system.entry.js} +1 -1
- package/lib/duet/p-396f1bdc.entry.js +4 -0
- package/lib/duet/{p-9bc2e0b8.system.entry.js → p-3bb702e3.system.entry.js} +2 -2
- package/lib/duet/{p-706eeb09.entry.js → p-3c3536be.entry.js} +1 -1
- package/lib/duet/{p-c5eddafe.entry.js → p-3d1b0105.entry.js} +1 -1
- package/lib/duet/{p-7582675a.entry.js → p-46ae601a.entry.js} +1 -1
- package/lib/duet/{p-b4869f24.system.entry.js → p-493c6d2f.system.entry.js} +1 -1
- package/lib/duet/p-4e2532c7.system.js +4 -0
- package/lib/duet/{p-756b56a6.system.entry.js → p-4fdbc6ff.system.entry.js} +1 -1
- package/lib/duet/{p-4da5cb97.entry.js → p-5376a9db.entry.js} +1 -1
- package/lib/duet/{p-9170b4c4.entry.js → p-562ae946.entry.js} +1 -1
- package/lib/duet/{p-d7daa7ef.entry.js → p-5b546064.entry.js} +1 -1
- package/lib/duet/{p-a4503985.entry.js → p-5d9affcd.entry.js} +1 -1
- package/lib/duet/{p-a0b7cb61.system.entry.js → p-615bfc61.system.entry.js} +1 -1
- package/lib/duet/{p-ef895424.system.entry.js → p-635dacce.system.entry.js} +1 -1
- package/lib/duet/{p-07e793a6.system.entry.js → p-65c418f7.system.entry.js} +2 -2
- package/lib/duet/{p-1d3f88a6.entry.js → p-740b5609.entry.js} +1 -1
- package/lib/duet/p-74780bca.system.js +4 -0
- package/lib/duet/{p-c8c7bc80.system.entry.js → p-79b9e7ef.system.entry.js} +1 -1
- package/lib/duet/{p-90f4de78.system.entry.js → p-7a32ceb3.system.entry.js} +1 -1
- package/lib/duet/{p-a04f385f.entry.js → p-7b55f33e.entry.js} +1 -1
- package/lib/duet/p-7e0e2209.system.entry.js +4 -0
- package/lib/duet/{p-d7c1efc6.entry.js → p-7f0e360d.entry.js} +1 -1
- package/lib/duet/p-81867417.system.js +4 -0
- package/lib/duet/p-83452e8f.entry.js +4 -0
- package/lib/duet/{p-02ab802f.entry.js → p-85100e09.entry.js} +1 -1
- package/lib/duet/p-898f30a5.js +4 -0
- package/lib/duet/p-89e42127.system.entry.js +4 -0
- package/lib/duet/{p-02eab9d4.system.entry.js → p-8c53bc24.system.entry.js} +1 -1
- package/lib/duet/{p-7f9cbd19.system.entry.js → p-946f34b4.system.entry.js} +1 -1
- package/lib/duet/{p-c43d44b5.entry.js → p-9ce0e625.entry.js} +1 -1
- package/lib/duet/{p-ec90489b.system.entry.js → p-9df321b3.system.entry.js} +1 -1
- package/lib/duet/{p-09f9d630.system.entry.js → p-a3d7951c.system.entry.js} +1 -1
- package/lib/duet/p-a619dff3.system.js +4 -0
- package/lib/duet/{p-b17db623.system.js → p-ad3dad04.system.js} +1 -1
- package/lib/duet/{p-31f570f2.entry.js → p-ae14591e.entry.js} +1 -1
- package/lib/duet/p-b25d3769.js +4 -0
- package/lib/duet/{p-b15511a2.entry.js → p-b6dd0933.entry.js} +1 -1
- package/lib/duet/{p-3c29aa52.entry.js → p-bf192d9f.entry.js} +1 -1
- package/lib/duet/{p-a644a5f9.entry.js → p-c18080ad.entry.js} +1 -1
- package/lib/duet/{p-8a682c91.entry.js → p-c2d32103.entry.js} +1 -1
- package/lib/duet/p-c514010b.system.entry.js +4 -0
- package/lib/duet/{p-b095e76c.system.entry.js → p-c52f4de0.system.entry.js} +1 -1
- package/lib/duet/{p-32385f42.system.entry.js → p-c6df2ea8.system.entry.js} +1 -1
- package/lib/duet/{p-9fc5f201.system.entry.js → p-c76a68aa.system.entry.js} +1 -1
- package/lib/duet/{p-6486519a.system.entry.js → p-c7fa7dcc.system.entry.js} +1 -1
- package/lib/duet/{p-3f1bfd32.entry.js → p-c8ec3b99.entry.js} +1 -1
- package/lib/duet/{p-5451cadc.system.entry.js → p-ca0ee655.system.entry.js} +1 -1
- package/lib/duet/p-cb445018.js +4 -0
- package/lib/duet/p-d12b3d21.system.entry.js +4 -0
- package/lib/duet/{p-4d7840ac.system.js → p-d21f19cc.system.js} +1 -1
- package/lib/duet/{p-da11a633.entry.js → p-d24c6bc1.entry.js} +1 -1
- package/lib/duet/{p-587a09a9.system.entry.js → p-d945a4b0.system.entry.js} +1 -1
- package/lib/duet/{p-eda12bb9.system.entry.js → p-d9716aec.system.entry.js} +1 -1
- package/lib/duet/p-dcaecb5e.js +4 -0
- package/lib/duet/{p-5c785f54.system.entry.js → p-ded33218.system.entry.js} +1 -1
- package/lib/duet/{p-1a3ae51a.entry.js → p-e35d8543.entry.js} +1 -1
- package/lib/duet/{p-bb79460f.system.entry.js → p-e47daca7.system.entry.js} +1 -1
- package/lib/duet/{p-d054d313.system.entry.js → p-e5ce7aad.system.entry.js} +1 -1
- package/lib/duet/p-e6a69eb8.js +4 -0
- package/lib/duet/{p-5af7b3cb.system.entry.js → p-e7b53f4f.system.entry.js} +1 -1
- package/lib/duet/{p-3629c104.system.entry.js → p-e7dd8a15.system.entry.js} +1 -1
- package/lib/duet/{p-54c57aed.system.entry.js → p-e8303364.system.entry.js} +1 -1
- package/lib/duet/{p-856e0c17.entry.js → p-e8e35258.entry.js} +1 -1
- package/lib/duet/{p-fcb1e479.system.entry.js → p-eb892975.system.entry.js} +1 -1
- package/lib/duet/{p-6ef7cbec.entry.js → p-ebc56043.entry.js} +1 -1
- package/lib/duet/{p-618cb809.entry.js → p-ef275410.entry.js} +1 -1
- package/lib/duet/p-ef4962e8.entry.js +4 -0
- package/lib/duet/{p-46e93e09.entry.js → p-f6da56c8.entry.js} +1 -1
- package/lib/duet/{p-01450526.entry.js → p-fae71c1f.entry.js} +1 -1
- package/lib/duet/{p-c0c14e42.entry.js → p-fd2211ab.entry.js} +1 -1
- package/lib/duet/{p-ff759fb3.entry.js → p-ff21f3c2.entry.js} +1 -1
- package/lib/duet/{p-b60ec55f.system.entry.js → p-ffb5fb75.system.entry.js} +1 -1
- 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 +8 -3
- package/lib/esm/duet-caption_4.entry.js +2 -2
- package/lib/esm/duet-card.entry.js +3 -3
- 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 +3 -3
- 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-button.entry.js +2 -2
- package/lib/esm/duet-editable-table_4.entry.js +2 -11
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +2 -2
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +2 -2
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +2 -2
- package/lib/esm/duet-pagination_2.entry.js +443 -0
- 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 +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +3 -3
- package/lib/esm/duet-select.entry.js +16 -4
- package/lib/esm/duet-step_2.entry.js +2 -2
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- 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-386eaef9.js → focus-utils-d4e80e1e.js} +1 -1
- package/lib/esm/{index-a22a5200.js → index-4a5e7664.js} +4 -1
- package/lib/esm/js-utils-b69f17df.js +14 -0
- package/lib/esm/{keyboard-utils-584cedd7.js → keyboard-utils-6eb55cd5.js} +5 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-75f78ca4.js → token-utils-e9a69acf.js} +9 -6
- 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 +1 -1
- 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-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-button.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_4.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-modal.entry.js +1 -1
- 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 +4 -0
- 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-select.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.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-tooltip.entry.js +1 -1
- 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-d4e80e1e.js +4 -0
- package/lib/esm-es5/{index-a22a5200.js → index-4a5e7664.js} +1 -1
- package/lib/esm-es5/js-utils-b69f17df.js +4 -0
- package/lib/esm-es5/keyboard-utils-6eb55cd5.js +4 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-e9a69acf.js +4 -0
- package/lib/html.html-data.json +5166 -0
- package/lib/types/components/duet-button/duet-button.d.ts +5 -0
- package/lib/types/components/duet-card/duet-card.d.ts +1 -1
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -0
- package/lib/types/components/duet-pagination/duet-pagination-utils.d.ts +1 -0
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +100 -0
- package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +70 -0
- package/lib/types/components/duet-select/duet-select.d.ts +5 -0
- package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +4 -0
- package/lib/types/components.d.ts +188 -2
- package/lib/types/utils/keyboard-utils.d.ts +4 -0
- package/lib/types/utils/token-utils.d.ts +2 -0
- package/package.json +5 -5
- package/lib/duet/p-04f9f1bf.js +0 -4
- package/lib/duet/p-2a8c607e.entry.js +0 -4
- package/lib/duet/p-3c2ab6eb.js +0 -4
- package/lib/duet/p-4ce0bc2c.entry.js +0 -4
- package/lib/duet/p-50b4fb2c.js +0 -4
- package/lib/duet/p-52d7ffa5.entry.js +0 -4
- package/lib/duet/p-5846949a.system.entry.js +0 -4
- package/lib/duet/p-5c73e005.entry.js +0 -4
- package/lib/duet/p-7464e383.system.entry.js +0 -4
- package/lib/duet/p-89cc645f.entry.js +0 -4
- package/lib/duet/p-9fa468bc.system.entry.js +0 -4
- package/lib/duet/p-a16a58c1.system.js +0 -4
- package/lib/duet/p-ad3a1685.system.js +0 -4
- package/lib/duet/p-bb12b972.system.js +0 -4
- package/lib/duet/p-c1731f1a.js +0 -4
- package/lib/esm-es5/focus-utils-386eaef9.js +0 -4
- package/lib/esm-es5/keyboard-utils-584cedd7.js +0 -4
- package/lib/esm-es5/token-utils-75f78ca4.js +0 -4
|
@@ -6,6 +6,7 @@ import { ThemeableComponent } from "../../utils/themeable-component";
|
|
|
6
6
|
export declare type DuetButtonVariation = "default" | "primary" | "secondary" | "negative" | "destructive" | "destructive-primary" | "destructive-secondary" | "plain";
|
|
7
7
|
export declare type DuetButtonNegative = true | false | undefined;
|
|
8
8
|
export declare type DuetButtonWrapping = "auto" | "none";
|
|
9
|
+
export declare type DuetButtonTextCentering = true | false | undefined;
|
|
9
10
|
export declare type DuetButtonIconSize = "small" | "medium-small" | "medium" | "large";
|
|
10
11
|
export declare type DuetButtonSize = "small" | "medium";
|
|
11
12
|
export declare class DuetButton implements ThemeableComponent, FormComponent {
|
|
@@ -77,6 +78,10 @@ export declare class DuetButton implements ThemeableComponent, FormComponent {
|
|
|
77
78
|
* Controls the padding of the component.
|
|
78
79
|
*/
|
|
79
80
|
padding: DuetPadding;
|
|
81
|
+
/**
|
|
82
|
+
* Centers the text of a button
|
|
83
|
+
*/
|
|
84
|
+
centerText: DuetButtonTextCentering;
|
|
80
85
|
/**
|
|
81
86
|
* Controls the text wrapping.
|
|
82
87
|
*/
|
|
@@ -9,7 +9,7 @@ export declare type DuetCardToggleEvent = {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
|
|
12
|
-
* @slot below-
|
|
12
|
+
* @slot below-heading - Below heading content.
|
|
13
13
|
* @slot footer - Footer content.
|
|
14
14
|
*/
|
|
15
15
|
export declare class DuetCard implements ThemeableComponent {
|
|
@@ -9,6 +9,7 @@ export declare type DuetCollapsibleToggleEvent = {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* @part duet-collapsible-heading-content - piercing selector for styling the heading content
|
|
12
|
+
* @part duet-collapsible-content - piercing selector for styling the content
|
|
12
13
|
*/
|
|
13
14
|
export declare class DuetCollapsible implements ThemeableComponent {
|
|
14
15
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shouldDisplayNavigation: (visibleItems: any, total: any, take: any) => boolean;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
|
+
export declare type DuetPaginationPageEvent = {
|
|
6
|
+
originalEvent?: Event;
|
|
7
|
+
component: "duet-pagination";
|
|
8
|
+
current: number;
|
|
9
|
+
take: number;
|
|
10
|
+
from: number;
|
|
11
|
+
to: number;
|
|
12
|
+
type: "page" | "jump";
|
|
13
|
+
};
|
|
14
|
+
export declare class DuetPagination implements ThemeableComponent {
|
|
15
|
+
private listId;
|
|
16
|
+
private nativeNav;
|
|
17
|
+
numbersStore: string;
|
|
18
|
+
/**
|
|
19
|
+
* Reference to host HTML element.
|
|
20
|
+
*/
|
|
21
|
+
element: HTMLElement;
|
|
22
|
+
/**
|
|
23
|
+
* State() variables
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
totalPages: number;
|
|
27
|
+
/**
|
|
28
|
+
* State() variables
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
internalSectionIndex: number;
|
|
32
|
+
/**
|
|
33
|
+
* Theme of the pagination.
|
|
34
|
+
*/
|
|
35
|
+
theme: DuetTheme;
|
|
36
|
+
/**
|
|
37
|
+
* Characters to use for the jump buttons.
|
|
38
|
+
*/
|
|
39
|
+
jumpString: string;
|
|
40
|
+
/**
|
|
41
|
+
* Default pagination labels
|
|
42
|
+
*/
|
|
43
|
+
ariaLabelsDefaults: DuetLangObject;
|
|
44
|
+
/**
|
|
45
|
+
* Default pagination labels
|
|
46
|
+
*/
|
|
47
|
+
ariaLabels: Record<string, string>;
|
|
48
|
+
/**
|
|
49
|
+
* The size of the take, when paginating.
|
|
50
|
+
*/
|
|
51
|
+
take: number;
|
|
52
|
+
/**
|
|
53
|
+
* Amount of visible page numbers to show
|
|
54
|
+
*/
|
|
55
|
+
visibleItems: number;
|
|
56
|
+
/**
|
|
57
|
+
* The total size of the paginating data
|
|
58
|
+
*/
|
|
59
|
+
total: number;
|
|
60
|
+
/**
|
|
61
|
+
* Used to indicate which dom element with ID this element controls
|
|
62
|
+
*/
|
|
63
|
+
ariaControls: string;
|
|
64
|
+
/**
|
|
65
|
+
* The current page
|
|
66
|
+
*/
|
|
67
|
+
current: number;
|
|
68
|
+
watchStateHandler(newValue: boolean, oldValue: boolean): void;
|
|
69
|
+
/**
|
|
70
|
+
* Emitted a page selection has been made
|
|
71
|
+
*/
|
|
72
|
+
duetPageChange: EventEmitter<DuetPaginationPageEvent>;
|
|
73
|
+
/**
|
|
74
|
+
* Component lifecycle events.
|
|
75
|
+
*/
|
|
76
|
+
componentWillLoad(): void;
|
|
77
|
+
componentWillRender(): void;
|
|
78
|
+
componentDidRender(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Private methods.
|
|
81
|
+
*/
|
|
82
|
+
private actionChain;
|
|
83
|
+
private emitPageEvent;
|
|
84
|
+
private calculatePageTake;
|
|
85
|
+
private onMouseHandler;
|
|
86
|
+
private onKeyboardDown;
|
|
87
|
+
private getEnteredNumber;
|
|
88
|
+
private setFocus;
|
|
89
|
+
private pageClickHandler;
|
|
90
|
+
private sectionClickHandler;
|
|
91
|
+
private jumpToStart;
|
|
92
|
+
private jumpToEnd;
|
|
93
|
+
private renderPageNumbers;
|
|
94
|
+
private shouldDisplayNavigation;
|
|
95
|
+
/**
|
|
96
|
+
* render() function
|
|
97
|
+
* Always the last one in the class.
|
|
98
|
+
*/
|
|
99
|
+
render(): any;
|
|
100
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
|
+
import { ThemeableComponent } from "../../utils/themeable-component";
|
|
5
|
+
export declare type DuetRangeStepperUpdateEvent = {
|
|
6
|
+
originalEvent: KeyboardEvent | MouseEvent;
|
|
7
|
+
component: "duet-range-stepper";
|
|
8
|
+
from: number;
|
|
9
|
+
to: number;
|
|
10
|
+
index: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class DuetRangeStepper implements ThemeableComponent {
|
|
13
|
+
private leftBn;
|
|
14
|
+
private rightBn;
|
|
15
|
+
private leftBnRef;
|
|
16
|
+
private rightBnRef;
|
|
17
|
+
private: any;
|
|
18
|
+
/**
|
|
19
|
+
* Reference to host HTML element.
|
|
20
|
+
*/
|
|
21
|
+
element: HTMLElement;
|
|
22
|
+
/**
|
|
23
|
+
* Theme of the component.
|
|
24
|
+
*/
|
|
25
|
+
theme: DuetTheme;
|
|
26
|
+
/**
|
|
27
|
+
* Start value
|
|
28
|
+
* @default 1
|
|
29
|
+
*/
|
|
30
|
+
stepIndex: number;
|
|
31
|
+
watchStateHandler(newValue: number): void;
|
|
32
|
+
/**
|
|
33
|
+
* How big is the step
|
|
34
|
+
* @default 99
|
|
35
|
+
*/
|
|
36
|
+
stepSize: number;
|
|
37
|
+
/**
|
|
38
|
+
* Total of
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Default range stepper labels
|
|
44
|
+
*/
|
|
45
|
+
ariaLabelsDefaults: DuetLangObject;
|
|
46
|
+
/**
|
|
47
|
+
* Default pagination labels
|
|
48
|
+
*/
|
|
49
|
+
ariaLabels: Record<string, string>;
|
|
50
|
+
/**
|
|
51
|
+
* Used to indicate which dom element with ID this element controls
|
|
52
|
+
*/
|
|
53
|
+
ariaControls: string;
|
|
54
|
+
/**
|
|
55
|
+
* Event emitted when the step heading is clicked.
|
|
56
|
+
*/
|
|
57
|
+
duetRangeStepUpdate: EventEmitter<DuetRangeStepperUpdateEvent>;
|
|
58
|
+
handleStepClick(e: KeyboardEvent | MouseEvent): void;
|
|
59
|
+
componentWillLoad(): void;
|
|
60
|
+
componentDidLoad(): void;
|
|
61
|
+
private handleClick;
|
|
62
|
+
private increment;
|
|
63
|
+
private generateStepSize;
|
|
64
|
+
private onKeyboardDown;
|
|
65
|
+
/**
|
|
66
|
+
* render() function
|
|
67
|
+
* Always the last one in the class.
|
|
68
|
+
*/
|
|
69
|
+
render(): any;
|
|
70
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare type DuetSelectOption = {
|
|
|
7
7
|
value: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
};
|
|
10
|
+
export declare type DuetSelectVariation = "default" | "tiny";
|
|
10
11
|
export declare type DuetSelectOptionGroup = {
|
|
11
12
|
label: string;
|
|
12
13
|
options: DuetSelectOption[];
|
|
@@ -38,6 +39,10 @@ export declare class DuetSelect implements ThemeableComponent, InputComponent {
|
|
|
38
39
|
* Inlined decorator, alphabetical order.
|
|
39
40
|
*/
|
|
40
41
|
processedItems: DuetSelectItems;
|
|
42
|
+
/**
|
|
43
|
+
* Variation of dropdown. -tiny is used for small numbers / tiny option ranges.
|
|
44
|
+
*/
|
|
45
|
+
variation: DuetSelectVariation;
|
|
41
46
|
/**
|
|
42
47
|
* Indicates the id of a related component’s visually focused element.
|
|
43
48
|
*/
|
|
@@ -7,6 +7,10 @@ export declare type DuetTabGroupEvent = {
|
|
|
7
7
|
value: number;
|
|
8
8
|
};
|
|
9
9
|
export declare type DuetTabVariation = "default" | "plain";
|
|
10
|
+
/**
|
|
11
|
+
* @part ${identifier}-button - piercing selector for styling tab buttons
|
|
12
|
+
* @part ${identifier}-button--selected - piercing selector for styling selected tab button
|
|
13
|
+
*/
|
|
10
14
|
export declare class DuetTabGroup implements ThemeableComponent {
|
|
11
15
|
/**
|
|
12
16
|
* Own Properties.
|
|
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel } from "./common-types";
|
|
9
9
|
import { DuetLangObject } from "./utils/language-utils";
|
|
10
10
|
import { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
11
|
-
import { DuetButtonIconSize, DuetButtonSize, DuetButtonVariation, DuetButtonWrapping } from "./components/duet-button/duet-button";
|
|
11
|
+
import { DuetButtonIconSize, DuetButtonSize, DuetButtonTextCentering, DuetButtonVariation, DuetButtonWrapping } from "./components/duet-button/duet-button";
|
|
12
12
|
import { DuetCaptionSize } from "./components/duet-caption/duet-caption";
|
|
13
13
|
import { DuetCardPadding, DuetCardToggleEvent, DuetCardVariation } from "./components/duet-card/duet-card";
|
|
14
14
|
import { DuetCheckboxEvent } from "./components/duet-checkbox/duet-checkbox";
|
|
@@ -36,10 +36,12 @@ import { DuetLogoSize } from "./components/duet-logo/duet-logo";
|
|
|
36
36
|
import { DuetModalCloseEvent, DuetModalSize } from "./components/duet-modal/duet-modal";
|
|
37
37
|
import { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
|
|
38
38
|
import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
|
|
39
|
+
import { DuetPaginationPageEvent } from "./components/duet-pagination/duet-pagination";
|
|
39
40
|
import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
|
|
40
41
|
import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
|
|
41
42
|
import { DuetRangeChangeEvent } from "./components/duet-range-slider/duet-range-slider";
|
|
42
|
-
import {
|
|
43
|
+
import { DuetRangeStepperUpdateEvent } from "./components/duet-range-stepper/duet-range-stepper";
|
|
44
|
+
import { DuetSelectEvent, DuetSelectItems, DuetSelectVariation } from "./components/duet-select/duet-select";
|
|
43
45
|
import { DuetSpacerBreakpoint, DuetSpacerSize } from "./components/duet-spacer/duet-spacer";
|
|
44
46
|
import { DuetSpinnerSize } from "./components/duet-spinner/duet-spinner";
|
|
45
47
|
import { DuetStepClickEvent, DuetStepState } from "./components/duet-step/duet-step";
|
|
@@ -175,6 +177,10 @@ export namespace Components {
|
|
|
175
177
|
* Tells screen reader the element is pressed.
|
|
176
178
|
*/
|
|
177
179
|
"accessiblePressed": boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Centers the text of a button
|
|
182
|
+
*/
|
|
183
|
+
"centerText": DuetButtonTextCentering;
|
|
178
184
|
/**
|
|
179
185
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
180
186
|
*/
|
|
@@ -1848,6 +1854,44 @@ export namespace Components {
|
|
|
1848
1854
|
*/
|
|
1849
1855
|
"value": string;
|
|
1850
1856
|
}
|
|
1857
|
+
interface DuetPagination {
|
|
1858
|
+
/**
|
|
1859
|
+
* Used to indicate which dom element with ID this element controls
|
|
1860
|
+
*/
|
|
1861
|
+
"ariaControls": string;
|
|
1862
|
+
/**
|
|
1863
|
+
* Default pagination labels
|
|
1864
|
+
*/
|
|
1865
|
+
"ariaLabels": Record<string, string>;
|
|
1866
|
+
/**
|
|
1867
|
+
* Default pagination labels
|
|
1868
|
+
*/
|
|
1869
|
+
"ariaLabelsDefaults": DuetLangObject;
|
|
1870
|
+
/**
|
|
1871
|
+
* The current page
|
|
1872
|
+
*/
|
|
1873
|
+
"current": number;
|
|
1874
|
+
/**
|
|
1875
|
+
* Characters to use for the jump buttons.
|
|
1876
|
+
*/
|
|
1877
|
+
"jumpString": string;
|
|
1878
|
+
/**
|
|
1879
|
+
* The size of the take, when paginating.
|
|
1880
|
+
*/
|
|
1881
|
+
"take": number;
|
|
1882
|
+
/**
|
|
1883
|
+
* Theme of the pagination.
|
|
1884
|
+
*/
|
|
1885
|
+
"theme": DuetTheme;
|
|
1886
|
+
/**
|
|
1887
|
+
* The total size of the paginating data
|
|
1888
|
+
*/
|
|
1889
|
+
"total": number;
|
|
1890
|
+
/**
|
|
1891
|
+
* Amount of visible page numbers to show
|
|
1892
|
+
*/
|
|
1893
|
+
"visibleItems": number;
|
|
1894
|
+
}
|
|
1851
1895
|
interface DuetParagraph {
|
|
1852
1896
|
/**
|
|
1853
1897
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
@@ -2122,6 +2166,39 @@ export namespace Components {
|
|
|
2122
2166
|
*/
|
|
2123
2167
|
"value": number;
|
|
2124
2168
|
}
|
|
2169
|
+
interface DuetRangeStepper {
|
|
2170
|
+
/**
|
|
2171
|
+
* Used to indicate which dom element with ID this element controls
|
|
2172
|
+
*/
|
|
2173
|
+
"ariaControls": string;
|
|
2174
|
+
/**
|
|
2175
|
+
* Default pagination labels
|
|
2176
|
+
*/
|
|
2177
|
+
"ariaLabels": Record<string, string>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Default range stepper labels
|
|
2180
|
+
*/
|
|
2181
|
+
"ariaLabelsDefaults": DuetLangObject;
|
|
2182
|
+
/**
|
|
2183
|
+
* Start value
|
|
2184
|
+
* @default 1
|
|
2185
|
+
*/
|
|
2186
|
+
"stepIndex": number;
|
|
2187
|
+
/**
|
|
2188
|
+
* How big is the step
|
|
2189
|
+
* @default 99
|
|
2190
|
+
*/
|
|
2191
|
+
"stepSize": number;
|
|
2192
|
+
/**
|
|
2193
|
+
* Theme of the component.
|
|
2194
|
+
*/
|
|
2195
|
+
"theme": DuetTheme;
|
|
2196
|
+
/**
|
|
2197
|
+
* Total of
|
|
2198
|
+
* @default undefined
|
|
2199
|
+
*/
|
|
2200
|
+
"total": number;
|
|
2201
|
+
}
|
|
2125
2202
|
interface DuetScrollable {
|
|
2126
2203
|
/**
|
|
2127
2204
|
* Optional identifier to add to buttons in the tab group
|
|
@@ -2229,6 +2306,10 @@ export namespace Components {
|
|
|
2229
2306
|
* The selected value of the select
|
|
2230
2307
|
*/
|
|
2231
2308
|
"value": string;
|
|
2309
|
+
/**
|
|
2310
|
+
* Variation of dropdown. -tiny is used for small numbers / tiny option ranges.
|
|
2311
|
+
*/
|
|
2312
|
+
"variation": DuetSelectVariation;
|
|
2232
2313
|
}
|
|
2233
2314
|
interface DuetSpacer {
|
|
2234
2315
|
/**
|
|
@@ -3139,6 +3220,12 @@ declare global {
|
|
|
3139
3220
|
prototype: HTMLDuetNumberInputElement;
|
|
3140
3221
|
new (): HTMLDuetNumberInputElement;
|
|
3141
3222
|
};
|
|
3223
|
+
interface HTMLDuetPaginationElement extends Components.DuetPagination, HTMLStencilElement {
|
|
3224
|
+
}
|
|
3225
|
+
var HTMLDuetPaginationElement: {
|
|
3226
|
+
prototype: HTMLDuetPaginationElement;
|
|
3227
|
+
new (): HTMLDuetPaginationElement;
|
|
3228
|
+
};
|
|
3142
3229
|
interface HTMLDuetParagraphElement extends Components.DuetParagraph, HTMLStencilElement {
|
|
3143
3230
|
}
|
|
3144
3231
|
var HTMLDuetParagraphElement: {
|
|
@@ -3169,6 +3256,12 @@ declare global {
|
|
|
3169
3256
|
prototype: HTMLDuetRangeSliderElement;
|
|
3170
3257
|
new (): HTMLDuetRangeSliderElement;
|
|
3171
3258
|
};
|
|
3259
|
+
interface HTMLDuetRangeStepperElement extends Components.DuetRangeStepper, HTMLStencilElement {
|
|
3260
|
+
}
|
|
3261
|
+
var HTMLDuetRangeStepperElement: {
|
|
3262
|
+
prototype: HTMLDuetRangeStepperElement;
|
|
3263
|
+
new (): HTMLDuetRangeStepperElement;
|
|
3264
|
+
};
|
|
3172
3265
|
interface HTMLDuetScrollableElement extends Components.DuetScrollable, HTMLStencilElement {
|
|
3173
3266
|
}
|
|
3174
3267
|
var HTMLDuetScrollableElement: {
|
|
@@ -3303,11 +3396,13 @@ declare global {
|
|
|
3303
3396
|
"duet-notification": HTMLDuetNotificationElement;
|
|
3304
3397
|
"duet-notification-drawer": HTMLDuetNotificationDrawerElement;
|
|
3305
3398
|
"duet-number-input": HTMLDuetNumberInputElement;
|
|
3399
|
+
"duet-pagination": HTMLDuetPaginationElement;
|
|
3306
3400
|
"duet-paragraph": HTMLDuetParagraphElement;
|
|
3307
3401
|
"duet-progress": HTMLDuetProgressElement;
|
|
3308
3402
|
"duet-radio": HTMLDuetRadioElement;
|
|
3309
3403
|
"duet-radio-group": HTMLDuetRadioGroupElement;
|
|
3310
3404
|
"duet-range-slider": HTMLDuetRangeSliderElement;
|
|
3405
|
+
"duet-range-stepper": HTMLDuetRangeStepperElement;
|
|
3311
3406
|
"duet-scrollable": HTMLDuetScrollableElement;
|
|
3312
3407
|
"duet-select": HTMLDuetSelectElement;
|
|
3313
3408
|
"duet-spacer": HTMLDuetSpacerElement;
|
|
@@ -3452,6 +3547,10 @@ declare namespace LocalJSX {
|
|
|
3452
3547
|
* Tells screen reader the element is pressed.
|
|
3453
3548
|
*/
|
|
3454
3549
|
"accessiblePressed"?: boolean;
|
|
3550
|
+
/**
|
|
3551
|
+
* Centers the text of a button
|
|
3552
|
+
*/
|
|
3553
|
+
"centerText"?: DuetButtonTextCentering;
|
|
3455
3554
|
/**
|
|
3456
3555
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
3457
3556
|
*/
|
|
@@ -5193,6 +5292,48 @@ declare namespace LocalJSX {
|
|
|
5193
5292
|
*/
|
|
5194
5293
|
"value"?: string;
|
|
5195
5294
|
}
|
|
5295
|
+
interface DuetPagination {
|
|
5296
|
+
/**
|
|
5297
|
+
* Used to indicate which dom element with ID this element controls
|
|
5298
|
+
*/
|
|
5299
|
+
"ariaControls"?: string;
|
|
5300
|
+
/**
|
|
5301
|
+
* Default pagination labels
|
|
5302
|
+
*/
|
|
5303
|
+
"ariaLabels"?: Record<string, string>;
|
|
5304
|
+
/**
|
|
5305
|
+
* Default pagination labels
|
|
5306
|
+
*/
|
|
5307
|
+
"ariaLabelsDefaults"?: DuetLangObject;
|
|
5308
|
+
/**
|
|
5309
|
+
* The current page
|
|
5310
|
+
*/
|
|
5311
|
+
"current"?: number;
|
|
5312
|
+
/**
|
|
5313
|
+
* Characters to use for the jump buttons.
|
|
5314
|
+
*/
|
|
5315
|
+
"jumpString"?: string;
|
|
5316
|
+
/**
|
|
5317
|
+
* Emitted a page selection has been made
|
|
5318
|
+
*/
|
|
5319
|
+
"onDuetPageChange"?: (event: CustomEvent<DuetPaginationPageEvent>) => void;
|
|
5320
|
+
/**
|
|
5321
|
+
* The size of the take, when paginating.
|
|
5322
|
+
*/
|
|
5323
|
+
"take"?: number;
|
|
5324
|
+
/**
|
|
5325
|
+
* Theme of the pagination.
|
|
5326
|
+
*/
|
|
5327
|
+
"theme"?: DuetTheme;
|
|
5328
|
+
/**
|
|
5329
|
+
* The total size of the paginating data
|
|
5330
|
+
*/
|
|
5331
|
+
"total"?: number;
|
|
5332
|
+
/**
|
|
5333
|
+
* Amount of visible page numbers to show
|
|
5334
|
+
*/
|
|
5335
|
+
"visibleItems"?: number;
|
|
5336
|
+
}
|
|
5196
5337
|
interface DuetParagraph {
|
|
5197
5338
|
/**
|
|
5198
5339
|
* Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
|
|
@@ -5476,6 +5617,43 @@ declare namespace LocalJSX {
|
|
|
5476
5617
|
*/
|
|
5477
5618
|
"value"?: number;
|
|
5478
5619
|
}
|
|
5620
|
+
interface DuetRangeStepper {
|
|
5621
|
+
/**
|
|
5622
|
+
* Used to indicate which dom element with ID this element controls
|
|
5623
|
+
*/
|
|
5624
|
+
"ariaControls"?: string;
|
|
5625
|
+
/**
|
|
5626
|
+
* Default pagination labels
|
|
5627
|
+
*/
|
|
5628
|
+
"ariaLabels"?: Record<string, string>;
|
|
5629
|
+
/**
|
|
5630
|
+
* Default range stepper labels
|
|
5631
|
+
*/
|
|
5632
|
+
"ariaLabelsDefaults"?: DuetLangObject;
|
|
5633
|
+
/**
|
|
5634
|
+
* Event emitted when the step heading is clicked.
|
|
5635
|
+
*/
|
|
5636
|
+
"onDuetRangeStepUpdate"?: (event: CustomEvent<DuetRangeStepperUpdateEvent>) => void;
|
|
5637
|
+
/**
|
|
5638
|
+
* Start value
|
|
5639
|
+
* @default 1
|
|
5640
|
+
*/
|
|
5641
|
+
"stepIndex"?: number;
|
|
5642
|
+
/**
|
|
5643
|
+
* How big is the step
|
|
5644
|
+
* @default 99
|
|
5645
|
+
*/
|
|
5646
|
+
"stepSize"?: number;
|
|
5647
|
+
/**
|
|
5648
|
+
* Theme of the component.
|
|
5649
|
+
*/
|
|
5650
|
+
"theme"?: DuetTheme;
|
|
5651
|
+
/**
|
|
5652
|
+
* Total of
|
|
5653
|
+
* @default undefined
|
|
5654
|
+
*/
|
|
5655
|
+
"total"?: number;
|
|
5656
|
+
}
|
|
5479
5657
|
interface DuetScrollable {
|
|
5480
5658
|
/**
|
|
5481
5659
|
* Optional identifier to add to buttons in the tab group
|
|
@@ -5591,6 +5769,10 @@ declare namespace LocalJSX {
|
|
|
5591
5769
|
* The selected value of the select
|
|
5592
5770
|
*/
|
|
5593
5771
|
"value"?: string;
|
|
5772
|
+
/**
|
|
5773
|
+
* Variation of dropdown. -tiny is used for small numbers / tiny option ranges.
|
|
5774
|
+
*/
|
|
5775
|
+
"variation"?: DuetSelectVariation;
|
|
5594
5776
|
}
|
|
5595
5777
|
interface DuetSpacer {
|
|
5596
5778
|
/**
|
|
@@ -6341,11 +6523,13 @@ declare namespace LocalJSX {
|
|
|
6341
6523
|
"duet-notification": DuetNotification;
|
|
6342
6524
|
"duet-notification-drawer": DuetNotificationDrawer;
|
|
6343
6525
|
"duet-number-input": DuetNumberInput;
|
|
6526
|
+
"duet-pagination": DuetPagination;
|
|
6344
6527
|
"duet-paragraph": DuetParagraph;
|
|
6345
6528
|
"duet-progress": DuetProgress;
|
|
6346
6529
|
"duet-radio": DuetRadio;
|
|
6347
6530
|
"duet-radio-group": DuetRadioGroup;
|
|
6348
6531
|
"duet-range-slider": DuetRangeSlider;
|
|
6532
|
+
"duet-range-stepper": DuetRangeStepper;
|
|
6349
6533
|
"duet-scrollable": DuetScrollable;
|
|
6350
6534
|
"duet-select": DuetSelect;
|
|
6351
6535
|
"duet-spacer": DuetSpacer;
|
|
@@ -6405,11 +6589,13 @@ declare module "@stencil/core" {
|
|
|
6405
6589
|
"duet-notification": LocalJSX.DuetNotification & JSXBase.HTMLAttributes<HTMLDuetNotificationElement>;
|
|
6406
6590
|
"duet-notification-drawer": LocalJSX.DuetNotificationDrawer & JSXBase.HTMLAttributes<HTMLDuetNotificationDrawerElement>;
|
|
6407
6591
|
"duet-number-input": LocalJSX.DuetNumberInput & JSXBase.HTMLAttributes<HTMLDuetNumberInputElement>;
|
|
6592
|
+
"duet-pagination": LocalJSX.DuetPagination & JSXBase.HTMLAttributes<HTMLDuetPaginationElement>;
|
|
6408
6593
|
"duet-paragraph": LocalJSX.DuetParagraph & JSXBase.HTMLAttributes<HTMLDuetParagraphElement>;
|
|
6409
6594
|
"duet-progress": LocalJSX.DuetProgress & JSXBase.HTMLAttributes<HTMLDuetProgressElement>;
|
|
6410
6595
|
"duet-radio": LocalJSX.DuetRadio & JSXBase.HTMLAttributes<HTMLDuetRadioElement>;
|
|
6411
6596
|
"duet-radio-group": LocalJSX.DuetRadioGroup & JSXBase.HTMLAttributes<HTMLDuetRadioGroupElement>;
|
|
6412
6597
|
"duet-range-slider": LocalJSX.DuetRangeSlider & JSXBase.HTMLAttributes<HTMLDuetRangeSliderElement>;
|
|
6598
|
+
"duet-range-stepper": LocalJSX.DuetRangeStepper & JSXBase.HTMLAttributes<HTMLDuetRangeStepperElement>;
|
|
6413
6599
|
"duet-scrollable": LocalJSX.DuetScrollable & JSXBase.HTMLAttributes<HTMLDuetScrollableElement>;
|
|
6414
6600
|
"duet-select": LocalJSX.DuetSelect & JSXBase.HTMLAttributes<HTMLDuetSelectElement>;
|
|
6415
6601
|
"duet-spacer": LocalJSX.DuetSpacer & JSXBase.HTMLAttributes<HTMLDuetSpacerElement>;
|
|
@@ -2,10 +2,14 @@ export declare const isArrowLeftKey: (e: KeyboardEvent) => boolean;
|
|
|
2
2
|
export declare const isArrowUpKey: (e: KeyboardEvent) => boolean;
|
|
3
3
|
export declare const isArrowRightKey: (e: KeyboardEvent) => boolean;
|
|
4
4
|
export declare const isArrowDownKey: (e: KeyboardEvent) => boolean;
|
|
5
|
+
export declare const isArrowKey: (e: KeyboardEvent) => boolean;
|
|
5
6
|
export declare const isEscapeKey: (e: KeyboardEvent) => boolean;
|
|
6
7
|
export declare const isTabKey: (e: KeyboardEvent) => boolean;
|
|
7
8
|
export declare const isBackspaceKey: (e: KeyboardEvent) => boolean;
|
|
8
9
|
export declare const isSpaceKey: (e: KeyboardEvent) => boolean;
|
|
10
|
+
export declare const isPlusKey: (e: KeyboardEvent) => boolean;
|
|
11
|
+
export declare const isMinusKey: (e: KeyboardEvent) => boolean;
|
|
9
12
|
export declare const isQuestionKey: (e: KeyboardEvent) => boolean;
|
|
10
13
|
export declare const isEnterKey: (e: KeyboardEvent) => boolean;
|
|
11
14
|
export declare const isKeyboardClick: (e: KeyboardEvent) => boolean;
|
|
15
|
+
export declare const isNumber: (e: KeyboardEvent) => boolean;
|
|
@@ -6,3 +6,5 @@ export declare function camelize(str?: string): string;
|
|
|
6
6
|
export declare function getTheme(theme?: DuetTheme): DuetTheme;
|
|
7
7
|
export declare function getColorByName(name: string, theme?: DuetTheme): string | undefined;
|
|
8
8
|
export declare function convertToColorName(name?: string, theme?: DuetTheme): string;
|
|
9
|
+
export declare function getFontSizeByName(name: string): string | undefined;
|
|
10
|
+
export declare function getFontWeightByName(name: string): string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.36.1",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"koa-colorful-logger": "0.0.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@duetds/fonts": "1.4.
|
|
57
|
-
"@duetds/icons": "2.2.
|
|
56
|
+
"@duetds/fonts": "1.4.17",
|
|
57
|
+
"@duetds/icons": "2.2.17",
|
|
58
58
|
"@duetds/stencil-angular-output-target": "0.0.2",
|
|
59
59
|
"@duetds/stencil-react-output-target": "0.0.10",
|
|
60
|
-
"@duetds/tokens": "2.
|
|
60
|
+
"@duetds/tokens": "2.5.0",
|
|
61
61
|
"@koa/cors": "3.1.0",
|
|
62
62
|
"@rollup/plugin-replace": "3.0.1",
|
|
63
63
|
"@stencil/core": "2.12.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"collection": "lib/collection/collection-manifest.json",
|
|
97
97
|
"es2015": "lib/esm/index.js",
|
|
98
98
|
"es2017": "lib/esm/index.js",
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "9e5243a907ab40c6720b77cedd646cab08479680"
|
|
100
100
|
}
|
package/lib/duet/p-04f9f1bf.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
const a=a=>37===a.keyCode,s=a=>38===a.keyCode,c=a=>39===a.keyCode,e=a=>40===a.keyCode,p=a=>"Escape"===a.key||"Esc"===a.key||27===a.keyCode,t=a=>8===a.keyCode,E=a=>"Space"===a.key||32===a.keyCode,n=a=>"?"===a.key,o=a=>(a=>"Enter"===a.key||13===a.keyCode)(a)||E(a);export{c as a,s as b,e as c,a as d,t as e,p as f,E as g,n as h,o as i}
|