@esri/calcite-components 1.0.0-next.632 → 1.0.0-next.633
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-86905fb5.js → p-004dc91c.js} +1 -1
- package/dist/calcite/{p-c68d9538.js → p-035fa26b.js} +1 -1
- package/dist/calcite/{p-26221fd5.js → p-05c3789b.js} +1 -1
- package/dist/calcite/{p-350020e2.entry.js → p-09749684.entry.js} +2 -2
- package/dist/calcite/{p-718b55be.entry.js → p-0d96f830.entry.js} +2 -2
- package/dist/calcite/{p-36130c21.entry.js → p-0f31433c.entry.js} +2 -2
- package/dist/calcite/{p-b4ff31d9.entry.js → p-12f64f8b.entry.js} +2 -2
- package/dist/calcite/{p-19cc591c.entry.js → p-14a7da73.entry.js} +2 -2
- package/dist/calcite/{p-d874cc53.entry.js → p-1806b759.entry.js} +2 -2
- package/dist/calcite/{p-5701017a.js → p-18b9b69e.js} +1 -1
- package/dist/calcite/{p-5a898bf0.entry.js → p-18f9b87b.entry.js} +2 -2
- package/dist/calcite/{p-1ab525eb.entry.js → p-1cebb96f.entry.js} +2 -2
- package/dist/calcite/{p-a4d69d65.js → p-22c8223d.js} +1 -1
- package/dist/calcite/{p-0303fbae.js → p-24681cc9.js} +1 -1
- package/dist/calcite/{p-ce7061ee.entry.js → p-266871ba.entry.js} +2 -2
- package/dist/calcite/{p-c16b33a2.entry.js → p-26b693c2.entry.js} +2 -2
- package/dist/calcite/{p-72483730.entry.js → p-29cf00c4.entry.js} +2 -2
- package/dist/calcite/{p-3611f963.entry.js → p-2a52b1af.entry.js} +2 -2
- package/dist/calcite/{p-5230ef12.entry.js → p-2c730d84.entry.js} +2 -2
- package/dist/calcite/{p-5527ebc8.js → p-2c9d7402.js} +2 -2
- package/dist/calcite/{p-9472a5ac.entry.js → p-2ebffb8e.entry.js} +2 -2
- package/dist/calcite/{p-5c59c177.entry.js → p-308ed699.entry.js} +2 -2
- package/dist/calcite/{p-25af79f0.js → p-31090aba.js} +1 -1
- package/dist/calcite/{p-c32059c0.js → p-319d0fb7.js} +2 -2
- package/dist/calcite/{p-c1b5f59b.js → p-32abefe9.js} +1 -1
- package/dist/calcite/{p-afbfdab9.entry.js → p-3bb21f63.entry.js} +2 -2
- package/dist/calcite/{p-330e5c6b.entry.js → p-3cc531b1.entry.js} +2 -2
- package/dist/calcite/{p-974f4b48.entry.js → p-3d69f172.entry.js} +2 -2
- package/dist/calcite/{p-3ff080f1.entry.js → p-3e9f366c.entry.js} +2 -2
- package/dist/calcite/{p-3a6d68f7.js → p-3ed7f5b5.js} +2 -2
- package/dist/calcite/{p-ac6e713f.js → p-42f22b60.js} +2 -2
- package/dist/calcite/{p-632f9793.entry.js → p-431e0692.entry.js} +2 -2
- package/dist/calcite/{p-2b0bfca8.js → p-4794e7df.js} +1 -1
- package/dist/calcite/{p-ac61efff.js → p-498de00a.js} +2 -2
- package/dist/calcite/{p-c114d6e9.entry.js → p-49a5573d.entry.js} +2 -2
- package/dist/calcite/{p-2a801870.entry.js → p-4ada52dc.entry.js} +2 -2
- package/dist/calcite/{p-e09be3fb.js → p-4f72fc01.js} +1 -1
- package/dist/calcite/{p-6a830477.js → p-513fef9a.js} +2 -2
- package/dist/calcite/{p-655ce86d.js → p-5215672d.js} +2 -2
- package/dist/calcite/{p-85bdbb11.entry.js → p-58de9d51.entry.js} +2 -2
- package/dist/calcite/{p-189303c9.entry.js → p-5c05198d.entry.js} +2 -2
- package/dist/calcite/{p-96fc45cf.entry.js → p-5f59c538.entry.js} +2 -2
- package/dist/calcite/{p-8a5c4f98.entry.js → p-69d9a248.entry.js} +2 -2
- package/dist/calcite/{p-926bad07.entry.js → p-6bc879e0.entry.js} +2 -2
- package/dist/calcite/{p-3d4b7f7b.entry.js → p-6f30e051.entry.js} +2 -2
- package/dist/calcite/{p-93d60f5a.entry.js → p-73f93e1c.entry.js} +2 -2
- package/dist/calcite/{p-b8180034.entry.js → p-77658bab.entry.js} +2 -2
- package/dist/calcite/{p-afebb7a3.entry.js → p-7def899e.entry.js} +2 -2
- package/dist/calcite/{p-0cc25e53.entry.js → p-8021f786.entry.js} +2 -2
- package/dist/calcite/{p-735321ab.entry.js → p-810fcf41.entry.js} +2 -2
- package/dist/calcite/{p-89c053a0.entry.js → p-83617657.entry.js} +2 -2
- package/dist/calcite/{p-37f4fbf6.entry.js → p-953012fa.entry.js} +2 -2
- package/dist/calcite/{p-201012c5.js → p-a2ab3648.js} +1 -1
- package/dist/calcite/{p-e0a6c5f6.entry.js → p-a359b901.entry.js} +2 -2
- package/dist/calcite/{p-2c20351d.entry.js → p-a6f1ebf6.entry.js} +2 -2
- package/dist/calcite/{p-993ed98a.js → p-ab3812ba.js} +1 -1
- package/dist/calcite/{p-d65d3da1.entry.js → p-ac3ace5c.entry.js} +2 -2
- package/dist/calcite/{p-c8d99abf.entry.js → p-ac5e38a2.entry.js} +2 -2
- package/dist/calcite/{p-a2c795b0.js → p-b672fd97.js} +2 -2
- package/dist/calcite/{p-64240045.entry.js → p-b7fbe5a9.entry.js} +2 -2
- package/dist/calcite/{p-941b9462.entry.js → p-bb73d51b.entry.js} +2 -2
- package/dist/calcite/{p-fa1bce97.entry.js → p-bbd46504.entry.js} +2 -2
- package/dist/calcite/{p-c76023f1.entry.js → p-c24271dc.entry.js} +2 -2
- package/dist/calcite/{p-87b36f4c.js → p-c3d50492.js} +1 -1
- package/dist/calcite/{p-f8f5f22a.js → p-c8640992.js} +1 -1
- package/dist/calcite/{p-abd72bf2.entry.js → p-cb016c52.entry.js} +2 -2
- package/dist/calcite/{p-d6764232.entry.js → p-cc2c16c4.entry.js} +2 -2
- package/dist/calcite/{p-19398bcf.js → p-cfaa9ea8.js} +2 -2
- package/dist/calcite/{p-1c198c5b.entry.js → p-d010539f.entry.js} +2 -2
- package/dist/calcite/p-d0681fe7.js +6 -0
- package/dist/calcite/{p-361465b8.js → p-d17b8ee9.js} +2 -2
- package/dist/calcite/{p-b585f1f3.js → p-d25a6228.js} +1 -1
- package/dist/calcite/{p-49fe7966.entry.js → p-d26767ec.entry.js} +2 -2
- package/dist/calcite/{p-52aed615.entry.js → p-d2f83c6a.entry.js} +2 -2
- package/dist/calcite/{p-fe0be6d9.js → p-d4246ab6.js} +2 -2
- package/dist/calcite/{p-a3581d8b.entry.js → p-d52deb05.entry.js} +2 -2
- package/dist/calcite/{p-3529e57a.entry.js → p-d5a92819.entry.js} +2 -2
- package/dist/calcite/{p-76a6b73b.entry.js → p-d728f7e7.entry.js} +2 -2
- package/dist/calcite/{p-ccfb0c33.entry.js → p-d935cc1b.entry.js} +2 -2
- package/dist/calcite/{p-7f6763de.entry.js → p-da667566.entry.js} +2 -2
- package/dist/calcite/{p-aa51a6fe.entry.js → p-db293e50.entry.js} +2 -2
- package/dist/calcite/{p-9c51f83f.entry.js → p-dcad31e0.entry.js} +2 -2
- package/dist/calcite/{p-18a62c19.entry.js → p-ddb1b9bb.entry.js} +2 -2
- package/dist/calcite/{p-4e6971c2.js → p-deb7df1e.js} +1 -1
- package/dist/calcite/{p-86f57b82.entry.js → p-e2db7cb6.entry.js} +2 -2
- package/dist/calcite/{p-93225a57.entry.js → p-e64e5cdc.entry.js} +2 -2
- package/dist/calcite/{p-1c57926c.entry.js → p-e8d83a55.entry.js} +2 -2
- package/dist/calcite/p-f61babd1.js +6 -0
- package/dist/calcite/{p-d97fdcf6.entry.js → p-fb3e8b9b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-a2268518.js → ExpandToggle-3cab12e1.js} +5 -5
- package/dist/cjs/{Heading-db8d4197.js → Heading-79adac08.js} +2 -2
- package/dist/cjs/{app-globals-7147e11d.js → app-globals-0e5a6ce5.js} +2 -2
- package/dist/cjs/{array-9ea80372.js → array-6a2dea2c.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 +8 -8
- 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 +10 -10
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
- 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 +12 -12
- 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 +15 -15
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +12 -12
- 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 +12 -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 +11 -11
- 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 +8 -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 +7 -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 +4 -4
- package/dist/cjs/{conditionalSlot-fd337152.js → conditionalSlot-1322fc35.js} +13 -3
- package/dist/cjs/{debounce-f8c7e9b6.js → debounce-0f9e9abc.js} +1 -1
- package/dist/cjs/{dom-f7828144.js → dom-13de8dae.js} +3 -3
- package/dist/cjs/{filter-f3c0b4f6.js → filter-b64d328c.js} +2 -2
- package/dist/cjs/{floating-ui-83c6ed49.js → floating-ui-81762090.js} +4 -4
- package/dist/cjs/{form-b6275ade.js → form-5d8e6d3d.js} +3 -3
- package/dist/cjs/{guid-42c9f5bc.js → guid-4c424c40.js} +1 -1
- package/dist/cjs/{index-97bc3529.js → index-a6176241.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-394db149.js → interactive-4c92331d.js} +1 -1
- package/dist/cjs/{interfaces-15a95c78.js → interfaces-31dee91d.js} +1 -1
- package/dist/cjs/{key-ef1b5c40.js → key-98575516.js} +1 -1
- package/dist/cjs/{label-5277de10.js → label-40d2674d.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-d6c8629d.js → locale-59a564a4.js} +37 -49
- package/dist/cjs/{math-7661c5a9.js → math-434fe599.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-16ccc341.js → nonChromiumPlatformUtils-4af36414.js} +6 -6
- package/dist/cjs/{observers-f0edd5b4.js → observers-5bc9fe46.js} +1 -1
- package/dist/cjs/{openCloseComponent-3619e10f.js → openCloseComponent-67cd4a5b.js} +1 -1
- package/dist/cjs/{resources-cce171b0.js → resources-69bd2041.js} +1 -1
- package/dist/cjs/{resources-d8e09445.js → resources-73628073.js} +1 -1
- package/dist/cjs/{resources-05aec36a.js → resources-a28e66cd.js} +1 -1
- package/dist/cjs/{resources-84367026.js → resources-a665ff66.js} +1 -1
- package/dist/cjs/{resources-d8cb9314.js → resources-aace079b.js} +3 -3
- package/dist/cjs/{resources-8411fe4f.js → resources-e3e0e1e3.js} +5 -5
- package/dist/cjs/{sortable.esm-7aed4258.js → sortable.esm-c1959d54.js} +1 -1
- package/dist/cjs/{utils-8cc6d606.js → utils-62376f8f.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- 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 +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- 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 +1 -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 +11 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +29 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.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 +3 -3
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +33 -46
- 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 +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-tree.js +1 -1
- 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 +11 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +34 -46
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.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 +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.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 +1 -1
- 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 +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-de7eb89e.js → ExpandToggle-c1666d9f.js} +5 -5
- package/dist/esm/{Heading-ce81383b.js → Heading-6f3b27d7.js} +2 -2
- package/dist/esm/{app-globals-f6046b49.js → app-globals-dc53e887.js} +2 -2
- package/dist/esm/{array-93ad10ae.js → array-ec97ab21.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 +8 -8
- 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 +10 -10
- package/dist/esm/calcite-combobox_3.entry.js +14 -14
- package/dist/esm/calcite-date-picker_4.entry.js +11 -11
- package/dist/esm/calcite-dropdown_3.entry.js +11 -11
- 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 +12 -12
- 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 +15 -15
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +12 -12
- 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 +12 -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 +11 -11
- 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 +8 -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 +7 -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 +4 -4
- package/dist/esm/{conditionalSlot-7cbade1a.js → conditionalSlot-65d395e3.js} +13 -3
- package/dist/esm/{debounce-3c83dd2d.js → debounce-150a7fe8.js} +1 -1
- package/dist/esm/{dom-d49f0f97.js → dom-cc5c3984.js} +3 -3
- package/dist/esm/{filter-677a7c1c.js → filter-1ebb2c6b.js} +2 -2
- package/dist/esm/{floating-ui-a29cecf4.js → floating-ui-93789309.js} +4 -4
- package/dist/esm/{form-274603f8.js → form-255c911d.js} +3 -3
- package/dist/esm/{guid-4f56580f.js → guid-f9660e6f.js} +1 -1
- package/dist/esm/{index-39e12ba3.js → index-d2393e84.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-0aa06ff9.js → interactive-26a4cd50.js} +1 -1
- package/dist/esm/{interfaces-171ceb04.js → interfaces-36e4a241.js} +1 -1
- package/dist/esm/{key-0dc0bbf3.js → key-a4eb4c7a.js} +1 -1
- package/dist/esm/{label-c2d65977.js → label-958c6dcb.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-67e8291a.js → locale-356e61ad.js} +37 -49
- package/dist/esm/{math-6a19492f.js → math-edfa7bd5.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-db4caf57.js → nonChromiumPlatformUtils-0826d52b.js} +6 -6
- package/dist/esm/{observers-74d18f51.js → observers-8a9fc943.js} +1 -1
- package/dist/esm/{openCloseComponent-733f7ffb.js → openCloseComponent-759e2351.js} +1 -1
- package/dist/esm/{resources-d2959b68.js → resources-03d3cf60.js} +1 -1
- package/dist/esm/{resources-fa77b6f3.js → resources-0fd6d659.js} +1 -1
- package/dist/esm/{resources-a12626f7.js → resources-64a95f35.js} +1 -1
- package/dist/esm/{resources-cc0585cf.js → resources-b9c5aaf9.js} +1 -1
- package/dist/esm/{resources-663172e7.js → resources-c578caf8.js} +5 -5
- package/dist/esm/{resources-8da94c50.js → resources-d313bb62.js} +3 -3
- package/dist/esm/{sortable.esm-a150fbaf.js → sortable.esm-6298e963.js} +1 -1
- package/dist/esm/{utils-a448267c.js → utils-18a922e5.js} +1 -1
- package/dist/extras/docs-json.json +1 -1
- 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/utils/conditionalSlot.d.ts +16 -0
- package/dist/types/utils/dom.d.ts +34 -0
- package/dist/types/utils/locale.d.ts +1 -2
- package/dist/types/utils/number.d.ts +13 -8
- package/hydrate/index.js +44 -46
- package/package.json +1 -1
- package/dist/calcite/p-9bf9e663.js +0 -6
- package/dist/calcite/p-c5c895c6.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.633
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -6184,6 +6184,11 @@ const observerOptions = { childList: true };
|
|
|
6184
6184
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
6185
6185
|
*
|
|
6186
6186
|
* @param component
|
|
6187
|
+
* @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
|
|
6188
|
+
*
|
|
6189
|
+
* ```
|
|
6190
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
6191
|
+
* ```
|
|
6187
6192
|
*/
|
|
6188
6193
|
function connectConditionalSlotComponent(component) {
|
|
6189
6194
|
if (!mutationObserver$1) {
|
|
@@ -6195,6 +6200,11 @@ function connectConditionalSlotComponent(component) {
|
|
|
6195
6200
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
6196
6201
|
*
|
|
6197
6202
|
* @param component
|
|
6203
|
+
* @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
|
|
6204
|
+
*
|
|
6205
|
+
* ```
|
|
6206
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
6207
|
+
* ```
|
|
6198
6208
|
*/
|
|
6199
6209
|
function disconnectConditionalSlotComponent(component) {
|
|
6200
6210
|
observed.delete(component.el);
|
|
@@ -8844,9 +8854,15 @@ function disconnectOpenCloseComponent(component) {
|
|
|
8844
8854
|
componentToTransitionListeners.delete(component);
|
|
8845
8855
|
}
|
|
8846
8856
|
|
|
8857
|
+
const defaultMinusSignRegex = new RegExp("-", "g");
|
|
8858
|
+
const unnecessaryDecimalRegex = new RegExp("\\.?0+$");
|
|
8847
8859
|
// adopted from https://stackoverflow.com/a/66939244
|
|
8848
8860
|
class BigDecimal {
|
|
8849
8861
|
constructor(input) {
|
|
8862
|
+
this.add = (num) => BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
|
|
8863
|
+
this.subtract = (num) => BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
|
|
8864
|
+
this.multiply = (num) => BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
|
|
8865
|
+
this.divide = (num) => BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
|
|
8850
8866
|
if (input instanceof BigDecimal) {
|
|
8851
8867
|
return input;
|
|
8852
8868
|
}
|
|
@@ -8856,65 +8872,47 @@ class BigDecimal {
|
|
|
8856
8872
|
BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
|
|
8857
8873
|
this.isNegative = input.charAt(0) === "-";
|
|
8858
8874
|
}
|
|
8859
|
-
|
|
8860
|
-
return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
|
|
8861
|
-
}
|
|
8862
|
-
static fromBigInt(bigint) {
|
|
8863
|
-
return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
|
|
8864
|
-
}
|
|
8865
|
-
toString() {
|
|
8875
|
+
getIntegersAndDecimals() {
|
|
8866
8876
|
const s = this.value
|
|
8867
8877
|
.toString()
|
|
8868
|
-
.replace(
|
|
8878
|
+
.replace(defaultMinusSignRegex, "")
|
|
8869
8879
|
.padStart(BigDecimal.DECIMALS + 1, "0");
|
|
8870
|
-
const
|
|
8871
|
-
const
|
|
8872
|
-
|
|
8873
|
-
|
|
8880
|
+
const integers = s.slice(0, -BigDecimal.DECIMALS);
|
|
8881
|
+
const decimals = s.slice(-BigDecimal.DECIMALS).replace(unnecessaryDecimalRegex, "");
|
|
8882
|
+
return { integers, decimals };
|
|
8883
|
+
}
|
|
8884
|
+
toString() {
|
|
8885
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
8886
|
+
return `${this.isNegative ? "-" : ""}${integers}${decimals.length ? "." + decimals : ""}`;
|
|
8874
8887
|
}
|
|
8875
8888
|
formatToParts(formatter) {
|
|
8876
|
-
const
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
const parts = formatter.formatToParts(BigInt(i));
|
|
8883
|
-
this.isNegative && parts.unshift({ type: "minusSign", value: numberStringFormatter.minusSign });
|
|
8884
|
-
if (d.length) {
|
|
8885
|
-
parts.push({ type: "decimal", value: numberStringFormatter.decimal });
|
|
8886
|
-
d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
|
|
8889
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
8890
|
+
const parts = formatter.numberFormatter.formatToParts(BigInt(integers));
|
|
8891
|
+
this.isNegative && parts.unshift({ type: "minusSign", value: formatter.minusSign });
|
|
8892
|
+
if (decimals.length) {
|
|
8893
|
+
parts.push({ type: "decimal", value: formatter.decimal });
|
|
8894
|
+
decimals.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
|
|
8887
8895
|
}
|
|
8888
8896
|
return parts;
|
|
8889
8897
|
}
|
|
8890
8898
|
format(formatter) {
|
|
8891
|
-
const
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
.
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
return `${
|
|
8900
|
-
}
|
|
8901
|
-
add(num) {
|
|
8902
|
-
return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
|
|
8903
|
-
}
|
|
8904
|
-
subtract(num) {
|
|
8905
|
-
return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
|
|
8906
|
-
}
|
|
8907
|
-
multiply(num) {
|
|
8908
|
-
return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
|
|
8909
|
-
}
|
|
8910
|
-
divide(num) {
|
|
8911
|
-
return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
|
|
8899
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
8900
|
+
const integersFormatted = `${this.isNegative ? formatter.minusSign : ""}${formatter.numberFormatter.format(BigInt(integers))}`;
|
|
8901
|
+
const decimalsFormatted = decimals.length
|
|
8902
|
+
? `${formatter.decimal}${decimals
|
|
8903
|
+
.split("")
|
|
8904
|
+
.map((char) => formatter.numberFormatter.format(Number(char)))
|
|
8905
|
+
.join("")}`
|
|
8906
|
+
: "";
|
|
8907
|
+
return `${integersFormatted}${decimalsFormatted}`;
|
|
8912
8908
|
}
|
|
8913
8909
|
}
|
|
8914
8910
|
// Configuration: constants
|
|
8915
8911
|
BigDecimal.DECIMALS = 100; // number of decimals on all instances
|
|
8916
8912
|
BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
|
|
8917
8913
|
BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
|
|
8914
|
+
BigDecimal._divRound = (dividend, divisor) => BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
|
|
8915
|
+
BigDecimal.fromBigInt = (bigint) => Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
|
|
8918
8916
|
function isValidNumber(numberString) {
|
|
8919
8917
|
return !(!numberString || isNaN(Number(numberString)));
|
|
8920
8918
|
}
|
|
@@ -9156,7 +9154,7 @@ class NumberStringFormat {
|
|
|
9156
9154
|
this.localize = (numberString) => this._numberFormatOptions
|
|
9157
9155
|
? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString.trim())
|
|
9158
9156
|
? new BigDecimal(nonExpoNumString.trim())
|
|
9159
|
-
.format(this
|
|
9157
|
+
.format(this)
|
|
9160
9158
|
.replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group)
|
|
9161
9159
|
: nonExpoNumString)
|
|
9162
9160
|
: numberString;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.632
|
|
5
|
-
*/
|
|
6
|
-
import{f as t}from"./p-4e6971c2.js";import{c as o}from"./p-2b0bfca8.js";const c=new Set;let n;const s={childList:!0};function f(t){n||(n=o("mutation",a)),n.observe(t.el,s)}function i(t){c.delete(t.el),a(n.takeRecords()),n.disconnect();for(const[t]of c.entries())n.observe(t,s)}function a(o){o.forEach((({target:o})=>{t(o)}))}export{f as c,i as d}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.632
|
|
5
|
-
*/
|
|
6
|
-
import{n as t}from"./p-a4d69d65.js";import{c as n}from"./p-2b0bfca8.js";import{c as e,b as i}from"./p-6a830477.js";class s{constructor(t){if(t instanceof s)return t;const[n,e]=String(t).split(".").concat("");this.value=BigInt(n+e.padEnd(s.DECIMALS,"0").slice(0,s.DECIMALS))+BigInt(s.ROUNDED&&e[s.DECIMALS]>="5"),this.isNegative="-"===t.charAt(0)}static _divRound(t,n){return s.fromBigInt(t/n+(s.ROUNDED?t*BigInt(2)/n%BigInt(2):BigInt(0)))}static fromBigInt(t){return Object.assign(Object.create(s.prototype),{value:t})}toString(){const t=this.value.toString().replace(new RegExp("-","g"),"").padStart(s.DECIMALS+1,"0"),n=t.slice(0,-s.DECIMALS),e=t.slice(-s.DECIMALS).replace(/\.?0+$/,""),i=n.concat(e.length?"."+e:"");return`${this.isNegative?"-":""}${i}`}formatToParts(t){const n=this.value.toString().replace(new RegExp("-","g"),"").padStart(s.DECIMALS+1,"0"),e=n.slice(0,-s.DECIMALS),i=n.slice(-s.DECIMALS).replace(/\.?0+$/,""),r=t.formatToParts(BigInt(e));return this.isNegative&&r.unshift({type:"minusSign",value:R.minusSign}),i.length&&(r.push({type:"decimal",value:R.decimal}),i.split("").forEach((t=>r.push({type:"fraction",value:t})))),r}format(t){const n=this.value.toString().replace(new RegExp("-","g"),"").padStart(s.DECIMALS+1,"0"),e=n.slice(0,-s.DECIMALS),i=n.slice(-s.DECIMALS).replace(/\.?0+$/,"");return`${this.isNegative?R.minusSign:""}${t.format(BigInt(e))}${i.length?`${R.decimal}${t.format(BigInt(i))}`:""}`}add(t){return s.fromBigInt(this.value+new s(t).value)}subtract(t){return s.fromBigInt(this.value-new s(t).value)}multiply(t){return s._divRound(this.value*new s(t).value,s.SHIFT)}divide(t){return s._divRound(this.value*s.SHIFT,new s(t).value)}}function r(t){return!(!t||isNaN(Number(t)))}function u(n){return n&&(e=n,t.some((t=>e.includes(t))))?l(n,(n=>{let e=!1;const i=n.split("").filter(((n,i)=>n.match(/\./g)&&!e?(e=!0,!0):!(!n.match(/\-/g)||0!==i)||t.includes(n))).reduce(((t,n)=>t+n));return r(i)?new s(i).toString():""})):"";var e}s.DECIMALS=100,s.ROUNDED=!0,s.SHIFT=BigInt("1"+"0".repeat(s.DECIMALS));const a=/^([-0])0+(?=\d)/,o=/(?!^\.)\.$/,h=/(?!^-)-/g,g=/^-\b0\b\.?0*$/,c=t=>l(t,(t=>{const n=t.replace(h,"").replace(o,"").replace(a,"$1");return r(n)?g.test(n)?n:new s(n).toString():t}));function l(t,n){if(!t)return t;const e=t.toLowerCase().indexOf("e")+1;return e?t.replace(/[eE]*$/g,"").substring(0,e).concat(t.slice(e).replace(/[eE]/g,"")).split(/[eE]/).map(((t,e)=>n(1===e?t.replace(/\./g,""):t))).join("e").replace(/^e/,"1e"):n(t)}const m=["ar","bg","bs","ca","cs","da","de","de-CH","el","en","en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","nb","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],d=["arab","arabext","bali","beng","deva","fullwide","gujr","guru","hanidec","khmr","knda","laoo","latn","limb","mlym","mong","mymr","orya","tamldec","telu","thai","tibt"],b=t=>d.includes(t),p=(new Intl.NumberFormat).resolvedOptions().numberingSystem,f="arab"!==p&&b(p)?p:"latn",w=t=>b(t)?t:f;function $(t){return m.indexOf(t)>-1?t:t?"nb"===(t=t.toLowerCase())?"no":(t.includes("-")&&(t=t.replace(/(\w+)-(\w+)/,((t,n,e)=>`${n}-${e.toUpperCase()}`)),m.includes(t)||(t=t.split("-")[0])),m.includes(t)?t:"en"):"en"}const v=new Set;function I(t){B(t),0===v.size&&x.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"],subtree:!0}),v.add(t)}function B(t){t.effectiveLocale=function(t){var n;return t.el.lang||t.locale||(null===(n=e(t.el,"[lang]"))||void 0===n?void 0:n.lang)||document.documentElement.lang||"en"}(t)}function E(t){v.delete(t),0===v.size&&x.disconnect()}const x=n("mutation",(t=>{t.forEach((t=>{const n=t.target;v.forEach((t=>{const s=!(!t.locale||t.el.lang),r=!i(n,t.el);if(s||r)return;const u=e(t.el,"[lang]");if(!u)return void(t.effectiveLocale="en");const a=u.lang;t.effectiveLocale=u.hasAttribute("lang")&&""===a?"en":a}))}))})),R=new class{constructor(){this.delocalize=t=>this._numberFormatOptions?l(t,(t=>t.trim().replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex))):t,this.localize=t=>this._numberFormatOptions?l(t,(t=>r(t.trim())?new s(t.trim()).format(this._numberFormatter).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):t)):t}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(t){if(t.locale=$(null==t?void 0:t.locale),t.numberingSystem=w(null==t?void 0:t.numberingSystem),!this._numberFormatOptions&&"en"===t.locale&&t.numberingSystem===f&&2===Object.keys(t).length||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();const n=new Map(this._digits.map(((t,n)=>[t,n]))),e=new Intl.NumberFormat(this._numberFormatOptions.locale).formatToParts(-12345678.9);this._actualGroup=e.find((t=>"group"===t.type)).value,this._group=0===this._actualGroup.trim().length?" ":this._actualGroup,this._decimal=e.find((t=>"decimal"===t.type)).value,this._minusSign=e.find((t=>"minusSign"===t.type)).value,this._getDigitIndex=t=>n.get(t)}};export{f as a,w as b,I as c,E as d,$ as g,r as i,R as n,u as p,c as s,B as u}
|