@duetds/components 5.2.0 → 5.2.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 +145 -81
- package/lib/cjs/{dom-66424ef2.js → dom-96576bce.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- 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 +4 -3
- 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 +1 -1
- 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 +92 -47
- 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 +3 -3
- package/lib/cjs/{focus-utils-bfb10d32.js → focus-utils-7b09fa4b.js} +1 -1
- package/lib/cjs/{index-a4844346.js → index-3024eb44.js} +11 -9
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{shadow-css-1ff2f74f.js → shadow-css-38b9e725.js} +2 -3
- package/lib/collection/collection-manifest.json +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +22 -27
- package/lib/collection/components/duet-table/duet-table.css +30 -18
- package/lib/collection/utils/math.utils.js +76 -0
- package/lib/custom-elements-bundle/index.js +106 -61
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d33b5ac5.system.entry.js → p-036b2f99.system.entry.js} +1 -1
- package/lib/duet/p-0522338d.system.entry.js +4 -0
- package/lib/duet/{p-ec6d63fc.entry.js → p-053c3751.entry.js} +1 -1
- package/lib/duet/{p-285714dd.entry.js → p-094b206c.entry.js} +1 -1
- package/lib/duet/{p-e8f8374b.system.entry.js → p-095b52f8.system.entry.js} +1 -1
- package/lib/duet/{p-7021d0c6.system.entry.js → p-0f343566.system.entry.js} +1 -1
- package/lib/duet/{p-03b6ce80.entry.js → p-0fffc5fe.entry.js} +1 -1
- package/lib/duet/{p-b35d6368.system.entry.js → p-1167bc0a.system.entry.js} +1 -1
- package/lib/duet/{p-fd0a3ab7.entry.js → p-13db05ed.entry.js} +1 -1
- package/lib/duet/p-15edabe0.entry.js +4 -0
- package/lib/duet/{p-c7657242.entry.js → p-16a1bfe4.entry.js} +1 -1
- package/lib/duet/{p-b0a4dc6d.entry.js → p-273b6543.entry.js} +1 -1
- package/lib/duet/{p-5b1cbe5b.entry.js → p-27d9b918.entry.js} +1 -1
- package/lib/duet/{p-e75c7aa8.system.entry.js → p-2cc240f9.system.entry.js} +1 -1
- package/lib/duet/{p-971f42d6.system.entry.js → p-2ee81c0d.system.entry.js} +1 -1
- package/lib/duet/{p-0bee3151.system.entry.js → p-31a56879.system.entry.js} +1 -1
- package/lib/duet/p-35f011bf.system.js +5 -0
- package/lib/duet/{p-fa59ebf4.js → p-3b31184e.js} +0 -0
- package/lib/duet/{p-9406ee60.entry.js → p-4061e958.entry.js} +1 -1
- package/lib/duet/{p-08eb2200.entry.js → p-40ebab42.entry.js} +1 -1
- package/lib/duet/{p-f91e88e3.system.entry.js → p-465777cf.system.entry.js} +1 -1
- package/lib/duet/{p-a2fa0049.entry.js → p-484993a3.entry.js} +1 -1
- package/lib/duet/{p-9920ad3b.entry.js → p-49fc4668.entry.js} +1 -1
- package/lib/duet/{p-b51928dc.system.entry.js → p-4e2d8044.system.entry.js} +1 -1
- package/lib/duet/{p-95e1a336.entry.js → p-4ff48b81.entry.js} +1 -1
- package/lib/duet/{p-423d4211.system.entry.js → p-50f27bbf.system.entry.js} +1 -1
- package/lib/duet/{p-0ae816ee.entry.js → p-5183d420.entry.js} +1 -1
- package/lib/duet/{p-88ffd1cc.entry.js → p-536bde7b.entry.js} +1 -1
- package/lib/duet/{p-360f8fff.system.entry.js → p-53b8ff1e.system.entry.js} +1 -1
- package/lib/duet/{p-01478a01.system.entry.js → p-55a7c445.system.entry.js} +1 -1
- package/lib/duet/{p-00bf0bb9.system.entry.js → p-56d12aca.system.entry.js} +1 -1
- package/lib/duet/{p-030e20d7.entry.js → p-60ef49b0.entry.js} +1 -1
- package/lib/duet/{p-6a843f9e.entry.js → p-6518b98d.entry.js} +1 -1
- package/lib/duet/{p-98039227.system.entry.js → p-69180d4f.system.entry.js} +1 -1
- package/lib/duet/{p-c1d55269.system.entry.js → p-6e02a236.system.entry.js} +1 -1
- package/lib/duet/{p-495a1326.system.entry.js → p-6ed460f4.system.entry.js} +1 -1
- package/lib/duet/{p-73cd4f03.system.entry.js → p-720c6e22.system.entry.js} +1 -1
- package/lib/duet/{p-a843e579.system.entry.js → p-74e56aba.system.entry.js} +1 -1
- package/lib/duet/{p-fbec1a47.entry.js → p-750330d5.entry.js} +1 -1
- package/lib/duet/{p-f5613315.system.entry.js → p-76263b65.system.entry.js} +1 -1
- package/lib/duet/{p-271107d8.entry.js → p-76c11fd4.entry.js} +1 -1
- package/lib/duet/{p-4972c76e.system.js → p-798355c8.system.js} +1 -1
- package/lib/duet/{p-ee97a406.system.entry.js → p-7bf7db59.system.entry.js} +2 -2
- package/lib/duet/{p-19100783.system.entry.js → p-7e951645.system.entry.js} +1 -1
- package/lib/duet/p-7ed17661.entry.js +4 -0
- package/lib/duet/{p-56d3e64f.entry.js → p-7ef5c9a5.entry.js} +1 -1
- package/lib/duet/{p-33388bf3.system.entry.js → p-7f984c27.system.entry.js} +1 -1
- package/lib/duet/{p-1ff51ad8.system.entry.js → p-85be7c9f.system.entry.js} +1 -1
- package/lib/duet/{p-fef3a403.system.entry.js → p-867497c7.system.entry.js} +1 -1
- package/lib/duet/{p-95a0db46.entry.js → p-869a8af0.entry.js} +1 -1
- package/lib/duet/{p-04061cef.entry.js → p-8714d15d.entry.js} +1 -1
- package/lib/duet/{p-9496d6d4.entry.js → p-876175fe.entry.js} +1 -1
- package/lib/duet/{p-7fe67436.system.entry.js → p-88113f53.system.entry.js} +1 -1
- package/lib/duet/{p-d4dba079.system.entry.js → p-8828fc2e.system.entry.js} +1 -1
- package/lib/duet/{p-5a5d8fb1.entry.js → p-88996447.entry.js} +1 -1
- package/lib/duet/p-8de3ea21.system.entry.js +4 -0
- package/lib/duet/{p-64685397.entry.js → p-8e9cbd88.entry.js} +1 -1
- package/lib/duet/{p-790ee851.entry.js → p-91a3e8db.entry.js} +1 -1
- package/lib/duet/{p-b16befbc.system.entry.js → p-927f850c.system.entry.js} +1 -1
- package/lib/duet/{p-437fe50b.system.entry.js → p-97b88959.system.entry.js} +1 -1
- package/lib/duet/{p-76e38bb2.system.entry.js → p-97bbef5f.system.entry.js} +1 -1
- package/lib/duet/{p-97f1e254.entry.js → p-97d54e2d.entry.js} +1 -1
- package/lib/duet/{p-99fe93c6.system.entry.js → p-98cf83b0.system.entry.js} +1 -1
- package/lib/duet/{p-41cc3490.entry.js → p-9954eddc.entry.js} +1 -1
- package/lib/duet/{p-b8623ab8.entry.js → p-9d86935b.entry.js} +1 -1
- package/lib/duet/{p-4a7f290f.entry.js → p-a18f86a0.entry.js} +1 -1
- package/lib/duet/{p-071ebe1d.system.entry.js → p-a36592fe.system.entry.js} +1 -1
- package/lib/duet/{p-e7b761c5.system.js → p-a418cba4.system.js} +1 -1
- package/lib/duet/{p-68cbc3b7.entry.js → p-ac368fcb.entry.js} +1 -1
- package/lib/duet/{p-bf87d801.entry.js → p-af4aafea.entry.js} +1 -1
- package/lib/duet/{p-05e069d8.entry.js → p-b2a01d36.entry.js} +1 -1
- package/lib/duet/{p-30e901f2.system.entry.js → p-b2e25ecf.system.entry.js} +1 -1
- package/lib/duet/{p-542af014.system.js → p-b668b67c.system.js} +0 -0
- package/lib/duet/p-b708426c.entry.js +4 -0
- package/lib/duet/{p-c0aca70c.entry.js → p-b7a90031.entry.js} +1 -1
- package/lib/duet/{p-7a4764db.system.entry.js → p-bf052bc0.system.entry.js} +1 -1
- package/lib/duet/p-c21bd47a.js +5 -0
- package/lib/duet/{p-78de93b3.entry.js → p-c576c929.entry.js} +1 -1
- package/lib/duet/{p-53ad61ed.entry.js → p-c6e70db9.entry.js} +1 -1
- package/lib/duet/{p-10585f06.system.entry.js → p-cabfb664.system.entry.js} +1 -1
- package/lib/duet/{p-5f009925.system.entry.js → p-cd5ed901.system.entry.js} +1 -1
- package/lib/duet/{p-27d238c5.js → p-d4c234ed.js} +1 -1
- package/lib/duet/{p-641edb93.system.entry.js → p-d65262fb.system.entry.js} +1 -1
- package/lib/duet/{p-a509cc2b.system.entry.js → p-d698f01c.system.entry.js} +1 -1
- package/lib/duet/{p-3260eef0.entry.js → p-d7d0f3b7.entry.js} +1 -1
- package/lib/duet/{p-b08bb1fd.entry.js → p-dc1f4e8a.entry.js} +1 -1
- package/lib/duet/{p-afd34b6b.system.entry.js → p-df6ebe8d.system.entry.js} +1 -1
- package/lib/duet/p-dfa712ca.js +4 -0
- package/lib/duet/{p-b4ca3864.system.entry.js → p-eba2b43d.system.entry.js} +1 -1
- package/lib/duet/{p-24721182.system.entry.js → p-ec55c00f.system.entry.js} +1 -1
- package/lib/duet/{p-72739cec.entry.js → p-f3a98f22.entry.js} +1 -1
- package/lib/duet/{p-bb4d8e7b.entry.js → p-f9501a56.entry.js} +1 -1
- package/lib/duet/p-ff46ec81.system.js +16 -0
- package/lib/esm/{dom-3c479050.js → dom-3dbcb0d8.js} +1 -1
- package/lib/esm/duet-action-button.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 +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- 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 +4 -3
- 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 +1 -1
- 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 +92 -47
- 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 +3 -3
- package/lib/esm/{focus-utils-3af074ea.js → focus-utils-a1fd6cac.js} +1 -1
- package/lib/esm/{index-ab2bfa68.js → index-179c634c.js} +11 -9
- package/lib/esm/loader.js +2 -2
- package/lib/esm/polyfills/css-shim.js +1 -1
- package/lib/esm/{shadow-css-fbe49d20.js → shadow-css-501eda9a.js} +2 -3
- package/lib/esm-es5/{dom-3c479050.js → dom-3dbcb0d8.js} +0 -0
- 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 +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-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 +2 -2
- 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-3af074ea.js → focus-utils-a1fd6cac.js} +1 -1
- package/lib/esm-es5/index-179c634c.js +5 -0
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/shadow-css-501eda9a.js +15 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +0 -1
- package/lib/types/components.d.ts +192 -80
- package/lib/types/utils/math.utils.d.ts +11 -0
- package/package.json +6 -6
- package/lib/collection/components/duet-number-input/number-input-utils.js +0 -26
- package/lib/duet/p-12c89686.system.js +0 -4
- package/lib/duet/p-37dc064c.js +0 -4
- package/lib/duet/p-66536958.system.entry.js +0 -4
- package/lib/duet/p-92a25fb5.system.js +0 -16
- package/lib/duet/p-98a9556f.js +0 -4
- package/lib/duet/p-a76bf729.entry.js +0 -4
- package/lib/duet/p-b7462f8c.system.entry.js +0 -4
- package/lib/duet/p-cb8ebdd7.entry.js +0 -4
- package/lib/duet/p-fe99b9cb.entry.js +0 -4
- package/lib/esm-es5/index-ab2bfa68.js +0 -4
- package/lib/esm-es5/shadow-css-fbe49d20.js +0 -15
- package/lib/types/components/duet-number-input/number-input-utils.d.ts +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$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-179c634c.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-179c634c.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 { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getColorByName } from './token-utils-1f9435bc.js';
|
|
7
7
|
import './tokens.module-f4572ed7.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-179c634c.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.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, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-179c634c.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
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-179c634c.js';
|
|
5
5
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
8
|
-
import { f as focusElement, F as FocusGuard } from './focus-utils-
|
|
8
|
+
import { f as focusElement, F as FocusGuard } from './focus-utils-a1fd6cac.js';
|
|
9
9
|
import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
|
|
10
10
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
|
|
11
11
|
import './string-utils-5954f458.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
|
|
@@ -12,27 +12,77 @@ var actionAdd={"title":"action-add","tags":"action add plus","svg":"<svg fill=\"
|
|
|
12
12
|
|
|
13
13
|
var actionSubtract={"title":"action-subtract","tags":"action subtract minus remove delete cancel","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z\"/></svg>"};
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
/**
|
|
16
|
+
* function that takes a string value or number and looks for any character resembling a minus,
|
|
17
|
+
* it will then replace it with a hypen-minus and return the parseFloat value of that string
|
|
18
|
+
* it will string / number cast the value to a number and return that number
|
|
19
|
+
* known issues: if a negative number is indicated with other characters than a "minus like" character, it will throw
|
|
20
|
+
* - an example is that some locales use (number) as an indicator for negative values instead of -number
|
|
21
|
+
*/
|
|
22
|
+
function SafeParseFloat(value, locale) {
|
|
23
|
+
let results;
|
|
24
|
+
if (typeof value === "string") {
|
|
25
|
+
//the minuses are NOT the same characters, they differ in unicode for some languages
|
|
26
|
+
// "‐", "−", "–", and "—"
|
|
27
|
+
let convertedMinus = value.replace("−", "-").replace("‐", "-").replace("−", "-").replace("–", "-").replace("—", "-");
|
|
28
|
+
if (locale) {
|
|
29
|
+
convertedMinus = ConvertToEnUS(convertedMinus, locale, false);
|
|
30
|
+
}
|
|
31
|
+
// replace all possible spaces from the string
|
|
32
|
+
convertedMinus = convertedMinus.replace(/\s+/g, "");
|
|
33
|
+
convertedMinus = convertedMinus.replace(/(?!^-?\d*\.{0,1}\d+$)/g, "");
|
|
34
|
+
/*
|
|
35
|
+
example: https://regex101.com/r/np7FqS/1
|
|
36
|
+
/(?!^-?\d*\.{0,1}\d+$)/g
|
|
37
|
+
Negative Lookahead (?!^-?\d*\.{0,1}\d+$)
|
|
38
|
+
Assert that the Regex below does not match
|
|
39
|
+
^ asserts position at start of a line
|
|
40
|
+
- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
|
|
41
|
+
? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
|
|
42
|
+
\d matches a digit (equivalent to [0-9])
|
|
43
|
+
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
|
|
44
|
+
\. matches the character . with index 4610 (2E16 or 568) literally (case sensitive)
|
|
45
|
+
{0,1} matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
|
|
46
|
+
\d matches a digit (equivalent to [0-9])
|
|
47
|
+
+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
|
|
48
|
+
$ asserts position at the end of a line
|
|
49
|
+
Global pattern flags
|
|
50
|
+
g modifier: global. All matches (don't return after first match)
|
|
51
|
+
m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
|
|
52
|
+
*/
|
|
53
|
+
results = parseFloat(convertedMinus);
|
|
33
54
|
}
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
if (typeof value === "number") {
|
|
56
|
+
results = parseFloat(String(value));
|
|
57
|
+
}
|
|
58
|
+
if (!isNaN(Number(results))) {
|
|
59
|
+
return Number(results);
|
|
60
|
+
}
|
|
61
|
+
if (value === null || value === undefined) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
throw new Error("Invalid value passed to SafeParseFloat");
|
|
65
|
+
}
|
|
66
|
+
// string conversion function that takes a locale and coverts decimal indicator to en-US indicator
|
|
67
|
+
// and takes the thousand separator for the given locale and transforms that to the en-US separator
|
|
68
|
+
function ConvertToEnUS(value, locale, replaceThousands = false) {
|
|
69
|
+
let replacedValue;
|
|
70
|
+
const localeSeparator = new Intl.NumberFormat(locale).format(1 / 2).replace(/[0-9]/g, "");
|
|
71
|
+
const enUSSeparator = new Intl.NumberFormat("en-US").format(1 / 2).replace(/[0-9]/g, "");
|
|
72
|
+
const thousandSeparator = new Intl.NumberFormat(locale).format(1000).replace(/[0-9]/g, "");
|
|
73
|
+
const enUSThousandSeparator = new Intl.NumberFormat("en-US").format(1000).replace(/[0-9]/g, "");
|
|
74
|
+
// double conversions to avoid ,->. and .->, at the same time resulting in a double conversion
|
|
75
|
+
replacedValue = value.replace(localeSeparator, "DECIMALSEPARATOR");
|
|
76
|
+
if (replaceThousands) {
|
|
77
|
+
replacedValue = replacedValue.replace(thousandSeparator, "THOUSANDSEPARATOR");
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
replacedValue = replacedValue.replace(thousandSeparator, "");
|
|
81
|
+
}
|
|
82
|
+
replacedValue = replacedValue.replace("DECIMALSEPARATOR", enUSSeparator);
|
|
83
|
+
replacedValue = replacedValue.replace("THOUSANDSEPARATOR", enUSThousandSeparator);
|
|
84
|
+
return replacedValue;
|
|
85
|
+
}
|
|
36
86
|
const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
|
|
37
87
|
const clamp = (val, min, max) => Math.min(Math.max(val, min), max);
|
|
38
88
|
|
|
@@ -208,7 +258,7 @@ const DuetNumberInput = class {
|
|
|
208
258
|
this.handleChange = (ev) => {
|
|
209
259
|
const input = ev.target;
|
|
210
260
|
if (input && input.value) {
|
|
211
|
-
let value =
|
|
261
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
212
262
|
// Make sure that everything works if the user clears the input and
|
|
213
263
|
// starts typing non-numeric characters.
|
|
214
264
|
if (isNaN(value) || value == null) {
|
|
@@ -218,7 +268,7 @@ const DuetNumberInput = class {
|
|
|
218
268
|
this.duetInput.emit({
|
|
219
269
|
component: "duet-number-input",
|
|
220
270
|
originalEvent: ev,
|
|
221
|
-
value: this.
|
|
271
|
+
value: SafeParseFloat(this.value, this.locale).toString(),
|
|
222
272
|
valueAsNumber: value,
|
|
223
273
|
});
|
|
224
274
|
}
|
|
@@ -239,30 +289,29 @@ const DuetNumberInput = class {
|
|
|
239
289
|
if (input.value) {
|
|
240
290
|
// On blur we want to make sure that the user input is between the min and max values,
|
|
241
291
|
// and also round it up or down to the nearest step.
|
|
242
|
-
let value =
|
|
292
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
243
293
|
if (this.rounding) {
|
|
244
294
|
value = roundTo(value, this.step);
|
|
245
295
|
}
|
|
246
296
|
value = clamp(value, this.min, this.max);
|
|
247
|
-
if (value !==
|
|
297
|
+
if (value !== SafeParseFloat(this.value, this.locale) ||
|
|
298
|
+
value !== SafeParseFloat(this.focusedValue, this.locale)) {
|
|
248
299
|
this.setValue(value);
|
|
249
300
|
this.emitChange(ev);
|
|
250
301
|
}
|
|
251
302
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
});
|
|
259
|
-
}
|
|
303
|
+
this.duetChange.emit({
|
|
304
|
+
originalEvent: ev,
|
|
305
|
+
value: null,
|
|
306
|
+
valueAsNumber: null,
|
|
307
|
+
component: "duet-number-input",
|
|
308
|
+
});
|
|
260
309
|
};
|
|
261
310
|
/**
|
|
262
311
|
* Local methods.
|
|
263
312
|
*/
|
|
264
313
|
this.emitChange = (ev) => {
|
|
265
|
-
const currentValue = this.
|
|
314
|
+
const currentValue = SafeParseFloat(this.value, this.locale);
|
|
266
315
|
this.duetChange.emit({
|
|
267
316
|
originalEvent: ev,
|
|
268
317
|
value: currentValue.toString(),
|
|
@@ -270,10 +319,6 @@ const DuetNumberInput = class {
|
|
|
270
319
|
component: "duet-number-input",
|
|
271
320
|
});
|
|
272
321
|
};
|
|
273
|
-
this.cleanValue = (value) => {
|
|
274
|
-
// Returns a number that can be used in calculations.
|
|
275
|
-
return value ? parseLocaleFloat(value, this.locale) : null;
|
|
276
|
-
};
|
|
277
322
|
this.localizeValue = (value) => {
|
|
278
323
|
// Returns a localized string that can be used as input value.
|
|
279
324
|
return value.toLocaleString(this.locale);
|
|
@@ -290,13 +335,13 @@ const DuetNumberInput = class {
|
|
|
290
335
|
if (ev) {
|
|
291
336
|
ev.preventDefault();
|
|
292
337
|
}
|
|
293
|
-
const
|
|
338
|
+
const cleanedValue = SafeParseFloat(this.value, this.locale);
|
|
294
339
|
// Only fire change event when necessary
|
|
295
|
-
if (
|
|
340
|
+
if (cleanedValue === this.max) {
|
|
296
341
|
return;
|
|
297
342
|
}
|
|
298
343
|
// in cases where no value set, incrementing should go to min
|
|
299
|
-
let newValue =
|
|
344
|
+
let newValue = cleanedValue == null ? this.min : cleanedValue + this.step;
|
|
300
345
|
// handle cases where value is not multiple of step
|
|
301
346
|
// e.g. if someone enters 199, with a step of 100, add should go to 200
|
|
302
347
|
// and if someone enters 101, add should also go to 200
|
|
@@ -304,8 +349,8 @@ const DuetNumberInput = class {
|
|
|
304
349
|
const adjustment = newValue % this.step;
|
|
305
350
|
newValue -= adjustment;
|
|
306
351
|
}
|
|
307
|
-
|
|
308
|
-
this.value = this.localizeValue(
|
|
352
|
+
const clampedValue = clamp(newValue, this.min, this.max);
|
|
353
|
+
this.value = this.localizeValue(clampedValue);
|
|
309
354
|
this.emitChange(ev);
|
|
310
355
|
};
|
|
311
356
|
this.subtract = (ev) => {
|
|
@@ -314,7 +359,7 @@ const DuetNumberInput = class {
|
|
|
314
359
|
if (ev) {
|
|
315
360
|
ev.preventDefault();
|
|
316
361
|
}
|
|
317
|
-
const currentValue = this.
|
|
362
|
+
const currentValue = SafeParseFloat(this.value, this.locale);
|
|
318
363
|
// Only fire change event when necessary.
|
|
319
364
|
if (currentValue === this.min) {
|
|
320
365
|
return;
|
|
@@ -339,7 +384,7 @@ const DuetNumberInput = class {
|
|
|
339
384
|
inheritGlobalTheme(this);
|
|
340
385
|
// Format the number value to a localeString initially.
|
|
341
386
|
if (this.value) {
|
|
342
|
-
this.value = this.localizeValue(
|
|
387
|
+
this.value = this.localizeValue(SafeParseFloat(this.value, this.locale));
|
|
343
388
|
}
|
|
344
389
|
}
|
|
345
390
|
/**
|
|
@@ -354,7 +399,7 @@ const DuetNumberInput = class {
|
|
|
354
399
|
this.duetInputElement.value = "";
|
|
355
400
|
}
|
|
356
401
|
formatAnnouncement() {
|
|
357
|
-
const current = this.
|
|
402
|
+
const current = SafeParseFloat(this.value, this.locale);
|
|
358
403
|
if (current == null) {
|
|
359
404
|
return "";
|
|
360
405
|
}
|
|
@@ -367,7 +412,7 @@ const DuetNumberInput = class {
|
|
|
367
412
|
render() {
|
|
368
413
|
const identifier = this.identifier || this.inputId;
|
|
369
414
|
const maxlength = `${this.localizeValue(this.max)} ${this.unit}`.length;
|
|
370
|
-
const cleanedValue = this.
|
|
415
|
+
const cleanedValue = SafeParseFloat(this.value, this.locale);
|
|
371
416
|
return (h(Host, { class: {
|
|
372
417
|
"duet-theme-turva": this.theme === "turva",
|
|
373
418
|
"duet-expand": this.expand,
|
|
@@ -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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { d as debounce } from './js-utils-52e0944c.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { 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, 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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.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-179c634c.js';
|
|
5
5
|
import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-f4572ed7.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.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, 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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { p as parsePossibleJSON } from './string-utils-5954f458.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { i as isKeyboardClick } 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, 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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { c as cleanValue } 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, 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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.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-179c634c.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.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, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-179c634c.js';
|
|
5
5
|
import { s as sizeHeader } from './tokens.module-f4572ed7.js';
|
|
6
6
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.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, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-179c634c.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
|
|
package/lib/esm/duet.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-
|
|
4
|
+
import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-179c634c.js';
|
|
5
5
|
import { g as globalScripts } from './app-globals-6641e444.js';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v2.
|
|
8
|
+
Stencil Client Patch Browser v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
11
11
|
const patchBrowser = () => {
|
|
@@ -36,7 +36,7 @@ const patchBrowser = () => {
|
|
|
36
36
|
if (!win.customElements) {
|
|
37
37
|
// module support, but no custom elements support (Old Edge)
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
return import(/* webpackChunkName: "polyfills-dom" */ './dom-
|
|
39
|
+
return import(/* webpackChunkName: "polyfills-dom" */ './dom-3dbcb0d8.js').then(() => opts);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
return promiseResolve(opts);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
const NAMESPACE = 'duet';
|
|
5
|
-
const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"2.3.
|
|
5
|
+
const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"2.3.10"};
|
|
6
6
|
|
|
7
7
|
let scopeId;
|
|
8
8
|
let contentRef;
|
|
@@ -110,7 +110,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
110
110
|
};
|
|
111
111
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
112
112
|
let scopeId = getScopeId(cmpMeta);
|
|
113
|
-
|
|
113
|
+
const style = styles.get(scopeId);
|
|
114
114
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
115
115
|
// so the fallback is to always use the document for the root node in those cases
|
|
116
116
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -206,7 +206,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
206
206
|
let slotName = null;
|
|
207
207
|
let simple = false;
|
|
208
208
|
let lastSimple = false;
|
|
209
|
-
|
|
209
|
+
const vNodeChildren = [];
|
|
210
210
|
const walk = (c) => {
|
|
211
211
|
for (let i = 0; i < c.length; i++) {
|
|
212
212
|
child = c[i];
|
|
@@ -415,7 +415,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
415
415
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
416
416
|
try {
|
|
417
417
|
if (!elm.tagName.includes('-')) {
|
|
418
|
-
|
|
418
|
+
const n = newValue == null ? '' : newValue;
|
|
419
419
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
420
420
|
if (memberName === 'list') {
|
|
421
421
|
isProp = false;
|
|
@@ -492,7 +492,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
492
492
|
};
|
|
493
493
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
494
494
|
// tslint:disable-next-line: prefer-const
|
|
495
|
-
|
|
495
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
496
496
|
let i = 0;
|
|
497
497
|
let elm;
|
|
498
498
|
let childNode;
|
|
@@ -825,7 +825,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
825
825
|
};
|
|
826
826
|
const updateFallbackSlotVisibility = (elm) => {
|
|
827
827
|
// tslint:disable-next-line: prefer-const
|
|
828
|
-
|
|
828
|
+
const childNodes = elm.childNodes;
|
|
829
829
|
let childNode;
|
|
830
830
|
let i;
|
|
831
831
|
let ilen;
|
|
@@ -878,8 +878,8 @@ const relocateSlotContent = (elm) => {
|
|
|
878
878
|
let relocateNodeData;
|
|
879
879
|
let j;
|
|
880
880
|
let i = 0;
|
|
881
|
-
|
|
882
|
-
|
|
881
|
+
const childNodes = elm.childNodes;
|
|
882
|
+
const ilen = childNodes.length;
|
|
883
883
|
for (; i < ilen; i++) {
|
|
884
884
|
childNode = childNodes[i];
|
|
885
885
|
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
@@ -1724,7 +1724,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1724
1724
|
if (!styles.has(scopeId)) {
|
|
1725
1725
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1726
1726
|
if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
|
|
1727
|
-
style = await import('./shadow-css-
|
|
1727
|
+
style = await import('./shadow-css-501eda9a.js').then((m) => m.scopeCss(style, scopeId, false));
|
|
1728
1728
|
}
|
|
1729
1729
|
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1730
1730
|
endRegisterStyles();
|
|
@@ -2046,7 +2046,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
2046
2046
|
if (module) {
|
|
2047
2047
|
return module[exportName];
|
|
2048
2048
|
}
|
|
2049
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
2049
2050
|
return import(
|
|
2051
|
+
/* @vite-ignore */
|
|
2050
2052
|
/* webpackInclude: /\.entry\.js$/ */
|
|
2051
2053
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
2052
2054
|
/* webpackMode: "lazy" */
|
package/lib/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
4
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-179c634c.js';
|
|
5
5
|
import { g as globalScripts } from './app-globals-6641e444.js';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return promiseResolve();
|