@duetds/components 5.1.4 → 5.1.5
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 +132 -27
- package/lib/cjs/duet-action-button.cjs.entry.js +16 -5
- 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 +2 -2
- package/lib/cjs/duet-caption_4.cjs.entry.js +2 -2
- package/lib/cjs/duet-card.cjs.entry.js +2 -2
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- 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 +104 -26
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- 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-9ac6d246.js → focus-utils-a84555de.js} +1 -1
- package/lib/cjs/{index-c417c983.js → index-d5c2b63c.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-d1f8069b.js → token-utils-50a1f7e2.js} +15 -0
- package/lib/collection/components/duet-action-button/duet-action-button.css +2 -2
- package/lib/collection/components/duet-action-button/duet-action-button.js +14 -2
- package/lib/collection/components/duet-table/duet-table.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +136 -27
- package/lib/collection/components/duet-upload/upload-editable-item-pending.js +7 -0
- package/lib/collection/utils/token-utils.js +14 -0
- package/lib/custom-elements-bundle/index.js +133 -30
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-f650fa99.entry.js → p-032948e5.entry.js} +1 -1
- package/lib/duet/{p-b1375931.entry.js → p-04ac5c4e.entry.js} +1 -1
- package/lib/duet/{p-24c8d0df.entry.js → p-05092d95.entry.js} +1 -1
- package/lib/duet/{p-18d04f2e.system.entry.js → p-05ab59af.system.entry.js} +1 -1
- package/lib/duet/{p-4dace9be.system.entry.js → p-0dbd1f32.system.entry.js} +1 -1
- package/lib/duet/{p-24f41cb3.system.entry.js → p-0f1327c5.system.entry.js} +1 -1
- package/lib/duet/{p-4ae75bd5.entry.js → p-0f428b46.entry.js} +1 -1
- package/lib/duet/{p-f4943cc5.system.entry.js → p-111e56ea.system.entry.js} +1 -1
- package/lib/duet/{p-8a684ac7.system.entry.js → p-1271800f.system.entry.js} +1 -1
- package/lib/duet/{p-20c86cc5.system.entry.js → p-18137a51.system.entry.js} +1 -1
- package/lib/duet/{p-4a1a4d2d.system.entry.js → p-199b8120.system.entry.js} +1 -1
- package/lib/duet/{p-29b73b1b.system.entry.js → p-1eb573fd.system.entry.js} +1 -1
- package/lib/duet/{p-30371492.entry.js → p-1ef3c483.entry.js} +1 -1
- package/lib/duet/{p-e2074848.system.js → p-2271f8d5.system.js} +1 -1
- package/lib/duet/{p-8fa8bdab.system.entry.js → p-258f3ccc.system.entry.js} +1 -1
- package/lib/duet/{p-47053a5e.entry.js → p-26294067.entry.js} +1 -1
- package/lib/duet/p-2879eb73.entry.js +4 -0
- package/lib/duet/{p-b49f89cf.system.entry.js → p-28ee491f.system.entry.js} +1 -1
- package/lib/duet/{p-5ff75ab0.entry.js → p-33e5acf3.entry.js} +1 -1
- package/lib/duet/{p-f597ccbb.system.entry.js → p-3b316fee.system.entry.js} +1 -1
- package/lib/duet/{p-2aeb9bd2.system.entry.js → p-3e654074.system.entry.js} +1 -1
- package/lib/duet/{p-e8340671.entry.js → p-3f0c0460.entry.js} +1 -1
- package/lib/duet/{p-078fcf7c.system.entry.js → p-4017ddb2.system.entry.js} +1 -1
- package/lib/duet/{p-ecf2860f.entry.js → p-41582a97.entry.js} +1 -1
- package/lib/duet/{p-bf95adc2.entry.js → p-45753e58.entry.js} +1 -1
- package/lib/duet/{p-e6aa9737.entry.js → p-45805cfc.entry.js} +1 -1
- package/lib/duet/{p-3956c0b8.system.entry.js → p-45aef220.system.entry.js} +1 -1
- package/lib/duet/{p-3f4ea241.entry.js → p-45e5f4f4.entry.js} +1 -1
- package/lib/duet/{p-be6e164e.system.entry.js → p-46917bfa.system.entry.js} +1 -1
- package/lib/duet/{p-b1039960.system.entry.js → p-4c080f56.system.entry.js} +1 -1
- package/lib/duet/{p-37a36786.entry.js → p-4d4ad632.entry.js} +1 -1
- package/lib/duet/{p-0e2e056f.system.entry.js → p-5265e0d0.system.entry.js} +1 -1
- package/lib/duet/{p-1e5f2840.entry.js → p-5742b705.entry.js} +1 -1
- package/lib/duet/{p-89042509.system.entry.js → p-5ce17df4.system.entry.js} +1 -1
- package/lib/duet/{p-ab84084f.entry.js → p-5ecfc1ad.entry.js} +1 -1
- package/lib/duet/p-6190e2d6.system.js +4 -0
- package/lib/duet/{p-e6eb55cf.system.entry.js → p-62e99b72.system.entry.js} +1 -1
- package/lib/duet/{p-e15afaf5.system.entry.js → p-67c75f37.system.entry.js} +1 -1
- package/lib/duet/{p-0356ed8e.entry.js → p-696fb340.entry.js} +1 -1
- package/lib/duet/{p-78d2dfc8.system.entry.js → p-6d480ff6.system.entry.js} +1 -1
- package/lib/duet/{p-6440fa65.entry.js → p-740f3d97.entry.js} +1 -1
- package/lib/duet/p-746c8ba5.js +4 -0
- package/lib/duet/{p-9ce054f9.system.entry.js → p-75d1f821.system.entry.js} +1 -1
- package/lib/duet/{p-f8b1afeb.system.entry.js → p-76733981.system.entry.js} +1 -1
- package/lib/duet/p-7c1b3583.entry.js +4 -0
- package/lib/duet/{p-212f7cf5.entry.js → p-7dfb2869.entry.js} +1 -1
- package/lib/duet/{p-d4d7c619.entry.js → p-817aaa83.entry.js} +1 -1
- package/lib/duet/{p-445d538d.entry.js → p-820f1caa.entry.js} +1 -1
- package/lib/duet/p-83e6a536.system.entry.js +4 -0
- package/lib/duet/{p-b6e0ea1d.entry.js → p-84603769.entry.js} +1 -1
- package/lib/duet/{p-ec1797d8.entry.js → p-85a02775.entry.js} +1 -1
- package/lib/duet/{p-b78ab2f5.system.js → p-88ad1951.system.js} +1 -1
- package/lib/duet/{p-ec06dc8c.system.entry.js → p-9601701a.system.entry.js} +1 -1
- package/lib/duet/{p-460e6137.system.entry.js → p-96bd1cbc.system.entry.js} +1 -1
- package/lib/duet/{p-bd8c5946.entry.js → p-987b7532.entry.js} +1 -1
- package/lib/duet/{p-4cab1ba4.system.entry.js → p-9af6ba66.system.entry.js} +1 -1
- package/lib/duet/{p-b2dfc5bd.system.entry.js → p-9bfffd81.system.entry.js} +1 -1
- package/lib/duet/p-9cca0bb4.js +4 -0
- package/lib/duet/{p-e7f60c95.system.entry.js → p-9ecaa83e.system.entry.js} +1 -1
- package/lib/duet/{p-f2f17151.system.entry.js → p-a08af4d9.system.entry.js} +1 -1
- package/lib/duet/{p-e0e35d41.js → p-a31268d6.js} +1 -1
- package/lib/duet/{p-efeac1a1.entry.js → p-a712a800.entry.js} +1 -1
- package/lib/duet/{p-37217e63.entry.js → p-aea39e5a.entry.js} +1 -1
- package/lib/duet/p-b5a180e9.system.entry.js +4 -0
- package/lib/duet/{p-472da63a.system.entry.js → p-bddd664d.system.entry.js} +1 -1
- package/lib/duet/{p-87900286.entry.js → p-c0086352.entry.js} +1 -1
- package/lib/duet/{p-9d681426.system.entry.js → p-c2ac1fab.system.entry.js} +1 -1
- package/lib/duet/{p-4c74be13.system.entry.js → p-c8ad170c.system.entry.js} +1 -1
- package/lib/duet/{p-9f3c3af5.system.entry.js → p-ca57d285.system.entry.js} +1 -1
- package/lib/duet/{p-7af28ef6.entry.js → p-cc2204e6.entry.js} +1 -1
- package/lib/duet/{p-4d95a973.entry.js → p-cc37da81.entry.js} +1 -1
- package/lib/duet/{p-1862208a.system.entry.js → p-d41db290.system.entry.js} +1 -1
- package/lib/duet/{p-4bbd7a9c.entry.js → p-dab4fba0.entry.js} +1 -1
- package/lib/duet/{p-78ccd8fa.entry.js → p-db79c34d.entry.js} +1 -1
- package/lib/duet/{p-85e8d34e.system.entry.js → p-dbb107d3.system.entry.js} +1 -1
- package/lib/duet/{p-99187a3a.system.js → p-e133d744.system.js} +1 -1
- package/lib/duet/{p-2e959285.system.entry.js → p-e1a86fe6.system.entry.js} +1 -1
- package/lib/duet/{p-553366aa.entry.js → p-e3882375.entry.js} +1 -1
- package/lib/duet/{p-9bf95a5d.entry.js → p-ea9ebc20.entry.js} +1 -1
- package/lib/duet/{p-b7e592bf.entry.js → p-eb779add.entry.js} +1 -1
- package/lib/duet/{p-71d151e6.entry.js → p-ebf20912.entry.js} +1 -1
- package/lib/duet/{p-a980e270.system.entry.js → p-ec0d8fa3.system.entry.js} +1 -1
- package/lib/duet/{p-9903055f.system.entry.js → p-ed747a10.system.entry.js} +1 -1
- package/lib/duet/{p-9c9947a8.entry.js → p-ef5be208.entry.js} +1 -1
- package/lib/duet/{p-2000ef23.entry.js → p-f3f0db95.entry.js} +1 -1
- package/lib/duet/{p-4df9144d.system.entry.js → p-f3f1d874.system.entry.js} +1 -1
- package/lib/duet/{p-64611b86.entry.js → p-f4f18841.entry.js} +1 -1
- package/lib/duet/{p-3474c348.entry.js → p-fc0e878a.entry.js} +1 -1
- package/lib/duet/{p-2fd66459.entry.js → p-fc29251a.entry.js} +1 -1
- package/lib/duet/{p-b8e8a024.entry.js → p-fdb59ab3.entry.js} +1 -1
- package/lib/duet/{p-6144a827.system.entry.js → p-ff56790f.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +16 -5
- 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 +2 -2
- package/lib/esm/duet-caption_4.entry.js +2 -2
- package/lib/esm/duet-card.entry.js +2 -2
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- 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 +104 -26
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-step_2.entry.js +1 -1
- 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-bcb5b759.js → focus-utils-b869910b.js} +1 -1
- package/lib/esm/{index-7dc1fa94.js → index-1e15387b.js} +1 -1
- package/lib/esm/loader.js +2 -2
- package/lib/esm/{token-utils-f3b5f7a8.js → token-utils-1f9435bc.js} +15 -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 +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +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 +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-select.entry.js +1 -1
- 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-b869910b.js +4 -0
- package/lib/esm-es5/{index-7dc1fa94.js → index-1e15387b.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/token-utils-1f9435bc.js +4 -0
- package/lib/html.html-data.json +7 -3
- package/lib/types/components/duet-upload/duet-upload.d.ts +18 -1
- package/lib/types/components/duet-upload/upload-editable-item-pending.d.ts +6 -0
- package/lib/types/components.d.ts +14 -2
- package/lib/types/utils/token-utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p-32774c23.system.entry.js +0 -4
- package/lib/duet/p-41e4f10e.entry.js +0 -4
- package/lib/duet/p-50363944.js +0 -4
- package/lib/duet/p-7212c87c.entry.js +0 -4
- package/lib/duet/p-81ccf6d6.system.entry.js +0 -4
- package/lib/duet/p-9eaccbf3.system.js +0 -4
- package/lib/duet/p-e918a990.js +0 -4
- package/lib/esm-es5/focus-utils-bcb5b759.js +0 -4
- package/lib/esm-es5/token-utils-f3b5f7a8.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { f as fieldSorter, d as debounce } from './js-utils-52e0944c.js';
|
|
6
6
|
import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
|
|
7
7
|
import { g as getLocaleString, s as sanitizeString } from './language-utils-bf701d37.js';
|
|
@@ -306,7 +306,7 @@ const DuetTable = class {
|
|
|
306
306
|
// this clears all pending mutations,
|
|
307
307
|
// that way we avoid dealing with any initial changes
|
|
308
308
|
// and only get genuine mutations as rows are added/removed
|
|
309
|
-
this.observer.takeRecords();
|
|
309
|
+
this.observer ? this.observer.takeRecords() : null;
|
|
310
310
|
}
|
|
311
311
|
disconnectedCallback() {
|
|
312
312
|
this.observer.disconnect();
|
|
@@ -519,6 +519,10 @@ const ProgressItem = ({ progress, name }) => (h("span", null,
|
|
|
519
519
|
h("duet-spacer", { size: "xx-small" }),
|
|
520
520
|
h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
521
521
|
|
|
522
|
+
const PendingItem = ({ name }) => (h("span", null,
|
|
523
|
+
h("duet-paragraph", { color: "secondary", margin: "none", size: "small" }, name),
|
|
524
|
+
h("duet-spacer", { size: "xx-small" })));
|
|
525
|
+
|
|
522
526
|
const formatBytes = (bytes, decimals = 2) => {
|
|
523
527
|
if (bytes === 0) {
|
|
524
528
|
return "0 Bytes";
|
|
@@ -696,9 +700,13 @@ const DuetUpload = class {
|
|
|
696
700
|
* it will be up to you to handle the upload and return progress information to the upload-component
|
|
697
701
|
*/
|
|
698
702
|
this.external = false;
|
|
703
|
+
/**
|
|
704
|
+
* If defer-upload is true, duet-upload will not (as recommended) instantly upload files but await a call to uploadPending()
|
|
705
|
+
*/
|
|
706
|
+
this.deferUpload = false;
|
|
699
707
|
/**
|
|
700
708
|
* If set the upload component will not display an upload button, you will have to create one yourself
|
|
701
|
-
* and call the exposed method startUpload
|
|
709
|
+
* and call the exposed method startUpload to open the upload dialog
|
|
702
710
|
*/
|
|
703
711
|
this.hideButton = false;
|
|
704
712
|
/**
|
|
@@ -711,7 +719,7 @@ const DuetUpload = class {
|
|
|
711
719
|
size: "x-small",
|
|
712
720
|
background: "gray-lightest",
|
|
713
721
|
name: "delete",
|
|
714
|
-
map: ["success", "failure"],
|
|
722
|
+
map: ["success", "failure", "pending"],
|
|
715
723
|
label: {
|
|
716
724
|
fi: "Poista tiedosto",
|
|
717
725
|
en: "Poista tiedosto",
|
|
@@ -965,6 +973,7 @@ const DuetUpload = class {
|
|
|
965
973
|
this.DefaultGroups = {
|
|
966
974
|
inprogress: "inprogress",
|
|
967
975
|
success: "success",
|
|
976
|
+
pending: "pending",
|
|
968
977
|
failure: "failure",
|
|
969
978
|
};
|
|
970
979
|
/**
|
|
@@ -981,6 +990,14 @@ const DuetUpload = class {
|
|
|
981
990
|
en: "Files inprogress",
|
|
982
991
|
},
|
|
983
992
|
},
|
|
993
|
+
{
|
|
994
|
+
id: this.DefaultGroups.pending,
|
|
995
|
+
label: {
|
|
996
|
+
en: "Files to upload",
|
|
997
|
+
sv: "Filer att ladda",
|
|
998
|
+
fi: "Tiedostot ladattavat",
|
|
999
|
+
},
|
|
1000
|
+
},
|
|
984
1001
|
{
|
|
985
1002
|
id: this.DefaultGroups.success,
|
|
986
1003
|
label: {
|
|
@@ -1008,7 +1025,6 @@ const DuetUpload = class {
|
|
|
1008
1025
|
this.element.addEventListener("duetActionEvent", (e) => {
|
|
1009
1026
|
const detail = e.detail;
|
|
1010
1027
|
const { action, id, originalEvent } = detail;
|
|
1011
|
-
console.log(e);
|
|
1012
1028
|
switch (action) {
|
|
1013
1029
|
case "delete":
|
|
1014
1030
|
this.onDelete(id, originalEvent);
|
|
@@ -1036,9 +1052,6 @@ const DuetUpload = class {
|
|
|
1036
1052
|
if (item.valid && item.progress === 100) {
|
|
1037
1053
|
// if the item has a group, move the file to that group instead
|
|
1038
1054
|
// of into the standard success group
|
|
1039
|
-
if (item.group) {
|
|
1040
|
-
return item.group;
|
|
1041
|
-
}
|
|
1042
1055
|
return this.DefaultGroups.success;
|
|
1043
1056
|
}
|
|
1044
1057
|
else if (item.progress > 0 && item.progress !== 100) {
|
|
@@ -1047,6 +1060,9 @@ const DuetUpload = class {
|
|
|
1047
1060
|
else if (!item.valid) {
|
|
1048
1061
|
return this.DefaultGroups.failure;
|
|
1049
1062
|
}
|
|
1063
|
+
else if (item.pending) {
|
|
1064
|
+
return this.DefaultGroups.pending;
|
|
1065
|
+
}
|
|
1050
1066
|
else if (item.group) {
|
|
1051
1067
|
return item.group;
|
|
1052
1068
|
}
|
|
@@ -1061,6 +1077,9 @@ const DuetUpload = class {
|
|
|
1061
1077
|
else if (group === this.DefaultGroups.inprogress) {
|
|
1062
1078
|
return h(ProgressItem, { progress: data.progress, name: data.item.name });
|
|
1063
1079
|
}
|
|
1080
|
+
else if (group === this.DefaultGroups.pending) {
|
|
1081
|
+
return h(PendingItem, { name: data.item.name });
|
|
1082
|
+
}
|
|
1064
1083
|
else if (group === this.DefaultGroups.failure) {
|
|
1065
1084
|
return h(ErrorItem, { data: data });
|
|
1066
1085
|
}
|
|
@@ -1073,9 +1092,16 @@ const DuetUpload = class {
|
|
|
1073
1092
|
};
|
|
1074
1093
|
this.genHashName = () => Date.now().toString(36) + Math.random();
|
|
1075
1094
|
this.updateValueInMap = (item, key, value, kick = true) => {
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1095
|
+
try {
|
|
1096
|
+
const fileItem = this.files.get(item);
|
|
1097
|
+
fileItem[key] = value;
|
|
1098
|
+
this.files.set(item, fileItem);
|
|
1099
|
+
}
|
|
1100
|
+
catch (e) {
|
|
1101
|
+
// if a users tries to update entries on a file that doesn't exist,
|
|
1102
|
+
// this will blow up - so we're swallowing the errors here on purpose
|
|
1103
|
+
// console.warn("operation on missing items")
|
|
1104
|
+
}
|
|
1079
1105
|
if (kick) {
|
|
1080
1106
|
this.kick();
|
|
1081
1107
|
}
|
|
@@ -1193,6 +1219,46 @@ const DuetUpload = class {
|
|
|
1193
1219
|
fileMaxReached: isTotalFileAmountAboveMax,
|
|
1194
1220
|
};
|
|
1195
1221
|
};
|
|
1222
|
+
this.uploadFile = async (fileListItem, force = false, key) => {
|
|
1223
|
+
if (!force && this.deferUpload) {
|
|
1224
|
+
this.updateValueInMap(fileListItem.item.name, "pending", true, false);
|
|
1225
|
+
this.updateValueInMap(fileListItem.item.name, "group", "pending", true);
|
|
1226
|
+
}
|
|
1227
|
+
else if (force) {
|
|
1228
|
+
this.updateValueInMap(fileListItem.item.name, "pending", false, false);
|
|
1229
|
+
this.updateValueInMap(fileListItem.item.name, "group", undefined, true);
|
|
1230
|
+
}
|
|
1231
|
+
try {
|
|
1232
|
+
if (!this.deferUpload || force) {
|
|
1233
|
+
// if all is well AND external file upload handling has not been set, start upload
|
|
1234
|
+
const data = new FormData();
|
|
1235
|
+
data.append("file", fileListItem.item);
|
|
1236
|
+
if (key) {
|
|
1237
|
+
data.append("key", key);
|
|
1238
|
+
}
|
|
1239
|
+
data.append("uid", fileListItem.uid);
|
|
1240
|
+
data.append("name", fileListItem.item.name);
|
|
1241
|
+
data.append("metadata", JSON.stringify({
|
|
1242
|
+
uid: fileListItem.uid,
|
|
1243
|
+
url: this.uri,
|
|
1244
|
+
size: fileListItem.item.size,
|
|
1245
|
+
meta: fileListItem.meta,
|
|
1246
|
+
}));
|
|
1247
|
+
fileListItem.xhr = await this.makeXHRPostRequest(data);
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
catch (e) {
|
|
1251
|
+
// in case one of the global maxes have been reached, invalidate the file
|
|
1252
|
+
this.updateValueInMap(fileListItem.item.name, "valid", false, false);
|
|
1253
|
+
}
|
|
1254
|
+
};
|
|
1255
|
+
this.uploadPendingFiles = () => {
|
|
1256
|
+
for (const [key, value] of this.files.entries()) {
|
|
1257
|
+
if (value.group === "pending" && value.pending === true) {
|
|
1258
|
+
this.uploadFile(value, true, key);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1196
1262
|
this.getItemFromUID = (uid) => {
|
|
1197
1263
|
for (const [key, value] of this.files.entries()) {
|
|
1198
1264
|
if (value.uid === uid) {
|
|
@@ -1202,7 +1268,8 @@ const DuetUpload = class {
|
|
|
1202
1268
|
return null;
|
|
1203
1269
|
};
|
|
1204
1270
|
this.onDelete = (key, ev) => {
|
|
1205
|
-
const
|
|
1271
|
+
const item = this.getItemFromUID(key);
|
|
1272
|
+
const retrievedKey = item.key;
|
|
1206
1273
|
const deletedItem = this.files.get(retrievedKey);
|
|
1207
1274
|
this.files.delete(retrievedKey);
|
|
1208
1275
|
this.validateTotals();
|
|
@@ -1212,7 +1279,8 @@ const DuetUpload = class {
|
|
|
1212
1279
|
data: { deletion: deletedItem },
|
|
1213
1280
|
component: "duet-upload",
|
|
1214
1281
|
});
|
|
1215
|
-
if
|
|
1282
|
+
// don't send a xhr request if the item was pending, just remove it from the list
|
|
1283
|
+
if (!this.external && !deletedItem.pending) {
|
|
1216
1284
|
this.makeXHRDeleteRequest(deletedItem);
|
|
1217
1285
|
}
|
|
1218
1286
|
this.resetFormFields();
|
|
@@ -1277,6 +1345,7 @@ const DuetUpload = class {
|
|
|
1277
1345
|
const all = [...this.files.values()];
|
|
1278
1346
|
const inprogress = [];
|
|
1279
1347
|
const failure = [];
|
|
1348
|
+
const pending = [];
|
|
1280
1349
|
const success = [];
|
|
1281
1350
|
all.forEach(data => {
|
|
1282
1351
|
const group = this.getGroupFromItemData(data);
|
|
@@ -1295,6 +1364,13 @@ const DuetUpload = class {
|
|
|
1295
1364
|
group,
|
|
1296
1365
|
});
|
|
1297
1366
|
}
|
|
1367
|
+
else if (group === this.DefaultGroups.pending) {
|
|
1368
|
+
pending.push({
|
|
1369
|
+
uid: data.uid,
|
|
1370
|
+
item,
|
|
1371
|
+
group,
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1298
1374
|
else if (group === this.DefaultGroups.failure) {
|
|
1299
1375
|
failure.push({
|
|
1300
1376
|
uid: data.uid,
|
|
@@ -1312,6 +1388,7 @@ const DuetUpload = class {
|
|
|
1312
1388
|
});
|
|
1313
1389
|
return {
|
|
1314
1390
|
inprogress,
|
|
1391
|
+
pending,
|
|
1315
1392
|
failure,
|
|
1316
1393
|
success,
|
|
1317
1394
|
};
|
|
@@ -1385,6 +1462,12 @@ const DuetUpload = class {
|
|
|
1385
1462
|
this.nativeInput.click();
|
|
1386
1463
|
return;
|
|
1387
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Method for uploading pending files
|
|
1467
|
+
*/
|
|
1468
|
+
async uploadPending() {
|
|
1469
|
+
this.uploadPendingFiles();
|
|
1470
|
+
}
|
|
1388
1471
|
/**
|
|
1389
1472
|
* Method for forcing a render of the upload list, element.files can be changed externally
|
|
1390
1473
|
* But it will only rerender on a new Map or a top Level change - this can be used to update
|
|
@@ -1523,19 +1606,14 @@ const DuetUpload = class {
|
|
|
1523
1606
|
this.updateValueInMap(item.name, "valid", false, false);
|
|
1524
1607
|
}
|
|
1525
1608
|
else if (valid && !this.external) {
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
}
|
|
1535
|
-
catch (e) {
|
|
1536
|
-
// in case one of the global maxes have been reached, invalidate the file
|
|
1537
|
-
this.updateValueInMap(item.name, "valid", false, false);
|
|
1538
|
-
}
|
|
1609
|
+
await this.uploadFile(fileListItem);
|
|
1610
|
+
}
|
|
1611
|
+
else if (valid && this.external) {
|
|
1612
|
+
this.updateValueInMap(fileListItem.item.name, "pending", true, false);
|
|
1613
|
+
this.updateValueInMap(fileListItem.item.name, "group", "pending", true);
|
|
1614
|
+
}
|
|
1615
|
+
else if (!valid) {
|
|
1616
|
+
this.updateValueInMap(item.name, "valid", false, true);
|
|
1539
1617
|
}
|
|
1540
1618
|
// kick the stat to force update
|
|
1541
1619
|
this.kick();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-1e15387b.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
6
6
|
|
|
7
7
|
const duetEmptyStateCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:#00294d;text-align:center;background:#f5f8fa;border-radius:4px}.duet-empty-state.duet-theme-turva{color:#171c3a;background:#f5f5f7}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
6
6
|
import { a as actionArrowRightSmall } from './action-arrow-right-small-f9d2ba83.js';
|
|
7
7
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-1e15387b.js';
|
|
5
5
|
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './tokens-8ff8c570.js';
|
|
6
6
|
import { w as watchForOptions, a as watchForElement } from './watch-options-dd55bce8.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent$1, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent$1, F as Fragment, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { m as media_query_large } from './tokens-8ff8c570.js';
|
|
7
7
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
6
|
-
import { g as getColorByName } from './token-utils-
|
|
6
|
+
import { g as getColorByName } from './token-utils-1f9435bc.js';
|
|
7
7
|
import './tokens.module-f4572ed7.js';
|
|
8
8
|
|
|
9
9
|
const cleanupSvg = (svgContent) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { c as cleanValue, r as resetCursor } from './input-utils-de45e099.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
|
|
6
6
|
|
|
7
7
|
const duetLayoutCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-1e15387b.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
6
6
|
import { w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
|
-
import { f as focusElement, F as FocusGuard } from './focus-utils-
|
|
7
|
+
import { f as focusElement, F as FocusGuard } from './focus-utils-b869910b.js';
|
|
8
8
|
import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
|
|
9
9
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
10
10
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
7
7
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
|
|
7
7
|
import { a as getLanguage, b as getLocale, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { d as debounce } from './js-utils-52e0944c.js';
|
|
7
7
|
import { j as isArrowKey, k as isNumber, d as isArrowLeftKey, b as isArrowUpKey, a as isArrowRightKey, c as isArrowDownKey, l as isMinusKey, m as isPlusKey } from './keyboard-utils-88ea1007.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { g as getLocaleString } from './language-utils-bf701d37.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
7
7
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-f4572ed7.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-1e15387b.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
6
6
|
import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { p as parsePossibleJSON } from './string-utils-5954f458.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { c as cleanValue } from './input-utils-de45e099.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { c as createID } from './create-id-981107da.js';
|
|
6
6
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-e8fc98bf.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-1e15387b.js';
|
|
5
5
|
import { s as sizeHeader } from './tokens.module-f4572ed7.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-1e15387b.js';
|
|
5
5
|
|
|
6
6
|
const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
|
|
7
7
|
|