@esri/calcite-components 1.0.0-next.631 → 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-9e985ad3.js → p-004dc91c.js} +1 -1
- package/dist/calcite/{p-256dd63d.js → p-035fa26b.js} +1 -1
- package/dist/calcite/{p-c7d55f76.js → p-05c3789b.js} +1 -1
- package/dist/calcite/{p-09d0b7df.entry.js → p-09749684.entry.js} +2 -2
- package/dist/calcite/{p-fb7f07bc.entry.js → p-0d96f830.entry.js} +2 -2
- package/dist/calcite/p-0f31433c.entry.js +6 -0
- package/dist/calcite/{p-74f724b5.entry.js → p-12f64f8b.entry.js} +2 -2
- package/dist/calcite/{p-829c6736.entry.js → p-14a7da73.entry.js} +2 -2
- package/dist/calcite/{p-b600b3f2.entry.js → p-1806b759.entry.js} +2 -2
- package/dist/calcite/{p-c566271a.js → p-18b9b69e.js} +1 -1
- package/dist/calcite/{p-3d2bd3a6.entry.js → p-18f9b87b.entry.js} +2 -2
- package/dist/calcite/{p-a1a76d84.entry.js → p-1cebb96f.entry.js} +2 -2
- package/dist/calcite/{p-2122e0d1.js → p-22c8223d.js} +1 -1
- package/dist/calcite/{p-b2e36784.js → p-24681cc9.js} +1 -1
- package/dist/calcite/{p-d61be3b7.entry.js → p-266871ba.entry.js} +2 -2
- package/dist/calcite/{p-cb7557e3.entry.js → p-26b693c2.entry.js} +2 -2
- package/dist/calcite/{p-63c436be.entry.js → p-29cf00c4.entry.js} +2 -2
- package/dist/calcite/{p-640cf4fa.entry.js → p-2a52b1af.entry.js} +2 -2
- package/dist/calcite/{p-f5f0f20c.entry.js → p-2c730d84.entry.js} +2 -2
- package/dist/calcite/{p-471d7ed4.js → p-2c9d7402.js} +2 -2
- package/dist/calcite/{p-423f219f.entry.js → p-2ebffb8e.entry.js} +2 -2
- package/dist/calcite/{p-d1e085b3.entry.js → p-308ed699.entry.js} +2 -2
- package/dist/calcite/{p-e9ed1444.js → p-31090aba.js} +1 -1
- package/dist/calcite/{p-852c2b37.js → p-319d0fb7.js} +2 -2
- package/dist/calcite/{p-b02b3316.js → p-32abefe9.js} +1 -1
- package/dist/calcite/{p-e5b8fd94.entry.js → p-3bb21f63.entry.js} +2 -2
- package/dist/calcite/p-3cc531b1.entry.js +6 -0
- package/dist/calcite/{p-ac49a5fc.entry.js → p-3d69f172.entry.js} +2 -2
- package/dist/calcite/p-3e9f366c.entry.js +6 -0
- package/dist/calcite/{p-030f8c3f.js → p-3ed7f5b5.js} +2 -2
- package/dist/calcite/p-42f22b60.js +6 -0
- package/dist/calcite/{p-66124d87.entry.js → p-431e0692.entry.js} +2 -2
- package/dist/calcite/{p-ec473061.js → p-4794e7df.js} +1 -1
- package/dist/calcite/{p-ddb93587.js → p-498de00a.js} +2 -2
- package/dist/calcite/{p-ba4b8115.entry.js → p-49a5573d.entry.js} +2 -2
- package/dist/calcite/p-4ada52dc.entry.js +6 -0
- package/dist/calcite/{p-08a381ac.js → p-4f72fc01.js} +1 -1
- package/dist/calcite/p-513fef9a.js +6 -0
- package/dist/calcite/{p-941609dd.js → p-5215672d.js} +2 -2
- package/dist/calcite/p-58de9d51.entry.js +6 -0
- package/dist/calcite/{p-25a557a3.entry.js → p-5c05198d.entry.js} +2 -2
- package/dist/calcite/p-5f59c538.entry.js +6 -0
- package/dist/calcite/{p-f2b115a1.entry.js → p-69d9a248.entry.js} +2 -2
- package/dist/calcite/{p-cc4a1d2e.entry.js → p-6bc879e0.entry.js} +2 -2
- package/dist/calcite/{p-ee6ce295.entry.js → p-6f30e051.entry.js} +2 -2
- package/dist/calcite/{p-93bd2d29.entry.js → p-73f93e1c.entry.js} +2 -2
- package/dist/calcite/{p-b00b7eb4.entry.js → p-77658bab.entry.js} +2 -2
- package/dist/calcite/{p-a6ad1cf2.entry.js → p-7def899e.entry.js} +2 -2
- package/dist/calcite/{p-3b385f23.entry.js → p-8021f786.entry.js} +2 -2
- package/dist/calcite/{p-680c3505.entry.js → p-810fcf41.entry.js} +2 -2
- package/dist/calcite/p-83617657.entry.js +16 -0
- package/dist/calcite/{p-6765a427.entry.js → p-953012fa.entry.js} +2 -2
- package/dist/calcite/{p-0aef0b8f.js → p-a2ab3648.js} +2 -2
- package/dist/calcite/{p-401439ec.entry.js → p-a359b901.entry.js} +2 -2
- package/dist/calcite/{p-d3910b2c.entry.js → p-a6f1ebf6.entry.js} +2 -2
- package/dist/calcite/{p-c079c310.js → p-ab3812ba.js} +1 -1
- package/dist/calcite/{p-afc65e56.entry.js → p-ac3ace5c.entry.js} +2 -2
- package/dist/calcite/{p-d248def9.entry.js → p-ac5e38a2.entry.js} +2 -2
- package/dist/calcite/{p-529b296e.js → p-b672fd97.js} +2 -2
- package/dist/calcite/{p-2f873464.entry.js → p-b7fbe5a9.entry.js} +2 -2
- package/dist/calcite/{p-4db062a5.entry.js → p-bb73d51b.entry.js} +2 -2
- package/dist/calcite/{p-30cff6ab.entry.js → p-bbd46504.entry.js} +2 -2
- package/dist/calcite/p-c24271dc.entry.js +6 -0
- package/dist/calcite/{p-7677636b.js → p-c3d50492.js} +1 -1
- package/dist/calcite/{p-34b91fe7.js → p-c8640992.js} +1 -1
- package/dist/calcite/{p-1df431db.entry.js → p-cb016c52.entry.js} +2 -2
- package/dist/calcite/{p-f80307a8.entry.js → p-cc2c16c4.entry.js} +2 -2
- package/dist/calcite/{p-ec7b54ca.js → p-cfaa9ea8.js} +2 -2
- package/dist/calcite/p-d010539f.entry.js +6 -0
- package/dist/calcite/p-d0681fe7.js +6 -0
- package/dist/calcite/{p-1ed5c382.js → p-d17b8ee9.js} +2 -2
- package/dist/calcite/{p-2a5bd5de.js → p-d25a6228.js} +1 -1
- package/dist/calcite/{p-6c655030.entry.js → p-d26767ec.entry.js} +2 -2
- package/dist/calcite/{p-e2380d5f.entry.js → p-d2f83c6a.entry.js} +2 -2
- package/dist/calcite/p-d4246ab6.js +6 -0
- package/dist/calcite/{p-9ac63c64.entry.js → p-d52deb05.entry.js} +2 -2
- package/dist/calcite/{p-9eb0a60c.entry.js → p-d5a92819.entry.js} +2 -2
- package/dist/calcite/{p-0207a04b.entry.js → p-d728f7e7.entry.js} +2 -2
- package/dist/calcite/{p-69333e74.entry.js → p-d935cc1b.entry.js} +2 -2
- package/dist/calcite/{p-22a21d2f.entry.js → p-da667566.entry.js} +2 -2
- package/dist/calcite/{p-eccd1832.entry.js → p-db293e50.entry.js} +2 -2
- package/dist/calcite/{p-12c4354b.entry.js → p-dcad31e0.entry.js} +2 -2
- package/dist/calcite/{p-f0a5c1cf.entry.js → p-ddb1b9bb.entry.js} +2 -2
- package/dist/calcite/{p-b3f707d1.js → p-deb7df1e.js} +1 -1
- package/dist/calcite/p-e2db7cb6.entry.js +6 -0
- package/dist/calcite/{p-676113f7.entry.js → p-e64e5cdc.entry.js} +2 -2
- package/dist/calcite/{p-a5925283.entry.js → p-e8d83a55.entry.js} +2 -2
- package/dist/calcite/p-f61babd1.js +6 -0
- package/dist/calcite/{p-67c2d744.entry.js → p-fb3e8b9b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-eec7a74a.js → ExpandToggle-3cab12e1.js} +5 -5
- package/dist/cjs/{Heading-96c57bf1.js → Heading-79adac08.js} +3 -3
- package/dist/cjs/{app-globals-36bb7e5f.js → app-globals-0e5a6ce5.js} +2 -2
- package/dist/cjs/{array-144c5568.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 +11 -12
- 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 +12 -12
- 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 +9 -9
- 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 +10 -11
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +1281 -134
- 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 +11 -11
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +33 -13
- package/dist/cjs/calcite-popover_2.cjs.entry.js +12 -13
- 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 +54 -56
- 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 +30 -12
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-7f4a8e10.js → conditionalSlot-1322fc35.js} +13 -3
- package/dist/cjs/{debounce-3d8e527c.js → debounce-0f9e9abc.js} +1 -1
- package/dist/cjs/{dom-1c0b6833.js → dom-13de8dae.js} +3 -4
- package/dist/cjs/{filter-a043da6d.js → filter-b64d328c.js} +2 -2
- package/dist/cjs/{floating-ui-78db6436.js → floating-ui-81762090.js} +4 -4
- package/dist/cjs/{form-5cda2366.js → form-5d8e6d3d.js} +3 -3
- package/dist/cjs/{guid-0bb5fc1b.js → guid-4c424c40.js} +1 -1
- package/dist/cjs/{index-5bdde370.js → index-a6176241.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-19caf709.js → interactive-4c92331d.js} +1 -1
- package/dist/cjs/{interfaces-e83765f7.js → interfaces-31dee91d.js} +1 -1
- package/dist/cjs/{key-42ab632f.js → key-98575516.js} +1 -1
- package/dist/cjs/{label-2cc97ee2.js → label-40d2674d.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-e755b3f7.js → locale-59a564a4.js} +37 -49
- package/dist/cjs/{math-976c29c4.js → math-434fe599.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-0e526ecf.js → nonChromiumPlatformUtils-4af36414.js} +6 -6
- package/dist/cjs/{observers-bcbecbbd.js → observers-5bc9fe46.js} +1 -1
- package/dist/cjs/{openCloseComponent-edbc7b2a.js → openCloseComponent-67cd4a5b.js} +1 -1
- package/dist/cjs/{resources-17fc0687.js → resources-69bd2041.js} +1 -1
- package/dist/cjs/{resources-511507b8.js → resources-73628073.js} +1 -1
- package/dist/cjs/{resources-749ca3c0.js → resources-a28e66cd.js} +1 -1
- package/dist/cjs/{resources-5fdad010.js → resources-a665ff66.js} +1 -3
- package/dist/cjs/{resources-1a9c1993.js → resources-aace079b.js} +3 -5
- package/dist/cjs/{resources-b4931f11.js → resources-e3e0e1e3.js} +39 -15
- package/dist/cjs/{sortable.esm-037a4c16.js → sortable.esm-c1959d54.js} +1 -1
- package/dist/cjs/{utils-ecc37d9b.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 +3 -3
- package/dist/collection/components/block/resources.js +1 -2
- 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 +3 -3
- package/dist/collection/components/date-picker/resources.js +1 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -3
- package/dist/collection/components/list-item-group/resources.js +1 -2
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +15 -28
- 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 +3 -3
- package/dist/collection/components/panel/resources.js +1 -2
- package/dist/collection/components/pick-list/pick-list.js +100 -2
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +31 -7
- package/dist/collection/components/pick-list/shared-list-render.js +3 -3
- package/dist/collection/components/pick-list-group/pick-list-group.js +2 -3
- package/dist/collection/components/pick-list-group/resources.js +1 -2
- 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 +3 -3
- package/dist/collection/components/popover/resources.js +1 -2
- 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 -3
- package/dist/collection/components/tip/tip.js +3 -3
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -2
- package/dist/collection/components/tip-manager/tip-manager.js +3 -3
- 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 +98 -2
- 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 +53 -0
- 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 +2 -2
- 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 +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 +2 -3
- 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 +2 -3
- 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 +1275 -128
- 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 +3 -3
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +25 -2
- 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 +2 -2
- 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 +28 -3
- package/dist/components/calcite-tip.js +2 -4
- 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 +23 -2
- 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 +2 -2
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +2 -3
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +2 -2
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +2 -2
- 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 +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 +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +35 -47
- 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 +2 -3
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +2 -3
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +2 -3
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +34 -10
- 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 +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-8d1a3315.js → ExpandToggle-c1666d9f.js} +5 -5
- package/dist/esm/{Heading-fdaf2441.js → Heading-6f3b27d7.js} +3 -3
- package/dist/esm/{app-globals-62f1ea5d.js → app-globals-dc53e887.js} +2 -2
- package/dist/esm/{array-a3f4690d.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 +11 -12
- 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 +12 -12
- 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 +9 -9
- 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 +10 -11
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +1281 -134
- 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 +11 -11
- package/dist/esm/calcite-pick-list_3.entry.js +33 -13
- package/dist/esm/calcite-popover_2.entry.js +12 -13
- 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 +54 -56
- 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 +30 -12
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-7a623ab3.js → conditionalSlot-65d395e3.js} +13 -3
- package/dist/esm/{debounce-65d04f40.js → debounce-150a7fe8.js} +1 -1
- package/dist/esm/{dom-6ced0696.js → dom-cc5c3984.js} +4 -4
- package/dist/esm/{filter-a94d668f.js → filter-1ebb2c6b.js} +2 -2
- package/dist/esm/{floating-ui-88f3cab2.js → floating-ui-93789309.js} +4 -4
- package/dist/esm/{form-796899b4.js → form-255c911d.js} +3 -3
- package/dist/esm/{guid-4e7e998d.js → guid-f9660e6f.js} +1 -1
- package/dist/esm/{index-ee2154b8.js → index-d2393e84.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-c01b3adc.js → interactive-26a4cd50.js} +1 -1
- package/dist/esm/{interfaces-6e1adc71.js → interfaces-36e4a241.js} +1 -1
- package/dist/esm/{key-29710632.js → key-a4eb4c7a.js} +1 -1
- package/dist/esm/{label-d97fd95f.js → label-958c6dcb.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-9344d29f.js → locale-356e61ad.js} +37 -49
- package/dist/esm/{math-43507cd0.js → math-edfa7bd5.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-733b22ab.js → nonChromiumPlatformUtils-0826d52b.js} +6 -6
- package/dist/esm/{observers-3e969148.js → observers-8a9fc943.js} +1 -1
- package/dist/esm/{openCloseComponent-2c95053e.js → openCloseComponent-759e2351.js} +1 -1
- package/dist/esm/{resources-2c83579b.js → resources-03d3cf60.js} +2 -3
- package/dist/esm/{resources-07ad5aa9.js → resources-0fd6d659.js} +1 -1
- package/dist/esm/{resources-78c5b4d1.js → resources-64a95f35.js} +1 -1
- package/dist/esm/{resources-a8c464a5.js → resources-b9c5aaf9.js} +1 -1
- package/dist/esm/{resources-f36e2798.js → resources-c578caf8.js} +38 -15
- package/dist/esm/{resources-bc4bdc72.js → resources-d313bb62.js} +4 -5
- package/dist/esm/{sortable.esm-a5c12724.js → sortable.esm-6298e963.js} +1 -1
- package/dist/esm/{utils-e8657244.js → utils-18a922e5.js} +1 -1
- package/dist/extras/docs-json.json +131 -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/components/block/resources.d.ts +0 -1
- package/dist/types/components/date-picker/resources.d.ts +0 -1
- package/dist/types/components/functional/Heading.d.ts +1 -1
- package/dist/types/components/list-item-group/resources.d.ts +0 -1
- package/dist/types/components/modal/modal.d.ts +4 -4
- package/dist/types/components/panel/resources.d.ts +0 -1
- package/dist/types/components/pick-list/pick-list.d.ts +24 -0
- package/dist/types/components/pick-list/shared-list-logic.d.ts +4 -1
- package/dist/types/components/pick-list/shared-list-render.d.ts +4 -1
- package/dist/types/components/pick-list-group/resources.d.ts +0 -1
- package/dist/types/components/popover/resources.d.ts +0 -1
- package/dist/types/components/tip/resources.d.ts +0 -2
- package/dist/types/components/tip-manager/resources.d.ts +0 -1
- package/dist/types/components/value-list/value-list.d.ts +23 -0
- package/dist/types/components.d.ts +65 -1
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/utils/conditionalSlot.d.ts +16 -0
- package/dist/types/utils/dom.d.ts +34 -0
- package/dist/types/utils/focusTrapComponent.d.ts +33 -0
- package/dist/types/utils/locale.d.ts +1 -2
- package/dist/types/utils/number.d.ts +13 -8
- package/hydrate/index.js +1453 -248
- package/package.json +2 -2
- package/dist/calcite/p-079e3c1e.js +0 -6
- package/dist/calcite/p-1993b247.js +0 -6
- package/dist/calcite/p-1a291a99.entry.js +0 -6
- package/dist/calcite/p-23f31b98.entry.js +0 -6
- package/dist/calcite/p-3a4f8c9a.entry.js +0 -6
- package/dist/calcite/p-5d9f0c37.entry.js +0 -6
- package/dist/calcite/p-8557fe8d.entry.js +0 -6
- package/dist/calcite/p-86c3dd63.entry.js +0 -6
- package/dist/calcite/p-8afa3d3c.js +0 -6
- package/dist/calcite/p-8d81edd4.entry.js +0 -6
- package/dist/calcite/p-9460a0c0.js +0 -6
- package/dist/calcite/p-9c6f7a63.entry.js +0 -6
- package/dist/calcite/p-a5fed565.entry.js +0 -6
- package/dist/calcite/p-b3571ee3.js +0 -6
- package/dist/calcite/p-e1084c73.entry.js +0 -6
- package/dist/components/resources3.js +0 -33
|
@@ -1,12 +1,12 @@
|
|
|
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
|
import Sortable from "sortablejs";
|
|
7
7
|
import { h } from "@stencil/core";
|
|
8
8
|
import { CSS, ICON_TYPES } from "./resources";
|
|
9
|
-
import { calciteListFocusOutHandler, calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, initialize, initializeObserver, keyDownHandler, mutationObserverCallback, removeItem, selectSiblings, setFocus, setUpItems, moveItemIndex } from "../pick-list/shared-list-logic";
|
|
9
|
+
import { calciteListFocusOutHandler, calciteListItemChangeHandler, calciteInternalListItemValueChangeHandler, cleanUpObserver, deselectSiblingItems, deselectRemovedItems, getItemData, handleFilter, handleFilterEvent, handleInitialFilter, initialize, initializeObserver, keyDownHandler, mutationObserverCallback, removeItem, selectSiblings, setFocus, setUpItems, moveItemIndex } from "../pick-list/shared-list-logic";
|
|
10
10
|
import List from "../pick-list/shared-list-render";
|
|
11
11
|
import { createObserver } from "../../utils/observers";
|
|
12
12
|
import { updateHostInteraction } from "../../utils/interactive";
|
|
@@ -30,6 +30,18 @@ export class ValueList {
|
|
|
30
30
|
* When `true`, `calcite-value-list-item`s are sortable via a draggable button.
|
|
31
31
|
*/
|
|
32
32
|
this.dragEnabled = false;
|
|
33
|
+
/**
|
|
34
|
+
* **read-only** The currently filtered items
|
|
35
|
+
*
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
this.filteredItems = [];
|
|
39
|
+
/**
|
|
40
|
+
* **read-only** The currently filtered items
|
|
41
|
+
*
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
this.filteredData = [];
|
|
33
45
|
/**
|
|
34
46
|
* When `true`, an input appears at the top of the component that can be used by end users to filter list items.
|
|
35
47
|
*/
|
|
@@ -61,10 +73,14 @@ export class ValueList {
|
|
|
61
73
|
this.setFilterEl = (el) => {
|
|
62
74
|
this.filterEl = el;
|
|
63
75
|
};
|
|
76
|
+
this.setFilteredItems = (filteredItems) => {
|
|
77
|
+
this.filteredItems = filteredItems;
|
|
78
|
+
};
|
|
64
79
|
this.deselectRemovedItems = deselectRemovedItems.bind(this);
|
|
65
80
|
this.deselectSiblingItems = deselectSiblingItems.bind(this);
|
|
66
81
|
this.selectSiblings = selectSiblings.bind(this);
|
|
67
82
|
this.handleFilter = handleFilter.bind(this);
|
|
83
|
+
this.handleFilterEvent = handleFilterEvent.bind(this);
|
|
68
84
|
this.getItemData = getItemData.bind(this);
|
|
69
85
|
this.keyDownHandler = (event) => {
|
|
70
86
|
if (event.defaultPrevented) {
|
|
@@ -125,6 +141,7 @@ export class ValueList {
|
|
|
125
141
|
}
|
|
126
142
|
componentDidLoad() {
|
|
127
143
|
this.setUpDragAndDrop();
|
|
144
|
+
handleInitialFilter.call(this);
|
|
128
145
|
}
|
|
129
146
|
componentDidRender() {
|
|
130
147
|
updateHostInteraction(this);
|
|
@@ -281,6 +298,53 @@ export class ValueList {
|
|
|
281
298
|
"reflect": true,
|
|
282
299
|
"defaultValue": "false"
|
|
283
300
|
},
|
|
301
|
+
"filteredItems": {
|
|
302
|
+
"type": "unknown",
|
|
303
|
+
"mutable": true,
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "HTMLCalciteValueListItemElement[]",
|
|
306
|
+
"resolved": "HTMLCalciteValueListItemElement[]",
|
|
307
|
+
"references": {
|
|
308
|
+
"HTMLCalciteValueListItemElement": {
|
|
309
|
+
"location": "global"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"required": false,
|
|
314
|
+
"optional": false,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [{
|
|
317
|
+
"name": "readonly",
|
|
318
|
+
"text": undefined
|
|
319
|
+
}],
|
|
320
|
+
"text": "**read-only** The currently filtered items"
|
|
321
|
+
},
|
|
322
|
+
"defaultValue": "[]"
|
|
323
|
+
},
|
|
324
|
+
"filteredData": {
|
|
325
|
+
"type": "unknown",
|
|
326
|
+
"mutable": true,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "ItemData",
|
|
329
|
+
"resolved": "{ label: string; description: string; metadata: Record<string, unknown>; value: string; }[]",
|
|
330
|
+
"references": {
|
|
331
|
+
"ItemData": {
|
|
332
|
+
"location": "import",
|
|
333
|
+
"path": "../pick-list/shared-list-logic"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": false,
|
|
338
|
+
"optional": false,
|
|
339
|
+
"docs": {
|
|
340
|
+
"tags": [{
|
|
341
|
+
"name": "readonly",
|
|
342
|
+
"text": undefined
|
|
343
|
+
}],
|
|
344
|
+
"text": "**read-only** The currently filtered items"
|
|
345
|
+
},
|
|
346
|
+
"defaultValue": "[]"
|
|
347
|
+
},
|
|
284
348
|
"filterEnabled": {
|
|
285
349
|
"type": "boolean",
|
|
286
350
|
"mutable": false,
|
|
@@ -316,6 +380,23 @@ export class ValueList {
|
|
|
316
380
|
"attribute": "filter-placeholder",
|
|
317
381
|
"reflect": true
|
|
318
382
|
},
|
|
383
|
+
"filterText": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"mutable": true,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "string",
|
|
388
|
+
"resolved": "string",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Text for the filter input field."
|
|
396
|
+
},
|
|
397
|
+
"attribute": "filter-text",
|
|
398
|
+
"reflect": true
|
|
399
|
+
},
|
|
319
400
|
"group": {
|
|
320
401
|
"type": "string",
|
|
321
402
|
"mutable": false,
|
|
@@ -501,6 +582,21 @@ export class ValueList {
|
|
|
501
582
|
"resolved": "any[]",
|
|
502
583
|
"references": {}
|
|
503
584
|
}
|
|
585
|
+
}, {
|
|
586
|
+
"method": "calciteListFilter",
|
|
587
|
+
"name": "calciteListFilter",
|
|
588
|
+
"bubbles": true,
|
|
589
|
+
"cancelable": false,
|
|
590
|
+
"composed": true,
|
|
591
|
+
"docs": {
|
|
592
|
+
"tags": [],
|
|
593
|
+
"text": "Emits when a filter has changed."
|
|
594
|
+
},
|
|
595
|
+
"complexType": {
|
|
596
|
+
"original": "void",
|
|
597
|
+
"resolved": "void",
|
|
598
|
+
"references": {}
|
|
599
|
+
}
|
|
504
600
|
}];
|
|
505
601
|
}
|
|
506
602
|
static get methods() {
|
|
@@ -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
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { ICON_TYPES } from "../pick-list/resources";
|
|
@@ -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
|
export function getRoundRobinIndex(index, total) {
|
|
7
7
|
return (index + total) % total;
|
|
@@ -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
|
import { forceUpdate } from "@stencil/core";
|
|
7
7
|
import { createObserver } from "./observers";
|
|
@@ -12,6 +12,11 @@ const observerOptions = { childList: true };
|
|
|
12
12
|
* Helper to set up a conditional slot component on connectedCallback.
|
|
13
13
|
*
|
|
14
14
|
* @param component
|
|
15
|
+
* @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
|
|
16
|
+
*
|
|
17
|
+
* ```
|
|
18
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
19
|
+
* ```
|
|
15
20
|
*/
|
|
16
21
|
export function connectConditionalSlotComponent(component) {
|
|
17
22
|
if (!mutationObserver) {
|
|
@@ -23,6 +28,11 @@ export function connectConditionalSlotComponent(component) {
|
|
|
23
28
|
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
24
29
|
*
|
|
25
30
|
* @param component
|
|
31
|
+
* @deprecated Use `onSlotchange` event with `slotChangeHasAssignedElement` DOM utility instead.
|
|
32
|
+
*
|
|
33
|
+
* ```
|
|
34
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
35
|
+
* ```
|
|
26
36
|
*/
|
|
27
37
|
export function disconnectConditionalSlotComponent(component) {
|
|
28
38
|
observed.delete(component.el);
|
|
@@ -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
|
/**
|
|
7
7
|
* This module helps users provide custom configuration for component internals.
|
|
@@ -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
|
import { numberStringFormatter } from "./locale";
|
|
7
7
|
/**
|
|
@@ -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
|
import { CSS_UTILITY } from "./resources";
|
|
7
7
|
import { guid } from "./guid";
|
|
@@ -193,6 +193,34 @@ export function intersects(rect1, rect2) {
|
|
|
193
193
|
export function toAriaBoolean(value) {
|
|
194
194
|
return Boolean(value).toString();
|
|
195
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* This helper returns `true` if the target `slot` element from the `onSlotchange` event has an assigned element.
|
|
198
|
+
*
|
|
199
|
+
* ```
|
|
200
|
+
* <slot onSlotchange={(event) => this.mySlotHasElement = slotChangeHasAssignedElement(event)} />}
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @param event
|
|
204
|
+
* @returns {boolean} Whether the slot has any assigned elements.
|
|
205
|
+
*/
|
|
206
|
+
export function slotChangeHasAssignedElement(event) {
|
|
207
|
+
return !!slotChangeGetAssignedElements(event).length;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* This helper returns the assigned elements on a `slot` element from the `onSlotchange` event.
|
|
211
|
+
*
|
|
212
|
+
* ```
|
|
213
|
+
* <slot onSlotchange={(event) => this.mySlotElements = slotChangeGetAssignedElements(event)} />}
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @param event
|
|
217
|
+
* @returns {boolean} Whether the slot has any assigned elements.
|
|
218
|
+
*/
|
|
219
|
+
export function slotChangeGetAssignedElements(event) {
|
|
220
|
+
return event.target.assignedElements({
|
|
221
|
+
flatten: true
|
|
222
|
+
});
|
|
223
|
+
}
|
|
196
224
|
/**
|
|
197
225
|
* This helper returns true if the pointer event fired from the primary button of the device.
|
|
198
226
|
*
|
|
@@ -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
|
import { escapeRegExp, forIn } from "lodash-es";
|
|
7
7
|
export const filter = (data, value) => {
|
|
@@ -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
|
import { rectToClientRect } from "@floating-ui/core";
|
|
7
7
|
/**
|
|
@@ -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
|
import { arrow, autoPlacement, autoUpdate, computePosition, flip, hide, offset, platform, shift } from "@floating-ui/dom";
|
|
7
7
|
import { closestElementCrossShadowBoundary, getElementDir } from "./dom";
|
|
@@ -0,0 +1,53 @@
|
|
|
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.633
|
|
5
|
+
*/
|
|
6
|
+
import { createFocusTrap } from "focus-trap";
|
|
7
|
+
import { focusElement } from "./dom";
|
|
8
|
+
/**
|
|
9
|
+
* Helper to set up focus trap component.
|
|
10
|
+
*
|
|
11
|
+
* @param component
|
|
12
|
+
*/
|
|
13
|
+
export function connectFocusTrap(component) {
|
|
14
|
+
const { focusTrapEl } = component;
|
|
15
|
+
if (!focusTrapEl) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (focusTrapEl.tabIndex == null) {
|
|
19
|
+
focusTrapEl.tabIndex = -1;
|
|
20
|
+
}
|
|
21
|
+
const focusTrapOptions = {
|
|
22
|
+
allowOutsideClick: true,
|
|
23
|
+
clickOutsideDeactivates: false,
|
|
24
|
+
escapeDeactivates: false,
|
|
25
|
+
fallbackFocus: focusTrapEl,
|
|
26
|
+
setReturnFocus: (el) => {
|
|
27
|
+
focusElement(el);
|
|
28
|
+
return false;
|
|
29
|
+
},
|
|
30
|
+
tabbableOptions: {
|
|
31
|
+
getShadowRoot: true
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
component.focusTrap = createFocusTrap(focusTrapEl, focusTrapOptions);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Helper to activate focus trap component.
|
|
38
|
+
*
|
|
39
|
+
* @param component
|
|
40
|
+
*/
|
|
41
|
+
export function activateFocusTrap(component) {
|
|
42
|
+
var _a;
|
|
43
|
+
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.activate();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Helper to tear deactivate focus trap component.
|
|
47
|
+
*
|
|
48
|
+
* @param component
|
|
49
|
+
*/
|
|
50
|
+
export function deactivateFocusTrap(component) {
|
|
51
|
+
var _a;
|
|
52
|
+
(_a = component.focusTrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
53
|
+
}
|
|
@@ -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
|
import { closestElementCrossShadowBoundary } from "./dom";
|
|
7
7
|
import { h } from "@stencil/core";
|
|
@@ -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
|
import { createObserver } from "./observers";
|
|
7
7
|
const allowedGlobalAttributes = ["lang"];
|
|
@@ -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
|
import { initThemeChangeEvent } from "./theme";
|
|
7
7
|
/**
|
|
@@ -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
|
export function isActivationKey(key) {
|
|
7
7
|
return key === "Enter" || key === " ";
|
|
@@ -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
|
import { closestElementCrossShadowBoundary, queryElementRoots } from "./dom";
|
|
7
7
|
/**
|
|
@@ -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
|
import { BigDecimal, isValidNumber, sanitizeExponentialNumberString } from "./number";
|
|
7
7
|
import { createObserver } from "./observers";
|
|
@@ -188,7 +188,7 @@ function getLocale(component) {
|
|
|
188
188
|
/**
|
|
189
189
|
* This util formats and parses numbers for localization
|
|
190
190
|
*/
|
|
191
|
-
class NumberStringFormat {
|
|
191
|
+
export class NumberStringFormat {
|
|
192
192
|
constructor() {
|
|
193
193
|
this.delocalize = (numberString) =>
|
|
194
194
|
// For performance, (de)localization is skipped if the formatter isn't initialized.
|
|
@@ -205,7 +205,7 @@ class NumberStringFormat {
|
|
|
205
205
|
this.localize = (numberString) => this._numberFormatOptions
|
|
206
206
|
? sanitizeExponentialNumberString(numberString, (nonExpoNumString) => isValidNumber(nonExpoNumString.trim())
|
|
207
207
|
? new BigDecimal(nonExpoNumString.trim())
|
|
208
|
-
.format(this
|
|
208
|
+
.format(this)
|
|
209
209
|
.replace(new RegExp(`[${this._actualGroup}]`, "g"), this._group)
|
|
210
210
|
: nonExpoNumString)
|
|
211
211
|
: numberString;
|
|
@@ -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
|
export const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
|
7
7
|
export const decimalPlaces = (value) => {
|
|
@@ -1,13 +1,18 @@
|
|
|
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
|
import { numberKeys } from "./key";
|
|
7
|
-
|
|
7
|
+
const defaultMinusSignRegex = new RegExp("-", "g");
|
|
8
|
+
const unnecessaryDecimalRegex = new RegExp("\\.?0+$");
|
|
8
9
|
// adopted from https://stackoverflow.com/a/66939244
|
|
9
10
|
export class BigDecimal {
|
|
10
11
|
constructor(input) {
|
|
12
|
+
this.add = (num) => BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
|
|
13
|
+
this.subtract = (num) => BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
|
|
14
|
+
this.multiply = (num) => BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
|
|
15
|
+
this.divide = (num) => BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
|
|
11
16
|
if (input instanceof BigDecimal) {
|
|
12
17
|
return input;
|
|
13
18
|
}
|
|
@@ -17,65 +22,47 @@ export class BigDecimal {
|
|
|
17
22
|
BigInt(BigDecimal.ROUNDED && decimals[BigDecimal.DECIMALS] >= "5");
|
|
18
23
|
this.isNegative = input.charAt(0) === "-";
|
|
19
24
|
}
|
|
20
|
-
|
|
21
|
-
return BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
|
|
22
|
-
}
|
|
23
|
-
static fromBigInt(bigint) {
|
|
24
|
-
return Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
|
|
25
|
-
}
|
|
26
|
-
toString() {
|
|
25
|
+
getIntegersAndDecimals() {
|
|
27
26
|
const s = this.value
|
|
28
27
|
.toString()
|
|
29
|
-
.replace(
|
|
28
|
+
.replace(defaultMinusSignRegex, "")
|
|
30
29
|
.padStart(BigDecimal.DECIMALS + 1, "0");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
const integers = s.slice(0, -BigDecimal.DECIMALS);
|
|
31
|
+
const decimals = s.slice(-BigDecimal.DECIMALS).replace(unnecessaryDecimalRegex, "");
|
|
32
|
+
return { integers, decimals };
|
|
33
|
+
}
|
|
34
|
+
toString() {
|
|
35
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
36
|
+
return `${this.isNegative ? "-" : ""}${integers}${decimals.length ? "." + decimals : ""}`;
|
|
35
37
|
}
|
|
36
38
|
formatToParts(formatter) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const parts = formatter.formatToParts(BigInt(i));
|
|
44
|
-
this.isNegative && parts.unshift({ type: "minusSign", value: numberStringFormatter.minusSign });
|
|
45
|
-
if (d.length) {
|
|
46
|
-
parts.push({ type: "decimal", value: numberStringFormatter.decimal });
|
|
47
|
-
d.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
|
|
39
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
40
|
+
const parts = formatter.numberFormatter.formatToParts(BigInt(integers));
|
|
41
|
+
this.isNegative && parts.unshift({ type: "minusSign", value: formatter.minusSign });
|
|
42
|
+
if (decimals.length) {
|
|
43
|
+
parts.push({ type: "decimal", value: formatter.decimal });
|
|
44
|
+
decimals.split("").forEach((char) => parts.push({ type: "fraction", value: char }));
|
|
48
45
|
}
|
|
49
46
|
return parts;
|
|
50
47
|
}
|
|
51
48
|
format(formatter) {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return `${
|
|
61
|
-
}
|
|
62
|
-
add(num) {
|
|
63
|
-
return BigDecimal.fromBigInt(this.value + new BigDecimal(num).value);
|
|
64
|
-
}
|
|
65
|
-
subtract(num) {
|
|
66
|
-
return BigDecimal.fromBigInt(this.value - new BigDecimal(num).value);
|
|
67
|
-
}
|
|
68
|
-
multiply(num) {
|
|
69
|
-
return BigDecimal._divRound(this.value * new BigDecimal(num).value, BigDecimal.SHIFT);
|
|
70
|
-
}
|
|
71
|
-
divide(num) {
|
|
72
|
-
return BigDecimal._divRound(this.value * BigDecimal.SHIFT, new BigDecimal(num).value);
|
|
49
|
+
const { integers, decimals } = this.getIntegersAndDecimals();
|
|
50
|
+
const integersFormatted = `${this.isNegative ? formatter.minusSign : ""}${formatter.numberFormatter.format(BigInt(integers))}`;
|
|
51
|
+
const decimalsFormatted = decimals.length
|
|
52
|
+
? `${formatter.decimal}${decimals
|
|
53
|
+
.split("")
|
|
54
|
+
.map((char) => formatter.numberFormatter.format(Number(char)))
|
|
55
|
+
.join("")}`
|
|
56
|
+
: "";
|
|
57
|
+
return `${integersFormatted}${decimalsFormatted}`;
|
|
73
58
|
}
|
|
74
59
|
}
|
|
75
60
|
// Configuration: constants
|
|
76
61
|
BigDecimal.DECIMALS = 100; // number of decimals on all instances
|
|
77
62
|
BigDecimal.ROUNDED = true; // numbers are truncated (false) or rounded (true)
|
|
78
63
|
BigDecimal.SHIFT = BigInt("1" + "0".repeat(BigDecimal.DECIMALS)); // derived constant
|
|
64
|
+
BigDecimal._divRound = (dividend, divisor) => BigDecimal.fromBigInt(dividend / divisor + (BigDecimal.ROUNDED ? ((dividend * BigInt(2)) / divisor) % BigInt(2) : BigInt(0)));
|
|
65
|
+
BigDecimal.fromBigInt = (bigint) => Object.assign(Object.create(BigDecimal.prototype), { value: bigint });
|
|
79
66
|
export function isValidNumber(numberString) {
|
|
80
67
|
return !(!numberString || isNaN(Number(numberString)));
|
|
81
68
|
}
|
|
@@ -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
|
const componentToTransitionListeners = new WeakMap();
|
|
7
7
|
function transitionStart(event) {
|
|
@@ -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
|
export const autoTheme = "calcite-theme-auto";
|
|
7
7
|
export const darkTheme = "calcite-theme-dark";
|
|
@@ -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
|
import { getAssetPath } from "@stencil/core";
|
|
7
7
|
import { getSupportedLocale } from "./locale";
|
|
@@ -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
|
import { autoTheme, darkTheme } from "./resources";
|
|
7
7
|
/**
|
|
@@ -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
|
import { isValidNumber } from "./number";
|
|
7
7
|
import { getSupportedLocale, getSupportedNumberingSystem } from "./locale";
|