@esri/calcite-components 1.0.0-next.603 → 1.0.0-next.605
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/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/p-020db3d6.js +6 -0
- package/dist/calcite/{p-c61d605b.entry.js → p-05c81bc1.entry.js} +2 -2
- package/dist/calcite/{p-ad387176.js → p-061fbfb7.js} +1 -1
- package/dist/calcite/{p-e9729b4c.entry.js → p-06371a0c.entry.js} +2 -2
- package/dist/calcite/{p-c35f9b17.entry.js → p-07f07127.entry.js} +2 -2
- package/dist/calcite/{p-502b5f11.js → p-0a3c5912.js} +1 -1
- package/dist/calcite/{p-d4a59388.entry.js → p-0f6e96a2.entry.js} +2 -2
- package/dist/calcite/p-143ce726.entry.js +6 -0
- package/dist/calcite/{p-80e34819.js → p-16fca6d8.js} +2 -2
- package/dist/calcite/p-19449fc2.entry.js +6 -0
- package/dist/calcite/{p-18507acb.entry.js → p-1b29b480.entry.js} +2 -2
- package/dist/calcite/{p-2558d445.js → p-1c6f2bf3.js} +1 -1
- package/dist/calcite/{p-71f70169.entry.js → p-20cf073f.entry.js} +2 -2
- package/dist/calcite/p-2190ab0e.entry.js +6 -0
- package/dist/calcite/{p-90a22adb.entry.js → p-28680a4a.entry.js} +2 -2
- package/dist/calcite/{p-9215a21c.js → p-28944c7e.js} +2 -2
- package/dist/calcite/{p-d4dce6d3.js → p-33a88844.js} +1 -1
- package/dist/calcite/{p-757019e3.entry.js → p-347cc141.entry.js} +2 -2
- package/dist/calcite/p-3489af4d.entry.js +6 -0
- package/dist/calcite/p-36270916.entry.js +6 -0
- package/dist/calcite/{p-aaba2529.entry.js → p-39310407.entry.js} +2 -2
- package/dist/calcite/{p-115b3bd7.js → p-3d77c2ee.js} +2 -2
- package/dist/calcite/p-42475cf6.entry.js +6 -0
- package/dist/calcite/{p-c10f6401.js → p-42828fde.js} +1 -1
- package/dist/calcite/{p-e398a50c.js → p-45e5800d.js} +1 -1
- package/dist/calcite/p-46ca1b08.entry.js +6 -0
- package/dist/calcite/{p-39d18751.js → p-47b05392.js} +2 -2
- package/dist/calcite/{p-ac27c0c3.js → p-4c3134dd.js} +2 -2
- package/dist/calcite/{p-4bacf962.entry.js → p-4ed85873.entry.js} +2 -2
- package/dist/calcite/p-52b4a671.entry.js +6 -0
- package/dist/calcite/{p-67e1a6ed.entry.js → p-53361e13.entry.js} +2 -2
- package/dist/calcite/{p-26186d8f.entry.js → p-56529171.entry.js} +2 -2
- package/dist/calcite/{p-21c25ee6.entry.js → p-577950c9.entry.js} +2 -2
- package/dist/calcite/{p-2716b941.entry.js → p-57ea3109.entry.js} +2 -2
- package/dist/calcite/p-5875d9d9.entry.js +6 -0
- package/dist/calcite/{p-74c31050.entry.js → p-5996812a.entry.js} +2 -2
- package/dist/calcite/{p-c2d9c67a.js → p-62faaa89.js} +2 -2
- package/dist/calcite/{p-ac2c2cdf.entry.js → p-63d01694.entry.js} +2 -2
- package/dist/calcite/{p-8cca885e.entry.js → p-665d6690.entry.js} +2 -2
- package/dist/calcite/{p-89822933.entry.js → p-6ab1706e.entry.js} +2 -2
- package/dist/calcite/{p-7f4bbf2c.entry.js → p-6e531fad.entry.js} +2 -2
- package/dist/calcite/p-6ee9d00f.js +6 -0
- package/dist/calcite/{p-c61b5376.entry.js → p-6fa69299.entry.js} +2 -2
- package/dist/calcite/{p-cce5ba4c.entry.js → p-6faba067.entry.js} +2 -2
- package/dist/calcite/{p-29068a85.entry.js → p-738681b2.entry.js} +2 -2
- package/dist/calcite/{p-87dea2c4.entry.js → p-74721533.entry.js} +2 -2
- package/dist/calcite/{p-99265674.entry.js → p-76b938c3.entry.js} +2 -2
- package/dist/calcite/{p-23fa3283.entry.js → p-78f25919.entry.js} +2 -2
- package/dist/calcite/{p-76132f6b.js → p-7bc1e82f.js} +1 -1
- package/dist/calcite/{p-264a14da.entry.js → p-7da1bd2d.entry.js} +2 -2
- package/dist/calcite/{p-16720596.js → p-7f698ba9.js} +1 -1
- package/dist/calcite/{p-4de13294.js → p-811b9da2.js} +1 -1
- package/dist/calcite/{p-723fd023.js → p-81a65195.js} +1 -1
- package/dist/calcite/{p-c3f3a160.entry.js → p-878d494f.entry.js} +2 -2
- package/dist/calcite/{p-0f752ab2.entry.js → p-8bf0b09d.entry.js} +2 -2
- package/dist/calcite/{p-d040f920.entry.js → p-8d4ba716.entry.js} +2 -2
- package/dist/calcite/{p-7be581d5.js → p-8e3d90c3.js} +1 -1
- package/dist/calcite/p-90cc2b83.entry.js +6 -0
- package/dist/calcite/{p-37d08085.entry.js → p-986d3211.entry.js} +2 -2
- package/dist/calcite/{p-239fa6d5.entry.js → p-a3311f4c.entry.js} +2 -2
- package/dist/calcite/{p-03351273.entry.js → p-a4b453ef.entry.js} +2 -2
- package/dist/calcite/{p-6b9c3a48.entry.js → p-a7ff8b5e.entry.js} +2 -2
- package/dist/calcite/{p-4082f03e.js → p-ab26cd3b.js} +1 -1
- package/dist/calcite/{p-a30706eb.entry.js → p-b245e0bd.entry.js} +2 -2
- package/dist/calcite/{p-0412c4fa.entry.js → p-b2a0941a.entry.js} +2 -2
- package/dist/calcite/{p-02cb13db.js → p-b3d730dc.js} +1 -1
- package/dist/calcite/{p-bed7e481.entry.js → p-c05f14e1.entry.js} +2 -2
- package/dist/calcite/{p-81207a8f.entry.js → p-c2a1336a.entry.js} +2 -2
- package/dist/calcite/{p-f9123c06.entry.js → p-c3ec4e71.entry.js} +2 -2
- package/dist/calcite/p-c4ec7584.js +6 -0
- package/dist/calcite/{p-3462c5e2.entry.js → p-c4f35c1d.entry.js} +2 -2
- package/dist/calcite/p-c5b161a3.entry.js +6 -0
- package/dist/calcite/{p-5b914fde.entry.js → p-c72598c8.entry.js} +2 -2
- package/dist/calcite/{p-95eee0f9.js → p-ca974433.js} +2 -2
- package/dist/calcite/{p-c0a063da.js → p-ce4d590c.js} +2 -2
- package/dist/calcite/{p-ccf19533.entry.js → p-d177e8a3.entry.js} +2 -2
- package/dist/calcite/{p-1b7f95f7.entry.js → p-d22a5a99.entry.js} +2 -2
- package/dist/calcite/p-d5de3abc.entry.js +6 -0
- package/dist/calcite/{p-52f86134.js → p-d6395bde.js} +1 -1
- package/dist/calcite/{p-f10a2b6d.entry.js → p-d73bfb49.entry.js} +2 -2
- package/dist/calcite/p-da9b728f.entry.js +6 -0
- package/dist/calcite/{p-452a958b.js → p-da9fb826.js} +1 -1
- package/dist/calcite/p-e03c020c.js +6 -0
- package/dist/calcite/{p-22c68d97.entry.js → p-e3f1310b.entry.js} +2 -2
- package/dist/calcite/{p-0f615646.entry.js → p-e9e4fc82.entry.js} +2 -2
- package/dist/calcite/{p-59ffeea3.js → p-eb756dbe.js} +1 -1
- package/dist/calcite/{p-406ba372.entry.js → p-f5ab8322.entry.js} +2 -2
- package/dist/calcite/{p-46ebf470.entry.js → p-f614abb8.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-42440069.js → ExpandToggle-f150d947.js} +5 -5
- package/dist/cjs/{Heading-199ac87b.js → Heading-5a456260.js} +2 -2
- package/dist/cjs/{app-globals-46909c41.js → app-globals-1c45d3d1.js} +2 -2
- package/dist/cjs/{array-3782df99.js → array-ec81caec.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +11 -11
- package/dist/cjs/calcite-action-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action.cjs.entry.js +7 -7
- package/dist/cjs/calcite-alert.cjs.entry.js +10 -10
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-card.cjs.entry.js +7 -7
- package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +17 -11
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +17 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +30 -22
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
- package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
- package/dist/cjs/calcite-flow-item.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +42 -27
- package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +63 -27
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +19 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input.cjs.entry.js +15 -12
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +6 -6
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +8 -8
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -8
- package/dist/cjs/calcite-option_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pagination.cjs.entry.js +8 -8
- package/dist/cjs/calcite-panel.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-popover_2.cjs.entry.js +14 -12
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +9 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-rating.cjs.entry.js +9 -9
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +14 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-switch.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +10 -7
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-af6c055a.js → conditionalSlot-2d66c859.js} +3 -3
- package/dist/cjs/{debounce-bef6e278.js → debounce-c9573a72.js} +1 -1
- package/dist/cjs/{dom-5120fd37.js → dom-701c026a.js} +15 -3
- package/dist/cjs/{filter-f8a01450.js → filter-6e58d73c.js} +2 -2
- package/dist/cjs/{floating-ui-9180cffe.js → floating-ui-6d57c957.js} +2 -2
- package/dist/cjs/{form-801874a0.js → form-c07a24e1.js} +3 -3
- package/dist/cjs/{guid-1cce5e17.js → guid-28a45376.js} +1 -1
- package/dist/cjs/{index-2ca4ebe4.js → index-06f4e4a7.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-dd2229b4.js → interactive-3612d791.js} +1 -1
- package/dist/cjs/{interfaces-544b631e.js → interfaces-ec1e235a.js} +1 -1
- package/dist/cjs/{key-adb66321.js → key-c4719ef5.js} +1 -1
- package/dist/cjs/{label-2606da4a.js → label-6a9f46fe.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-d501b0c1.js → locale-ccc83c4a.js} +42 -20
- package/dist/cjs/{math-90f8929b.js → math-09e9fbc0.js} +1 -1
- package/dist/cjs/{observers-d3346de2.js → observers-11c52473.js} +1 -1
- package/dist/cjs/{openCloseComponent-42b3318a.js → openCloseComponent-8fa915a1.js} +1 -1
- package/dist/cjs/{resources-771e7e95.js → resources-08e926e6.js} +5 -5
- package/dist/cjs/{resources-95acb7bc.js → resources-1dee3f64.js} +1 -1
- package/dist/cjs/{resources-3a496fbd.js → resources-2fe6016f.js} +4 -42
- package/dist/cjs/{resources-9ff3d6c0.js → resources-3786d362.js} +1 -1
- package/dist/cjs/{resources-44f3bc57.js → resources-dd1bf8b6.js} +1 -1
- package/dist/cjs/{resources-bbc9bdc6.js → resources-fa828919.js} +1 -1
- package/dist/cjs/{sortable.esm-58905327.js → sortable.esm-091035e0.js} +1 -1
- package/dist/cjs/{utils-3958a48a.js → utils-859c359b.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +9 -3
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +9 -3
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +5 -2
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +34 -2
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +4 -26
- package/dist/collection/components/date-picker-month/date-picker-month.js +2 -2
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +10 -8
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +3 -3
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +5 -2
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +73 -14
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +9 -3
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +5 -2
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +8 -2
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +32 -17
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +5 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +3 -38
- package/dist/collection/utils/dom.js +12 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +37 -18
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +4 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +9 -3
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +9 -3
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +5 -2
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +52 -14
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +9 -3
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +8 -2
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +32 -17
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +3 -6
- package/dist/components/date-picker-month-header.js +10 -8
- package/dist/components/date-picker-month.js +2 -2
- package/dist/components/date-picker.js +13 -2
- package/dist/components/date.js +5 -39
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +13 -2
- package/dist/components/dropdown.js +3 -3
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +5 -2
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +40 -18
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +5 -3
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip.js +5 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-2bc0d838.js → ExpandToggle-b309a912.js} +5 -5
- package/dist/esm/{Heading-66ee95b5.js → Heading-dfd64184.js} +2 -2
- package/dist/esm/{app-globals-26298ea6.js → app-globals-332f4aa7.js} +2 -2
- package/dist/esm/{array-f81cf43f.js → array-b93a5fb6.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +11 -11
- package/dist/esm/calcite-action-group.entry.js +9 -9
- package/dist/esm/calcite-action-menu.entry.js +15 -9
- package/dist/esm/calcite-action-pad.entry.js +10 -10
- package/dist/esm/calcite-action.entry.js +7 -7
- package/dist/esm/calcite-alert.entry.js +10 -10
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +10 -10
- package/dist/esm/calcite-button.entry.js +9 -9
- package/dist/esm/calcite-card.entry.js +7 -7
- package/dist/esm/calcite-checkbox.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +7 -7
- package/dist/esm/calcite-color-picker_3.entry.js +17 -11
- package/dist/esm/calcite-combobox_3.entry.js +17 -14
- package/dist/esm/calcite-date-picker_4.entry.js +30 -22
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +6 -6
- package/dist/esm/calcite-filter.entry.js +8 -8
- package/dist/esm/calcite-flow-item.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +42 -27
- package/dist/esm/calcite-handle.entry.js +5 -5
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +8 -8
- package/dist/esm/calcite-input-date-picker.entry.js +63 -27
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +19 -13
- package/dist/esm/calcite-input-text.entry.js +9 -9
- package/dist/esm/calcite-input-time-picker_2.entry.js +11 -11
- package/dist/esm/calcite-input.entry.js +15 -12
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +6 -6
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +8 -8
- package/dist/esm/calcite-notice.entry.js +8 -8
- package/dist/esm/calcite-option_3.entry.js +9 -9
- package/dist/esm/calcite-pagination.entry.js +8 -8
- package/dist/esm/calcite-panel.entry.js +10 -10
- package/dist/esm/calcite-pick-list_3.entry.js +12 -12
- package/dist/esm/calcite-popover_2.entry.js +14 -12
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +9 -9
- package/dist/esm/calcite-radio-group_2.entry.js +8 -8
- package/dist/esm/calcite-rating.entry.js +9 -9
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +14 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +9 -9
- package/dist/esm/calcite-switch.entry.js +9 -9
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip_2.entry.js +10 -7
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +12 -12
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-343e7eec.js → conditionalSlot-db9ad6d4.js} +3 -3
- package/dist/esm/{debounce-a196ac98.js → debounce-e42a1373.js} +1 -1
- package/dist/esm/{dom-dad94260.js → dom-a2d12054.js} +15 -4
- package/dist/esm/{filter-cfcdc08c.js → filter-2e4f1cbb.js} +2 -2
- package/dist/esm/{floating-ui-86b26b6e.js → floating-ui-3124e4cb.js} +2 -2
- package/dist/esm/{form-709f9534.js → form-d0932f60.js} +3 -3
- package/dist/esm/{guid-137b76da.js → guid-7e7f8cb7.js} +1 -1
- package/dist/esm/{index-42f7375c.js → index-f0e069a3.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-fe79f60b.js → interactive-109aac6f.js} +1 -1
- package/dist/esm/{interfaces-81ceb45f.js → interfaces-a195ea5d.js} +1 -1
- package/dist/esm/{key-3b195608.js → key-c2bf57be.js} +1 -1
- package/dist/esm/{label-f590c4ec.js → label-289d45ea.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-53c2ef32.js → locale-a8017a0f.js} +42 -20
- package/dist/esm/{math-b5d516a9.js → math-db28d599.js} +1 -1
- package/dist/esm/{observers-498d696d.js → observers-02263ad9.js} +1 -1
- package/dist/esm/{openCloseComponent-a506aa11.js → openCloseComponent-12bcbae8.js} +1 -1
- package/dist/esm/{resources-ca08160e.js → resources-41048db6.js} +5 -41
- package/dist/esm/{resources-6f2434b8.js → resources-565275f0.js} +1 -1
- package/dist/esm/{resources-e32f9bc2.js → resources-b4d4d0ee.js} +1 -1
- package/dist/esm/{resources-bd2e4822.js → resources-bd0bd4fb.js} +1 -1
- package/dist/esm/{resources-8e14fa7c.js → resources-e94ec9de.js} +5 -5
- package/dist/esm/{resources-73f6e967.js → resources-eeb28d59.js} +1 -1
- package/dist/esm/{sortable.esm-89ea0e77.js → sortable.esm-0511272f.js} +1 -1
- package/dist/esm/{utils-caec017d.js → utils-fa27285e.js} +1 -1
- package/dist/extras/docs-json.json +204 -17
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/action-menu/action-menu.d.ts +2 -2
- package/dist/types/components/combobox/combobox.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +6 -1
- package/dist/types/components/date-picker-day/date-picker-day.d.ts +0 -3
- package/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +11 -2
- package/dist/types/components/slider/slider.d.ts +2 -0
- package/dist/types/components.d.ts +17 -9
- package/dist/types/utils/date.d.ts +0 -20
- package/dist/types/utils/dom.d.ts +9 -0
- package/dist/types/utils/locale.d.ts +2 -1
- package/hydrate/index.js +187 -100
- package/package.json +1 -1
- package/dist/calcite/p-0b5e5620.entry.js +0 -6
- package/dist/calcite/p-1a278666.entry.js +0 -6
- package/dist/calcite/p-1da9e6ac.entry.js +0 -6
- package/dist/calcite/p-277b7fe0.entry.js +0 -6
- package/dist/calcite/p-3e44f69c.entry.js +0 -6
- package/dist/calcite/p-4d338b0f.entry.js +0 -6
- package/dist/calcite/p-5dc3502d.js +0 -6
- package/dist/calcite/p-6eee9fe3.entry.js +0 -6
- package/dist/calcite/p-7c9688f1.entry.js +0 -6
- package/dist/calcite/p-7d1aa359.js +0 -6
- package/dist/calcite/p-81904782.entry.js +0 -6
- package/dist/calcite/p-9bb001f5.entry.js +0 -6
- package/dist/calcite/p-b7ae77fd.js +0 -6
- package/dist/calcite/p-bbd55ae4.js +0 -6
- package/dist/calcite/p-c17b6120.entry.js +0 -6
- package/dist/calcite/p-e55c99b2.entry.js +0 -6
- package/dist/calcite/p-fba030ba.entry.js +0 -6
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.605
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -6152,6 +6152,17 @@ function intersects(rect1, rect2) {
|
|
|
6152
6152
|
function toAriaBoolean(value) {
|
|
6153
6153
|
return Boolean(value).toString();
|
|
6154
6154
|
}
|
|
6155
|
+
/**
|
|
6156
|
+
* This helper returns true if the pointer event fired from the primary button of the device.
|
|
6157
|
+
*
|
|
6158
|
+
* See https://www.w3.org/TR/pointerevents/#the-button-property.
|
|
6159
|
+
*
|
|
6160
|
+
* @param event
|
|
6161
|
+
* @returns {boolean}
|
|
6162
|
+
*/
|
|
6163
|
+
function isPrimaryPointerButton(event) {
|
|
6164
|
+
return !!(event.isPrimary && event.button === 0);
|
|
6165
|
+
}
|
|
6155
6166
|
|
|
6156
6167
|
/**
|
|
6157
6168
|
* This utility ensures observers are created only for browser contexts.
|
|
@@ -8435,7 +8446,10 @@ class ActionMenu {
|
|
|
8435
8446
|
this.open = false;
|
|
8436
8447
|
this.setFocus();
|
|
8437
8448
|
};
|
|
8438
|
-
this.menuButtonClick = () => {
|
|
8449
|
+
this.menuButtonClick = (event) => {
|
|
8450
|
+
if (!isPrimaryPointerButton(event)) {
|
|
8451
|
+
return;
|
|
8452
|
+
}
|
|
8439
8453
|
this.toggleOpen();
|
|
8440
8454
|
};
|
|
8441
8455
|
this.updateTooltip = (event) => {
|
|
@@ -8566,6 +8580,9 @@ class ActionMenu {
|
|
|
8566
8580
|
this.setTooltipReferenceElement();
|
|
8567
8581
|
}
|
|
8568
8582
|
closeCalciteActionMenuOnClick(event) {
|
|
8583
|
+
if (!isPrimaryPointerButton(event)) {
|
|
8584
|
+
return;
|
|
8585
|
+
}
|
|
8569
8586
|
const composedPath = event.composedPath();
|
|
8570
8587
|
if (composedPath.includes(this.el)) {
|
|
8571
8588
|
return;
|
|
@@ -8951,6 +8968,9 @@ function sanitizeExponentialNumberString(numberString, func) {
|
|
|
8951
8968
|
return numberString;
|
|
8952
8969
|
}
|
|
8953
8970
|
const firstE = numberString.toLowerCase().indexOf("e") + 1;
|
|
8971
|
+
if (!firstE) {
|
|
8972
|
+
return func(numberString);
|
|
8973
|
+
}
|
|
8954
8974
|
return numberString
|
|
8955
8975
|
.replace(/[eE]*$/g, "")
|
|
8956
8976
|
.substring(0, firstE)
|
|
@@ -9050,6 +9070,9 @@ function getSupportedLocale(locale) {
|
|
|
9050
9070
|
if (locales.indexOf(locale) > -1) {
|
|
9051
9071
|
return locale;
|
|
9052
9072
|
}
|
|
9073
|
+
if (!locale) {
|
|
9074
|
+
return defaultLocale;
|
|
9075
|
+
}
|
|
9053
9076
|
locale = locale.toLowerCase();
|
|
9054
9077
|
// we support both 'nb' and 'no' (BCP 47) for Norwegian
|
|
9055
9078
|
if (locale === "nb") {
|
|
@@ -9061,7 +9084,7 @@ function getSupportedLocale(locale) {
|
|
|
9061
9084
|
locale = locale.split("-")[0];
|
|
9062
9085
|
}
|
|
9063
9086
|
}
|
|
9064
|
-
return locales.includes(locale) ? locale :
|
|
9087
|
+
return locales.includes(locale) ? locale : defaultLocale;
|
|
9065
9088
|
}
|
|
9066
9089
|
const connectedComponents = new Set();
|
|
9067
9090
|
/**
|
|
@@ -9125,17 +9148,25 @@ function getLocale(component) {
|
|
|
9125
9148
|
*/
|
|
9126
9149
|
class NumberStringFormat {
|
|
9127
9150
|
constructor() {
|
|
9128
|
-
this.delocalize = (numberString) =>
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
.
|
|
9137
|
-
.replace(new RegExp(`[${this.
|
|
9138
|
-
|
|
9151
|
+
this.delocalize = (numberString) =>
|
|
9152
|
+
// For performance, (de)localization is skipped if the formatter isn't initialized.
|
|
9153
|
+
// In order to localize/delocalize, e.g. when lang/numberingSystem props are not default values,
|
|
9154
|
+
// `numberFormatOptions` must be set in a component to create and cache the formatter.
|
|
9155
|
+
this._numberFormatOptions
|
|
9156
|
+
? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => nonExpoNumString
|
|
9157
|
+
.trim()
|
|
9158
|
+
.replace(new RegExp(`[${this._minusSign}]`, "g"), "-")
|
|
9159
|
+
.replace(new RegExp(`[${this._group}]`, "g"), "")
|
|
9160
|
+
.replace(new RegExp(`[${this._decimal}]`, "g"), ".")
|
|
9161
|
+
.replace(new RegExp(`[${this._digits.join("")}]`, "g"), this._getDigitIndex))
|
|
9162
|
+
: numberString;
|
|
9163
|
+
this.localize = (numberString) => this._numberFormatOptions
|
|
9164
|
+
? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString.trim())
|
|
9165
|
+
? new BigDecimal(nonExpoNumString.trim())
|
|
9166
|
+
.format(this._numberFormatter)
|
|
9167
|
+
.replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group)
|
|
9168
|
+
: nonExpoNumString)
|
|
9169
|
+
: numberString;
|
|
9139
9170
|
}
|
|
9140
9171
|
get group() {
|
|
9141
9172
|
return this._group;
|
|
@@ -9159,10 +9190,18 @@ class NumberStringFormat {
|
|
|
9159
9190
|
* numberFormatOptions needs to be set before localize/delocalize is called to ensure the options are up to date
|
|
9160
9191
|
*/
|
|
9161
9192
|
set numberFormatOptions(options) {
|
|
9162
|
-
options.locale = getSupportedLocale(options.locale);
|
|
9163
|
-
options.numberingSystem = getSupportedNumberingSystem(options.numberingSystem);
|
|
9164
|
-
|
|
9165
|
-
if
|
|
9193
|
+
options.locale = getSupportedLocale(options === null || options === void 0 ? void 0 : options.locale);
|
|
9194
|
+
options.numberingSystem = getSupportedNumberingSystem(options === null || options === void 0 ? void 0 : options.numberingSystem);
|
|
9195
|
+
if (
|
|
9196
|
+
// No need to create the formatter if `locale` and `numberingSystem`
|
|
9197
|
+
// are the default values and `numberFormatOptions` has not been set
|
|
9198
|
+
(!this._numberFormatOptions &&
|
|
9199
|
+
options.locale === defaultLocale &&
|
|
9200
|
+
options.numberingSystem === defaultNumberingSystem &&
|
|
9201
|
+
// don't skip initialization if any options besides locale/numberingSystem are set
|
|
9202
|
+
Object.keys(options).length === 2) ||
|
|
9203
|
+
// cache formatter by only recreating when options change
|
|
9204
|
+
JSON.stringify(this._numberFormatOptions) === JSON.stringify(options)) {
|
|
9166
9205
|
return;
|
|
9167
9206
|
}
|
|
9168
9207
|
this._numberFormatOptions = options;
|
|
@@ -13536,6 +13575,9 @@ class ColorPicker {
|
|
|
13536
13575
|
};
|
|
13537
13576
|
this.handleColorFieldAndSliderPointerDown = (event) => {
|
|
13538
13577
|
var _a, _b;
|
|
13578
|
+
if (!isPrimaryPointerButton(event)) {
|
|
13579
|
+
return;
|
|
13580
|
+
}
|
|
13539
13581
|
const { offsetX, offsetY } = event;
|
|
13540
13582
|
const region = this.getCanvasRegion(offsetY);
|
|
13541
13583
|
if (region === "color-field") {
|
|
@@ -13555,7 +13597,10 @@ class ColorPicker {
|
|
|
13555
13597
|
this.activeColorFieldAndSliderRect =
|
|
13556
13598
|
this.fieldAndSliderRenderingContext.canvas.getBoundingClientRect();
|
|
13557
13599
|
};
|
|
13558
|
-
this.globalPointerUpHandler = () => {
|
|
13600
|
+
this.globalPointerUpHandler = (event) => {
|
|
13601
|
+
if (!isPrimaryPointerButton(event)) {
|
|
13602
|
+
return;
|
|
13603
|
+
}
|
|
13559
13604
|
const previouslyDragging = this.sliderThumbState === "drag" || this.hueThumbState === "drag";
|
|
13560
13605
|
this.hueThumbState = "idle";
|
|
13561
13606
|
this.sliderThumbState = "idle";
|
|
@@ -16483,6 +16528,9 @@ class Combobox {
|
|
|
16483
16528
|
//
|
|
16484
16529
|
//--------------------------------------------------------------------------
|
|
16485
16530
|
documentClickHandler(event) {
|
|
16531
|
+
if (!isPrimaryPointerButton(event)) {
|
|
16532
|
+
return;
|
|
16533
|
+
}
|
|
16486
16534
|
this.setInactiveIfNotContained(event);
|
|
16487
16535
|
}
|
|
16488
16536
|
calciteComboboxItemChangeHandler(event) {
|
|
@@ -17256,32 +17304,6 @@ function nextMonth(date) {
|
|
|
17256
17304
|
}
|
|
17257
17305
|
return nextDate;
|
|
17258
17306
|
}
|
|
17259
|
-
/**
|
|
17260
|
-
* Translate a number into a given locals numeral system
|
|
17261
|
-
*
|
|
17262
|
-
* @param num
|
|
17263
|
-
* @param localeData
|
|
17264
|
-
*/
|
|
17265
|
-
function localizeNumber(num, localeData) {
|
|
17266
|
-
return String(num)
|
|
17267
|
-
.split("")
|
|
17268
|
-
.map((i) => localeData.numerals[i])
|
|
17269
|
-
.join("");
|
|
17270
|
-
}
|
|
17271
|
-
/**
|
|
17272
|
-
* Calculate actual number from localized string
|
|
17273
|
-
*
|
|
17274
|
-
* @param str
|
|
17275
|
-
* @param localeData
|
|
17276
|
-
*/
|
|
17277
|
-
function parseNumber(str, localeData) {
|
|
17278
|
-
const numerals = "0123456789";
|
|
17279
|
-
return parseInt(str
|
|
17280
|
-
.split("")
|
|
17281
|
-
.map((i) => numerals[localeData.numerals.indexOf(i)])
|
|
17282
|
-
.filter((num) => num)
|
|
17283
|
-
.join(""));
|
|
17284
|
-
}
|
|
17285
17307
|
/**
|
|
17286
17308
|
* Parse numeric units for day, month, and year from a localized string
|
|
17287
17309
|
* month starts at 0 (can pass to date constructor)
|
|
@@ -17292,23 +17314,13 @@ function parseNumber(str, localeData) {
|
|
|
17292
17314
|
function parseDateString(str, localeData) {
|
|
17293
17315
|
const { separator, unitOrder } = localeData;
|
|
17294
17316
|
const order = getOrder(unitOrder);
|
|
17295
|
-
const values =
|
|
17317
|
+
const values = str.split(separator).map((part) => numberStringFormatter.delocalize(part));
|
|
17296
17318
|
return {
|
|
17297
17319
|
day: parseInt(values[order.indexOf("d")]),
|
|
17298
17320
|
month: parseInt(values[order.indexOf("m")]) - 1,
|
|
17299
17321
|
year: parseInt(values[order.indexOf("y")])
|
|
17300
17322
|
};
|
|
17301
17323
|
}
|
|
17302
|
-
/**
|
|
17303
|
-
* Convert eastern arbic numerals
|
|
17304
|
-
*
|
|
17305
|
-
* @param str
|
|
17306
|
-
*/
|
|
17307
|
-
function replaceArabicNumerals(str = "") {
|
|
17308
|
-
return str
|
|
17309
|
-
.replace(/[\u0660-\u0669]/g, (c) => (c.charCodeAt(0) - 0x0660))
|
|
17310
|
-
.replace(/[\u06f0-\u06f9]/g, (c) => (c.charCodeAt(0) - 0x06f0));
|
|
17311
|
-
}
|
|
17312
17324
|
/**
|
|
17313
17325
|
* Based on the unitOrder string, find order of month, day, and year for locale
|
|
17314
17326
|
*
|
|
@@ -17633,6 +17645,11 @@ class DatePicker {
|
|
|
17633
17645
|
if (this.max) {
|
|
17634
17646
|
this.maxAsDate = dateFromISO(this.max);
|
|
17635
17647
|
}
|
|
17648
|
+
numberStringFormatter.numberFormatOptions = {
|
|
17649
|
+
numberingSystem: this.numberingSystem,
|
|
17650
|
+
locale: this.effectiveLocale,
|
|
17651
|
+
useGrouping: false
|
|
17652
|
+
};
|
|
17636
17653
|
}
|
|
17637
17654
|
disconnectedCallback() {
|
|
17638
17655
|
disconnectLocalized(this);
|
|
@@ -17801,6 +17818,7 @@ class DatePicker {
|
|
|
17801
17818
|
"intlNextMonth": [1, "intl-next-month"],
|
|
17802
17819
|
"intlYear": [1, "intl-year"],
|
|
17803
17820
|
"locale": [1],
|
|
17821
|
+
"numberingSystem": [513, "numbering-system"],
|
|
17804
17822
|
"scale": [513],
|
|
17805
17823
|
"range": [516],
|
|
17806
17824
|
"start": [1537],
|
|
@@ -17816,7 +17834,7 @@ class DatePicker {
|
|
|
17816
17834
|
},
|
|
17817
17835
|
"$listeners$": undefined,
|
|
17818
17836
|
"$lazyBundleId$": "-",
|
|
17819
|
-
"$attrsToReflect$": [["activeRange", "active-range"], ["headingLevel", "heading-level"], ["min", "min"], ["max", "max"], ["scale", "scale"], ["range", "range"], ["start", "start"], ["end", "end"], ["proximitySelectionDisabled", "proximity-selection-disabled"]]
|
|
17837
|
+
"$attrsToReflect$": [["activeRange", "active-range"], ["headingLevel", "heading-level"], ["min", "min"], ["max", "max"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["range", "range"], ["start", "start"], ["end", "end"], ["proximitySelectionDisabled", "proximity-selection-disabled"]]
|
|
17820
17838
|
}; }
|
|
17821
17839
|
}
|
|
17822
17840
|
|
|
@@ -17869,10 +17887,7 @@ class DatePickerDay {
|
|
|
17869
17887
|
//
|
|
17870
17888
|
//--------------------------------------------------------------------------
|
|
17871
17889
|
render() {
|
|
17872
|
-
const formattedDay = String(this.day)
|
|
17873
|
-
.split("")
|
|
17874
|
-
.map((i) => this.localeData.numerals[i])
|
|
17875
|
-
.join("");
|
|
17890
|
+
const formattedDay = numberStringFormatter.localize(String(this.day));
|
|
17876
17891
|
const dir = getElementDir(this.el);
|
|
17877
17892
|
return (hAsync(Host, { onClick: this.onClick, onKeyDown: this.keyDownHandler, role: "gridcell" }, hAsync("div", { class: { "day-v-wrapper": true, [CSS_UTILITY.rtl]: dir === "rtl" } }, hAsync("div", { class: "day-wrapper" }, hAsync("span", { class: "day" }, hAsync("span", { class: "text" }, formattedDay))))));
|
|
17878
17893
|
}
|
|
@@ -17898,7 +17913,6 @@ class DatePickerDay {
|
|
|
17898
17913
|
"endOfRange": [516, "end-of-range"],
|
|
17899
17914
|
"rangeHover": [516, "range-hover"],
|
|
17900
17915
|
"active": [516],
|
|
17901
|
-
"localeData": [16],
|
|
17902
17916
|
"scale": [513],
|
|
17903
17917
|
"value": [16]
|
|
17904
17918
|
},
|
|
@@ -18171,7 +18185,7 @@ class DatePickerMonth {
|
|
|
18171
18185
|
"hover--outside-range": this.startDate && !isHoverInRange,
|
|
18172
18186
|
"focused--start": isFocusedOnStart,
|
|
18173
18187
|
"focused--end": !isFocusedOnStart
|
|
18174
|
-
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(),
|
|
18188
|
+
}, currentMonth: currentMonth, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), key: date.toDateString(), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeHover: this.isRangeHover(date), ref: (el) => {
|
|
18175
18189
|
// when moving via keyboard, focus must be updated on active date
|
|
18176
18190
|
if (ref && active && this.activeFocus) {
|
|
18177
18191
|
el === null || el === void 0 ? void 0 : el.focus();
|
|
@@ -18325,10 +18339,10 @@ class DatePickerMonthHeader {
|
|
|
18325
18339
|
const order = getOrder(unitOrder);
|
|
18326
18340
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
18327
18341
|
const suffix = (_a = this.localeData.year) === null || _a === void 0 ? void 0 : _a.suffix;
|
|
18328
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled":
|
|
18342
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlPrevMonth, class: "chevron", href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-left", scale: iconScale })), hAsync("div", { class: { text: true, "text--reverse": reverse } }, hAsync(Heading, { class: "month", level: this.headingLevel }, localizedMonth), hAsync("span", { class: "year-wrap" }, hAsync("input", { "aria-label": this.intlYear, class: {
|
|
18329
18343
|
year: true,
|
|
18330
18344
|
"year--suffix": !!suffix
|
|
18331
|
-
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: "suffix" }, suffix))), hAsync("a", { "aria-disabled":
|
|
18345
|
+
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", ref: (el) => (this.yearInput = el), type: "text", value: localizedYear }), suffix && hAsync("span", { class: "suffix" }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": this.intlNextMonth, class: "chevron", href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: "chevron-right", scale: iconScale }))));
|
|
18332
18346
|
}
|
|
18333
18347
|
setNextPrevMonthDates() {
|
|
18334
18348
|
if (!this.activeDate) {
|
|
@@ -18341,17 +18355,18 @@ class DatePickerMonthHeader {
|
|
|
18341
18355
|
const { localeData } = this;
|
|
18342
18356
|
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
18343
18357
|
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
18344
|
-
return
|
|
18358
|
+
return numberStringFormatter.localize(`${year + yearOffset}`);
|
|
18345
18359
|
}
|
|
18346
18360
|
parseCalendarYear(year) {
|
|
18347
18361
|
const { localeData } = this;
|
|
18348
18362
|
const buddhistCalendar = localeData["default-calendar"] === "buddhist";
|
|
18349
18363
|
const yearOffset = buddhistCalendar ? BUDDHIST_CALENDAR_YEAR_OFFSET : 0;
|
|
18350
|
-
|
|
18364
|
+
const parsedYear = Number(numberStringFormatter.delocalize(year)) - yearOffset;
|
|
18365
|
+
return numberStringFormatter.localize(`${parsedYear}`);
|
|
18351
18366
|
}
|
|
18352
18367
|
getInRangeDate({ localizedYear, offset = 0 }) {
|
|
18353
|
-
const { min, max, activeDate
|
|
18354
|
-
const parsedYear =
|
|
18368
|
+
const { min, max, activeDate } = this;
|
|
18369
|
+
const parsedYear = Number(numberStringFormatter.delocalize(localizedYear));
|
|
18355
18370
|
const length = parsedYear.toString().length;
|
|
18356
18371
|
const year = isNaN(parsedYear) ? false : parsedYear + offset;
|
|
18357
18372
|
const inRange = year && (!min || min.getFullYear() <= year) && (!max || max.getFullYear() >= year);
|
|
@@ -18700,7 +18715,7 @@ class Dropdown {
|
|
|
18700
18715
|
});
|
|
18701
18716
|
}
|
|
18702
18717
|
closeCalciteDropdownOnClick(event) {
|
|
18703
|
-
if (!this.open || event.composedPath().includes(this.el)) {
|
|
18718
|
+
if (!isPrimaryPointerButton(event) || !this.open || event.composedPath().includes(this.el)) {
|
|
18704
18719
|
return;
|
|
18705
18720
|
}
|
|
18706
18721
|
this.closeCalciteDropdown(false);
|
|
@@ -20745,6 +20760,9 @@ class Input {
|
|
|
20745
20760
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
20746
20761
|
};
|
|
20747
20762
|
this.numberButtonPointerDownHandler = (event) => {
|
|
20763
|
+
if (!isPrimaryPointerButton(event)) {
|
|
20764
|
+
return;
|
|
20765
|
+
}
|
|
20748
20766
|
event.preventDefault();
|
|
20749
20767
|
const direction = event.target.dataset.adjustment;
|
|
20750
20768
|
if (!this.disabled) {
|
|
@@ -21281,8 +21299,17 @@ class InputDatePicker {
|
|
|
21281
21299
|
}
|
|
21282
21300
|
this.focusedInput = "end";
|
|
21283
21301
|
};
|
|
21284
|
-
this.
|
|
21285
|
-
this.
|
|
21302
|
+
this.startInputInput = () => {
|
|
21303
|
+
const parsedValue = this.parseNumerals(this.startInput.value);
|
|
21304
|
+
const formattedValue = this.formatNumerals(parsedValue);
|
|
21305
|
+
this.startInput.value = formattedValue;
|
|
21306
|
+
this.input(parsedValue);
|
|
21307
|
+
};
|
|
21308
|
+
this.endInputInput = () => {
|
|
21309
|
+
const parsedValue = this.parseNumerals(this.endInput.value);
|
|
21310
|
+
const formattedValue = this.formatNumerals(parsedValue);
|
|
21311
|
+
this.endInput.value = formattedValue;
|
|
21312
|
+
this.input(parsedValue);
|
|
21286
21313
|
};
|
|
21287
21314
|
this.setFloatingEl = (el) => {
|
|
21288
21315
|
if (el) {
|
|
@@ -21325,6 +21352,25 @@ class InputDatePicker {
|
|
|
21325
21352
|
(_b = this.startInput) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
21326
21353
|
}
|
|
21327
21354
|
};
|
|
21355
|
+
this.commonDateSeparators = [".", "-", "/"];
|
|
21356
|
+
this.formatNumerals = (value) => value
|
|
21357
|
+
? value
|
|
21358
|
+
.split("")
|
|
21359
|
+
.map((char) =>
|
|
21360
|
+
// convert common separators to the locale's
|
|
21361
|
+
this.commonDateSeparators.includes(char)
|
|
21362
|
+
? this.localeData.separator
|
|
21363
|
+
: numberKeys.includes(char)
|
|
21364
|
+
? numberStringFormatter.numberFormatter.format(Number(char))
|
|
21365
|
+
: char)
|
|
21366
|
+
.join("")
|
|
21367
|
+
: "";
|
|
21368
|
+
this.parseNumerals = (value) => value
|
|
21369
|
+
? value
|
|
21370
|
+
.split("")
|
|
21371
|
+
.map((char) => numberKeys.includes(char) ? numberStringFormatter.delocalize(char) : char)
|
|
21372
|
+
.join("")
|
|
21373
|
+
: "";
|
|
21328
21374
|
}
|
|
21329
21375
|
handleDisabledAndReadOnlyChange(value) {
|
|
21330
21376
|
if (!value) {
|
|
@@ -21449,6 +21495,11 @@ class InputDatePicker {
|
|
|
21449
21495
|
connectOpenCloseComponent(this);
|
|
21450
21496
|
this.setFilteredPlacements();
|
|
21451
21497
|
this.debouncedReposition();
|
|
21498
|
+
numberStringFormatter.numberFormatOptions = {
|
|
21499
|
+
numberingSystem: this.numberingSystem,
|
|
21500
|
+
locale: this.effectiveLocale,
|
|
21501
|
+
useGrouping: false
|
|
21502
|
+
};
|
|
21452
21503
|
}
|
|
21453
21504
|
async componentWillLoad() {
|
|
21454
21505
|
await this.loadLocaleData();
|
|
@@ -21475,10 +21526,13 @@ class InputDatePicker {
|
|
|
21475
21526
|
const endDate = this.range
|
|
21476
21527
|
? dateFromRange(this.endAsDate, this.minAsDate, this.maxAsDate)
|
|
21477
21528
|
: null;
|
|
21478
|
-
const
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21529
|
+
const formattedEndDate = endDate
|
|
21530
|
+
? this.formatNumerals(endDate.toLocaleDateString(this.effectiveLocale))
|
|
21531
|
+
: "";
|
|
21532
|
+
const formattedDate = date
|
|
21533
|
+
? this.formatNumerals(date.toLocaleDateString(this.effectiveLocale))
|
|
21534
|
+
: "";
|
|
21535
|
+
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler, role: "application" }, this.localeData && (hAsync("div", { "aria-expanded": toAriaBoolean(this.open), class: "input-container", role: "application" }, hAsync("div", { class: "input-wrapper", ref: this.setStartWrapper }, hAsync("calcite-input", { class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", label: getLabelText(this), lang: this.effectiveLocale, "number-button-type": "none", numberingSystem: this.numberingSystem, onCalciteInputInput: this.startInputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.startInputFocus, placeholder: (_a = this.localeData) === null || _a === void 0 ? void 0 : _a.placeholder, readOnly: readOnly, ref: this.setStartInput, scale: this.scale, type: "text", value: formattedDate })), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), class: {
|
|
21482
21536
|
[CSS$u.menu]: true,
|
|
21483
21537
|
[CSS$u.menuActive]: this.open
|
|
21484
21538
|
}, ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -21486,10 +21540,10 @@ class InputDatePicker {
|
|
|
21486
21540
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
21487
21541
|
[FloatingCSS.animation]: true,
|
|
21488
21542
|
[FloatingCSS.animationActive]: this.open
|
|
21489
|
-
}, ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
21543
|
+
}, ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeRange: this.focusedInput, endAsDate: this.endAsDate, headingLevel: this.headingLevel, intlNextMonth: this.intlNextMonth, intlPrevMonth: this.intlPrevMonth, intlYear: this.intlYear, lang: this.effectiveLocale, max: this.max, maxAsDate: this.maxAsDate, min: this.min, minAsDate: this.minAsDate, numberingSystem: this.numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, startAsDate: this.startAsDate, tabIndex: 0, valueAsDate: this.valueAsDate }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: "s" }))), this.range && (hAsync("div", { class: "input-wrapper", ref: this.setEndWrapper }, hAsync("calcite-input", { class: {
|
|
21490
21544
|
input: true,
|
|
21491
21545
|
"border-top-color-one": this.layout === "vertical" && this.range
|
|
21492
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none", onCalciteInputInput: this.
|
|
21546
|
+
}, disabled: disabled, icon: "calendar", lang: this.effectiveLocale, "number-button-type": "none", numberingSystem: this.numberingSystem, onCalciteInputInput: this.endInputInput, onCalciteInternalInputBlur: this.inputBlur, onCalciteInternalInputFocus: this.endInputFocus, placeholder: (_b = this.localeData) === null || _b === void 0 ? void 0 : _b.placeholder, readOnly: readOnly, ref: this.setEndInput, scale: this.scale, type: "text", value: formattedEndDate }))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
21493
21547
|
}
|
|
21494
21548
|
setReferenceEl() {
|
|
21495
21549
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -21604,15 +21658,15 @@ class InputDatePicker {
|
|
|
21604
21658
|
const date = this.getDateFromInput(target.value);
|
|
21605
21659
|
if (!date) {
|
|
21606
21660
|
if (!range && valueAsDate) {
|
|
21607
|
-
target.value = Array.isArray(valueAsDate)
|
|
21661
|
+
target.value = this.formatNumerals(Array.isArray(valueAsDate)
|
|
21608
21662
|
? valueAsDate[focusedInput === "end" ? 1 : 0].toLocaleDateString(locale)
|
|
21609
|
-
: valueAsDate.toLocaleDateString(locale);
|
|
21663
|
+
: valueAsDate.toLocaleDateString(locale));
|
|
21610
21664
|
}
|
|
21611
21665
|
else if (focusedInput === "start" && startAsDate) {
|
|
21612
|
-
target.value = startAsDate.toLocaleDateString(locale);
|
|
21666
|
+
target.value = this.formatNumerals(startAsDate.toLocaleDateString(locale));
|
|
21613
21667
|
}
|
|
21614
21668
|
else if (focusedInput === "end" && endAsDate) {
|
|
21615
|
-
target.value = endAsDate.toLocaleDateString(locale);
|
|
21669
|
+
target.value = this.formatNumerals(endAsDate.toLocaleDateString(locale));
|
|
21616
21670
|
}
|
|
21617
21671
|
}
|
|
21618
21672
|
}
|
|
@@ -21698,6 +21752,7 @@ class InputDatePicker {
|
|
|
21698
21752
|
"intlNextMonth": [1, "intl-next-month"],
|
|
21699
21753
|
"intlYear": [1, "intl-year"],
|
|
21700
21754
|
"locale": [1],
|
|
21755
|
+
"numberingSystem": [513, "numbering-system"],
|
|
21701
21756
|
"scale": [513],
|
|
21702
21757
|
"placement": [513],
|
|
21703
21758
|
"range": [516],
|
|
@@ -21716,7 +21771,7 @@ class InputDatePicker {
|
|
|
21716
21771
|
},
|
|
21717
21772
|
"$listeners$": [[0, "calciteDatePickerChange", "handleDateOrRangeChange"], [0, "calciteDatePickerRangeChange", "handleDateOrRangeChange"], [0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
21718
21773
|
"$lazyBundleId$": "-",
|
|
21719
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["active", "active"], ["open", "open"], ["name", "name"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["start", "start"], ["end", "end"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
21774
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["active", "active"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["start", "start"], ["end", "end"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
21720
21775
|
}; }
|
|
21721
21776
|
}
|
|
21722
21777
|
|
|
@@ -22068,10 +22123,16 @@ class InputNumber {
|
|
|
22068
22123
|
this.incrementOrDecrementNumberValue(direction, inputMax, inputMin, nativeEvent);
|
|
22069
22124
|
}, valueNudgeDelayInMs);
|
|
22070
22125
|
};
|
|
22071
|
-
this.nudgeButtonPointerUpAndOutHandler = () => {
|
|
22126
|
+
this.nudgeButtonPointerUpAndOutHandler = (event) => {
|
|
22127
|
+
if (!isPrimaryPointerButton(event)) {
|
|
22128
|
+
return;
|
|
22129
|
+
}
|
|
22072
22130
|
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
22073
22131
|
};
|
|
22074
22132
|
this.nudgeButtonPointerDownHandler = (event) => {
|
|
22133
|
+
if (!isPrimaryPointerButton(event)) {
|
|
22134
|
+
return;
|
|
22135
|
+
}
|
|
22075
22136
|
event.preventDefault();
|
|
22076
22137
|
const direction = event.target.dataset.adjustment;
|
|
22077
22138
|
if (!this.disabled) {
|
|
@@ -25987,7 +26048,9 @@ class PopoverManager$1 {
|
|
|
25987
26048
|
this.togglePopovers(event);
|
|
25988
26049
|
};
|
|
25989
26050
|
this.clickHandler = (event) => {
|
|
25990
|
-
|
|
26051
|
+
if (isPrimaryPointerButton(event)) {
|
|
26052
|
+
this.togglePopovers(event);
|
|
26053
|
+
}
|
|
25991
26054
|
};
|
|
25992
26055
|
}
|
|
25993
26056
|
// --------------------------------------------------------------------------
|
|
@@ -27944,6 +28007,9 @@ class ShellPanel {
|
|
|
27944
28007
|
this.setContentWidth(width);
|
|
27945
28008
|
};
|
|
27946
28009
|
this.separatorPointerUp = (event) => {
|
|
28010
|
+
if (!isPrimaryPointerButton(event)) {
|
|
28011
|
+
return;
|
|
28012
|
+
}
|
|
27947
28013
|
event.preventDefault();
|
|
27948
28014
|
document.removeEventListener("pointerup", this.separatorPointerUp);
|
|
27949
28015
|
document.removeEventListener("pointermove", this.separatorPointerMove);
|
|
@@ -27953,6 +28019,9 @@ class ShellPanel {
|
|
|
27953
28019
|
this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
|
|
27954
28020
|
};
|
|
27955
28021
|
this.separatorPointerDown = (event) => {
|
|
28022
|
+
if (!isPrimaryPointerButton(event)) {
|
|
28023
|
+
return;
|
|
28024
|
+
}
|
|
27956
28025
|
event.preventDefault();
|
|
27957
28026
|
const { separatorEl } = this;
|
|
27958
28027
|
separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
|
|
@@ -28163,6 +28232,12 @@ class Slider {
|
|
|
28163
28232
|
}
|
|
28164
28233
|
}
|
|
28165
28234
|
};
|
|
28235
|
+
this.pointerUpDragEnd = (event) => {
|
|
28236
|
+
if (!isPrimaryPointerButton(event)) {
|
|
28237
|
+
return;
|
|
28238
|
+
}
|
|
28239
|
+
this.dragEnd(event);
|
|
28240
|
+
};
|
|
28166
28241
|
this.dragEnd = (event) => {
|
|
28167
28242
|
this.removeDragListeners();
|
|
28168
28243
|
this.focusActiveHandle(event.clientX);
|
|
@@ -28273,73 +28348,73 @@ class Slider {
|
|
|
28273
28348
|
thumb: true,
|
|
28274
28349
|
"thumb--value": true,
|
|
28275
28350
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
28276
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28351
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" })));
|
|
28277
28352
|
const labeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28278
28353
|
thumb: true,
|
|
28279
28354
|
"thumb--value": true,
|
|
28280
28355
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
28281
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28356
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" })));
|
|
28282
28357
|
const histogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28283
28358
|
thumb: true,
|
|
28284
28359
|
"thumb--value": true,
|
|
28285
28360
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp
|
|
28286
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28361
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
28287
28362
|
const preciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28288
28363
|
thumb: true,
|
|
28289
28364
|
"thumb--value": true,
|
|
28290
28365
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
28291
28366
|
"thumb--precise": true
|
|
28292
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28367
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
28293
28368
|
const histogramPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28294
28369
|
thumb: true,
|
|
28295
28370
|
"thumb--value": true,
|
|
28296
28371
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
28297
28372
|
"thumb--precise": true
|
|
28298
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28373
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
28299
28374
|
const labeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28300
28375
|
thumb: true,
|
|
28301
28376
|
"thumb--value": true,
|
|
28302
28377
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
28303
28378
|
"thumb--precise": true
|
|
28304
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28379
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
28305
28380
|
const histogramLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
28306
28381
|
thumb: true,
|
|
28307
28382
|
"thumb--value": true,
|
|
28308
28383
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
28309
28384
|
"thumb--precise": true
|
|
28310
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: () => this.
|
|
28385
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), ref: (el) => (this.maxHandle = el), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
28311
28386
|
const minHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
28312
28387
|
thumb: true,
|
|
28313
28388
|
"thumb--minValue": true,
|
|
28314
28389
|
"thumb--active": this.dragProp === "minValue"
|
|
28315
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.
|
|
28390
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" })));
|
|
28316
28391
|
const minLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
28317
28392
|
thumb: true,
|
|
28318
28393
|
"thumb--minValue": true,
|
|
28319
28394
|
"thumb--active": this.dragProp === "minValue"
|
|
28320
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.
|
|
28395
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue), hAsync("div", { class: "handle" })));
|
|
28321
28396
|
const minHistogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
28322
28397
|
thumb: true,
|
|
28323
28398
|
"thumb--minValue": true,
|
|
28324
28399
|
"thumb--active": this.dragProp === "minValue"
|
|
28325
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.
|
|
28400
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
28326
28401
|
const minPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
28327
28402
|
thumb: true,
|
|
28328
28403
|
"thumb--minValue": true,
|
|
28329
28404
|
"thumb--active": this.dragProp === "minValue",
|
|
28330
28405
|
"thumb--precise": true
|
|
28331
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.
|
|
28406
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
28332
28407
|
const minLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
28333
28408
|
thumb: true,
|
|
28334
28409
|
"thumb--minValue": true,
|
|
28335
28410
|
"thumb--active": this.dragProp === "minValue",
|
|
28336
28411
|
"thumb--precise": true
|
|
28337
|
-
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: () => this.
|
|
28412
|
+
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), ref: (el) => (this.minHandle = el), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0 }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
28338
28413
|
return (hAsync(Host, { id: id, onTouchStart: this.handleTouchStart }, hAsync("div", { class: {
|
|
28339
28414
|
["container"]: true,
|
|
28340
28415
|
["container--range"]: valueIsRange,
|
|
28341
28416
|
[`scale--${this.scale}`]: true
|
|
28342
|
-
} }, this.renderGraph(), hAsync("div", { class: "track", ref: this.storeTrackRef }, hAsync("div", { class: "track__range", onPointerDown: () => this.
|
|
28417
|
+
} }, this.renderGraph(), hAsync("div", { class: "track", ref: this.storeTrackRef }, hAsync("div", { class: "track__range", onPointerDown: (event) => this.pointerDownDragStart(event, "minMaxValue"), style: {
|
|
28343
28418
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
28344
28419
|
right: `${mirror ? minInterval : 100 - maxInterval}%`
|
|
28345
28420
|
} }), hAsync("div", { class: "ticks" }, this.tickValues.map((tick) => {
|
|
@@ -28478,6 +28553,9 @@ class Slider {
|
|
|
28478
28553
|
this.setValue(activeProp, this.clamp(fixedDecimalAdjustment, activeProp));
|
|
28479
28554
|
}
|
|
28480
28555
|
pointerDownHandler(event) {
|
|
28556
|
+
if (!isPrimaryPointerButton(event)) {
|
|
28557
|
+
return;
|
|
28558
|
+
}
|
|
28481
28559
|
const x = event.clientX || event.pageX;
|
|
28482
28560
|
const position = this.translate(x);
|
|
28483
28561
|
let prop = "value";
|
|
@@ -28552,12 +28630,18 @@ class Slider {
|
|
|
28552
28630
|
}
|
|
28553
28631
|
return ticks;
|
|
28554
28632
|
}
|
|
28633
|
+
pointerDownDragStart(event, prop) {
|
|
28634
|
+
if (!isPrimaryPointerButton(event)) {
|
|
28635
|
+
return;
|
|
28636
|
+
}
|
|
28637
|
+
this.dragStart(prop);
|
|
28638
|
+
}
|
|
28555
28639
|
dragStart(prop) {
|
|
28556
28640
|
this.dragProp = prop;
|
|
28557
28641
|
this.lastDragProp = this.dragProp;
|
|
28558
28642
|
this.activeProp = prop;
|
|
28559
28643
|
document.addEventListener("pointermove", this.dragUpdate);
|
|
28560
|
-
document.addEventListener("pointerup", this.
|
|
28644
|
+
document.addEventListener("pointerup", this.pointerUpDragEnd);
|
|
28561
28645
|
document.addEventListener("pointercancel", this.dragEnd);
|
|
28562
28646
|
}
|
|
28563
28647
|
focusActiveHandle(valueX) {
|
|
@@ -28583,7 +28667,7 @@ class Slider {
|
|
|
28583
28667
|
}
|
|
28584
28668
|
removeDragListeners() {
|
|
28585
28669
|
document.removeEventListener("pointermove", this.dragUpdate);
|
|
28586
|
-
document.removeEventListener("pointerup", this.
|
|
28670
|
+
document.removeEventListener("pointerup", this.pointerUpDragEnd);
|
|
28587
28671
|
document.removeEventListener("pointercancel", this.dragEnd);
|
|
28588
28672
|
}
|
|
28589
28673
|
/**
|
|
@@ -35104,6 +35188,9 @@ class TooltipManager$1 {
|
|
|
35104
35188
|
this.hoverEvent(event, false);
|
|
35105
35189
|
};
|
|
35106
35190
|
this.clickHandler = (event) => {
|
|
35191
|
+
if (!isPrimaryPointerButton(event)) {
|
|
35192
|
+
return;
|
|
35193
|
+
}
|
|
35107
35194
|
const clickedTooltip = this.queryTooltip(event.composedPath());
|
|
35108
35195
|
this.clickedTooltip = clickedTooltip;
|
|
35109
35196
|
if (clickedTooltip === null || clickedTooltip === void 0 ? void 0 : clickedTooltip.closeOnClick) {
|