@duetds/components 5.2.0 → 5.2.3
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 +186 -100
- 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 +39 -17
- 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 +4 -4
- package/lib/cjs/{focus-utils-bfb10d32.js → focus-utils-12f0a2cb.js} +1 -1
- package/lib/cjs/{index-a4844346.js → index-ba78fa3c.js} +11 -9
- package/lib/cjs/loader.cjs.js +3 -3
- 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-pagination/duet-pagination.js +18 -13
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +28 -11
- 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 +145 -78
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-285714dd.entry.js → p-0146f86f.entry.js} +1 -1
- package/lib/duet/{p-b0a4dc6d.entry.js → p-02fdca38.entry.js} +1 -1
- package/lib/duet/{p-99fe93c6.system.entry.js → p-034aa5af.system.entry.js} +1 -1
- package/lib/duet/{p-f5613315.system.entry.js → p-072a20bb.system.entry.js} +1 -1
- package/lib/duet/{p-b35d6368.system.entry.js → p-07970e02.system.entry.js} +1 -1
- package/lib/duet/{p-fbec1a47.entry.js → p-119b3a75.entry.js} +1 -1
- package/lib/duet/{p-423d4211.system.entry.js → p-12eb57c0.system.entry.js} +1 -1
- package/lib/duet/{p-78de93b3.entry.js → p-17d0567c.entry.js} +1 -1
- package/lib/duet/p-1919ea71.system.entry.js +4 -0
- package/lib/duet/{p-97f1e254.entry.js → p-1b03c0b0.entry.js} +1 -1
- package/lib/duet/p-1d3fe5c7.js +5 -0
- package/lib/duet/{p-b4ca3864.system.entry.js → p-1d557ffa.system.entry.js} +1 -1
- package/lib/duet/{p-6a843f9e.entry.js → p-1e124cda.entry.js} +1 -1
- package/lib/duet/p-28ed49f6.entry.js +4 -0
- package/lib/duet/{p-e8f8374b.system.entry.js → p-2b1098f7.system.entry.js} +1 -1
- package/lib/duet/{p-271107d8.entry.js → p-30c2a422.entry.js} +1 -1
- package/lib/duet/{p-b16befbc.system.entry.js → p-36ad89c8.system.entry.js} +1 -1
- package/lib/duet/{p-fef3a403.system.entry.js → p-38d81ea7.system.entry.js} +1 -1
- package/lib/duet/{p-e7b761c5.system.js → p-392d3906.system.js} +1 -1
- package/lib/duet/{p-00bf0bb9.system.entry.js → p-3a1bcb33.system.entry.js} +1 -1
- package/lib/duet/{p-fa59ebf4.js → p-3b31184e.js} +0 -0
- package/lib/duet/{p-360f8fff.system.entry.js → p-3dcf6143.system.entry.js} +1 -1
- package/lib/duet/{p-ec6d63fc.entry.js → p-45fce3bd.entry.js} +1 -1
- package/lib/duet/{p-bf87d801.entry.js → p-4d661df0.entry.js} +1 -1
- package/lib/duet/{p-41cc3490.entry.js → p-4d6b63bd.entry.js} +1 -1
- package/lib/duet/{p-c0aca70c.entry.js → p-4dfd691c.entry.js} +1 -1
- package/lib/duet/{p-7a4764db.system.entry.js → p-4e1342e8.system.entry.js} +1 -1
- package/lib/duet/{p-d4dba079.system.entry.js → p-506d7234.system.entry.js} +1 -1
- package/lib/duet/{p-bb4d8e7b.entry.js → p-518d507a.entry.js} +1 -1
- package/lib/duet/{p-437fe50b.system.entry.js → p-532a7563.system.entry.js} +1 -1
- package/lib/duet/{p-790ee851.entry.js → p-5de61303.entry.js} +1 -1
- package/lib/duet/{p-a2fa0049.entry.js → p-62635fbd.entry.js} +1 -1
- package/lib/duet/p-63536b2d.entry.js +4 -0
- package/lib/duet/{p-01478a01.system.entry.js → p-64469525.system.entry.js} +1 -1
- package/lib/duet/{p-53ad61ed.entry.js → p-65527b10.entry.js} +1 -1
- package/lib/duet/{p-98039227.system.entry.js → p-68b86cf3.system.entry.js} +1 -1
- package/lib/duet/{p-c1d55269.system.entry.js → p-6a4e52a8.system.entry.js} +1 -1
- package/lib/duet/{p-fd0a3ab7.entry.js → p-6b7706d1.entry.js} +1 -1
- package/lib/duet/{p-1ff51ad8.system.entry.js → p-6e7f309d.system.entry.js} +1 -1
- package/lib/duet/p-6e853c11.system.entry.js +4 -0
- package/lib/duet/{p-9920ad3b.entry.js → p-70a3b04a.entry.js} +1 -1
- package/lib/duet/{p-cb8ebdd7.entry.js → p-72975917.entry.js} +1 -1
- package/lib/duet/{p-ee97a406.system.entry.js → p-73c4e3a3.system.entry.js} +1 -1
- package/lib/duet/{p-f91e88e3.system.entry.js → p-78627725.system.entry.js} +1 -1
- package/lib/duet/{p-641edb93.system.entry.js → p-7adfeba7.system.entry.js} +1 -1
- package/lib/duet/{p-88ffd1cc.entry.js → p-82492a56.entry.js} +1 -1
- package/lib/duet/p-835fbc11.js +4 -0
- package/lib/duet/{p-10585f06.system.entry.js → p-84a7b980.system.entry.js} +1 -1
- package/lib/duet/{p-9406ee60.entry.js → p-856b4648.entry.js} +1 -1
- package/lib/duet/{p-04061cef.entry.js → p-89fa490e.entry.js} +1 -1
- package/lib/duet/{p-72739cec.entry.js → p-8bc46a6e.entry.js} +1 -1
- package/lib/duet/{p-24721182.system.entry.js → p-8bd8f3b9.system.entry.js} +1 -1
- package/lib/duet/{p-05e069d8.entry.js → p-8e2ec8a1.entry.js} +1 -1
- package/lib/duet/{p-56d3e64f.entry.js → p-8eeccac4.entry.js} +1 -1
- package/lib/duet/{p-95a0db46.entry.js → p-92ab9288.entry.js} +1 -1
- package/lib/duet/{p-030e20d7.entry.js → p-96d1c0b2.entry.js} +1 -1
- package/lib/duet/{p-7021d0c6.system.entry.js → p-97a5f165.system.entry.js} +1 -1
- package/lib/duet/{p-071ebe1d.system.entry.js → p-9c850ee8.system.entry.js} +1 -1
- package/lib/duet/{p-0bee3151.system.entry.js → p-9fb0854f.system.entry.js} +1 -1
- package/lib/duet/{p-afd34b6b.system.entry.js → p-a2f3f08d.system.entry.js} +1 -1
- package/lib/duet/p-a81531cf.system.js +4 -0
- package/lib/duet/{p-08eb2200.entry.js → p-a9f17642.entry.js} +1 -1
- package/lib/duet/{p-d33b5ac5.system.entry.js → p-ab1cda11.system.entry.js} +1 -1
- package/lib/duet/{p-64685397.entry.js → p-ae7e7fbf.entry.js} +1 -1
- package/lib/duet/{p-76e38bb2.system.entry.js → p-b3dba7d7.system.entry.js} +1 -1
- package/lib/duet/{p-542af014.system.js → p-b668b67c.system.js} +0 -0
- package/lib/duet/{p-c7657242.entry.js → p-baf2428d.entry.js} +1 -1
- package/lib/duet/p-bb65d334.system.entry.js +4 -0
- package/lib/duet/{p-03b6ce80.entry.js → p-bbf4391c.entry.js} +1 -1
- package/lib/duet/{p-a509cc2b.system.entry.js → p-c54d7981.system.entry.js} +1 -1
- package/lib/duet/p-c6791e18.system.js +5 -0
- package/lib/duet/{p-e75c7aa8.system.entry.js → p-c6d4025f.system.entry.js} +1 -1
- package/lib/duet/{p-73cd4f03.system.entry.js → p-c6d99598.system.entry.js} +1 -1
- package/lib/duet/{p-19100783.system.entry.js → p-c75db094.system.entry.js} +1 -1
- package/lib/duet/{p-b08bb1fd.entry.js → p-c9c6d840.entry.js} +1 -1
- package/lib/duet/{p-495a1326.system.entry.js → p-cfcb5990.system.entry.js} +1 -1
- package/lib/duet/{p-95e1a336.entry.js → p-d16b2352.entry.js} +1 -1
- package/lib/duet/{p-5f009925.system.entry.js → p-d1f678be.system.entry.js} +1 -1
- package/lib/duet/{p-27d238c5.js → p-d4c234ed.js} +1 -1
- package/lib/duet/{p-7fe67436.system.entry.js → p-d506da98.system.entry.js} +1 -1
- package/lib/duet/{p-b8623ab8.entry.js → p-d96432a0.entry.js} +1 -1
- package/lib/duet/{p-5b1cbe5b.entry.js → p-dc5971bf.entry.js} +1 -1
- package/lib/duet/{p-3260eef0.entry.js → p-de6e8bfb.entry.js} +1 -1
- package/lib/duet/{p-30e901f2.system.entry.js → p-dfff5f16.system.entry.js} +1 -1
- package/lib/duet/{p-0ae816ee.entry.js → p-e27f1382.entry.js} +1 -1
- package/lib/duet/{p-68cbc3b7.entry.js → p-e2cc3eb4.entry.js} +1 -1
- package/lib/duet/{p-9496d6d4.entry.js → p-e575b990.entry.js} +1 -1
- package/lib/duet/{p-a843e579.system.entry.js → p-ee6352cf.system.entry.js} +1 -1
- package/lib/duet/{p-4a7f290f.entry.js → p-f66e69a0.entry.js} +1 -1
- package/lib/duet/p-f80195fa.entry.js +4 -0
- package/lib/duet/{p-b51928dc.system.entry.js → p-fd8ac2e7.system.entry.js} +1 -1
- package/lib/duet/{p-33388bf3.system.entry.js → p-febd0192.system.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 +39 -17
- 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 +4 -4
- package/lib/esm/{focus-utils-3af074ea.js → focus-utils-3769afc3.js} +1 -1
- package/lib/esm/{index-ab2bfa68.js → index-374256c8.js} +11 -9
- package/lib/esm/loader.js +3 -3
- 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-3769afc3.js} +1 -1
- package/lib/esm-es5/index-374256c8.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/duet-pagination/duet-pagination.d.ts +1 -1
- package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +3 -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-4972c76e.system.js +0 -4
- package/lib/duet/p-5a5d8fb1.entry.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-971f42d6.system.entry.js +0 -4
- 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-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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -16,27 +16,77 @@ var actionAdd={"title":"action-add","tags":"action add plus","svg":"<svg fill=\"
|
|
|
16
16
|
|
|
17
17
|
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>"};
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
/**
|
|
20
|
+
* function that takes a string value or number and looks for any character resembling a minus,
|
|
21
|
+
* it will then replace it with a hypen-minus and return the parseFloat value of that string
|
|
22
|
+
* it will string / number cast the value to a number and return that number
|
|
23
|
+
* known issues: if a negative number is indicated with other characters than a "minus like" character, it will throw
|
|
24
|
+
* - an example is that some locales use (number) as an indicator for negative values instead of -number
|
|
25
|
+
*/
|
|
26
|
+
function SafeParseFloat(value, locale) {
|
|
27
|
+
let results;
|
|
28
|
+
if (typeof value === "string") {
|
|
29
|
+
//the minuses are NOT the same characters, they differ in unicode for some languages
|
|
30
|
+
// "‐", "−", "–", and "—"
|
|
31
|
+
let convertedMinus = value.replace("−", "-").replace("‐", "-").replace("−", "-").replace("–", "-").replace("—", "-");
|
|
32
|
+
if (locale) {
|
|
33
|
+
convertedMinus = ConvertToEnUS(convertedMinus, locale, false);
|
|
34
|
+
}
|
|
35
|
+
// replace all possible spaces from the string
|
|
36
|
+
convertedMinus = convertedMinus.replace(/\s+/g, "");
|
|
37
|
+
convertedMinus = convertedMinus.replace(/(?!^-?\d*\.{0,1}\d+$)/g, "");
|
|
38
|
+
/*
|
|
39
|
+
example: https://regex101.com/r/np7FqS/1
|
|
40
|
+
/(?!^-?\d*\.{0,1}\d+$)/g
|
|
41
|
+
Negative Lookahead (?!^-?\d*\.{0,1}\d+$)
|
|
42
|
+
Assert that the Regex below does not match
|
|
43
|
+
^ asserts position at start of a line
|
|
44
|
+
- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
|
|
45
|
+
? 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 zero and unlimited times, as many times as possible, giving back as needed (greedy)
|
|
48
|
+
\. matches the character . with index 4610 (2E16 or 568) literally (case sensitive)
|
|
49
|
+
{0,1} matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
|
|
50
|
+
\d matches a digit (equivalent to [0-9])
|
|
51
|
+
+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
|
|
52
|
+
$ asserts position at the end of a line
|
|
53
|
+
Global pattern flags
|
|
54
|
+
g modifier: global. All matches (don't return after first match)
|
|
55
|
+
m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
|
|
56
|
+
*/
|
|
57
|
+
results = parseFloat(convertedMinus);
|
|
37
58
|
}
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
if (typeof value === "number") {
|
|
60
|
+
results = parseFloat(String(value));
|
|
61
|
+
}
|
|
62
|
+
if (!isNaN(Number(results))) {
|
|
63
|
+
return Number(results);
|
|
64
|
+
}
|
|
65
|
+
if (value === null || value === undefined) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
throw new Error("Invalid value passed to SafeParseFloat");
|
|
69
|
+
}
|
|
70
|
+
// string conversion function that takes a locale and coverts decimal indicator to en-US indicator
|
|
71
|
+
// and takes the thousand separator for the given locale and transforms that to the en-US separator
|
|
72
|
+
function ConvertToEnUS(value, locale, replaceThousands = false) {
|
|
73
|
+
let replacedValue;
|
|
74
|
+
const localeSeparator = new Intl.NumberFormat(locale).format(1 / 2).replace(/[0-9]/g, "");
|
|
75
|
+
const enUSSeparator = new Intl.NumberFormat("en-US").format(1 / 2).replace(/[0-9]/g, "");
|
|
76
|
+
const thousandSeparator = new Intl.NumberFormat(locale).format(1000).replace(/[0-9]/g, "");
|
|
77
|
+
const enUSThousandSeparator = new Intl.NumberFormat("en-US").format(1000).replace(/[0-9]/g, "");
|
|
78
|
+
// double conversions to avoid ,->. and .->, at the same time resulting in a double conversion
|
|
79
|
+
replacedValue = value.replace(localeSeparator, "DECIMALSEPARATOR");
|
|
80
|
+
if (replaceThousands) {
|
|
81
|
+
replacedValue = replacedValue.replace(thousandSeparator, "THOUSANDSEPARATOR");
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
replacedValue = replacedValue.replace(thousandSeparator, "");
|
|
85
|
+
}
|
|
86
|
+
replacedValue = replacedValue.replace("DECIMALSEPARATOR", enUSSeparator);
|
|
87
|
+
replacedValue = replacedValue.replace("THOUSANDSEPARATOR", enUSThousandSeparator);
|
|
88
|
+
return replacedValue;
|
|
89
|
+
}
|
|
40
90
|
const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
|
|
41
91
|
const clamp = (val, min, max) => Math.min(Math.max(val, min), max);
|
|
42
92
|
|
|
@@ -212,7 +262,7 @@ const DuetNumberInput = class {
|
|
|
212
262
|
this.handleChange = (ev) => {
|
|
213
263
|
const input = ev.target;
|
|
214
264
|
if (input && input.value) {
|
|
215
|
-
let value =
|
|
265
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
216
266
|
// Make sure that everything works if the user clears the input and
|
|
217
267
|
// starts typing non-numeric characters.
|
|
218
268
|
if (isNaN(value) || value == null) {
|
|
@@ -222,7 +272,7 @@ const DuetNumberInput = class {
|
|
|
222
272
|
this.duetInput.emit({
|
|
223
273
|
component: "duet-number-input",
|
|
224
274
|
originalEvent: ev,
|
|
225
|
-
value: this.
|
|
275
|
+
value: SafeParseFloat(this.value, this.locale).toString(),
|
|
226
276
|
valueAsNumber: value,
|
|
227
277
|
});
|
|
228
278
|
}
|
|
@@ -243,30 +293,29 @@ const DuetNumberInput = class {
|
|
|
243
293
|
if (input.value) {
|
|
244
294
|
// On blur we want to make sure that the user input is between the min and max values,
|
|
245
295
|
// and also round it up or down to the nearest step.
|
|
246
|
-
let value =
|
|
296
|
+
let value = SafeParseFloat(input.value, this.locale);
|
|
247
297
|
if (this.rounding) {
|
|
248
298
|
value = roundTo(value, this.step);
|
|
249
299
|
}
|
|
250
300
|
value = clamp(value, this.min, this.max);
|
|
251
|
-
if (value !==
|
|
301
|
+
if (value !== SafeParseFloat(this.value, this.locale) ||
|
|
302
|
+
value !== SafeParseFloat(this.focusedValue, this.locale)) {
|
|
252
303
|
this.setValue(value);
|
|
253
304
|
this.emitChange(ev);
|
|
254
305
|
}
|
|
255
306
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
});
|
|
263
|
-
}
|
|
307
|
+
this.duetChange.emit({
|
|
308
|
+
originalEvent: ev,
|
|
309
|
+
value: null,
|
|
310
|
+
valueAsNumber: null,
|
|
311
|
+
component: "duet-number-input",
|
|
312
|
+
});
|
|
264
313
|
};
|
|
265
314
|
/**
|
|
266
315
|
* Local methods.
|
|
267
316
|
*/
|
|
268
317
|
this.emitChange = (ev) => {
|
|
269
|
-
const currentValue = this.
|
|
318
|
+
const currentValue = SafeParseFloat(this.value, this.locale);
|
|
270
319
|
this.duetChange.emit({
|
|
271
320
|
originalEvent: ev,
|
|
272
321
|
value: currentValue.toString(),
|
|
@@ -274,10 +323,6 @@ const DuetNumberInput = class {
|
|
|
274
323
|
component: "duet-number-input",
|
|
275
324
|
});
|
|
276
325
|
};
|
|
277
|
-
this.cleanValue = (value) => {
|
|
278
|
-
// Returns a number that can be used in calculations.
|
|
279
|
-
return value ? parseLocaleFloat(value, this.locale) : null;
|
|
280
|
-
};
|
|
281
326
|
this.localizeValue = (value) => {
|
|
282
327
|
// Returns a localized string that can be used as input value.
|
|
283
328
|
return value.toLocaleString(this.locale);
|
|
@@ -294,13 +339,13 @@ const DuetNumberInput = class {
|
|
|
294
339
|
if (ev) {
|
|
295
340
|
ev.preventDefault();
|
|
296
341
|
}
|
|
297
|
-
const
|
|
342
|
+
const cleanedValue = SafeParseFloat(this.value, this.locale);
|
|
298
343
|
// Only fire change event when necessary
|
|
299
|
-
if (
|
|
344
|
+
if (cleanedValue === this.max) {
|
|
300
345
|
return;
|
|
301
346
|
}
|
|
302
347
|
// in cases where no value set, incrementing should go to min
|
|
303
|
-
let newValue =
|
|
348
|
+
let newValue = cleanedValue == null ? this.min : cleanedValue + this.step;
|
|
304
349
|
// handle cases where value is not multiple of step
|
|
305
350
|
// e.g. if someone enters 199, with a step of 100, add should go to 200
|
|
306
351
|
// and if someone enters 101, add should also go to 200
|
|
@@ -308,8 +353,8 @@ const DuetNumberInput = class {
|
|
|
308
353
|
const adjustment = newValue % this.step;
|
|
309
354
|
newValue -= adjustment;
|
|
310
355
|
}
|
|
311
|
-
|
|
312
|
-
this.value = this.localizeValue(
|
|
356
|
+
const clampedValue = clamp(newValue, this.min, this.max);
|
|
357
|
+
this.value = this.localizeValue(clampedValue);
|
|
313
358
|
this.emitChange(ev);
|
|
314
359
|
};
|
|
315
360
|
this.subtract = (ev) => {
|
|
@@ -318,7 +363,7 @@ const DuetNumberInput = class {
|
|
|
318
363
|
if (ev) {
|
|
319
364
|
ev.preventDefault();
|
|
320
365
|
}
|
|
321
|
-
const currentValue = this.
|
|
366
|
+
const currentValue = SafeParseFloat(this.value, this.locale);
|
|
322
367
|
// Only fire change event when necessary.
|
|
323
368
|
if (currentValue === this.min) {
|
|
324
369
|
return;
|
|
@@ -343,7 +388,7 @@ const DuetNumberInput = class {
|
|
|
343
388
|
themeableComponent.inheritGlobalTheme(this);
|
|
344
389
|
// Format the number value to a localeString initially.
|
|
345
390
|
if (this.value) {
|
|
346
|
-
this.value = this.localizeValue(
|
|
391
|
+
this.value = this.localizeValue(SafeParseFloat(this.value, this.locale));
|
|
347
392
|
}
|
|
348
393
|
}
|
|
349
394
|
/**
|
|
@@ -358,7 +403,7 @@ const DuetNumberInput = class {
|
|
|
358
403
|
this.duetInputElement.value = "";
|
|
359
404
|
}
|
|
360
405
|
formatAnnouncement() {
|
|
361
|
-
const current = this.
|
|
406
|
+
const current = SafeParseFloat(this.value, this.locale);
|
|
362
407
|
if (current == null) {
|
|
363
408
|
return "";
|
|
364
409
|
}
|
|
@@ -371,7 +416,7 @@ const DuetNumberInput = class {
|
|
|
371
416
|
render() {
|
|
372
417
|
const identifier = this.identifier || this.inputId;
|
|
373
418
|
const maxlength = `${this.localizeValue(this.max)} ${this.unit}`.length;
|
|
374
|
-
const cleanedValue = this.
|
|
419
|
+
const cleanedValue = SafeParseFloat(this.value, this.locale);
|
|
375
420
|
return (index.h(index.Host, { class: {
|
|
376
421
|
"duet-theme-turva": this.theme === "turva",
|
|
377
422
|
"duet-expand": this.expand,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const jsUtils = require('./js-utils-be1d29ae.js');
|
|
@@ -146,6 +146,7 @@ const DuetPagination = class {
|
|
|
146
146
|
await this.setFocus();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
return true;
|
|
149
150
|
};
|
|
150
151
|
//helper to emit relevant page events
|
|
151
152
|
this.emitPageEvent = jsUtils.debounce((ev, passedPage) => {
|
|
@@ -159,7 +160,7 @@ const DuetPagination = class {
|
|
|
159
160
|
type: "page",
|
|
160
161
|
originalEvent: ev,
|
|
161
162
|
});
|
|
162
|
-
},
|
|
163
|
+
}, 100);
|
|
163
164
|
// this will return the entered number, or the current page if the user presses enter
|
|
164
165
|
this.getEnteredNumber = jsUtils.debounce(ev => {
|
|
165
166
|
this.emitPageEvent(ev, this.numbersStore);
|
|
@@ -177,7 +178,7 @@ const DuetPagination = class {
|
|
|
177
178
|
}, 500);
|
|
178
179
|
}
|
|
179
180
|
watchStateHandler(newValue, oldValue) {
|
|
180
|
-
this.actionChain(newValue, oldValue);
|
|
181
|
+
return this.actionChain(newValue, oldValue);
|
|
181
182
|
}
|
|
182
183
|
/**
|
|
183
184
|
* Component lifecycle events.
|
|
@@ -205,6 +206,7 @@ const DuetPagination = class {
|
|
|
205
206
|
e.preventDefault();
|
|
206
207
|
e.stopPropagation();
|
|
207
208
|
this.current = this.current + dir;
|
|
209
|
+
this.emitPageEvent(e);
|
|
208
210
|
}
|
|
209
211
|
//handle a11y keyboard navigation events
|
|
210
212
|
async onKeyboardDown(e) {
|
|
@@ -247,8 +249,9 @@ const DuetPagination = class {
|
|
|
247
249
|
sectionClickHandler(e, direction) {
|
|
248
250
|
e.preventDefault();
|
|
249
251
|
let next = this.internalSectionIndex + direction;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
const takePerVisibleItems = this.take * this.visibleItems;
|
|
253
|
+
if (next * takePerVisibleItems > this.total) {
|
|
254
|
+
next = this.internalSectionIndex;
|
|
252
255
|
}
|
|
253
256
|
const newSection = next;
|
|
254
257
|
this.internalSectionIndex = newSection >= 0 ? newSection : 0;
|
|
@@ -258,12 +261,14 @@ const DuetPagination = class {
|
|
|
258
261
|
e.preventDefault();
|
|
259
262
|
this.internalSectionIndex = 0;
|
|
260
263
|
this.current = 1;
|
|
264
|
+
this.emitPageEvent(e);
|
|
261
265
|
}
|
|
262
266
|
//handles click on the jump (total) button
|
|
263
267
|
jumpToEnd(e) {
|
|
264
268
|
e.preventDefault();
|
|
265
|
-
this.internalSectionIndex = this.totalPages / this.take - 1;
|
|
269
|
+
this.internalSectionIndex = Math.ceil(this.totalPages / this.take - 1);
|
|
266
270
|
this.current = this.totalPages;
|
|
271
|
+
this.emitPageEvent(e);
|
|
267
272
|
}
|
|
268
273
|
// render the individual page numbers
|
|
269
274
|
renderPageNumbers() {
|
|
@@ -303,7 +308,7 @@ const DuetPagination = class {
|
|
|
303
308
|
}, role: "menubar", "aria-label": this.accessibleLabels.pagination_label, "aria-description": this.accessibleLabels.description }, index.h("li", { class: {
|
|
304
309
|
"duet-pagination-page-button": true,
|
|
305
310
|
"duet-pagination-button-first": true,
|
|
306
|
-
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "aria-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small" })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, null, index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("duet-button", { class: "duet-pagination-link", "center-text": "true", variation: "plain", color: "secondary", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e) }, index.h("div", { class: "duet-pagination-page-number" }, "1"))), index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("duet-button", { class: "duet-pagination-link", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1) }, index.h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))), this.renderPageNumbers(), this.internalSectionIndex
|
|
311
|
+
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { disabled: this.internalSectionIndex === 0 && this.current <= 1, "data-direction": "back", onClick: e => this.onMouseHandler(e, -1), "aria-label": this.accessibleLabels.previous_page, "icon-name": "action-arrow-left-small" })), this.internalSectionIndex !== 0 && this.shouldDisplayNavigation() && (index.h(index.Fragment, null, index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-back", "center-text": "true", variation: "plain", color: "secondary", margin: "none", accessibleLabel: this.accessibleLabels.first_page, onClick: e => this.jumpToStart(e) }, index.h("div", { class: "duet-pagination-page-number" }, "1"))), index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-back", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.prev_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, -1) }, index.h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))))), this.renderPageNumbers(), this.internalSectionIndex * (this.visibleItems + 2) < this.totalPages && this.shouldDisplayNavigation() && (index.h(index.Fragment, null, index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-section" }, index.h("duet-button", { class: "duet-pagination-link duet-pagination-link-dots-forward", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.next_section.replace("{0}", `${this.visibleItems}`), onClick: e => this.sectionClickHandler(e, 1) }, index.h("div", { class: "duet-pagination-page-number", "aria-hidden": "true" }, "..."))), index.h("li", { class: "duet-pagination-item", role: "menuitem", part: "navigation-jump" }, index.h("duet-button", { class: "duet-pagination-link duet-pagination-link-jump-forward", "center-text": "true", color: "secondary", variation: "plain", margin: "none", accessibleLabel: this.accessibleLabels.last_page, onClick: e => this.jumpToEnd(e) }, index.h("div", { class: "duet-pagination-page-number" }, this.totalPages))))), index.h("li", { class: {
|
|
307
312
|
"duet-pagination-page-button": true,
|
|
308
313
|
"duet-pagination-button-last": true,
|
|
309
314
|
}, role: "menuitem", part: "navigation-arrow" }, index.h("duet-action-button", { disabled: this.current === this.totalPages &&
|
|
@@ -377,15 +382,15 @@ const DuetRangeStepper = class {
|
|
|
377
382
|
this.handleStepClick(e);
|
|
378
383
|
};
|
|
379
384
|
}
|
|
380
|
-
|
|
381
|
-
if (newValue
|
|
385
|
+
watchStepIndexStateHandler(newValue) {
|
|
386
|
+
if (newValue <= 1) {
|
|
382
387
|
this.leftBnRef.setAttribute("disabled", "");
|
|
383
388
|
this.rightBnRef.focus();
|
|
384
389
|
}
|
|
385
390
|
else {
|
|
386
391
|
this.leftBnRef.removeAttribute("disabled");
|
|
387
392
|
}
|
|
388
|
-
if (newValue
|
|
393
|
+
if (newValue >= this.total / this.stepSize) {
|
|
389
394
|
this.rightBnRef.setAttribute("disabled", "");
|
|
390
395
|
this.leftBnRef.focus();
|
|
391
396
|
}
|
|
@@ -393,12 +398,20 @@ const DuetRangeStepper = class {
|
|
|
393
398
|
this.rightBnRef.removeAttribute("disabled");
|
|
394
399
|
}
|
|
395
400
|
}
|
|
401
|
+
watchStepSizeStateHandler(newValue, oldValue) {
|
|
402
|
+
if (newValue !== oldValue) {
|
|
403
|
+
if (this.stepIndex * newValue > this.total) {
|
|
404
|
+
this.stepIndex = this.total / newValue;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
396
408
|
handleStepClick(e) {
|
|
409
|
+
const from = this.stepIndex * this.stepSize - this.stepSize;
|
|
397
410
|
this.duetRangeStepUpdate.emit({
|
|
398
411
|
originalEvent: e,
|
|
399
412
|
component: "duet-range-stepper",
|
|
400
|
-
from:
|
|
401
|
-
to: this.
|
|
413
|
+
from: from,
|
|
414
|
+
to: this.getTo(),
|
|
402
415
|
index: this.stepIndex,
|
|
403
416
|
});
|
|
404
417
|
}
|
|
@@ -406,7 +419,7 @@ const DuetRangeStepper = class {
|
|
|
406
419
|
themeableComponent.inheritGlobalTheme(this);
|
|
407
420
|
}
|
|
408
421
|
componentDidLoad() {
|
|
409
|
-
this.
|
|
422
|
+
this.watchStepIndexStateHandler(this.stepIndex);
|
|
410
423
|
}
|
|
411
424
|
increment(direction) {
|
|
412
425
|
const newIndex = this.stepIndex + direction;
|
|
@@ -414,20 +427,28 @@ const DuetRangeStepper = class {
|
|
|
414
427
|
this.stepIndex = 1;
|
|
415
428
|
}
|
|
416
429
|
else {
|
|
417
|
-
if (newIndex * this.stepSize
|
|
430
|
+
if (newIndex * this.stepSize < this.total + this.stepSize) {
|
|
418
431
|
this.stepIndex = newIndex;
|
|
419
432
|
}
|
|
433
|
+
else if (newIndex * this.stepSize > this.total + this.stepSize) {
|
|
434
|
+
this.stepIndex = Math.floor(this.total / this.stepSize);
|
|
435
|
+
}
|
|
420
436
|
}
|
|
421
437
|
}
|
|
438
|
+
getTo() {
|
|
439
|
+
const to = this.stepIndex * this.stepSize;
|
|
440
|
+
const result = to > this.total ? this.total : to;
|
|
441
|
+
return result;
|
|
442
|
+
}
|
|
422
443
|
generateStepSize() {
|
|
423
444
|
// this function uses this.stepIndex and this.range to generate a range of number like 1-100
|
|
424
445
|
// this is used to generate the step size
|
|
425
|
-
let start = (this.stepIndex - 1) * this.stepSize;
|
|
446
|
+
let start = Math.floor((this.stepIndex - 1) * this.stepSize);
|
|
426
447
|
//easy fix for starting position
|
|
427
448
|
if (start === 0) {
|
|
428
449
|
start = 1;
|
|
429
450
|
}
|
|
430
|
-
const end = this.stepIndex * this.stepSize;
|
|
451
|
+
const end = Math.floor(this.stepIndex * this.stepSize);
|
|
431
452
|
return this.ariaLabels.x_of_y
|
|
432
453
|
.replace("{0}", String(start))
|
|
433
454
|
.replace("{1}", String(end))
|
|
@@ -465,7 +486,8 @@ const DuetRangeStepper = class {
|
|
|
465
486
|
}
|
|
466
487
|
get element() { return index.getElement(this); }
|
|
467
488
|
static get watchers() { return {
|
|
468
|
-
"stepIndex": ["
|
|
489
|
+
"stepIndex": ["watchStepIndexStateHandler"],
|
|
490
|
+
"stepSize": ["watchStepSizeStateHandler"]
|
|
469
491
|
}; }
|
|
470
492
|
};
|
|
471
493
|
DuetRangeStepper.style = duetRangeStepperCss;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const tokens_module = require('./tokens.module-ef598645.js');
|
|
10
10
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const stringUtils = require('./string-utils-5cadd058.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const inputUtils = require('./input-utils-b5e8f524.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
const languageUtils = require('./language-utils-4f62a7db.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
const tokens_module = require('./tokens.module-ef598645.js');
|
|
10
10
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
11
11
|
const createId = require('./create-id-c3b984b1.js');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-ba78fa3c.js');
|
|
9
9
|
|
|
10
10
|
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}";
|
|
11
11
|
|