@esri/calcite-components 1.0.0-beta.72 → 1.0.0-beta.73
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/assets/calcite-icon/explore16.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
- package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/calcite/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-a4a12ffb.system.entry.js → p-0134e87c.system.entry.js} +2 -2
- package/dist/calcite/p-02856c5a.system.entry.js +5 -0
- package/dist/calcite/p-04bf9bca.system.entry.js +5 -0
- package/dist/calcite/p-07284a52.system.js +5 -0
- package/dist/calcite/p-082c3059.system.entry.js +5 -0
- package/dist/calcite/p-0ac72794.system.entry.js +5 -0
- package/dist/calcite/p-0b187e6a.system.entry.js +5 -0
- package/dist/calcite/p-0d9a5d78.entry.js +5 -0
- package/dist/calcite/p-12c57970.js +5 -0
- package/dist/calcite/p-141c978b.system.entry.js +5 -0
- package/dist/calcite/p-1509da0f.system.entry.js +5 -0
- package/dist/calcite/p-15a38242.system.entry.js +5 -0
- package/dist/calcite/{p-2151c991.entry.js → p-18c9da83.entry.js} +1 -1
- package/dist/calcite/p-1ae01548.system.js +5 -0
- package/dist/calcite/p-1d26d522.system.entry.js +5 -0
- package/dist/calcite/p-2015299a.entry.js +5 -0
- package/dist/calcite/{p-27d9be53.entry.js → p-209f2049.entry.js} +1 -1
- package/dist/calcite/p-20d2db84.entry.js +5 -0
- package/dist/calcite/{p-a4784cf3.system.entry.js → p-227da2a5.system.entry.js} +1 -1
- package/dist/calcite/p-26481e18.js +5 -0
- package/dist/calcite/{p-0f2b51bf.system.js → p-26755e82.system.js} +1 -1
- package/dist/calcite/{p-f9e7371d.entry.js → p-2c278864.entry.js} +1 -1
- package/dist/calcite/p-2c3bbbb4.system.entry.js +5 -0
- package/dist/calcite/p-3366ef60.entry.js +5 -0
- package/dist/calcite/p-3baf4001.system.entry.js +5 -0
- package/dist/calcite/p-3c14f089.system.entry.js +5 -0
- package/dist/calcite/{p-66fda99e.entry.js → p-3c1841bd.entry.js} +1 -1
- package/dist/calcite/p-3c34f20d.system.js +5 -0
- package/dist/calcite/p-3e8cf990.entry.js +5 -0
- package/dist/calcite/p-3f51ac4b.system.entry.js +5 -0
- package/dist/calcite/p-4364e76a.system.js +5 -0
- package/dist/calcite/{p-fd255a24.entry.js → p-475b5015.entry.js} +1 -1
- package/dist/calcite/{p-eebd2bb0.entry.js → p-481366ac.entry.js} +1 -1
- package/dist/calcite/p-4aa28569.entry.js +5 -0
- package/dist/calcite/{p-d3bd900e.js → p-4f9b0b0f.js} +1 -1
- package/dist/calcite/p-4fee156d.system.entry.js +5 -0
- package/dist/calcite/{p-d3db2b58.system.entry.js → p-513bc44f.system.entry.js} +1 -1
- package/dist/calcite/p-54e07c75.entry.js +5 -0
- package/dist/calcite/p-557f31e6.system.entry.js +5 -0
- package/dist/calcite/{p-f4a7fa43.entry.js → p-55e6b0b2.entry.js} +1 -1
- package/dist/calcite/p-57555baa.system.entry.js +5 -0
- package/dist/calcite/p-59222393.entry.js +5 -0
- package/dist/calcite/{p-40e16f41.entry.js → p-5cce1e8b.entry.js} +1 -1
- package/dist/calcite/p-5d9fe852.entry.js +5 -0
- package/dist/calcite/p-5dcd2088.system.entry.js +5 -0
- package/dist/calcite/p-6173cf08.system.js +5 -0
- package/dist/calcite/{p-fc9025a2.entry.js → p-66ca7309.entry.js} +1 -1
- package/dist/calcite/{p-30036f23.system.entry.js → p-6c453fd0.system.entry.js} +1 -1
- package/dist/calcite/p-6cd93563.entry.js +5 -0
- package/dist/calcite/p-6dbcd698.system.entry.js +5 -0
- package/dist/calcite/p-6e0fd056.entry.js +5 -0
- package/dist/calcite/p-6f0c4739.system.entry.js +5 -0
- package/dist/calcite/p-6fb2082b.entry.js +5 -0
- package/dist/calcite/{p-ce704ece.js → p-7017ca05.js} +1 -1
- package/dist/calcite/p-70566b09.system.entry.js +5 -0
- package/dist/calcite/p-732a0005.system.entry.js +5 -0
- package/dist/calcite/p-74365957.system.entry.js +5 -0
- package/dist/calcite/p-748c198c.system.entry.js +5 -0
- package/dist/calcite/p-765d6b57.system.entry.js +5 -0
- package/dist/calcite/{p-444ecda9.entry.js → p-770c1d6b.entry.js} +1 -1
- package/dist/calcite/p-7a2142c2.system.entry.js +5 -0
- package/dist/calcite/p-7a28e833.system.entry.js +5 -0
- package/dist/calcite/p-7bd71ff0.system.entry.js +5 -0
- package/dist/calcite/{p-8ebc2d51.entry.js → p-805c94b9.entry.js} +1 -1
- package/dist/calcite/p-83d41684.entry.js +5 -0
- package/dist/calcite/{p-8c4b6059.system.entry.js → p-84738edb.system.entry.js} +1 -1
- package/dist/calcite/p-869eb8f9.entry.js +5 -0
- package/dist/calcite/{p-04cc8259.entry.js → p-8e1945e3.entry.js} +1 -1
- package/dist/calcite/p-90f7c357.system.entry.js +5 -0
- package/dist/calcite/p-917e53a2.system.entry.js +5 -0
- package/dist/calcite/p-92ad7d95.entry.js +5 -0
- package/dist/calcite/p-94398466.system.entry.js +5 -0
- package/dist/calcite/{p-18d9a261.system.js → p-99d32fc3.system.js} +1 -1
- package/dist/calcite/p-9acd0a18.entry.js +5 -0
- package/dist/calcite/p-a348ffb1.system.entry.js +5 -0
- package/dist/calcite/p-a57bd5e6.entry.js +5 -0
- package/dist/calcite/p-a76aa7d2.system.entry.js +5 -0
- package/dist/calcite/{p-0b45733b.entry.js → p-a7f8b343.entry.js} +1 -1
- package/dist/calcite/p-a88d8075.entry.js +5 -0
- package/dist/calcite/p-ac234622.system.entry.js +5 -0
- package/dist/calcite/p-ae224016.system.entry.js +5 -0
- package/dist/calcite/p-afa72097.system.entry.js +5 -0
- package/dist/calcite/p-b01c3a89.system.entry.js +5 -0
- package/dist/calcite/{p-d8039e8a.system.entry.js → p-b1a43a5f.system.entry.js} +1 -1
- package/dist/calcite/p-b55fa7bc.entry.js +5 -0
- package/dist/calcite/p-b5bb4618.system.entry.js +5 -0
- package/dist/calcite/p-b63dfa63.entry.js +5 -0
- package/dist/calcite/p-bb4dcd31.js +5 -0
- package/dist/calcite/{p-f25f139a.entry.js → p-bc85a791.entry.js} +1 -1
- package/dist/calcite/{p-e0b1e90c.entry.js → p-bccf787f.entry.js} +1 -1
- package/dist/calcite/{p-9a8f3883.entry.js → p-bfd9f64a.entry.js} +1 -1
- package/dist/calcite/p-c077d664.entry.js +5 -0
- package/dist/calcite/p-c3124245.system.entry.js +5 -0
- package/dist/calcite/p-c5761666.entry.js +5 -0
- package/dist/calcite/p-c7b8a068.entry.js +5 -0
- package/dist/calcite/{p-523bc291.system.js → p-cbea8bac.system.js} +1 -1
- package/dist/calcite/p-cc63f8f9.entry.js +5 -0
- package/dist/calcite/p-cd54c8d0.system.entry.js +5 -0
- package/dist/calcite/{p-bca0b34f.entry.js → p-cfcb2161.entry.js} +1 -1
- package/dist/calcite/p-d00fbd1e.entry.js +5 -0
- package/dist/calcite/{p-4f7ebefc.system.js → p-d4bafc77.system.js} +1 -1
- package/dist/calcite/p-d5b221b1.entry.js +5 -0
- package/dist/calcite/p-d6bfa9b1.entry.js +5 -0
- package/dist/calcite/{p-7ff5e336.entry.js → p-d6e8d643.entry.js} +1 -1
- package/dist/calcite/p-d8653ba3.entry.js +5 -0
- package/dist/calcite/p-db85eed9.entry.js +5 -0
- package/dist/calcite/{p-b437a8eb.system.entry.js → p-dba7c714.system.entry.js} +1 -1
- package/dist/calcite/p-dd9f2e61.js +5 -0
- package/dist/calcite/p-e2094dff.system.entry.js +5 -0
- package/dist/calcite/p-e426746f.system.entry.js +5 -0
- package/dist/calcite/p-e5130ebf.system.entry.js +5 -0
- package/dist/calcite/p-e62edb4d.system.entry.js +5 -0
- package/dist/calcite/{p-f72c037c.entry.js → p-e63f0806.entry.js} +1 -1
- package/dist/calcite/p-e7103edc.entry.js +5 -0
- package/dist/calcite/p-e8270c76.system.entry.js +5 -0
- package/dist/calcite/p-eca26cba.system.entry.js +5 -0
- package/dist/calcite/p-ef6f8370.entry.js +5 -0
- package/dist/calcite/{p-87327c2f.system.entry.js → p-f26cad61.system.entry.js} +1 -1
- package/dist/calcite/p-f3b489d9.js +5 -0
- package/dist/calcite/p-f3d02833.js +5 -0
- package/dist/calcite/{p-f39dc5fd.entry.js → p-f5739197.entry.js} +1 -1
- package/dist/calcite/p-f63b9411.entry.js +5 -0
- package/dist/calcite/p-f70f5521.system.entry.js +5 -0
- package/dist/calcite/{p-d9414082.system.entry.js → p-f763b1e7.system.entry.js} +1 -1
- package/dist/calcite/p-f87c1273.js +5 -0
- package/dist/calcite/p-f8c99ef3.system.entry.js +5 -0
- package/dist/calcite/p-f8f128a2.entry.js +5 -0
- package/dist/calcite/{p-f1f65708.entry.js → p-f95fb85f.entry.js} +1 -1
- package/dist/calcite/{p-a2a22cbc.entry.js → p-fc3c1e91.entry.js} +1 -1
- package/dist/calcite/p-fcde21ce.system.js +5 -0
- package/dist/calcite/p-fdd3ea5e.entry.js +5 -0
- package/dist/calcite/{p-06ddf228.entry.js → p-fe3fff79.entry.js} +1 -1
- package/dist/calcite/p-fee9511c.system.entry.js +5 -0
- package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-38ca208f.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +3 -3
- package/dist/cjs/calcite-avatar.cjs.entry.js +2 -2
- package/dist/cjs/calcite-block_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-card.cjs.entry.js +1 -1
- package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +5 -5
- package/dist/cjs/calcite-fab.cjs.entry.js +2 -2
- package/dist/cjs/calcite-filter.cjs.entry.js +2 -2
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input-message.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-input.cjs.entry.js +28 -18
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +2 -2
- package/dist/cjs/calcite-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +2 -2
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +6 -5
- package/dist/cjs/calcite-popover_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js +20 -9
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +5 -50
- package/dist/cjs/calcite-rating.cjs.entry.js +4 -4
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-switch.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tab_4.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +38 -3
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -6
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/{dom-19822169.js → dom-db7722f2.js} +25 -8
- package/dist/cjs/{form-a5b44a1f.js → form-ad18d4fc.js} +1 -1
- package/dist/cjs/{label-8e3552b2.js → label-4776bb0e.js} +5 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/locale-b9b153dd.js +127 -0
- package/dist/cjs/number-e813e801.js +84 -0
- package/dist/cjs/{popper-a7580aca.js → popper-adfdc032.js} +29 -10
- package/dist/cjs/{resources-6c4b32ef.js → resources-8273cb31.js} +13 -2
- package/dist/cjs/{resources-16974e48.js → resources-c524c005.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/calcite-accordion/calcite-accordion.css +3 -13
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -1
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +31 -61
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +46 -91
- package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +7 -18
- package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -18
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +11 -23
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +26 -25
- package/dist/collection/components/calcite-alert/calcite-alert.css +56 -104
- package/dist/collection/components/calcite-alert/calcite-alert.js +1 -1
- package/dist/collection/components/calcite-avatar/calcite-avatar.css +8 -20
- package/dist/collection/components/calcite-block/calcite-block.css +43 -53
- package/dist/collection/components/calcite-block-section/calcite-block-section.css +25 -41
- package/dist/collection/components/calcite-button/calcite-button.css +83 -226
- package/dist/collection/components/calcite-card/calcite-card.css +49 -60
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +11 -24
- package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
- package/dist/collection/components/calcite-chip/calcite-chip.css +18 -41
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +11 -41
- package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +7 -17
- package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +7 -18
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +28 -47
- package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +34 -41
- package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +8 -19
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +4 -14
- package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +7 -6
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +37 -59
- package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +21 -31
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +34 -56
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +3 -20
- package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +10 -20
- package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +48 -59
- package/dist/collection/components/calcite-fab/calcite-fab.css +10 -16
- package/dist/collection/components/calcite-filter/calcite-filter.css +20 -34
- package/dist/collection/components/calcite-flow/calcite-flow.css +22 -34
- package/dist/collection/components/calcite-graph/calcite-graph.css +3 -14
- package/dist/collection/components/calcite-handle/calcite-handle.css +4 -18
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/rightAlign32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
- package/dist/collection/components/calcite-icon/calcite-icon.css +12 -14
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +5 -12
- package/dist/collection/components/calcite-input/calcite-input.css +94 -156
- package/dist/collection/components/calcite-input/calcite-input.js +22 -12
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +28 -46
- package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +1 -1
- package/dist/collection/components/calcite-input-message/calcite-input-message.css +12 -23
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +1 -11
- package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +2 -2
- package/dist/collection/components/calcite-label/calcite-label.css +19 -34
- package/dist/collection/components/calcite-link/calcite-link.css +16 -33
- package/dist/collection/components/calcite-list/calcite-list.css +9 -16
- package/dist/collection/components/calcite-list-item/calcite-list-item.css +23 -46
- package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +7 -17
- package/dist/collection/components/calcite-loader/calcite-loader.css +37 -62
- package/dist/collection/components/calcite-modal/calcite-modal.css +95 -102
- package/dist/collection/components/calcite-notice/calcite-notice.css +43 -81
- package/dist/collection/components/calcite-option/calcite-option.css +1 -11
- package/dist/collection/components/calcite-option-group/calcite-option-group.css +1 -11
- package/dist/collection/components/calcite-pagination/calcite-pagination.css +20 -54
- package/dist/collection/components/calcite-panel/calcite-panel.css +50 -73
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +16 -26
- package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +12 -4
- package/dist/collection/components/calcite-pick-list/resources.js +1 -1
- package/dist/collection/components/calcite-pick-list/shared-list-logic.js +10 -0
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +14 -27
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +43 -60
- package/dist/collection/components/calcite-popover/calcite-popover.css +24 -34
- package/dist/collection/components/calcite-popover/calcite-popover.js +1 -1
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +1 -11
- package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.js +1 -1
- package/dist/collection/components/calcite-progress/calcite-progress.css +7 -20
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +8 -21
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +1 -14
- package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +3 -15
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +17 -28
- package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
- package/dist/collection/components/calcite-rating/calcite-rating.css +10 -24
- package/dist/collection/components/calcite-scrim/calcite-scrim.css +17 -29
- package/dist/collection/components/calcite-select/calcite-select.css +23 -39
- package/dist/collection/components/calcite-shell/calcite-shell.css +43 -43
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +26 -21
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +33 -52
- package/dist/collection/components/calcite-slider/calcite-slider.css +45 -93
- package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +1 -11
- package/dist/collection/components/calcite-split-button/calcite-split-button.css +7 -27
- package/dist/collection/components/calcite-stepper/calcite-stepper.css +8 -18
- package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +38 -72
- package/dist/collection/components/calcite-switch/calcite-switch.css +24 -47
- package/dist/collection/components/calcite-tab/calcite-tab.css +10 -20
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +13 -23
- package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +40 -65
- package/dist/collection/components/calcite-tabs/calcite-tabs.css +3 -13
- package/dist/collection/components/calcite-tile/calcite-tile.css +52 -85
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +52 -87
- package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
- package/dist/collection/components/calcite-tile-select/resources.js +20 -0
- package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +1 -12
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +15 -47
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +4 -4
- package/dist/collection/components/calcite-tip/calcite-tip.css +20 -36
- package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +4 -14
- package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +34 -49
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +12 -20
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +1 -1
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +1 -11
- package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -1
- package/dist/collection/components/calcite-tree/calcite-tree.css +1 -11
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +22 -58
- package/dist/collection/components/calcite-value-list/calcite-value-list.css +17 -25
- package/dist/collection/components/calcite-value-list/calcite-value-list.js +22 -8
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +22 -33
- package/dist/collection/utils/dom.js +25 -8
- package/dist/collection/utils/label.js +4 -1
- package/dist/collection/utils/locale.js +42 -38
- package/dist/collection/utils/number.js +48 -23
- 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-group2.js +1 -1
- package/dist/components/calcite-action-menu2.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +2 -2
- 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-button2.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox2.js +2 -2
- package/dist/components/calcite-chip2.js +1 -1
- package/dist/components/calcite-color-picker-hex-input2.js +1 -1
- package/dist/components/calcite-color-picker-swatch2.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-day2.js +1 -1
- package/dist/components/calcite-date-picker-month-header2.js +1 -1
- package/dist/components/calcite-date-picker-month2.js +1 -1
- package/dist/components/calcite-date-picker2.js +8 -7
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown2.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter2.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph2.js +1 -1
- package/dist/components/calcite-handle2.js +1 -1
- package/dist/components/calcite-icon2.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +2 -2
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +2 -2
- package/dist/components/calcite-input2.js +23 -13
- package/dist/components/calcite-label2.js +1 -1
- package/dist/components/calcite-link2.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-loader2.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-item2.js +1 -1
- package/dist/components/calcite-pick-list.js +3 -2
- package/dist/components/calcite-popover-manager.js +2 -2
- package/dist/components/calcite-popover2.js +2 -2
- package/dist/components/calcite-progress2.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +17 -6
- package/dist/components/calcite-radio-group-item.js +1 -46
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim2.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-switch2.js +1 -1
- package/dist/components/calcite-tab-nav2.js +1 -1
- package/dist/components/calcite-tab-title2.js +1 -1
- package/dist/components/calcite-tab2.js +1 -1
- package/dist/components/calcite-tabs2.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +37 -2
- package/dist/components/calcite-tile2.js +1 -1
- package/dist/components/calcite-time-picker2.js +4 -4
- 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-manager2.js +2 -2
- package/dist/components/calcite-tooltip.js +2 -2
- 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 +11 -4
- package/dist/components/dom.js +25 -8
- package/dist/components/label.js +4 -1
- package/dist/components/locale.js +42 -38
- package/dist/components/number.js +49 -24
- package/dist/components/popper.js +28 -9
- package/dist/components/resources3.js +1 -1
- package/dist/components/shared-list-render.js +11 -1
- package/dist/custom-elements/index.js +603 -504
- package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-1b1bf600.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +3 -3
- package/dist/esm/calcite-action-bar.entry.js +3 -3
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +3 -3
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +3 -3
- package/dist/esm/calcite-avatar.entry.js +2 -2
- package/dist/esm/calcite-block_2.entry.js +3 -3
- package/dist/esm/calcite-button.entry.js +3 -3
- package/dist/esm/calcite-card.entry.js +1 -1
- package/dist/esm/calcite-checkbox.entry.js +5 -5
- package/dist/esm/calcite-chip.entry.js +2 -2
- package/dist/esm/calcite-color-picker_3.entry.js +4 -4
- package/dist/esm/calcite-combobox_3.entry.js +7 -7
- package/dist/esm/calcite-date-picker_4.entry.js +15 -14
- package/dist/esm/calcite-dropdown_3.entry.js +5 -5
- package/dist/esm/calcite-fab.entry.js +2 -2
- package/dist/esm/calcite-filter.entry.js +2 -2
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +5 -5
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +2 -2
- package/dist/esm/calcite-inline-editable.entry.js +3 -3
- package/dist/esm/calcite-input-date-picker.entry.js +9 -9
- package/dist/esm/calcite-input-message.entry.js +2 -2
- package/dist/esm/calcite-input-time-picker_2.entry.js +9 -9
- package/dist/esm/calcite-input.entry.js +28 -18
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +2 -2
- package/dist/esm/calcite-list_3.entry.js +4 -4
- package/dist/esm/calcite-loader.entry.js +1 -1
- package/dist/esm/calcite-modal.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +2 -2
- package/dist/esm/calcite-option_3.entry.js +6 -6
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-panel.entry.js +2 -2
- package/dist/esm/calcite-pick-list_3.entry.js +6 -5
- package/dist/esm/calcite-popover_2.entry.js +6 -6
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/calcite-radio-button.entry.js +20 -9
- package/dist/esm/calcite-radio-group_2.entry.js +5 -50
- package/dist/esm/calcite-rating.entry.js +4 -4
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +4 -4
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +3 -3
- package/dist/esm/calcite-switch.entry.js +4 -4
- package/dist/esm/calcite-tab_4.entry.js +5 -5
- package/dist/esm/calcite-tile-select_2.entry.js +38 -3
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +4 -4
- package/dist/esm/calcite-tooltip_2.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +3 -3
- package/dist/esm/calcite-value-list_2.entry.js +13 -6
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/{dom-f24e866c.js → dom-e55f9eaf.js} +25 -8
- package/dist/esm/{form-160b0fb5.js → form-147bc6d7.js} +1 -1
- package/dist/esm/{label-5559055d.js → label-240ef148.js} +5 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/locale-1b48f64f.js +122 -0
- package/dist/esm/number-8779395f.js +76 -0
- package/dist/esm/{popper-f5caedc4.js → popper-1814b3c1.js} +29 -10
- package/dist/esm/{resources-b4eee1d4.js → resources-74c807b4.js} +1 -1
- package/dist/esm/{resources-35c1823f.js → resources-a6abee37.js} +13 -3
- package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-1b1bf600.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +1 -1
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
- package/dist/esm-es5/dom-e55f9eaf.js +5 -0
- package/dist/esm-es5/{form-160b0fb5.js → form-147bc6d7.js} +1 -1
- package/dist/esm-es5/label-240ef148.js +5 -0
- package/dist/esm-es5/locale-1b48f64f.js +5 -0
- package/dist/esm-es5/number-8779395f.js +5 -0
- package/dist/esm-es5/popper-1814b3c1.js +5 -0
- package/dist/esm-es5/{resources-b4eee1d4.js → resources-74c807b4.js} +1 -1
- package/dist/esm-es5/resources-a6abee37.js +5 -0
- package/dist/extras/docs-json.json +19 -13
- package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
- package/dist/types/components.d.ts +9 -9
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/dom.d.ts +18 -3
- package/dist/types/utils/number.d.ts +2 -1
- package/hydrate/index.js +606 -507
- package/package.json +24 -24
- package/readme.md +2 -2
- package/dist/calcite/p-0229a408.js +0 -5
- package/dist/calcite/p-057197f8.entry.js +0 -5
- package/dist/calcite/p-05c10c53.entry.js +0 -5
- package/dist/calcite/p-05edaadf.system.entry.js +0 -5
- package/dist/calcite/p-112f20e6.system.entry.js +0 -5
- package/dist/calcite/p-11f01c0a.entry.js +0 -5
- package/dist/calcite/p-1942876c.js +0 -5
- package/dist/calcite/p-288899b9.entry.js +0 -5
- package/dist/calcite/p-2b294f8e.system.entry.js +0 -5
- package/dist/calcite/p-2be1e8ee.entry.js +0 -5
- package/dist/calcite/p-2d939f9e.system.entry.js +0 -5
- package/dist/calcite/p-2fbd50f3.system.entry.js +0 -5
- package/dist/calcite/p-35a5c74c.system.js +0 -5
- package/dist/calcite/p-3739338a.system.entry.js +0 -5
- package/dist/calcite/p-3c25cb72.system.entry.js +0 -5
- package/dist/calcite/p-3d8ee39d.system.entry.js +0 -5
- package/dist/calcite/p-3dae9da3.js +0 -5
- package/dist/calcite/p-3e9c6068.entry.js +0 -5
- package/dist/calcite/p-3f8527a3.entry.js +0 -5
- package/dist/calcite/p-40991717.entry.js +0 -5
- package/dist/calcite/p-4278fb57.entry.js +0 -5
- package/dist/calcite/p-44cce7a3.system.entry.js +0 -5
- package/dist/calcite/p-4d02c6c0.system.entry.js +0 -5
- package/dist/calcite/p-4e9d072a.system.js +0 -5
- package/dist/calcite/p-4f1f716a.system.entry.js +0 -5
- package/dist/calcite/p-52cc870b.js +0 -5
- package/dist/calcite/p-55f68e28.entry.js +0 -5
- package/dist/calcite/p-57169a74.entry.js +0 -5
- package/dist/calcite/p-5c9d89ce.system.entry.js +0 -5
- package/dist/calcite/p-62f3d4df.system.js +0 -5
- package/dist/calcite/p-63b9f804.entry.js +0 -5
- package/dist/calcite/p-689790cb.system.entry.js +0 -5
- package/dist/calcite/p-69bd1f5f.system.entry.js +0 -5
- package/dist/calcite/p-6a87d7b2.entry.js +0 -5
- package/dist/calcite/p-6cc23c39.system.js +0 -5
- package/dist/calcite/p-6faaa8af.system.entry.js +0 -5
- package/dist/calcite/p-6fb63fc1.entry.js +0 -5
- package/dist/calcite/p-72a60528.system.entry.js +0 -5
- package/dist/calcite/p-763479d6.system.entry.js +0 -5
- package/dist/calcite/p-768018df.entry.js +0 -5
- package/dist/calcite/p-76eda40b.entry.js +0 -5
- package/dist/calcite/p-7ac9f860.entry.js +0 -5
- package/dist/calcite/p-83744979.system.js +0 -5
- package/dist/calcite/p-88296be9.system.entry.js +0 -5
- package/dist/calcite/p-88b31760.system.entry.js +0 -5
- package/dist/calcite/p-8a8982ab.system.entry.js +0 -5
- package/dist/calcite/p-9180be05.system.entry.js +0 -5
- package/dist/calcite/p-93a189be.entry.js +0 -5
- package/dist/calcite/p-97117a5d.entry.js +0 -5
- package/dist/calcite/p-97efd284.system.entry.js +0 -5
- package/dist/calcite/p-998829cb.system.entry.js +0 -5
- package/dist/calcite/p-9a1ffbad.system.entry.js +0 -5
- package/dist/calcite/p-9b979692.entry.js +0 -5
- package/dist/calcite/p-9fc14d49.entry.js +0 -5
- package/dist/calcite/p-9feb0f5a.system.entry.js +0 -5
- package/dist/calcite/p-a3c498de.entry.js +0 -5
- package/dist/calcite/p-a6f99f79.entry.js +0 -5
- package/dist/calcite/p-a98344e2.system.entry.js +0 -5
- package/dist/calcite/p-a9f596be.system.entry.js +0 -5
- package/dist/calcite/p-adf4699d.system.entry.js +0 -5
- package/dist/calcite/p-b180d943.system.entry.js +0 -5
- package/dist/calcite/p-b2f0596f.entry.js +0 -5
- package/dist/calcite/p-b43e699c.system.entry.js +0 -5
- package/dist/calcite/p-ba7c0f01.system.entry.js +0 -5
- package/dist/calcite/p-bd091b49.system.entry.js +0 -5
- package/dist/calcite/p-bdca5372.entry.js +0 -5
- package/dist/calcite/p-bfa6bd72.entry.js +0 -5
- package/dist/calcite/p-c00b1d26.js +0 -5
- package/dist/calcite/p-c2bfd7f9.system.entry.js +0 -5
- package/dist/calcite/p-c2fcf603.system.entry.js +0 -5
- package/dist/calcite/p-c34c4414.system.js +0 -5
- package/dist/calcite/p-c70bacc8.system.entry.js +0 -5
- package/dist/calcite/p-c8c6323c.entry.js +0 -5
- package/dist/calcite/p-cb660e54.entry.js +0 -5
- package/dist/calcite/p-cd5d5756.system.entry.js +0 -5
- package/dist/calcite/p-cf499949.entry.js +0 -5
- package/dist/calcite/p-d17cfab3.entry.js +0 -5
- package/dist/calcite/p-d4d5665a.system.entry.js +0 -5
- package/dist/calcite/p-dc7124e9.entry.js +0 -5
- package/dist/calcite/p-dc777403.system.entry.js +0 -5
- package/dist/calcite/p-dda22c7e.system.entry.js +0 -5
- package/dist/calcite/p-de67ba93.system.entry.js +0 -5
- package/dist/calcite/p-e09bac0d.system.entry.js +0 -5
- package/dist/calcite/p-e35b29f5.system.entry.js +0 -5
- package/dist/calcite/p-e54784a8.system.entry.js +0 -5
- package/dist/calcite/p-e63c6a55.system.entry.js +0 -5
- package/dist/calcite/p-e697ab57.system.entry.js +0 -5
- package/dist/calcite/p-e7801f1d.entry.js +0 -5
- package/dist/calcite/p-e7f7b0f8.js +0 -5
- package/dist/calcite/p-f2340d02.system.entry.js +0 -5
- package/dist/calcite/p-f28d8e9e.system.entry.js +0 -5
- package/dist/calcite/p-f2f2ad57.entry.js +0 -5
- package/dist/calcite/p-f595d924.js +0 -5
- package/dist/calcite/p-fc265aaf.entry.js +0 -5
- package/dist/calcite/p-fd94e88d.system.entry.js +0 -5
- package/dist/cjs/locale-33c458dc.js +0 -123
- package/dist/cjs/number-73f7b474.js +0 -58
- package/dist/esm/locale-4c38cf6d.js +0 -118
- package/dist/esm/number-06e8500e.js +0 -51
- package/dist/esm-es5/dom-f24e866c.js +0 -5
- package/dist/esm-es5/label-5559055d.js +0 -5
- package/dist/esm-es5/locale-4c38cf6d.js +0 -5
- package/dist/esm-es5/number-06e8500e.js +0 -5
- package/dist/esm-es5/popper-f5caedc4.js +0 -5
- package/dist/esm-es5/resources-35c1823f.js +0 -5
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,i,e,a){function n(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,r){function s(t){try{l(a.next(t))}catch(t){r(t)}}function o(t){try{l(a["throw"](t))}catch(t){r(t)}}function l(t){t.done?e(t.value):n(t.value).then(s,o)}l((a=a.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(i){return l([t,i])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(e)try{if(a=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;n=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){e.label=s[1];break}if(s[0]===6&&e.label<r[1]){e.label=r[1];r=s;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(s);break}if(r[2])e.ops.pop();e.trys.pop();continue}s=i.call(t,e)}catch(t){s=[6,t];n=0}finally{a=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
*/System.register(["./p-288bc438.system.js"],(function(t){"use strict";var i,e,a,n,r;return{setters:[function(t){i=t.r;e=t.c;a=t.h;n=t.F;r=t.g}],execute:function(){var s={page:"page",selected:"is-selected",previous:"previous",next:"next",disabled:"is-disabled",ellipsis:"ellipsis",ellipsisStart:"ellipsis--start",ellipsisEnd:"ellipsis--end"};var o={nextLabel:"Next",previousLabel:"Previous"};var l="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-pagination-spacing:0.25rem 0.5rem}:host([scale=s]) .previous,:host([scale=s]) .next,:host([scale=s]) .page{font-size:var(--calcite-font-size--2);line-height:1rem;height:1.5rem}:host([scale=s]) .previous,:host([scale=s]) .next{padding-left:0.25rem;padding-right:0.25rem}:host([scale=m]){--calcite-pagination-spacing:0.5rem 0.75rem}:host([scale=m]) .previous,:host([scale=m]) .next,:host([scale=m]) .page{font-size:var(--calcite-font-size--1);line-height:1rem;height:2rem}:host([scale=m]) .previous,:host([scale=m]) .next{padding-left:0.5rem;padding-right:0.5rem}:host([scale=l]){--calcite-pagination-spacing:0.75rem 1rem}:host([scale=l]) .previous,:host([scale=l]) .next,:host([scale=l]) .page{font-size:var(--calcite-font-size-0);line-height:1.25rem;height:2.75rem}:host([scale=l]) .previous,:host([scale=l]) .next{padding-left:1rem;padding-right:1rem}:host{display:-ms-flexbox;display:flex;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb}:host button{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.previous,.next,.page{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:transparent;border-style:none;--border-opacity:0;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3);cursor:pointer;font-family:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:2px solid transparent;border-bottom:2px solid transparent}.previous:hover,.next:hover,.page:hover{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.page:hover{border-bottom-color:var(--calcite-ui-border-2)}.page.is-selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-bottom-color:var(--calcite-ui-brand)}.previous:hover,.next:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}.previous:active,.next:active{background-color:var(--calcite-ui-foreground-3)}.previous.is-disabled,.next.is-disabled{background-color:transparent;pointer-events:none}.previous.is-disabled>calcite-icon,.next.is-disabled>calcite-icon{opacity:var(--calcite-ui-opacity-disabled)}.next{margin-right:0}.page,.ellipsis{padding:var(--calcite-pagination-spacing)}.ellipsis{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;color:var(--calcite-ui-text-3)}";var c=5;var u=t("calcite_pagination",function(){function t(t){var a=this;i(this,t);this.calcitePaginationUpdate=e(this,"calcitePaginationUpdate",7);this.calcitePaginationChange=e(this,"calcitePaginationChange",7);this.num=20;this.start=1;this.total=0;this.textLabelNext=o.nextLabel;this.textLabelPrevious=o.previousLabel;this.scale="m";this.previousClicked=function(){a.previousPage().then();a.emitUpdate()};this.nextClicked=function(){a.nextPage();a.emitUpdate()}}t.prototype.nextPage=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.start=Math.min(this.getLastStart(),this.start+this.num);return[2]}))}))};t.prototype.previousPage=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.start=Math.max(1,this.start-this.num);return[2]}))}))};t.prototype.getLastStart=function(){var t=this,i=t.total,e=t.num;var a=i%e===0?i-e:Math.floor(i/e)*e;return a+1};t.prototype.showLeftEllipsis=function(){return Math.floor(this.start/this.num)>3};t.prototype.showRightEllipsis=function(){return(this.total-this.start)/this.num>3};t.prototype.emitUpdate=function(){var t={start:this.start,total:this.total,num:this.num};this.calcitePaginationChange.emit(t);this.calcitePaginationUpdate.emit(t)};t.prototype.renderPages=function(){var t=this;var i=this.getLastStart();var e;var a;if(this.total/this.num<=c){a=1+this.num;e=i-this.num}else{if(this.start/this.num<c-1){a=1+this.num;e=1+4*this.num}else{if(this.start+3*this.num>=this.total){a=i-4*this.num;e=i-this.num}else{a=this.start-this.num;e=this.start+this.num}}}var n=[];while(a<=e){n.push(a);a=a+this.num}return n.map((function(i){return t.renderPage(i)}))};t.prototype.renderPage=function(t){var i;var e=this;var n=Math.floor(t/this.num)+(this.num===1?0:1);return a("button",{class:(i={},i[s.page]=true,i[s.selected]=t===this.start,i),onClick:function(){e.start=t;e.emitUpdate()}},n)};t.prototype.renderLeftEllipsis=function(){if(this.total/this.num>c&&this.showLeftEllipsis()){return a("span",{class:s.ellipsis+" "+s.ellipsisStart},"…")}};t.prototype.renderRightEllipsis=function(){if(this.total/this.num>c&&this.showRightEllipsis()){return a("span",{class:s.ellipsis+" "+s.ellipsisEnd},"…")}};t.prototype.render=function(){var t,i;var e=this,r=e.total,o=e.num,l=e.start;var c=o===1?l<=o:l<o;var u=o===1?l+o>r:l+o>r;return a(n,null,a("button",{"aria-label":this.textLabelPrevious,class:(t={},t[s.previous]=true,t[s.disabled]=c,t),disabled:c,onClick:this.previousClicked},a("calcite-icon",{flipRtl:true,icon:"chevronLeft",scale:"s"})),r>o?this.renderPage(1):null,this.renderLeftEllipsis(),this.renderPages(),this.renderRightEllipsis(),this.renderPage(this.getLastStart()),a("button",{"aria-label":this.textLabelNext,class:(i={},i[s.next]=true,i[s.disabled]=u,i),disabled:u,onClick:this.nextClicked},a("calcite-icon",{flipRtl:true,icon:"chevronRight",scale:"s"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());u.style=l}}}));
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
import{a as t,r as a,h as i,H as n,g as e}from"./p-2e29554c.js";import{a as s}from"./p-52cc870b.js";import{c as r}from"./p-e4acb5a8.js";import"./p-8a63221d.js";const o={},c={},l={s:16,m:24,l:32};let m=class{constructor(t){a(this,t),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:t,flipRtl:a,pathData:e,scale:r,textLabel:o}=this,c=s(t),m=l[r],h=!!o,f=[].concat(e||"");return i(n,{"aria-hidden":(!h).toString(),"aria-label":h?o:null,role:h?"img":null},i("svg",{class:{"flip-rtl":"rtl"===c&&a,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${m} ${m}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},f.map((t=>i("path","string"==typeof t?{d:t}:{d:t.d,opacity:"opacity"in t?t.opacity:1})))))}async loadIconPathData(){const{icon:a,scale:i,visible:n}=this;a&&n&&(this.pathData=await async function({icon:a,scale:i}){const n=l[i],e=function(t){const a=!isNaN(Number(t.charAt(0))),i=t.split("-");return 1===i.length?a?`i${t}`:t:i.map(((t,i)=>0===i?a?`i${t.toUpperCase()}`:t:t.charAt(0).toUpperCase()+t.slice(1))).join("")}(a),s="F"===e.charAt(e.length-1),r=`${s?e.substring(0,e.length-1):e}${n}${s?"F":""}`;if(o[r])return o[r];c[r]||(c[r]=fetch(t(`./assets/calcite-icon/${r}.json`)).then((t=>t.json())).catch((()=>(console.error(`"${r}" is not a valid calcite-ui-icon name`),""))));const m=await c[r];return o[r]=m,m}({icon:a,scale:i}))}waitUntilVisible(t){this.intersectionObserver=r("intersection",(a=>{a.forEach((a=>{a.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};m.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex}:host([scale=s]){width:1rem;height:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){width:2rem;height:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";export{m as calcite_icon}
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
import{a as t}from"./p-f595d924.js";const r=["ar","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"];function n(t){return new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:20})}function e(t,r){if(t){const n=i(r),e=s(r),u=t.split(""),a=u.lastIndexOf(e),c=u.map(((t,r)=>t===n||t===e&&r!==a?"":t)).reduce(((t,r)=>t+r)).replace(e,".");return isNaN(Number(c))?t:c}return t}function i(t){const r=n(t).formatToParts(1234567.8).find((t=>"group"===t.type)).value;return 0===r.trim().length?" ":r}function s(t){const r=n(t).formatToParts(1234567.8).find((t=>"decimal"===t.type)).value;return 0===r.trim().length?" ":r}function u(r,e,u=!1){if(r){const a=Number(t(r));if(!isNaN(a))return n(e).formatToParts(a).map((({type:t,value:r})=>{switch(t){case"group":return u?i(e):"";case"decimal":return s(e);default:return r}})).reduce(((t,r)=>t+r))}return r}export{r as a,e as d,s as g,u as l}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{s(n.next(t))}catch(t){r(t)}}function c(t){try{s(n["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):a(t.value).then(o,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(e){return s([t,e])}}function s(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
*/System.register(["./p-288bc438.system.js","./p-6cc23c39.system.js","./p-c34c4414.system.js","./p-523bc291.system.js","./p-e020662f.system.js"],(function(t){"use strict";var e,i,n,a,r,o,c,s,l,h,u,d;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;r=t.g},function(t){o=t.f},function(t){c=t.c;s=t.d;l=t.g},function(t){h=t.c;u=t.d;d=t.H},function(){}],execute:function(){var m="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) .container{height:0.75rem}:host([scale=s]) .track{width:1.5rem;height:0.75rem}:host([scale=s]) .handle{width:0.5rem;height:0.5rem}:host([scale=m]) .container{height:1rem}:host([scale=m]) .track{width:2rem;height:1rem}:host([scale=m]) .handle{width:0.75rem;height:0.75rem}:host([scale=l]) .container{height:1.5rem}:host([scale=l]) .track{width:3rem;height:1.5rem}:host([scale=l]) .handle{width:1.25rem;height:1.25rem}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none;cursor:default}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;width:auto}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.track{position:relative;display:inline-block;vertical-align:top;background-color:var(--calcite-ui-foreground-2);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px}.handle{position:absolute;display:block;background-color:var(--calcite-ui-foreground-1);border-width:2px;border-style:solid;border-color:var(--calcite-ui-border-input);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);border-radius:9999px;pointer-events:none;top:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([checked]) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]) .handle{border-color:var(--calcite-ui-brand);inset-inline:auto -1px}:host([checked]:hover) .track{background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-brand-hover)}:host([checked]:hover) .handle{border-color:var(--calcite-ui-brand-hover);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}.container:focus-visible{outline-color:var(--calcite-ui-brand)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var p=t("calcite_switch",function(){function t(t){var n=this;e(this,t);this.calciteSwitchChange=i(this,"calciteSwitchChange",7);this.disabled=false;this.scale="m";this.switched=false;this.checked=false;this.keyDownHandler=function(t){var e=t.key;if(!n.disabled&&(e===" "||e==="Enter")){n.toggle()}};this.clickHandler=function(){n.toggle()};this.setSwitchEl=function(t){n.switchEl=t}}t.prototype.disabledWatcher=function(t){this.tabindex=t?-1:0};t.prototype.switchedWatcher=function(t){this.checked=t};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){o(this.switchEl);return[2]}))}))};t.prototype.onLabelClick=function(){if(!this.disabled){this.toggle();this.setFocus()}};t.prototype.toggle=function(){this.checked=!this.checked;this.calciteSwitchChange.emit({switched:this.checked})};t.prototype.connectedCallback=function(){var t=this.checked||this.switched;if(t){this.switched=this.checked=t}c(this);h(this)};t.prototype.disconnectedCallback=function(){s(this);u(this)};t.prototype.componentWillLoad=function(){this.tabindex=this.el.getAttribute("tabindex")||this.disabled?-1:0};t.prototype.render=function(){return n(a,{onKeyDown:this.keyDownHandler},n("div",{"aria-checked":this.checked.toString(),"aria-label":l(this),class:"container",onClick:this.clickHandler,ref:this.setSwitchEl,role:"switch",tabindex:this.tabindex},n("div",{class:"track"},n("div",{class:"handle"})),n(d,{component:this})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledWatcher"],switched:["switchedWatcher"]}},enumerable:false,configurable:true});return t}());p.style=m}}}));
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
System.register(["./p-288bc438.system.js","./p-378ffa38.system.js","./p-6cc23c39.system.js","./p-e020662f.system.js"],(function(t){"use strict";var a,e,i,n,r,s;return{setters:[function(t){a=t.r;e=t.h;i=t.g},function(t){n=t.h;r=t.i},function(t){s=t.b},function(){}],execute:function(){function o(t){var a=0;for(var e=0;e<t.length;e++){a=t.charCodeAt(e)+((a<<5)-a)}var i="#";for(var n=0;n<3;n++){var r=a>>n*8&255;i+=("00"+r.toString(16)).substr(-2)}return i}function c(t){var a=t.r,e=t.g,i=t.b;a/=255;e/=255;i/=255;var n=Math.max(a,e,i);var r=Math.min(a,e,i);var s=n-r;if(n===r){return 0}var o=(n+r)/2;switch(n){case a:o=(e-i)/s+(e<i?6:0);break;case e:o=(i-a)/s+2;break;case i:o=(a-e)/s+4;break}return Math.round(o*60)}function l(t){return c(n(t))}var m="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50%;overflow:hidden}:host([scale=s]){width:1.5rem;height:1.5rem;font-size:var(--calcite-font-size--3)}:host([scale=m]){width:2rem;height:2rem;font-size:var(--calcite-font-size--2)}:host([scale=l]){width:2.75rem;height:2.75rem;font-size:var(--calcite-font-size-0)}.icon{display:-ms-flexbox;display:flex}.background{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%}.initials{font-weight:var(--calcite-font-weight-bold);text-transform:uppercase;color:var(--calcite-ui-text-3)}.thumbnail{width:100%;height:100%;border-radius:50%}";var f=t("calcite_avatar",function(){function t(t){a(this,t);this.scale="m";this.error=false}t.prototype.render=function(){return this.determineContent()};t.prototype.determineContent=function(){var t=this;if(this.thumbnail&&!this.error){return e("img",{alt:"",class:"thumbnail",onError:function(){return t.error=true},src:this.thumbnail})}var a=this.generateInitials();var i=this.generateFillColor();return e("span",{class:"background",style:{backgroundColor:i}},a?e("span",{"aria-hidden":"true",class:"initials"},a):e("calcite-icon",{class:"icon",icon:"user",scale:this.scale}))};t.prototype.generateFillColor=function(){var t=this,a=t.userId,e=t.username,i=t.fullName,n=t.el;var c=s(n);var m=a&&"#"+a.substr(a.length-6);var f=e||i||"";var u=m&&r(m)?m:o(f);if(!a&&!f||!r(u)){return"var(--calcite-ui-foreground-2)"}var p=l(u);var h=c==="dark"?20:90;return"hsl("+p+", 60%, "+h+"%)"};t.prototype.generateInitials=function(){var t=this,a=t.fullName,e=t.username;if(a){return a.trim().split(" ").map((function(t){return t.substring(0,1)})).join("")}else if(e){return e.substring(0,2)}return false};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());f.style=m}}}));
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
import{r as t,c as i,h as e,H as n,g as a}from"./p-2e29554c.js";import{T as o,s as r,d as s,a as l,C as c}from"./p-52cc870b.js";import{c as h,d as u,g as d}from"./p-3dae9da3.js";import{c as m,d as p,H as b}from"./p-1942876c.js";import{d as f,g,l as x}from"./p-e7f7b0f8.js";import{i as w,p as v,s as y,n as k}from"./p-f595d924.js";import{d as z}from"./p-2d09cc25.js";import"./p-8a63221d.js";const D={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"};let j=class{constructor(e){t(this,e),this.calciteInputFocus=i(this,"calciteInputFocus",7),this.calciteInputBlur=i(this,"calciteInputBlur",7),this.calciteInputInput=i(this,"calciteInputInput",7),this.calciteInputChange=i(this,"calciteInputChange",7),this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.groupSeparator=!1,this.hidden=!1,this.intlLoading=o.loading,this.iconFlipRtl=!1,this.loading=!1,this.locale=document.documentElement.lang||"en",this.localeFormat=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.editingEnabled=!1,this.type="text",this.value="",this.childElType="input",this.keyDownHandler=t=>{"ArrowUp"===t.key&&t.preventDefault(),this.readOnly||this.disabled||this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault())},this.clearInputValue=t=>{this.setValue("",t,!0)},this.inputBlurHandler=()=>{"number"===this.type&&this.setLocalizedValue(this.value),this.calciteInputBlur.emit({element:this.childEl,value:this.value}),this.preFocusValue!==this.value&&this.calciteInputChange.emit()},this.inputFocusHandler=t=>{t.target!==this.slottedActionEl&&this.setFocus(),this.calciteInputFocus.emit({element:this.childEl,value:this.value}),this.preFocusValue=this.value},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue(t.target.value,t)},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||"Enter"===t.key&&this.calciteInputChange.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;const i=t.target.value,e=f(i,this.locale);"insertFromPaste"===t.inputType?(w(e)||t.preventDefault(),this.setValue(v(e),t),this.childNumberEl.value=this.localizedValue):this.setValue(f(i,this.locale),t)},this.inputNumberKeyDownHandler=t=>{if("number"!==this.type||this.disabled||this.readOnly)return;if("ArrowUp"===t.key)return void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...k,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab","-"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)&&(!t.shiftKey||e))return void("Enter"===t.key&&this.calciteInputChange.emit());const n=g(this.locale);if(t.key===n){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(n))return}t.preventDefault()},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat||"number"!==this.type)return;const e=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,n,i);let a=!0;this.nudgeNumberValueIntervalId=setInterval((()=>{a?a=!1:this.incrementOrDecrementNumberValue(t,e,n,i)}),100)},this.numberButtonMouseUpAndMouseOutHandler=()=>{clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonMouseDownHandler=t=>{t.preventDefault(),this.nudgeNumberValue(t.target.dataset.adjustment,t)},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setLocalizedValue=t=>{this.localizedValue=x(t,this.locale,this.groupSeparator)},this.setValue=(t,i,e=!1)=>{const n=this.value;this.value="number"===this.type?y(t):t,"number"===this.type&&this.setLocalizedValue(this.value),i&&("number"===this.type&&(t=y(t)),this.calciteInputInput.emit({element:this.childEl,nativeEvent:i,value:t}).defaultPrevented?(this.value=n,this.setLocalizedValue(n)):e&&this.calciteInputChange.emit())},this.inputKeyUpHandler=()=>{clearInterval(this.nudgeNumberValueIntervalId)}}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var t;this.maxString=(null===(t=this.max)||void 0===t?void 0:t.toString())||null}minWatcher(){var t;this.minString=(null===(t=this.min)||void 0===t?void 0:t.toString())||null}valueWatcher(t){null!=t?"number"===this.type&&this.localizedValue!==x(t,this.locale)?this.setLocalizedValue(t):this.childEl&&this.childEl.value!==t&&(this.childEl.value=t):this.value=""}updateRequestedIcon(){this.requestedIcon=r(D,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||"search"===this.type)&&this.value.length>0}get isTextarea(){return"textarea"===this.childElType}connectedCallback(){var t;this.scale=s(this.el,"scale",this.scale),this.status=s(this.el,"status",this.status),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.editingEnabled=null===(t=this.inlineEditableEl)||void 0===t?void 0:t.editingEnabled,"number"===this.type&&this.value&&(w(this.value)?this.localizedValue=x(this.value,this.locale,this.groupSeparator):this.value=void 0),h(this),m(this)}disconnectedCallback(){u(this),p(this)}componentWillLoad(){var t,i;this.childElType="textarea"===this.type?"textarea":"input",this.maxString=null===(t=this.max)||void 0===t?void 0:t.toString(),this.minString=null===(i=this.min)||void 0===i?void 0:i.toString(),this.requestedIcon=r(D,this.icon,this.type)}componentDidLoad(){this.slottedActionEl=this.el.querySelector("[slot=action]"),this.setDisabledAction()}componentShouldUpdate(t,i,e){return!("number"===this.type&&"value"===e&&t&&!w(t)&&(this.value=i,1))}async setFocus(){var t,i;"number"===this.type?null===(t=this.childNumberEl)||void 0===t||t.focus():null===(i=this.childEl)||void 0===i||i.focus()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,i,e,n){const{value:a}=this,o="any"===this.step?1:Math.abs(this.step||1),r=a&&""!==a?parseFloat(a):0,s=r+o*("up"===t?1:-1),l="number"==typeof e&&!isNaN(e)&&s<e||"number"==typeof i&&!isNaN(i)&&s>i?r:s,c=z(r),h=z(o);this.setValue(l.toFixed(Math.max(c,h)),n,!0)}onFormReset(){this.setValue(this.defaultValue)}syncHiddenFormInput(t){var i,e,n,a;"number"===this.type?(t.type="number",t.min=null!==(e=null===(i=this.min)||void 0===i?void 0:i.toString(10))&&void 0!==e?e:"",t.max=null!==(a=null===(n=this.max)||void 0===n?void 0:n.toString(10))&&void 0!==a?a:""):"text"===this.type?(t.type="text",null!=this.minLength&&(t.minLength=this.minLength),null!=this.maxLength&&(t.maxLength=this.maxLength)):"password"===this.type&&(t.type="password")}setDisabledAction(){if(!this.slottedActionEl)return;const t=this.slottedActionEl;this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")}render(){const t=l(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.intlLoading,type:"indeterminate"})),a=e("button",{class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},e("calcite-icon",{icon:"x",scale:"s"})),o=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"}),r="horizontal"===this.numberButtonType,s=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-up",scale:"s"})),h=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":r},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-down",scale:"s"})),u=e("div",{class:"number-button-wrapper"},s,h),m=e("div",{class:"prefix"},this.prefixText),p=e("div",{class:"suffix"},this.suffixText),f="number"===this.type?e("input",{"aria-label":d(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.localizedValue}):null,g="number"!==this.type?[e(this.childElType,{"aria-label":d(this),autofocus:!!this.autofocus||null,class:{"editing-enabled":this.editingEnabled,"inline-child":!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,name:this.name,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:!!this.required||null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?e("div",{class:"resize-icon-wrapper"},e("calcite-icon",{icon:"chevron-down",scale:"s"})):null]:null;return e(n,{onClick:this.inputFocusHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[c.rtl]:"rtl"===t}},"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:h,this.prefixText?m:null,e("div",{class:"element-wrapper"},f,g,this.isClearable?a:null,this.requestedIcon?o:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),"number"!==this.type||"vertical"!==this.numberButtonType||this.readOnly?null:u,this.suffixText?p:null,"number"!==this.type||"horizontal"!==this.numberButtonType||this.readOnly?null:s,e(b,{component:this})))}get el(){return a(this)}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}}};j.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{font-size:var(--calcite-font-size--2);line-height:1rem;padding:0.5rem;height:1.5rem}:host([scale=s]) textarea{height:1.5rem;min-height:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{height:1.5rem}:host([scale=s]) input[type=file]{height:1.5rem}:host([scale=s]) .clear-button{min-height:1.5rem;min-width:1.5rem}:host([scale=s]) textarea{font-size:var(--calcite-font-size--2);line-height:1rem;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;height:auto}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{font-size:var(--calcite-font-size--1);line-height:1rem;padding:0.75rem;height:2rem}:host([scale=m]) textarea{min-height:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{height:2rem}:host([scale=m]) input[type=file]{height:2rem}:host([scale=m]) .clear-button{min-height:2rem;min-width:2rem}:host([scale=m]) textarea{font-size:var(--calcite-font-size--1);line-height:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;height:auto}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding:1rem;height:2.75rem}:host([scale=l]) textarea{min-height:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{height:2.75rem}:host([scale=l]) input[type=file]{height:2.75rem}:host([scale=l]) .clear-button{min-height:2.75rem;min-width:2.75rem}:host([scale=l]) textarea{font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;height:auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .wrapper{pointer-events:none;--text-opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) button,:host([disabled]) textarea,:host([disabled]) input{pointer-events:none}:host([disabled]) textarea{resize:none}:host textarea,:host input{-webkit-transition:150ms ease-in-out, height 0s;transition:150ms ease-in-out, height 0s;-webkit-appearance:none;width:100%;border-radius:0;position:relative;max-height:100%;max-width:100%;margin:0;font-weight:var(--calcite-font-weight-normal);font-family:inherit;-ms-flex:1 1 0%;flex:1 1 0%;display:-ms-flexbox;display:flex;color:var(--calcite-ui-text-1);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{color:var(--calcite-ui-text-1);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder,:host textarea::placeholder,:host textarea:-ms-input-placeholder,:host textarea::-ms-input-placeholder{color:var(--calcite-ui-text-3);font-weight:var(--calcite-font-weight-normal)}:host input:focus,:host textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly],:host textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus,:host textarea[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host textarea,:host input{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host textarea:focus,:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:1 1 0%;flex:1 1 0%;position:relative;-ms-flex-order:3;order:3}.icon{display:block;position:absolute;pointer-events:none;z-index:10;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;min-height:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);-ms-flex-order:4;order:4;margin:0;border-inline-start-width:0}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{top:1px;left:1px;right:1px;display:block;pointer-events:none;position:absolute}.action-wrapper{display:-ms-flexbox;display:flex;-ms-flex-order:7;order:7}.prefix,.suffix{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:var(--calcite-font-weight-medium);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);color:var(--calcite-ui-text-2);line-height:1;word-wrap:break-word;overflow-wrap:break-word}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}:host input[type=number]{-moz-appearance:textfield}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;-ms-flex-order:6;order:6;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{min-height:100%;max-height:100%;-ms-flex-order:1;order:1;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-top-width:0}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;padding-top:0;padding-bottom:0;padding-left:0.5rem;padding-right:0.5rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;margin:0;border-inline-start-width:0}.number-button-item calcite-icon{pointer-events:none;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;position:relative}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;padding-top:0;padding-bottom:0;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);position:absolute;z-index:10;pointer-events:none;width:0.75rem;height:0.75rem}.resize-icon-wrapper calcite-icon{bottom:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{background-color:var(--calcite-ui-foreground-1);cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);text-align:center}:host([type=file][scale=s]) input{padding-top:1px;padding-bottom:1px;padding-left:0.5rem;padding-right:0.5rem}:host([type=file][scale=m]) input{padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem}:host([type=file][scale=l]) input{padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem}:host(.no-bottom-border) input{border-bottom-width:0}:host(.border-t-color-1) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;background-color:transparent}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{j as calcite_input}
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
function n(n){return"Enter"===n||" "===n}const r=["0","1","2","3","4","5","6","7","8","9"];function u(n){return!(!n||isNaN(Number(n)))}function t(n){if(!n||(t=n,!r.some((n=>t.includes(n)))))return null;var t;let e=!1;const a=n.split("").filter(((n,u)=>n.match(/\./g)&&!e?(e=!0,!0):!(!n.match(/\-/g)||0!==u)||r.includes(n))).reduce(((n,r)=>n+r));return u(a)?Number(a).toString():null}function e(n){return(null==n?void 0:n.endsWith("."))?n.replace(".",""):n}function a(n){return n?Number((r=e((u=n,u.replace(/^0+$/,"0"))),r.charAt(0)+r.substring(1).replace(/-/g,""))).toString():n;var r,u}export{e as a,n as b,u as i,r as n,t as p,a as s}
|
|
@@ -1,5 +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
|
-
*/
|
|
5
|
-
import{r as t,h as i,g as a,c as e,H as s}from"./p-2e29554c.js";import{g as n}from"./p-8a63221d.js";import{j as l}from"./p-52cc870b.js";import{d as h,c as r}from"./p-2d09cc25.js";import{c as o,d as c}from"./p-3dae9da3.js";import{c as m,d,a as u,H as b}from"./p-1942876c.js";function p(t,i,a){const e=i[0]-t[0];return e?(3*(i[1]-t[1])/e-a)/2:a}function f(t,i,a,e,s){const[n,l]=t,[h,r]=i,o=(h-n)/3;return`C ${s([n+o,l+o*a]).join(",")} ${s([h-o,r-o*e]).join(",")} ${s([h,r]).join(",")}`}let v=class{constructor(i){t(this,i),this.data=[],this.width=300,this.height=100,this.graphId=`calcite-graph-${n()}`}render(){const{data:t,colorStops:a,width:e,height:s,highlightMax:n,highlightMin:l,min:h,max:r}=this,o=this.graphId;if(!t||0===t.length)return i("svg",{class:"svg",height:s,preserveAspectRatio:"none",viewBox:`0 0 ${e} ${s}`,width:e});const{min:c,max:m}=function(t){const[i,a]=t[0];return t.reduce((({min:t,max:i},[a,e])=>({min:[Math.min(t[0],a),Math.min(t[1],e)],max:[Math.max(i[0],a),Math.max(i[1],e)]})),{min:[i,a],max:[i,a]})}(t);let d=c,u=m;(h<c[0]||h>c[0])&&(d=[h,0]),(r>m[0]||r<m[0])&&(u=[r,m[1]]);const b=function({width:t,height:i,min:a,max:e}){const s=e[0]-a[0],n=e[1]-a[1];return e=>[(e[0]-a[0])/s*t,i-e[1]/n*i]}({min:d,max:u,width:e,height:s}),[v]=b([l,u[1]]),[g]=b([n,u[1]]),_=function({data:t,min:i,max:a,t:e}){if(0===t.length)return"";const[s,n]=e(t[0]),[l,h]=e(i),[r]=e(a);let o,c,m;const d=t.reduce(((i,a,s)=>{if(c=t[s-2],m=t[s-1],s>1){const t=function(t,i,a){const e=i[0]-t[0],s=a[0]-i[0],n=(i[1]-t[1])/(e||s<0&&0),l=(a[1]-i[1])/(s||e<0&&0),h=(n*s+l*e)/(e+s);return(Math.sign(n)+Math.sign(l))*Math.min(Math.abs(n),Math.abs(l),.5*Math.abs(h))||0}(c,m,a),s=void 0===o?p(c,m,t):o,n=f(c,m,s,t,e);return o=t,`${i} ${n}`}return i}),`M ${l},${h} L ${l},${n} L ${s},${n}`),u=t[t.length-1];return`${d} ${f(m,u,o,p(m,u,o),e)} L ${r},${h} Z`}({data:t,min:c,max:m,t:b}),x=a?`url(#linear-gradient-${o})`:void 0;return i("svg",{class:"svg",height:s,preserveAspectRatio:"none",viewBox:`0 0 ${e} ${s}`,width:e},a?i("defs",null,i("linearGradient",{id:`linear-gradient-${o}`,x1:"0",x2:"1",y1:"0",y2:"0"},a.map((({offset:t,color:a,opacity:e})=>i("stop",{offset:100*t+"%","stop-color":a,"stop-opacity":e}))))):null,void 0!==l?[i("mask",{height:"100%",id:`${o}1`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M 0,0\n L ${v-1},0\n L ${v-1},${s}\n L 0,${s}\n Z\n `,fill:"white"})),i("mask",{height:"100%",id:`${o}2`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M ${v+1},0\n L ${g-1},0\n L ${g-1},${s}\n L ${v+1}, ${s}\n Z\n `,fill:"white"})),i("mask",{height:"100%",id:`${o}3`,width:"100%",x:"0%",y:"0%"},i("path",{d:`\n M ${g+1},0\n L ${e},0\n L ${e},${s}\n L ${g+1}, ${s}\n Z\n `,fill:"white"})),i("path",{class:"graph-path",d:_,fill:x,mask:`url(#${o}1)`}),i("path",{class:"graph-path--highlight",d:_,fill:x,mask:`url(#${o}2)`}),i("path",{class:"graph-path",d:_,fill:x,mask:`url(#${o}3)`})]:i("path",{class:"graph-path",d:_,fill:x}))}get el(){return a(this)}};v.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.svg{fill:currentColor;stroke:transparent;margin:0;padding:0;display:block}:host([data-style=slider-histogram]) svg{width:100%}:host([data-style=slider-histogram]) svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";let g=class{constructor(i){t(this,i),this.calciteSliderInput=e(this,"calciteSliderInput",7),this.calciteSliderChange=e(this,"calciteSliderChange",7),this.calciteSliderUpdate=e(this,"calciteSliderUpdate",7),this.disabled=!1,this.hasHistogram=!1,this.labelHandles=!1,this.labelTicks=!1,this.max=100,this.min=0,this.mirrored=!1,this.precise=!1,this.required=!1,this.snap=!1,this.step=1,this.value=null,this.scale="m",this.guid=`calcite-slider-${n()}`,this.isRange=!1,this.activeProp="value",this.minMaxValueRange=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.tickValues=[],this.dragUpdate=t=>{if(t.preventDefault(),this.dragProp){const i=this.translate(t.clientX||t.pageX);if(this.isRange&&"minMaxValue"===this.dragProp)if(this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange){const t=i-this.minValueDragRange,a=i+this.maxValueDragRange;a<=this.max&&t>=this.min&&a-t===this.minMaxValueRange&&(this.minValue=this.clamp(t,"minValue"),this.maxValue=this.clamp(a,"maxValue"))}else this.minValueDragRange=i-this.minValue,this.maxValueDragRange=this.maxValue-i,this.minMaxValueRange=this.maxValue-this.minValue;else this.setValue(this.dragProp,this.clamp(i,this.dragProp))}},this.dragEnd=t=>{document.removeEventListener("pointermove",this.dragUpdate),document.removeEventListener("pointerup",this.dragEnd),document.removeEventListener("pointercancel",this.dragEnd),this.focusActiveHandle(t.clientX),this.lastDragPropValue!=this[this.dragProp]&&this.emitChange(),this.dragProp=null,this.lastDragPropValue=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.minMaxValueRange=null},this.storeTrackRef=t=>{this.trackEl=t}}histogramWatcher(t){this.hasHistogram=!!t}connectedCallback(){o(this),m(this)}disconnectedCallback(){c(this),d(this)}componentWillLoad(){this.isRange=!(!this.maxValue&&0!==this.maxValue),this.tickValues=this.generateTickValues(),this.value=this.clamp(this.value),u(this,this.value),this.snap&&(this.value=this.getClosestStep(this.value)),this.histogram&&(this.hasHistogram=!0)}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),this.isRange&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&this.isRange&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels())),this.hideObscuredBoundingTickLabels()}render(){const t=this.el.id||this.guid,a=this.minValue||this.min,e=this.maxValue||this.value,n=this.isRange?"maxValue":"value",l=this[n],h=this.shouldUseMinValue(),r=100*this.getUnitInterval(h?this.minValue:a),o=100*this.getUnitInterval(e),c=this.shouldMirror(),m=`${c?100-r:r}%`,d=`${c?o:100-o}%`,u=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("div",{class:"handle"})),p=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},l?l.toLocaleString():l),i("div",{class:"handle"})),f=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("div",{class:"handle"}),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},l?l.toLocaleString():l)),v=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("div",{class:"handle"}),i("div",{class:"handle-extension"})),g=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("div",{class:"handle-extension"}),i("div",{class:"handle"})),_=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},l?l.toLocaleString():l),i("div",{class:"handle"}),i("div",{class:"handle-extension"})),x=i("button",{"aria-label":this.isRange?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":l,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===n,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=n,onPointerDown:()=>this.dragStart(n),ref:t=>this.maxHandle=t,role:"slider",style:{right:d}},i("div",{class:"handle-extension"}),i("div",{class:"handle"}),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value static"},l?l.toLocaleString():l),i("span",{"aria-hidden":"true",class:"handle__label handle__label--value transformed"},l?l.toLocaleString():l)),w=i("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:()=>this.dragStart("minValue"),ref:t=>this.minHandle=t,role:"slider",style:{left:m}},i("div",{class:"handle"})),k=i("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:()=>this.dragStart("minValue"),ref:t=>this.minHandle=t,role:"slider",style:{left:m}},i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString()),i("div",{class:"handle"})),y=i("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:()=>this.dragStart("minValue"),ref:t=>this.minHandle=t,role:"slider",style:{left:m}},i("div",{class:"handle"}),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString())),$=i("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:()=>this.dragStart("minValue"),ref:t=>this.minHandle=t,role:"slider",style:{left:m}},i("div",{class:"handle-extension"}),i("div",{class:"handle"})),D=i("button",{"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},disabled:this.disabled,onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:()=>this.dragStart("minValue"),ref:t=>this.minHandle=t,role:"slider",style:{left:m}},i("div",{class:"handle-extension"}),i("div",{class:"handle"}),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue static"},this.minValue&&this.minValue.toLocaleString()),i("span",{"aria-hidden":"true",class:"handle__label handle__label--minValue transformed"},this.minValue&&this.minValue.toLocaleString()));return i(s,{id:t,onTouchStart:this.handleTouchStart},i("div",{class:{container:!0,"container--range":this.isRange,[`scale--${this.scale}`]:!0}},this.renderGraph(),i("div",{class:"track",ref:this.storeTrackRef},i("div",{class:"track__range",onPointerDown:()=>this.dragStart("minMaxValue"),style:{left:`${c?100-o:r}%`,right:`${c?r:100-o}%`}}),i("div",{class:"ticks"},this.tickValues.map((t=>{const s=100*this.getUnitInterval(t)+"%";let n=t>=a&&t<=e;return h&&(n=t>=this.minValue&&t<=this.maxValue),i("span",{class:{tick:!0,"tick--active":n},style:{left:c?"":s,right:c?s:""}},this.renderTickLabel(t))})))),i("div",{class:"thumb-container"},!this.precise&&!this.labelHandles&&this.isRange&&w,!this.hasHistogram&&!this.precise&&this.labelHandles&&this.isRange&&k,this.precise&&!this.labelHandles&&this.isRange&&$,this.precise&&this.labelHandles&&this.isRange&&D,this.hasHistogram&&!this.precise&&this.labelHandles&&this.isRange&&y,!this.precise&&!this.labelHandles&&u,!this.hasHistogram&&!this.precise&&this.labelHandles&&p,!this.hasHistogram&&this.precise&&!this.labelHandles&&v,this.hasHistogram&&this.precise&&!this.labelHandles&&g,!this.hasHistogram&&this.precise&&this.labelHandles&&_,this.hasHistogram&&!this.precise&&this.labelHandles&&f,this.hasHistogram&&this.precise&&this.labelHandles&&x,i(b,{component:this}))))}renderGraph(){return this.histogram?i("div",{class:"graph"},i("calcite-graph",{colorStops:this.histogramStops,data:this.histogram,"data-style":"slider-histogram",height:48,highlightMax:this.isRange?this.maxValue:this.value,highlightMin:this.isRange?this.minValue:this.min,max:this.max,min:this.min,width:300})):null}renderTickLabel(t){const a=t===this.min,e=t===this.max,s=i("span",{class:{tick__label:!0,"tick__label--min":a,"tick__label--max":e}},t.toLocaleString());return this.labelTicks&&!this.hasHistogram&&!this.isRange||this.labelTicks&&!this.hasHistogram&&this.isRange&&!this.precise&&!this.labelHandles||this.labelTicks&&!this.hasHistogram&&this.isRange&&!this.precise&&this.labelHandles||this.labelTicks&&!this.hasHistogram&&this.isRange&&this.precise&&(a||e)||this.labelTicks&&this.hasHistogram&&!this.precise&&!this.labelHandles||this.labelTicks&&this.hasHistogram&&this.precise&&!this.labelHandles&&(a||e)||this.labelTicks&&this.hasHistogram&&!this.precise&&this.labelHandles&&(a||e)||this.labelTicks&&this.hasHistogram&&this.precise&&this.labelHandles&&(a||e)?s:null}keyDownHandler(t){const i=this.shouldMirror(),{activeProp:a,max:e,min:s,pageStep:n,step:l}=this,r=this[a],o=t.key;if("Enter"===o||" "===o)return void t.preventDefault();let c;if("ArrowUp"===o||"ArrowRight"===o?c=r+l*(i&&"ArrowRight"===o?-1:1):"ArrowDown"===o||"ArrowLeft"===o?c=r-l*(i&&"ArrowLeft"===o?-1:1):"PageUp"===o?n&&(c=r+n):"PageDown"===o?n&&(c=r-n):"Home"===o?c=s:"End"===o&&(c=e),isNaN(c))return;t.preventDefault();const m=Number(c.toFixed(h(l)));this.setValue(a,this.clamp(m,a))}clickHandler(t){this.focusActiveHandle(t.clientX)}pointerDownHandler(t){const i=this.translate(t.clientX||t.pageX);let a="value";this.isRange&&(a=i>=this.minValue&&i<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-i)<Math.abs(this.minValue-i)||i>this.maxValue?"maxValue":"minValue"),this.lastDragPropValue=this[a],this.dragStart(a),this.el.shadowRoot.querySelector(".thumb:active")||this.setValue(a,this.clamp(i,a))}handleTouchStart(t){t.preventDefault()}async setFocus(){(this.minHandle?this.minHandle:this.maxHandle).focus()}onLabelClick(){this.setFocus()}shouldMirror(){return this.mirrored&&!this.hasHistogram}shouldUseMinValue(){return!!this.isRange&&(this.hasHistogram&&0===this.maxValue||!this.hasHistogram&&0===this.minValue)}generateTickValues(){const t=[];let i=this.min;for(;this.ticks&&i<this.max+this.ticks;)t.push(Math.min(i,this.max)),i+=this.ticks;return t}dragStart(t){this.dragProp=t,this.lastDragProp=this.dragProp,this.activeProp=t,document.addEventListener("pointermove",this.dragUpdate),document.addEventListener("pointerup",this.dragEnd),document.addEventListener("pointercancel",this.dragEnd)}focusActiveHandle(t){switch(this.dragProp){case"minValue":this.minHandle.focus();break;case"maxValue":this.maxHandle.focus();break;case"minMaxValue":this.getClosestHandle(t).focus()}}emitInput(){this.calciteSliderInput.emit(),this.calciteSliderUpdate.emit()}emitChange(){this.calciteSliderChange.emit()}setValue(t,i){this[t]!==i&&(this[t]=i,this.dragProp||this.emitChange(),this.emitInput())}clamp(t,i){return t=r(t,this.min,this.max),"maxValue"===i&&(t=Math.max(t,this.minValue)),"minValue"===i&&(t=Math.min(t,this.maxValue)),t}translate(t){const i=this.max-this.min,{left:a,width:e}=this.trackEl.getBoundingClientRect(),s=(t-a)/e,n=this.shouldMirror(),l=this.clamp(this.min+i*(n?1-s:s));let r=Number(l.toFixed(h(this.step)));return this.snap&&this.step&&(r=this.getClosestStep(r)),r}getClosestStep(t){if(t=Number(this.clamp(t).toFixed(h(this.step))),this.step){const i=Math.round(t/this.step)*this.step;t=Number(this.clamp(i).toFixed(h(this.step)))}return t}getClosestHandle(t){return this.getDistanceX(this.maxHandle,t)>this.getDistanceX(this.minHandle,t)?this.minHandle:this.maxHandle}getDistanceX(t,i){return Math.abs(t.getBoundingClientRect().left-i)}getFontSizeForElement(t){return Number(window.getComputedStyle(t).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(t){return((t=this.clamp(t))-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(t){const i=this.el.shadowRoot.querySelector(`.handle__label--${t}`),a=this.el.shadowRoot.querySelector(`.handle__label--${t}.static`),e=this.el.shadowRoot.querySelector(`.handle__label--${t}.transformed`),s=a.getBoundingClientRect(),n=this.getHostOffset(s.left,s.right);i.style.transform=`translateX(${n}px)`,e.style.transform=`translateX(${n}px)`}hyphenateCollidingRangeHandleLabels(){const{shadowRoot:t}=this.el,i=this.shouldMirror(),a=i?"value":"minValue",e=i?"minValue":"value",s=t.querySelector(`.handle__label--${a}`),n=t.querySelector(`.handle__label--${a}.static`),l=t.querySelector(`.handle__label--${a}.transformed`),h=this.getHostOffset(n.getBoundingClientRect().left,n.getBoundingClientRect().right),r=t.querySelector(`.handle__label--${e}`),o=t.querySelector(`.handle__label--${e}.static`),c=t.querySelector(`.handle__label--${e}.transformed`),m=this.getHostOffset(o.getBoundingClientRect().left,o.getBoundingClientRect().right),d=this.getFontSizeForElement(s),u=this.getRangeLabelOverlap(l,c),b=s,p=d/2;if(u>0){if(b.classList.add("hyphen"),0===m&&0===h){let t=u/2-p;t=-1===Math.sign(t)?Math.abs(t):-t;const i=this.getHostOffset(l.getBoundingClientRect().left+t-p,l.getBoundingClientRect().right+t-p);let a=u/2;const e=this.getHostOffset(c.getBoundingClientRect().left+a,c.getBoundingClientRect().right+a);0!==i&&(t+=i,a+=i),0!==e&&(t+=e,a+=e),s.style.transform=`translateX(${t}px)`,l.style.transform=`translateX(${t-p}px)`,r.style.transform=`translateX(${a}px)`,c.style.transform=`translateX(${a}px)`}else if(h>0||m>0)s.style.transform=`translateX(${h+p}px)`,r.style.transform=`translateX(${u+m}px)`,c.style.transform=`translateX(${u+m}px)`;else if(h<0||m<0){let t=Math.abs(h)+u-p;t=-1===Math.sign(t)?Math.abs(t):-t,s.style.transform=`translateX(${t}px)`,l.style.transform=`translateX(${t-p}px)`}}else b.classList.remove("hyphen"),s.style.transform=`translateX(${h}px)`,l.style.transform=`translateX(${h}px)`,r.style.transform=`translateX(${m}px)`,c.style.transform=`translateX(${m}px)`}hideObscuredBoundingTickLabels(){if(!(this.hasHistogram||this.isRange||this.labelHandles||this.precise))return;if(!this.hasHistogram&&!this.isRange&&this.labelHandles&&!this.precise)return;if(!this.hasHistogram&&!this.isRange&&!this.labelHandles&&this.precise)return;if(!this.hasHistogram&&!this.isRange&&this.labelHandles&&this.precise)return;if(!this.hasHistogram&&this.isRange&&!this.precise)return;if(this.hasHistogram&&!this.precise&&!this.labelHandles)return;const t=this.el.shadowRoot.querySelector(".thumb--minValue"),i=this.el.shadowRoot.querySelector(".thumb--value"),a=this.el.shadowRoot.querySelector(".tick__label--min"),e=this.el.shadowRoot.querySelector(".tick__label--max");!t&&i&&a&&e&&(a.style.opacity=this.isMinTickLabelObscured(a,i)?"0":"1",e.style.opacity=this.isMaxTickLabelObscured(e,i)?"0":"1"),t&&i&&a&&e&&(a.style.opacity=this.isMinTickLabelObscured(a,t)||this.isMinTickLabelObscured(a,i)?"0":"1",e.style.opacity=this.isMaxTickLabelObscured(e,t)||this.isMaxTickLabelObscured(e,i)&&this.hasHistogram?"0":"1")}getHostOffset(t,i){const a=this.el.getBoundingClientRect();return t+7<a.left?a.left-t-7:i-7>a.right?7-(i-a.right):0}getRangeLabelOverlap(t,i){const a=t.getBoundingClientRect(),e=i.getBoundingClientRect(),s=this.getFontSizeForElement(t);return Math.max(a.right+s-e.left,0)}isMinTickLabelObscured(t,i){const a=t.getBoundingClientRect(),e=i.getBoundingClientRect();return l(a,e)}isMaxTickLabelObscured(t,i){const a=t.getBoundingClientRect(),e=i.getBoundingClientRect();return l(a,e)}get el(){return a(this)}static get watchers(){return{histogram:["histogramWatcher"]}}};g.style='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{display:block;position:relative;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{max-width:100%;position:relative}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label.hyphen::after{content:"—";display:inline-block;width:1em}.thumb .handle{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{height:0.125rem;border-radius:0;position:relative;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:"";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;width:0.125rem;height:0.25rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;pointer-events:none;margin-top:0.875rem}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';export{v as calcite_graph,g as calcite_slider}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function c(e){try{l(a["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):i(e.value).then(o,c)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return l([e,t])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
*/System.register(["./p-288bc438.system.js","./p-6cc23c39.system.js","./p-34e5baa7.system.js","./p-a0c02648.system.js","./p-e020662f.system.js"],(function(e){"use strict";var t,n,a,i,r,o,c,l,s;return{setters:[function(e){t=e.r;n=e.c;a=e.h;i=e.F;r=e.g},function(e){o=e.a;c=e.g},function(e){l=e.C},function(e){s=e.S},function(){}],execute:function(){var d={backButton:"back-button",container:"container",header:"header",heading:"heading",summary:"summary",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",contentContainer:"content-container",contentHeight:"content-height",fabContainer:"fab-container",footer:"footer",menuContainer:"menu-container",menuButton:"menu-button",menu:"menu",menuOpen:"menu--open"};var h={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right"};var m={headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions"};var u={back:"Back",close:"Close",open:"Open",options:"Options"};var f=3;var p="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;position:relative;width:100%;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}.header{margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between;color:var(--calcite-ui-text-2);}.heading{font-weight:var(--calcite-font-weight-medium);margin:0;padding:0}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);width:100%;padding:0;margin:0;max-height:var(--calcite-panel-max-height);width:var(--calcite-panel-width);max-width:var(--calcite-panel-max-width);min-width:var(--calcite-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, width 150ms ease-in-out;transition:max-height 150ms ease-in-out, width 150ms ease-in-out}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{border-bottom:1px solid;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);-ms-flex-pack:start;justify-content:flex-start;position:-webkit-sticky;position:sticky;top:0;border-bottom-color:var(--calcite-ui-border-3);width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;z-index:2}.header-content{overflow:hidden;padding-left:0.75rem;padding-right:0.75rem;padding-top:1rem;padding-bottom:1rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .summary{padding:0;display:block;word-wrap:break-word;overflow-wrap:break-word}.header-content .heading{font-weight:var(--calcite-font-weight-medium);margin-top:0;margin-left:0;margin-right:0;margin-bottom:0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}.header-content .heading:only-child{margin-bottom:0}.header-content .summary{color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1);line-height:1rem}.back-button{border-color:var(--calcite-ui-border-3);border-style:solid;border-width:0;border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{-ms-flex-item-align:stretch;align-self:stretch;-ms-flex:0 1 auto;flex:0 1 auto;height:100%;position:relative}.menu{min-width:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{height:100%}.content-container{-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:column;flex-direction:column}.footer{border-top:1px solid;background-color:var(--calcite-ui-foreground-1);border-top-color:var(--calcite-ui-border-3);display:-ms-flexbox;display:flex;-ms-flex-pack:space-evenly;justify-content:space-evenly;position:-webkit-sticky;position:sticky;bottom:0;width:100%;-ms-flex:0 0 auto;flex:0 0 auto;min-height:3rem;padding:0.5rem}.fab-container{display:block;position:-webkit-sticky;position:sticky;margin-top:0;margin-bottom:0;margin-left:auto;margin-right:auto;padding:0.5rem;bottom:0;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;z-index:1}";var b=e("calcite_panel",function(){function e(e){var a=this;t(this,e);this.calcitePanelDismissedChange=n(this,"calcitePanelDismissedChange",7);this.calcitePanelScroll=n(this,"calcitePanelScroll",7);this.calcitePanelBackClick=n(this,"calcitePanelBackClick",7);this.dismissed=false;this.disabled=false;this.dismissible=false;this.showBackButton=false;this.loading=false;this.menuOpen=false;this.setContainerRef=function(e){a.containerEl=e};this.setDismissRef=function(e){a.dismissButtonEl=e};this.setBackRef=function(e){a.backButtonEl=e};this.panelKeyDownHandler=function(e){if(e.key==="Escape"){a.dismiss()}};this.dismiss=function(){a.dismissed=true};this.panelScrollHandler=function(){a.calcitePanelScroll.emit()};this.backButtonClick=function(){a.calcitePanelBackClick.emit()}}e.prototype.dismissedHandler=function(){this.calcitePanelDismissedChange.emit()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a;return __generator(this,(function(i){if(e==="dismiss-button"){(t=this.dismissButtonEl)===null||t===void 0?void 0:t.setFocus();return[2]}if(e==="back-button"){(n=this.backButtonEl)===null||n===void 0?void 0:n.setFocus();return[2]}(a=this.containerEl)===null||a===void 0?void 0:a.focus();return[2]}))}))};e.prototype.renderBackButton=function(){var e=this.el;var t=o(e)==="rtl";var n=this,i=n.showBackButton,r=n.intlBack,c=n.backButtonClick;var l=r||u.back;var s=t?h.backRight:h.backLeft;return i?a("calcite-action",{"aria-label":l,class:d.backButton,icon:s,key:"back-button",onClick:c,ref:this.setBackRef,scale:"s",slot:m.headerActionsStart,text:l}):null};e.prototype.renderHeaderContent=function(){var e=this,t=e.heading,n=e.headingLevel,i=e.summary;var r=t?a(l,{class:d.heading,level:n||f},t):null;var o=i?a("span",{class:d.summary},i):null;return r||o?a("div",{class:d.headerContent,key:"header-content"},r,o):null};e.prototype.renderHeaderSlottedContent=function(){return a("div",{class:d.headerContent,key:"header-content"},a("slot",{name:m.headerContent}))};e.prototype.renderHeaderStartActions=function(){var e;var t=this.el;var n=c(t,m.headerActionsStart);return n?a("div",{class:(e={},e[d.headerActionsStart]=true,e[d.headerActions]=true,e),key:"header-actions-start"},a("slot",{name:m.headerActionsStart})):null};e.prototype.renderHeaderActionsEnd=function(){var e;var t=this,n=t.dismiss,i=t.dismissible,r=t.el,o=t.intlClose;var l=o||u.close;var s=i?a("calcite-action",{"aria-label":l,icon:h.close,onClick:n,ref:this.setDismissRef,text:l}):null;var f=a("slot",{name:m.headerActionsEnd});var p=c(r,m.headerActionsEnd);return p||s?a("div",{class:(e={},e[d.headerActionsEnd]=true,e[d.headerActions]=true,e),key:"header-actions-end"},f,s):null};e.prototype.renderMenu=function(){var e=this,t=e.el,n=e.intlOptions,i=e.menuOpen;var r=c(t,m.headerMenuActions);return r?a("calcite-action-menu",{flipPlacements:["top","bottom"],label:n||u.options,open:i,placement:"bottom-end"},a("calcite-action",{icon:h.menu,slot:s.trigger,text:n||u.options}),a("slot",{name:m.headerMenuActions})):null};e.prototype.renderHeaderNode=function(){var e=this,t=e.el,n=e.showBackButton;var i=this.renderBackButton();var r=c(t,m.headerContent);var o=r?this.renderHeaderSlottedContent():this.renderHeaderContent();var l=this.renderHeaderStartActions();var s=this.renderHeaderActionsEnd();var h=this.renderMenu();return l||o||s||h||n?a("header",{class:d.header},i,l,o,s,h):null};e.prototype.renderFooterSlottedContent=function(){var e=this.el;var t=c(e,m.footer);return t?a("footer",{class:d.footer},a("slot",{name:m.footer})):null};e.prototype.renderFooterActions=function(){var e=this.el;var t=c(e,m.footerActions);return t?a("footer",{class:d.footer},a("slot",{name:m.footerActions})):null};e.prototype.renderContent=function(){var e,t;var n=this.el;var i=c(n,m.fab);return i?a("div",{class:(e={},e[d.contentWrapper]=true,e[d.contentHeight]=true,e),onScroll:this.panelScrollHandler,tabIndex:0},a("section",{class:d.contentContainer},a("slot",null)),this.renderFab()):a("section",{class:(t={},t[d.contentWrapper]=true,t[d.contentContainer]=true,t),onScroll:this.panelScrollHandler,tabIndex:0},a("slot",null))};e.prototype.renderFab=function(){return a("div",{class:d.fabContainer},a("slot",{name:m.fab}))};e.prototype.render=function(){var e=this,t=e.dismissed,n=e.disabled,r=e.dismissible,o=e.loading,c=e.panelKeyDownHandler;var l=a("article",{"aria-busy":o.toString(),class:d.container,hidden:r&&t,onKeyDown:c,ref:this.setContainerRef,tabIndex:r?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterSlottedContent()||this.renderFooterActions());return a(i,null,o||n?a("calcite-scrim",{loading:o}):null,l)};Object.defineProperty(e.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dismissed:["dismissedHandler"]}},enumerable:false,configurable:true});return e}());b.style=p}}}));
|
|
@@ -1,123 +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
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
const number = require('./number-73f7b474.js');
|
|
8
|
-
|
|
9
|
-
const locales = [
|
|
10
|
-
"ar",
|
|
11
|
-
"bs",
|
|
12
|
-
"ca",
|
|
13
|
-
"cs",
|
|
14
|
-
"da",
|
|
15
|
-
"de",
|
|
16
|
-
"de-CH",
|
|
17
|
-
"el",
|
|
18
|
-
"en",
|
|
19
|
-
"en-AU",
|
|
20
|
-
"en-CA",
|
|
21
|
-
"en-GB",
|
|
22
|
-
"es",
|
|
23
|
-
"es-MX",
|
|
24
|
-
"et",
|
|
25
|
-
"fi",
|
|
26
|
-
"fr",
|
|
27
|
-
"fr-CH",
|
|
28
|
-
"he",
|
|
29
|
-
"hi",
|
|
30
|
-
"hr",
|
|
31
|
-
"hu",
|
|
32
|
-
"id",
|
|
33
|
-
"it",
|
|
34
|
-
"it-CH",
|
|
35
|
-
"ja",
|
|
36
|
-
"ko",
|
|
37
|
-
"lt",
|
|
38
|
-
"lv",
|
|
39
|
-
"mk",
|
|
40
|
-
"nb",
|
|
41
|
-
"nl",
|
|
42
|
-
"pl",
|
|
43
|
-
"pt",
|
|
44
|
-
"pt-PT",
|
|
45
|
-
"ro",
|
|
46
|
-
"ru",
|
|
47
|
-
"sk",
|
|
48
|
-
"sl",
|
|
49
|
-
"sr",
|
|
50
|
-
"sv",
|
|
51
|
-
"th",
|
|
52
|
-
"tr",
|
|
53
|
-
"uk",
|
|
54
|
-
"vi",
|
|
55
|
-
"zh-CN",
|
|
56
|
-
"zh-HK",
|
|
57
|
-
"zh-TW"
|
|
58
|
-
];
|
|
59
|
-
function createLocaleNumberFormatter(locale) {
|
|
60
|
-
return new Intl.NumberFormat(locale, {
|
|
61
|
-
minimumFractionDigits: 0,
|
|
62
|
-
maximumFractionDigits: 20
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function delocalizeNumberString(numberString, locale) {
|
|
66
|
-
if (numberString) {
|
|
67
|
-
const groupSeparator = getGroupSeparator(locale);
|
|
68
|
-
const decimalSeparator = getDecimalSeparator(locale);
|
|
69
|
-
const splitNumberString = numberString.split("");
|
|
70
|
-
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
71
|
-
const delocalizedNumberString = splitNumberString
|
|
72
|
-
.map((value, index) => {
|
|
73
|
-
if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
|
|
74
|
-
return "";
|
|
75
|
-
}
|
|
76
|
-
return value;
|
|
77
|
-
})
|
|
78
|
-
.reduce((string, part) => string + part)
|
|
79
|
-
.replace(decimalSeparator, ".");
|
|
80
|
-
return isNaN(Number(delocalizedNumberString)) ? numberString : delocalizedNumberString;
|
|
81
|
-
}
|
|
82
|
-
return numberString;
|
|
83
|
-
}
|
|
84
|
-
function getGroupSeparator(locale) {
|
|
85
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
86
|
-
const parts = formatter.formatToParts(1234567.8);
|
|
87
|
-
const value = parts.find((part) => part.type === "group").value;
|
|
88
|
-
return value.trim().length === 0 ? " " : value;
|
|
89
|
-
}
|
|
90
|
-
function getDecimalSeparator(locale) {
|
|
91
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
92
|
-
const parts = formatter.formatToParts(1234567.8);
|
|
93
|
-
const value = parts.find((part) => part.type === "decimal").value;
|
|
94
|
-
return value.trim().length === 0 ? " " : value;
|
|
95
|
-
}
|
|
96
|
-
function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
97
|
-
if (numberString) {
|
|
98
|
-
const number$1 = Number(number.sanitizeDecimalString(numberString));
|
|
99
|
-
if (!isNaN(number$1)) {
|
|
100
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
101
|
-
const parts = formatter.formatToParts(number$1);
|
|
102
|
-
const localizedNumberString = parts
|
|
103
|
-
.map(({ type, value }) => {
|
|
104
|
-
switch (type) {
|
|
105
|
-
case "group":
|
|
106
|
-
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
107
|
-
case "decimal":
|
|
108
|
-
return getDecimalSeparator(locale);
|
|
109
|
-
default:
|
|
110
|
-
return value;
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
.reduce((string, part) => string + part);
|
|
114
|
-
return localizedNumberString;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return numberString;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
exports.delocalizeNumberString = delocalizeNumberString;
|
|
121
|
-
exports.getDecimalSeparator = getDecimalSeparator;
|
|
122
|
-
exports.locales = locales;
|
|
123
|
-
exports.localizeNumberString = localizeNumberString;
|
|
@@ -1,58 +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
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
function isActivationKey(key) {
|
|
8
|
-
return key === "Enter" || key === " ";
|
|
9
|
-
}
|
|
10
|
-
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
11
|
-
|
|
12
|
-
function isValidNumber(numberString) {
|
|
13
|
-
return !(!numberString || isNaN(Number(numberString)));
|
|
14
|
-
}
|
|
15
|
-
function parseNumberString(numberString) {
|
|
16
|
-
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
let containsDecimal = false;
|
|
20
|
-
const result = numberString
|
|
21
|
-
.split("")
|
|
22
|
-
.filter((value, i) => {
|
|
23
|
-
if (value.match(/\./g) && !containsDecimal) {
|
|
24
|
-
containsDecimal = true;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
if (value.match(/\-/g) && i === 0) {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
return numberKeys.includes(value);
|
|
31
|
-
})
|
|
32
|
-
.reduce((string, part) => string + part);
|
|
33
|
-
return isValidNumber(result) ? Number(result).toString() : null;
|
|
34
|
-
}
|
|
35
|
-
function sanitizeDecimalString(decimalString) {
|
|
36
|
-
return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
|
|
37
|
-
}
|
|
38
|
-
function sanitizeNegativeString(negativeString) {
|
|
39
|
-
return negativeString.charAt(0) + negativeString.substring(1).replace(/-/g, "");
|
|
40
|
-
}
|
|
41
|
-
function sanitizeLeadingZeroString(zeroString) {
|
|
42
|
-
return zeroString.replace(/^0+$/, "0");
|
|
43
|
-
}
|
|
44
|
-
function sanitizeNumberString(value) {
|
|
45
|
-
return value
|
|
46
|
-
? Number(sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)))).toString()
|
|
47
|
-
: value;
|
|
48
|
-
}
|
|
49
|
-
function stringContainsNumbers(string) {
|
|
50
|
-
return numberKeys.some((number) => string.includes(number));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
exports.isActivationKey = isActivationKey;
|
|
54
|
-
exports.isValidNumber = isValidNumber;
|
|
55
|
-
exports.numberKeys = numberKeys;
|
|
56
|
-
exports.parseNumberString = parseNumberString;
|
|
57
|
-
exports.sanitizeDecimalString = sanitizeDecimalString;
|
|
58
|
-
exports.sanitizeNumberString = sanitizeNumberString;
|
|
@@ -1,118 +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
|
-
*/
|
|
5
|
-
import { a as sanitizeDecimalString } from './number-06e8500e.js';
|
|
6
|
-
|
|
7
|
-
const locales = [
|
|
8
|
-
"ar",
|
|
9
|
-
"bs",
|
|
10
|
-
"ca",
|
|
11
|
-
"cs",
|
|
12
|
-
"da",
|
|
13
|
-
"de",
|
|
14
|
-
"de-CH",
|
|
15
|
-
"el",
|
|
16
|
-
"en",
|
|
17
|
-
"en-AU",
|
|
18
|
-
"en-CA",
|
|
19
|
-
"en-GB",
|
|
20
|
-
"es",
|
|
21
|
-
"es-MX",
|
|
22
|
-
"et",
|
|
23
|
-
"fi",
|
|
24
|
-
"fr",
|
|
25
|
-
"fr-CH",
|
|
26
|
-
"he",
|
|
27
|
-
"hi",
|
|
28
|
-
"hr",
|
|
29
|
-
"hu",
|
|
30
|
-
"id",
|
|
31
|
-
"it",
|
|
32
|
-
"it-CH",
|
|
33
|
-
"ja",
|
|
34
|
-
"ko",
|
|
35
|
-
"lt",
|
|
36
|
-
"lv",
|
|
37
|
-
"mk",
|
|
38
|
-
"nb",
|
|
39
|
-
"nl",
|
|
40
|
-
"pl",
|
|
41
|
-
"pt",
|
|
42
|
-
"pt-PT",
|
|
43
|
-
"ro",
|
|
44
|
-
"ru",
|
|
45
|
-
"sk",
|
|
46
|
-
"sl",
|
|
47
|
-
"sr",
|
|
48
|
-
"sv",
|
|
49
|
-
"th",
|
|
50
|
-
"tr",
|
|
51
|
-
"uk",
|
|
52
|
-
"vi",
|
|
53
|
-
"zh-CN",
|
|
54
|
-
"zh-HK",
|
|
55
|
-
"zh-TW"
|
|
56
|
-
];
|
|
57
|
-
function createLocaleNumberFormatter(locale) {
|
|
58
|
-
return new Intl.NumberFormat(locale, {
|
|
59
|
-
minimumFractionDigits: 0,
|
|
60
|
-
maximumFractionDigits: 20
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function delocalizeNumberString(numberString, locale) {
|
|
64
|
-
if (numberString) {
|
|
65
|
-
const groupSeparator = getGroupSeparator(locale);
|
|
66
|
-
const decimalSeparator = getDecimalSeparator(locale);
|
|
67
|
-
const splitNumberString = numberString.split("");
|
|
68
|
-
const decimalIndex = splitNumberString.lastIndexOf(decimalSeparator);
|
|
69
|
-
const delocalizedNumberString = splitNumberString
|
|
70
|
-
.map((value, index) => {
|
|
71
|
-
if (value === groupSeparator || (value === decimalSeparator && index !== decimalIndex)) {
|
|
72
|
-
return "";
|
|
73
|
-
}
|
|
74
|
-
return value;
|
|
75
|
-
})
|
|
76
|
-
.reduce((string, part) => string + part)
|
|
77
|
-
.replace(decimalSeparator, ".");
|
|
78
|
-
return isNaN(Number(delocalizedNumberString)) ? numberString : delocalizedNumberString;
|
|
79
|
-
}
|
|
80
|
-
return numberString;
|
|
81
|
-
}
|
|
82
|
-
function getGroupSeparator(locale) {
|
|
83
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
84
|
-
const parts = formatter.formatToParts(1234567.8);
|
|
85
|
-
const value = parts.find((part) => part.type === "group").value;
|
|
86
|
-
return value.trim().length === 0 ? " " : value;
|
|
87
|
-
}
|
|
88
|
-
function getDecimalSeparator(locale) {
|
|
89
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
90
|
-
const parts = formatter.formatToParts(1234567.8);
|
|
91
|
-
const value = parts.find((part) => part.type === "decimal").value;
|
|
92
|
-
return value.trim().length === 0 ? " " : value;
|
|
93
|
-
}
|
|
94
|
-
function localizeNumberString(numberString, locale, displayGroupSeparator = false) {
|
|
95
|
-
if (numberString) {
|
|
96
|
-
const number = Number(sanitizeDecimalString(numberString));
|
|
97
|
-
if (!isNaN(number)) {
|
|
98
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
99
|
-
const parts = formatter.formatToParts(number);
|
|
100
|
-
const localizedNumberString = parts
|
|
101
|
-
.map(({ type, value }) => {
|
|
102
|
-
switch (type) {
|
|
103
|
-
case "group":
|
|
104
|
-
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
105
|
-
case "decimal":
|
|
106
|
-
return getDecimalSeparator(locale);
|
|
107
|
-
default:
|
|
108
|
-
return value;
|
|
109
|
-
}
|
|
110
|
-
})
|
|
111
|
-
.reduce((string, part) => string + part);
|
|
112
|
-
return localizedNumberString;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return numberString;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export { locales as a, delocalizeNumberString as d, getDecimalSeparator as g, localizeNumberString as l };
|