@esri/calcite-components 1.0.0-next.489 → 1.0.0-next.491
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-5dea814b.system.js → p-00752768.system.js} +2 -2
- package/dist/calcite/{p-9cf72525.entry.js → p-00c69e39.entry.js} +2 -2
- package/dist/calcite/{p-519cf47c.system.entry.js → p-01a25c0c.system.entry.js} +2 -2
- package/dist/calcite/{p-7f6bb105.entry.js → p-01f7af85.entry.js} +2 -2
- package/dist/calcite/{p-3ae7de8f.system.entry.js → p-02003db4.system.entry.js} +2 -2
- package/dist/calcite/{p-956dc24e.system.js → p-0437b0d4.system.js} +1 -1
- package/dist/calcite/{p-5053a602.js → p-04ee43bb.js} +1 -1
- package/dist/calcite/{p-36030a3e.entry.js → p-05bbd823.entry.js} +2 -2
- package/dist/calcite/p-0765f396.system.entry.js +6 -0
- package/dist/calcite/{p-54b344e4.system.entry.js → p-07d0be55.system.entry.js} +2 -2
- package/dist/calcite/{p-52ee0a9a.js → p-081d4c3f.js} +1 -1
- package/dist/calcite/{p-68b1685c.system.entry.js → p-093bd71e.system.entry.js} +2 -2
- package/dist/calcite/p-0b5d39a2.entry.js +6 -0
- package/dist/calcite/{p-15af9652.system.entry.js → p-0cb3e906.system.entry.js} +2 -2
- package/dist/calcite/{p-21284bad.system.js → p-0f138cbd.system.js} +2 -2
- package/dist/calcite/{p-a5a1cd6f.entry.js → p-107ae122.entry.js} +2 -2
- package/dist/calcite/{p-ae68d9a4.system.js → p-121593ce.system.js} +1 -1
- package/dist/calcite/{p-cc1c49c2.system.entry.js → p-14069334.system.entry.js} +2 -2
- package/dist/calcite/{p-7986e418.entry.js → p-14eb26c5.entry.js} +2 -2
- package/dist/calcite/p-14f16b90.js +6 -0
- package/dist/calcite/{p-84e07bc5.system.entry.js → p-1b484144.system.entry.js} +2 -2
- package/dist/calcite/{p-5608a8f0.system.entry.js → p-1be5d846.system.entry.js} +2 -2
- package/dist/calcite/{p-ca95f3a2.js → p-1c727923.js} +1 -1
- package/dist/calcite/p-1d799deb.system.entry.js +6 -0
- package/dist/calcite/{p-079fda5b.system.entry.js → p-1f3ae7d1.system.entry.js} +2 -2
- package/dist/calcite/{p-f826c2e5.entry.js → p-1fca22c3.entry.js} +2 -2
- package/dist/calcite/{p-984e0357.entry.js → p-1fe0e500.entry.js} +2 -2
- package/dist/calcite/{p-090a06f4.system.entry.js → p-20dfc822.system.entry.js} +2 -2
- package/dist/calcite/p-231187d1.entry.js +6 -0
- package/dist/calcite/{p-e1fdc43e.system.entry.js → p-252a4979.system.entry.js} +2 -2
- package/dist/calcite/{p-fc3bb011.entry.js → p-2919c808.entry.js} +2 -2
- package/dist/calcite/{p-fb4327c1.system.js → p-29f5a03b.system.js} +1 -1
- package/dist/calcite/{p-fb607379.entry.js → p-2a8c9f0c.entry.js} +2 -2
- package/dist/calcite/{p-d9891a65.system.entry.js → p-2e02cadd.entry.js} +2 -2
- package/dist/calcite/{p-c349f17d.system.entry.js → p-300ce62a.system.entry.js} +2 -2
- package/dist/calcite/{p-376082e0.entry.js → p-311b48d3.entry.js} +2 -2
- package/dist/calcite/{p-ff4f3860.system.entry.js → p-317e4337.system.entry.js} +2 -2
- package/dist/calcite/{p-a2c4faba.js → p-332981de.js} +1 -1
- package/dist/calcite/{p-82822e75.entry.js → p-3355a1c8.entry.js} +2 -2
- package/dist/calcite/p-36dffb0c.system.js +6 -0
- package/dist/calcite/{p-bdb7692f.system.entry.js → p-37d7c202.system.entry.js} +2 -2
- package/dist/calcite/{p-99cb0d88.entry.js → p-394ea1fb.entry.js} +2 -2
- package/dist/calcite/{p-032083e8.entry.js → p-3c564563.entry.js} +2 -2
- package/dist/calcite/{p-ffc94e06.system.entry.js → p-3d032c2b.system.entry.js} +2 -2
- package/dist/calcite/{p-c783f464.js → p-3d5bf549.js} +1 -1
- package/dist/calcite/{p-c3964270.entry.js → p-3d9e9496.entry.js} +2 -2
- package/dist/calcite/{p-a1ef0ec7.system.entry.js → p-41714042.system.entry.js} +2 -2
- package/dist/calcite/{p-e9c07797.entry.js → p-421b822b.entry.js} +2 -2
- package/dist/calcite/{p-115511ca.system.js → p-448331d0.system.js} +2 -2
- package/dist/calcite/{p-14de45ac.system.entry.js → p-46dc1b48.system.entry.js} +2 -2
- package/dist/calcite/{p-f564b6ca.entry.js → p-4a415a87.entry.js} +2 -2
- package/dist/calcite/{p-ac1c986e.system.js → p-4b37568b.system.js} +1 -1
- package/dist/calcite/p-4d80af5a.system.js +6 -0
- package/dist/calcite/{p-3fc72ae9.system.entry.js → p-4e49334c.system.entry.js} +2 -2
- package/dist/calcite/{p-c505e7ce.js → p-4e6e1161.js} +2 -2
- package/dist/calcite/{p-35244a1c.system.entry.js → p-51e6292b.system.entry.js} +2 -2
- package/dist/calcite/{p-91cfb3e7.system.entry.js → p-5222d674.system.entry.js} +2 -2
- package/dist/calcite/{p-85add826.js → p-52591444.js} +1 -1
- package/dist/calcite/{p-739b0dd7.entry.js → p-5262ecd4.entry.js} +2 -2
- package/dist/calcite/{p-68e1154f.js → p-57875d94.js} +2 -2
- package/dist/calcite/{p-bfd50cd2.entry.js → p-57e5183c.entry.js} +2 -2
- package/dist/calcite/{p-b0af2437.system.entry.js → p-582b6177.system.entry.js} +2 -2
- package/dist/calcite/{p-9e880fe6.entry.js → p-5b25949e.entry.js} +2 -2
- package/dist/calcite/{p-7929e309.entry.js → p-5b96bdc1.entry.js} +2 -2
- package/dist/calcite/{p-994e51da.entry.js → p-5bc2a90a.entry.js} +2 -2
- package/dist/calcite/{p-985d9104.system.entry.js → p-5c642f40.system.entry.js} +2 -2
- package/dist/calcite/{p-994962fa.entry.js → p-5cac4f92.entry.js} +2 -2
- package/dist/calcite/{p-6888276b.system.js → p-5cce0983.system.js} +1 -1
- package/dist/calcite/{p-ea5bf895.system.entry.js → p-5f5fdf1b.system.entry.js} +2 -2
- package/dist/calcite/{p-249bb0cd.js → p-61e2bb4f.js} +1 -1
- package/dist/calcite/{p-b366719f.js → p-6240ecc8.js} +1 -1
- package/dist/calcite/{p-eebde484.entry.js → p-6460d8e3.entry.js} +2 -2
- package/dist/calcite/{p-bc710229.system.entry.js → p-67c54d7a.system.entry.js} +3 -3
- package/dist/calcite/{p-60e078b7.system.entry.js → p-688c54fe.system.entry.js} +2 -2
- package/dist/calcite/{p-6249f3b2.system.js → p-68abc44b.system.js} +1 -1
- package/dist/calcite/p-6cdda2cc.system.entry.js +6 -0
- package/dist/calcite/{p-2140b854.system.js → p-6d15e06e.system.js} +1 -1
- package/dist/calcite/{p-20eb30c2.system.entry.js → p-6ed2e32e.system.entry.js} +2 -2
- package/dist/calcite/{p-303b34a5.entry.js → p-6fd34f3b.entry.js} +2 -2
- package/dist/calcite/{p-2c5357ee.entry.js → p-7212ae05.entry.js} +2 -2
- package/dist/calcite/{p-e9db9f50.entry.js → p-75700a0f.entry.js} +2 -2
- package/dist/calcite/{p-8e8205fa.system.entry.js → p-76c8c1a6.system.entry.js} +2 -2
- package/dist/calcite/{p-be3c3e72.system.js → p-78243401.system.js} +1 -1
- package/dist/calcite/{p-f8fa3f14.entry.js → p-78f508a5.entry.js} +2 -2
- package/dist/calcite/p-791eeb1b.js +6 -0
- package/dist/calcite/{p-2335d959.system.entry.js → p-7de94678.system.entry.js} +2 -2
- package/dist/calcite/p-7ec467c7.entry.js +6 -0
- package/dist/calcite/{p-fa9b47eb.system.entry.js → p-7f8add09.system.entry.js} +2 -2
- package/dist/calcite/p-826fe9b7.system.entry.js +6 -0
- package/dist/calcite/{p-cbf0e5be.entry.js → p-833eca14.entry.js} +2 -2
- package/dist/calcite/{p-d4324b4a.entry.js → p-8407ccf7.entry.js} +2 -2
- package/dist/calcite/p-846e8a22.entry.js +6 -0
- package/dist/calcite/{p-74d3af97.entry.js → p-86d87f35.entry.js} +2 -2
- package/dist/calcite/{p-4d47ca16.system.entry.js → p-877fd266.system.entry.js} +2 -2
- package/dist/calcite/{p-b09ad530.system.entry.js → p-8803ff7d.system.entry.js} +2 -2
- package/dist/calcite/{p-9793a6e3.entry.js → p-8839da80.entry.js} +2 -2
- package/dist/calcite/{p-8015076c.system.js → p-88596079.system.js} +2 -2
- package/dist/calcite/{p-f56e9345.js → p-887c1cea.js} +1 -1
- package/dist/calcite/{p-5ec0f27d.system.js → p-899a2bff.system.js} +2 -2
- package/dist/calcite/{p-dba32ea3.system.js → p-90b20919.system.js} +1 -1
- package/dist/calcite/{p-c1fb5c76.entry.js → p-91563ddc.entry.js} +2 -2
- package/dist/calcite/{p-3433c180.js → p-91d78519.js} +2 -2
- package/dist/calcite/{p-8390b788.entry.js → p-9345b05c.entry.js} +2 -2
- package/dist/calcite/p-9473a4f5.system.js +6 -0
- package/dist/calcite/{p-285f30f0.system.js → p-9529204d.system.js} +2 -2
- package/dist/calcite/{p-8559036d.entry.js → p-957df75e.entry.js} +2 -2
- package/dist/calcite/p-96a9737a.entry.js +6 -0
- package/dist/calcite/p-96e56a61.js +6 -0
- package/dist/calcite/{p-85b1be70.system.entry.js → p-985c27e4.system.entry.js} +2 -2
- package/dist/calcite/{p-b52786c5.entry.js → p-98a9a0ec.entry.js} +2 -2
- package/dist/calcite/{p-f99f6479.system.entry.js → p-98f11ef1.system.entry.js} +2 -2
- package/dist/calcite/{p-290d0aa6.entry.js → p-99784526.entry.js} +2 -2
- package/dist/calcite/p-9999ca88.entry.js +6 -0
- package/dist/calcite/{p-5cb12216.entry.js → p-9cc7a6fb.entry.js} +2 -2
- package/dist/calcite/{p-69032165.system.js → p-a4336816.system.js} +1 -1
- package/dist/calcite/{p-5e845442.entry.js → p-a4a9aee9.entry.js} +2 -2
- package/dist/calcite/{p-ae51bf5a.system.entry.js → p-a6ab0e5c.system.entry.js} +2 -2
- package/dist/calcite/p-a83f0031.system.entry.js +6 -0
- package/dist/calcite/{p-939eec33.system.entry.js → p-a8d01a40.system.entry.js} +2 -2
- package/dist/calcite/{p-a9a4b7f4.js → p-a91b9c6d.js} +2 -2
- package/dist/calcite/{p-b7948b95.system.entry.js → p-aaac9c2d.system.entry.js} +2 -2
- package/dist/calcite/{p-4b6afc53.system.js → p-b10b265e.system.js} +1 -1
- package/dist/calcite/{p-24fa86a5.system.entry.js → p-b11f8240.system.entry.js} +2 -2
- package/dist/calcite/{p-89ed9ac8.entry.js → p-b2bd84d6.entry.js} +2 -2
- package/dist/calcite/{p-98ac3f66.system.entry.js → p-b4d9d1b7.system.entry.js} +2 -2
- package/dist/calcite/p-b626d30f.system.js +6 -0
- package/dist/calcite/{p-997b562f.entry.js → p-bcd6c00e.entry.js} +2 -2
- package/dist/calcite/{p-fbb58958.system.entry.js → p-bec7f175.system.entry.js} +2 -2
- package/dist/calcite/{p-9d099693.system.entry.js → p-bf9ee1ad.system.entry.js} +2 -2
- package/dist/calcite/{p-58548d51.system.entry.js → p-c13ced2a.system.entry.js} +2 -2
- package/dist/calcite/{p-cd96b449.entry.js → p-c5ed55d6.entry.js} +2 -2
- package/dist/calcite/{p-60764d8d.system.entry.js → p-c8e0532f.system.entry.js} +2 -2
- package/dist/calcite/{p-7e45837a.system.entry.js → p-cd51d2c4.system.entry.js} +2 -2
- package/dist/calcite/{p-92d28de8.system.entry.js → p-cda8ca71.system.entry.js} +2 -2
- package/dist/calcite/{p-09b4e21c.system.js → p-cefc6b5d.system.js} +1 -1
- package/dist/calcite/{p-e8e9a037.js → p-cf93d51c.js} +1 -1
- package/dist/calcite/{p-df7fc801.system.entry.js → p-d388ce30.system.entry.js} +2 -2
- package/dist/calcite/{p-10af1b13.system.entry.js → p-d3a0cd52.system.entry.js} +2 -2
- package/dist/calcite/p-d557dbbc.entry.js +6 -0
- package/dist/calcite/p-d9ce9a86.entry.js +6 -0
- package/dist/calcite/{p-c6a244cf.js → p-db6f8d83.js} +1 -1
- package/dist/calcite/{p-bc534cc8.entry.js → p-de7c752f.entry.js} +2 -2
- package/dist/calcite/p-df52c296.system.js +6 -0
- package/dist/calcite/{p-513aeb64.js → p-e2197696.js} +2 -2
- package/dist/calcite/{p-0f9cdf92.system.entry.js → p-e68c4a40.system.entry.js} +2 -2
- package/dist/calcite/{p-01d73d5f.entry.js → p-e84bbd3a.entry.js} +2 -2
- package/dist/calcite/{p-cc11fd96.system.entry.js → p-ebe1359b.system.entry.js} +2 -2
- package/dist/calcite/{p-d756a734.js → p-ec0039f0.js} +2 -2
- package/dist/calcite/{p-f3d25e2d.system.entry.js → p-ed1c47c8.system.entry.js} +2 -2
- package/dist/calcite/{p-f3cdfefa.entry.js → p-efd1ece3.entry.js} +2 -2
- package/dist/calcite/{p-bcc081c2.js → p-f0f4566d.js} +2 -2
- package/dist/calcite/{p-08fd68b6.entry.js → p-f4211281.entry.js} +2 -2
- package/dist/calcite/{p-8f9a8a6d.system.entry.js → p-f5073afc.system.entry.js} +2 -2
- package/dist/calcite/p-f6547917.js +6 -0
- package/dist/calcite/{p-bbf6dd07.system.js → p-f6d8ff49.system.js} +2 -2
- package/dist/calcite/{p-40ebbc20.entry.js → p-f922cf2e.entry.js} +2 -2
- package/dist/calcite/{p-90d6959b.system.entry.js → p-f9bfe203.system.entry.js} +2 -2
- package/dist/calcite/{p-e93aa221.entry.js → p-fa59dba2.entry.js} +2 -2
- package/dist/calcite/{p-3b85836e.js → p-fa6800f7.js} +1 -1
- package/dist/calcite/{p-34ca0207.system.js → p-fabf18bf.system.js} +1 -1
- package/dist/calcite/{p-2c8224eb.system.entry.js → p-fca776a0.system.entry.js} +2 -2
- package/dist/calcite/{p-eda3541b.entry.js → p-ffa7a5ad.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-5e1f4ae8.js → ExpandToggle-d1dcec7b.js} +5 -5
- package/dist/cjs/{Heading-6edefae8.js → Heading-08cb3ad8.js} +3 -3
- package/dist/cjs/{array-b64cf1d9.js → array-d376f65c.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-action-bar.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-group.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +8 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-fab.cjs.entry.js +5 -5
- package/dist/cjs/calcite-filter.cjs.entry.js +7 -7
- package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +10 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +27 -27
- package/dist/cjs/calcite-input.cjs.entry.js +21 -22
- package/dist/cjs/calcite-label.cjs.entry.js +5 -5
- package/dist/cjs/calcite-link.cjs.entry.js +5 -5
- package/dist/cjs/calcite-list_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
- package/dist/cjs/calcite-modal.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
- package/dist/cjs/calcite-option_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-pagination.cjs.entry.js +4 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +7 -7
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-88002c5c.js → conditionalSlot-3359b0b5.js} +3 -3
- package/dist/cjs/{debounce-fe794b2e.js → debounce-a633dc9e.js} +1 -1
- package/dist/cjs/{dom-d188a05c.js → dom-9f6a96dd.js} +2 -2
- package/dist/cjs/{forIn-0b8b65a0.js → forIn-db536971.js} +2 -2
- package/dist/cjs/{form-61dd7c98.js → form-aebaa4f9.js} +3 -3
- package/dist/cjs/{guid-9ab6faec.js → guid-c7792ee3.js} +1 -1
- package/dist/cjs/{index-95f03452.js → index-f3c582e2.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-3762052b.js → interactive-9d05c40d.js} +1 -1
- package/dist/cjs/{interfaces-4e11089d.js → interfaces-d3cc8dfa.js} +1 -1
- package/dist/cjs/{label-8269a179.js → label-8103de35.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/locale-427f4205.js +266 -0
- package/dist/cjs/{math-93ab8570.js → math-aaa87ea6.js} +1 -1
- package/dist/cjs/{observers-ddfeeaeb.js → observers-a1608a7d.js} +1 -1
- package/dist/cjs/{popper-a0504b3a.js → popper-48289d39.js} +2 -2
- package/dist/cjs/{resources-ae6d75be.js → resources-18cda8b6.js} +3 -3
- package/dist/cjs/{resources-11cff30c.js → resources-8d12822f.js} +7 -19
- package/dist/cjs/{resources-b1d84ba6.js → resources-961c572d.js} +1 -1
- package/dist/cjs/{resources-8e1b4105.js → resources-e64d55c2.js} +1 -1
- package/dist/cjs/{sortable.esm-248db1f4.js → sortable.esm-72dcaaf5.js} +1 -1
- package/dist/cjs/{utils-bd4cabe8.js → utils-2ce8f1a3.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/interfaces.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/interfaces.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/interfaces.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/interfaces.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/interfaces.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +1 -1
- package/dist/collection/components/combobox/interfaces.js +1 -1
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/interfaces.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/interfaces.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/interfaces.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/interfaces.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +2 -2
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/interfaces.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/interfaces.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/interfaces.js +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +6 -6
- package/dist/collection/components/modal/interfaces.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +3 -15
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +2 -2
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.js +1 -1
- package/dist/collection/components/tree/interfaces.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree-item/interfaces.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/locale.js +6 -8
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +71 -8
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/popper.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +2 -2
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +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 +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +2 -3
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/locale.js +137 -7
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/popper.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +3 -15
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +78 -29
- package/dist/esm/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +5 -5
- package/dist/esm/{Heading-82d5894d.js → Heading-9a8fdd45.js} +3 -3
- package/dist/esm/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +4 -4
- package/dist/esm/calcite-action-bar.entry.js +10 -10
- package/dist/esm/calcite-action-group.entry.js +8 -8
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +9 -9
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +5 -5
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +12 -12
- package/dist/esm/calcite-date-picker_4.entry.js +8 -9
- package/dist/esm/calcite-dropdown_3.entry.js +7 -7
- package/dist/esm/calcite-fab.entry.js +5 -5
- package/dist/esm/calcite-filter.entry.js +7 -7
- package/dist/esm/calcite-flow.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +10 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-time-picker_2.entry.js +8 -8
- package/dist/esm/calcite-input.entry.js +10 -11
- package/dist/esm/calcite-label.entry.js +5 -5
- package/dist/esm/calcite-link.entry.js +5 -5
- package/dist/esm/calcite-list_3.entry.js +8 -8
- package/dist/esm/calcite-loader.entry.js +4 -4
- package/dist/esm/calcite-modal.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +7 -7
- package/dist/esm/calcite-option_3.entry.js +8 -8
- package/dist/esm/calcite-pagination.entry.js +4 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +7 -7
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +6 -6
- package/dist/esm/calcite-tree_2.entry.js +6 -6
- package/dist/esm/calcite-value-list_2.entry.js +11 -11
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +3 -3
- package/dist/esm/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
- package/dist/esm/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
- package/dist/esm/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
- package/dist/esm/{form-bfbfa460.js → form-56651950.js} +3 -3
- package/dist/esm/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
- package/dist/esm/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
- package/dist/esm/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
- package/dist/esm/{label-2538c118.js → label-c6e0eb01.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-faa0cde9.js +256 -0
- package/dist/esm/{math-1a419785.js → math-a7dc89ab.js} +1 -1
- package/dist/esm/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
- package/dist/esm/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
- package/dist/esm/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
- package/dist/esm/{resources-c81d67d8.js → resources-33b38352.js} +3 -3
- package/dist/esm/{resources-83cd537a.js → resources-a336bfcb.js} +7 -19
- package/dist/esm/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
- package/dist/esm/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
- package/dist/esm/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-a68202cf.js → ExpandToggle-fe0cdd0c.js} +2 -2
- package/dist/esm-es5/Heading-9a8fdd45.js +6 -0
- package/dist/esm-es5/{array-101fa26b.js → array-3b0b24fa.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +2 -2
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-action.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.entry.js +2 -2
- package/dist/esm-es5/calcite-avatar.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +2 -2
- package/dist/esm-es5/calcite-button.entry.js +2 -2
- package/dist/esm-es5/calcite-card.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-combobox_3.entry.js +3 -3
- package/dist/esm-es5/calcite-date-picker_4.entry.js +2 -2
- package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm-es5/calcite-fab.entry.js +3 -3
- 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 +2 -2
- package/dist/esm-es5/calcite-handle.entry.js +2 -2
- package/dist/esm-es5/calcite-icon.entry.js +2 -2
- package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
- package/dist/esm-es5/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm-es5/calcite-input-message.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +3 -3
- 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 +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-8c2fd9c9.js → conditionalSlot-d4c22346.js} +2 -2
- package/dist/esm-es5/{debounce-632dc29a.js → debounce-717c15bb.js} +1 -1
- package/dist/esm-es5/{dom-12f18439.js → dom-0f0ab4ab.js} +2 -2
- package/dist/esm-es5/{forIn-0ce97c74.js → forIn-2b9b9247.js} +2 -2
- package/dist/esm-es5/{form-bfbfa460.js → form-56651950.js} +2 -2
- package/dist/esm-es5/{guid-294c4ade.js → guid-6b3f1464.js} +1 -1
- package/dist/esm-es5/{index-f9bd5cb4.js → index-10bd8879.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-ea29514f.js → interactive-02273e7a.js} +1 -1
- package/dist/esm-es5/{interfaces-730f82b7.js → interfaces-a5f68596.js} +1 -1
- package/dist/esm-es5/{label-2538c118.js → label-c6e0eb01.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/locale-faa0cde9.js +6 -0
- package/dist/esm-es5/{math-1a419785.js → math-a7dc89ab.js} +1 -1
- package/dist/esm-es5/{observers-79c1e402.js → observers-f70b670d.js} +1 -1
- package/dist/esm-es5/{popper-b9898619.js → popper-7b7e8bcf.js} +2 -2
- package/dist/esm-es5/{resources-0db5c853.js → resources-1946ae4b.js} +1 -1
- package/dist/esm-es5/{resources-c81d67d8.js → resources-33b38352.js} +2 -2
- package/dist/esm-es5/{resources-83cd537a.js → resources-a336bfcb.js} +3 -3
- package/dist/esm-es5/{resources-018d3a40.js → resources-dabd88c8.js} +1 -1
- package/dist/esm-es5/{sortable.esm-bf2fbe5b.js → sortable.esm-bcaf083c.js} +1 -1
- package/dist/esm-es5/{utils-7f3e785a.js → utils-474b74e0.js} +1 -1
- package/dist/extras/docs-json.json +2 -2
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/utils/locale.d.ts +1 -0
- package/dist/types/utils/number.d.ts +16 -0
- package/hydrate/index.js +84 -33
- package/package.json +4 -4
- package/readme.md +2 -2
- package/dist/calcite/p-0cea421a.entry.js +0 -6
- package/dist/calcite/p-1a41e999.system.js +0 -6
- package/dist/calcite/p-257a88b7.js +0 -6
- package/dist/calcite/p-27d329a5.entry.js +0 -6
- package/dist/calcite/p-388aa230.entry.js +0 -6
- package/dist/calcite/p-3fe4004f.entry.js +0 -6
- package/dist/calcite/p-4d41b90e.js +0 -6
- package/dist/calcite/p-4fd99cd6.system.js +0 -6
- package/dist/calcite/p-5feeee59.system.entry.js +0 -6
- package/dist/calcite/p-7029e37c.entry.js +0 -6
- package/dist/calcite/p-73d62a1e.js +0 -6
- package/dist/calcite/p-93799c84.js +0 -6
- package/dist/calcite/p-9ae158d9.entry.js +0 -6
- package/dist/calcite/p-9c62e05b.system.js +0 -6
- package/dist/calcite/p-b91c9315.entry.js +0 -6
- package/dist/calcite/p-c44484aa.system.js +0 -6
- package/dist/calcite/p-cdd5316c.system.entry.js +0 -6
- package/dist/calcite/p-d8e0fbd5.system.js +0 -6
- package/dist/calcite/p-e3be094f.entry.js +0 -6
- package/dist/calcite/p-e8e732b6.js +0 -6
- package/dist/calcite/p-eef03f2e.system.js +0 -6
- package/dist/calcite/p-f4ba5fb6.entry.js +0 -6
- package/dist/calcite/p-faf568dc.system.entry.js +0 -6
- package/dist/calcite/p-ffbed3fb.system.entry.js +0 -6
- package/dist/cjs/locale-80b9254a.js +0 -131
- package/dist/cjs/number-64bf4115.js +0 -85
- package/dist/components/number.js +0 -77
- package/dist/esm/locale-551a0e95.js +0 -126
- package/dist/esm/number-cb4048f3.js +0 -77
- package/dist/esm-es5/Heading-82d5894d.js +0 -6
- package/dist/esm-es5/locale-551a0e95.js +0 -6
- package/dist/esm-es5/number-cb4048f3.js +0 -6
|
@@ -1,6 +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 l(t){try{s(n["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):a(t.value).then(o,l)}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:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(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}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};
|
|
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
|
-
* v1.0.0-next.489
|
|
6
|
-
*/System.register(["./p-6888276b.system.js","./p-5ec0f27d.system.js","./p-5dea814b.system.js","./p-bbf6dd07.system.js","./p-eef03f2e.system.js","./p-1a41e999.system.js","./p-ae68d9a4.system.js","./p-4b6afc53.system.js","./p-be3c3e72.system.js","./p-dba32ea3.system.js"],(function(t){"use strict";var e,i,n,a,r,o,l,s,u,c,d,p,m,h,b,f,g,v,y,x,w,k,I,E,z,V,D,H;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H;r=t.g},function(t){o=t.T;l=t.g;s=t.s;u=t.d;c=t.a;d=t.C},function(t){p=t.c;m=t.d;h=t.g},function(t){b=t.s;f=t.c;g=t.d;v=t.H},function(t){y=t.d;x=t.g;w=t.l},function(t){k=t.i;I=t.p;E=t.s;z=t.n},function(t){V=t.d},function(t){D=t.c},function(t){H=t.u},function(){}],execute:function(){var O={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"};var N={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"};var j={action:"action"};var M={clear:"Clear value"};var B="@-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{height:1.5rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}: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{height:auto;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{height:2rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}: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{height:auto;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:0.75rem;padding-right:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{height:2.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}: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{height:auto;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host textarea,:host input{-webkit-transition:var(--calcite-animation-timing), height 0, outline-offset 0s;transition:var(--calcite-animation-timing), height 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-height:100%;width:100%;max-width:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}:host input[type=search]::-webkit-search-decoration{-webkit-appearance:none}:host input,:host textarea{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder,:host textarea:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder,:host textarea::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}: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{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}: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-color:transparent}: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{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;height:0px;width:0px}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;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-height:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 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;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:auto;min-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}: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:0px}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 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]{-ms-flex-order:1;order:1;max-height:100%;min-height:100%;-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:0px}.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:0px}.number-button-item{max-height:50%;min-height:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-top:0px;padding-bottom:0px;padding-left:0.5rem;padding-right:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 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{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}:host input::-webkit-calendar-picker-indicator{display:none}:host input[type=date]::-webkit-input-placeholder{visibility:hidden !important}:host textarea::-webkit-resizer{position:absolute;bottom:0px;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem;inset-inline-end:0}.resize-icon-wrapper{bottom:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;height:0.75rem;width:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.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{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);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:0px}:host(.border-top-color-one) input{border-top-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}: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}";var C=t("calcite_input",function(){function t(t){var n=this;e(this,t);this.calciteInternalInputFocus=i(this,"calciteInternalInputFocus",7);this.calciteInternalInputBlur=i(this,"calciteInternalInputBlur",7);this.calciteInputInput=i(this,"calciteInputInput",7);this.calciteInputChange=i(this,"calciteInputChange",7);this.alignment="start";this.autofocus=false;this.clearable=false;this.disabled=false;this.groupSeparator=false;this.hidden=false;this.intlLoading=o.loading;this.iconFlipRtl=false;this.loading=false;this.locale=document.documentElement.lang||"en";this.localeFormat=false;this.numberButtonType="vertical";this.readOnly=false;this.required=false;this.scale="m";this.status="idle";this.editingEnabled=false;this.type="text";this.value="";this.childElType="input";this.previousValueOrigin="initial";this.mutationObserver=D("mutation",(function(){return n.setDisabledAction()}));this.userChangedValue=false;this.keyDownHandler=function(t){if(n.readOnly||n.disabled){return}if(n.isClearable&&t.key==="Escape"){n.clearInputValue(t);t.preventDefault()}if(t.key==="Enter"&&!t.defaultPrevented){b(n)}};this.clearInputValue=function(t){n.setValue({committing:true,nativeEvent:t,origin:"user",value:""})};this.emitChangeIfUserModified=function(){if(n.previousValueOrigin==="user"&&n.value!==n.previousEmittedValue){n.calciteInputChange.emit()}n.previousEmittedValue=n.value};this.inputBlurHandler=function(){n.calciteInternalInputBlur.emit({element:n.childEl,value:n.value});n.emitChangeIfUserModified()};this.inputFocusHandler=function(t){var e=l(n.el,"action");if(t.target!==e){n.setFocus()}n.calciteInternalInputFocus.emit({element:n.childEl,value:n.value})};this.inputInputHandler=function(t){if(n.disabled||n.readOnly){return}n.setValue({nativeEvent:t,origin:"user",value:t.target.value})};this.inputKeyDownHandler=function(t){if(n.disabled||n.readOnly){return}if(t.key==="Enter"){n.emitChangeIfUserModified()}};this.inputNumberInputHandler=function(t){if(n.disabled||n.readOnly){return}var e=t.target.value;var i=y(e,n.locale);if(t.inputType==="insertFromPaste"){if(!k(i)){t.preventDefault()}n.setValue({nativeEvent:t,origin:"user",value:I(i)});n.childNumberEl.value=n.localizedValue}else{n.setValue({nativeEvent:t,origin:"user",value:i})}};this.inputNumberKeyDownHandler=function(t){if(n.type!=="number"||n.disabled||n.readOnly){return}if(t.key==="ArrowUp"){t.preventDefault();n.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){n.nudgeNumberValue("down",t);return}var e=__spreadArray(__spreadArray([],z,true),["ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"],false);if(t.altKey||t.ctrlKey||t.metaKey){return}var i=t.shiftKey&&t.key==="Tab";if(e.includes(t.key)&&(!t.shiftKey||i)){if(t.key==="Enter"){n.emitChangeIfUserModified()}return}var a=x(n.locale);if(t.key===a){if(!n.value&&!n.childNumberEl.value){return}if(n.value&&n.childNumberEl.value.indexOf(a)===-1){return}}if(/[eE]/.test(t.key)){if(!n.value&&!n.childNumberEl.value){return}if(n.value&&!/[eE]/.test(n.childNumberEl.value)){return}}if(t.key==="-"){if(!n.value&&!n.childNumberEl.value){return}if(n.value&&n.childNumberEl.value.split("-").length<=2){return}}t.preventDefault()};this.nudgeNumberValue=function(t,e){if(e instanceof KeyboardEvent&&e.repeat||n.type!=="number"){return}var i=n.maxString?parseFloat(n.maxString):null;var a=n.minString?parseFloat(n.minString):null;var r=100;n.incrementOrDecrementNumberValue(t,i,a,e);if(n.nudgeNumberValueIntervalId){window.clearInterval(n.nudgeNumberValueIntervalId)}var o=true;n.nudgeNumberValueIntervalId=window.setInterval((function(){if(o){o=false;return}n.incrementOrDecrementNumberValue(t,i,a,e)}),r)};this.numberButtonMouseUpAndMouseOutHandler=function(){window.clearInterval(n.nudgeNumberValueIntervalId)};this.numberButtonMouseDownHandler=function(t){t.preventDefault();var e=t.target.dataset.adjustment;n.nudgeNumberValue(e,t)};this.setChildElRef=function(t){n.childEl=t};this.setChildNumberElRef=function(t){n.childNumberEl=t};this.setInputValue=function(t){if(n.type==="text"&&!n.childEl){return}if(n.type==="number"&&!n.childNumberEl){return}n["child".concat(n.type==="number"?"Number":"","El")].value=t};this.setPreviousEmittedValue=function(t){n.previousEmittedValue=n.type==="number"?k(t)?t:"":t};this.setPreviousValue=function(t){n.previousValue=n.type==="number"?k(t)?t:"":t};this.setValue=function(t){var e=t.committing,i=e===void 0?false:e,a=t.nativeEvent,r=t.origin,o=t.previousValue,l=t.value;var s=n.type==="number"?w(n.previousValue,n.locale,n.groupSeparator,n.numberingSystem):"";var u=n.type==="number"?E(l):l;var c=n.type==="number"&&l&&!u?k(n.previousValue)?n.previousValue:"":u;var d=n.type==="number"?w(c,n.locale,n.groupSeparator,n.numberingSystem):"";n.setPreviousValue(o||n.value);n.previousValueOrigin=r;n.userChangedValue=r==="user"&&n.value!==c;n.value=c;if(n.type==="number"){n.localizedValue=d}if(r==="direct"){n.setInputValue(n.type==="number"?d:c)}if(a){var p=n.calciteInputInput.emit({element:n.childEl,nativeEvent:a,value:n.value});if(p.defaultPrevented){n.value=n.previousValue;n.localizedValue=s}else if(i){n.emitChangeIfUserModified()}}};this.inputKeyUpHandler=function(){window.clearInterval(n.nudgeNumberValueIntervalId)}}t.prototype.disabledWatcher=function(){this.setDisabledAction()};t.prototype.maxWatcher=function(){var t;this.maxString=((t=this.max)===null||t===void 0?void 0:t.toString())||null};t.prototype.minWatcher=function(){var t;this.minString=((t=this.min)===null||t===void 0?void 0:t.toString())||null};t.prototype.valueWatcher=function(t,e){if(!this.userChangedValue){this.setValue({origin:"direct",previousValue:e,value:t==null||t==""?"":this.type==="number"?k(t)?t:this.previousValue||"":t});this.warnAboutInvalidNumberValue(t)}this.userChangedValue=false};t.prototype.updateRequestedIcon=function(){this.requestedIcon=s(N,this.icon,this.type)};Object.defineProperty(t.prototype,"isClearable",{get:function(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isTextarea",{get:function(){return this.childElType==="textarea"},enumerable:false,configurable:true});t.prototype.connectedCallback=function(){var t;this.scale=u(this.el,"scale",this.scale);this.status=u(this.el,"status",this.status);this.inlineEditableEl=this.el.closest("calcite-inline-editable");if(this.inlineEditableEl){this.editingEnabled=this.inlineEditableEl.editingEnabled||false}this.setPreviousEmittedValue(this.value);this.setPreviousValue(this.value);if(this.type==="number"){this.warnAboutInvalidNumberValue(this.value);this.setValue({origin:"connected",value:k(this.value)?this.value:""})}p(this);f(this);(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true});this.setDisabledAction()};t.prototype.disconnectedCallback=function(){var t;m(this);g(this);(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.componentWillLoad=function(){var t,e;this.childElType=this.type==="textarea"?"textarea":"input";this.maxString=(t=this.max)===null||t===void 0?void 0:t.toString();this.minString=(e=this.min)===null||e===void 0?void 0:e.toString();this.requestedIcon=s(N,this.icon,this.type)};t.prototype.componentShouldUpdate=function(t,e,i){if(this.type==="number"&&i==="value"&&t&&!k(t)){this.setValue({origin:"reset",value:e});return false}return true};t.prototype.componentDidRender=function(){H(this)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){if(this.type==="number"){(t=this.childNumberEl)===null||t===void 0?void 0:t.focus()}else{(e=this.childEl)===null||e===void 0?void 0:e.focus()}return[2]}))}))};t.prototype.onLabelClick=function(){this.setFocus()};t.prototype.incrementOrDecrementNumberValue=function(t,e,i,n){var a=this.value;var r=this.step==="any"?1:Math.abs(this.step||1);var o=a&&a!==""?parseFloat(a):0;var l=t==="up"?1:-1;var s=o+r*l;var u=typeof i==="number"&&!isNaN(i)&&s<i||typeof e==="number"&&!isNaN(e)&&s>e?o:s;var c=V(o);var d=V(r);this.setValue({committing:true,nativeEvent:n,origin:"user",value:u.toFixed(Math.max(c,d))})};t.prototype.onFormReset=function(){this.setValue({origin:"reset",value:this.defaultValue})};t.prototype.syncHiddenFormInput=function(t){var e,i,n,a;if(this.type==="number"){t.type="number";t.min=(i=(e=this.min)===null||e===void 0?void 0:e.toString(10))!==null&&i!==void 0?i:"";t.max=(a=(n=this.max)===null||n===void 0?void 0:n.toString(10))!==null&&a!==void 0?a:""}else if(this.type==="text"){t.type="text";if(this.minLength!=null){t.minLength=this.minLength}if(this.maxLength!=null){t.maxLength=this.maxLength}}else if(this.type==="password"){t.type="password"}};t.prototype.setDisabledAction=function(){var t=l(this.el,"action");if(!t){return}this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")};t.prototype.warnAboutInvalidNumberValue=function(t){if(this.type==="number"&&t&&!k(t)){console.warn('The specified value "'.concat(t,'" cannot be parsed, or is out of range.'))}};t.prototype.render=function(){var t,e,i,r;var o=c(this.el);var l=n("div",{class:O.loader},n("calcite-progress",{label:this.intlLoading,type:"indeterminate"}));var s=n("button",{"aria-label":this.intlClear||M.clear,class:O.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},n("calcite-icon",{icon:"x",scale:"s"}));var u=n("calcite-icon",{class:O.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"});var p=this.numberButtonType==="horizontal";var m=n("button",{class:(t={},t[O.numberButtonItem]=true,t[O.buttonItemHorizontal]=p,t),"data-adjustment":"up",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},n("calcite-icon",{icon:"chevron-up",scale:"s"}));var b=n("button",{class:(e={},e[O.numberButtonItem]=true,e[O.buttonItemHorizontal]=p,e),"data-adjustment":"down",disabled:this.disabled||this.readOnly,onMouseDown:this.numberButtonMouseDownHandler,onMouseOut:this.numberButtonMouseUpAndMouseOutHandler,onMouseUp:this.numberButtonMouseUpAndMouseOutHandler,tabIndex:-1,type:"button"},n("calcite-icon",{icon:"chevron-down",scale:"s"}));var f=n("div",{class:O.numberButtonWrapper},m,b);var g=n("div",{class:O.prefix},this.prefixText);var y=n("div",{class:O.suffix},this.suffixText);var x=this.type==="number"?n("input",{"aria-label":h(this),autofocus:this.autofocus?true:null,defaultValue:this.defaultValue,disabled:this.disabled?true:null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:undefined,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;var w=this.type!=="number"?[n(this.childElType,{"aria-label":h(this),autofocus:this.autofocus?true:null,class:(i={},i[O.editingEnabled]=this.editingEnabled,i[O.inlineChild]=!!this.inlineEditableEl,i),defaultValue:this.defaultValue,disabled:this.disabled?true: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?true:null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?n("div",{class:O.resizeIconWrapper},n("calcite-icon",{icon:"chevron-down",scale:"s"})):null]:null;return n(a,{onClick:this.inputFocusHandler,onKeyDown:this.keyDownHandler},n("div",{class:(r={},r[O.inputWrapper]=true,r[d.rtl]=o==="rtl",r)},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?b:null,this.prefixText?g:null,n("div",{class:O.wrapper},x,w,this.isClearable?s:null,this.requestedIcon?u:null,this.loading?l:null),n("div",{class:O.actionWrapper},n("slot",{name:j.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?f:null,this.suffixText?y:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?m:null,n(v,{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"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"]}},enumerable:false,configurable:true});return t}());C.style=B}}}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function s(t){try{l(i.next(t))}catch(t){r(t)}}function o(t){try{l(i["throw"](t))}catch(t){r(t)}}function l(t){t.done?a(t.value):n(t.value).then(s,o)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,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(e){return l([t,e])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(a)try{if(i=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:a.label++;return{value:s[1],done:false};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];n=0}finally{i=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
|
-
* v1.0.0-next.489
|
|
6
|
-
*/System.register(["./p-6888276b.system.js","./p-d8e0fbd5.system.js","./p-5dea814b.system.js","./p-bbf6dd07.system.js","./p-8015076c.system.js","./p-be3c3e72.system.js","./p-5ec0f27d.system.js","./p-eef03f2e.system.js","./p-1a41e999.system.js","./p-dba32ea3.system.js"],(function(t){"use strict";var e,a,i,n,r,s,o,l,c,p,u,h,d,f,m,v,y,g,b,w,D,k,x,I,A,P,C,_;return{setters:[function(t){e=t.r;a=t.c;i=t.h;n=t.H;r=t.g},function(t){s=t.T;o=t.d;l=t.a;c=t.b;p=t.g;u=t.s;h=t.p;d=t.i},function(t){f=t.c;m=t.d;v=t.g},function(t){y=t.s;g=t.c;b=t.d;w=t.H},function(t){D=t.d;k=t.f;x=t.u;I=t.C;A=t.c;P=t.p},function(t){C=t.u},function(t){_=t.t},function(){},function(){},function(){}],execute:function(){var E="@-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{--calcite-icon-size:1rem;--calcite-spacing-eighth:0.125rem;--calcite-spacing-quarter:0.25rem;--calcite-spacing-half:0.5rem;--calcite-spacing-three-quarters:0.75rem;--calcite-spacing:1rem;--calcite-spacing-plus-quarter:1.25rem;--calcite-spacing-plus-half:1.5rem;--calcite-spacing-double:2rem;--calcite-menu-min-width:10rem;--calcite-header-min-height:3rem;--calcite-footer-min-height:3rem}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.calendar-picker-wrapper{position:static;width:100%;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.input-wrapper{position:relative}:host([range]) .input-container{display:-ms-flexbox;display:flex}:host([range]) .input-wrapper{-ms-flex:1 1 auto;flex:1 1 auto}:host([range]) .horizontal-arrow-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);padding-top:0px;padding-bottom:0px;padding-left:0.25rem;padding-right:0.25rem}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}:host([range][layout=vertical]) .calendar-picker-wrapper--end{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host([range][layout=vertical]) .vertical-arrow-container{top:1.5rem;position:absolute;left:0px;z-index:10;margin-left:1px;margin-right:1px;background-color:var(--calcite-ui-foreground-1);padding-left:0.625rem;padding-right:0.625rem}:host([scale=s][range]:not([layout=vertical])) .calendar-picker-wrapper{width:216px}:host([scale=m][range]:not([layout=vertical])) .calendar-picker-wrapper{width:286px}:host([scale=l][range]:not([layout=vertical])) .calendar-picker-wrapper{width:398px}.menu-container{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .menu-container{pointer-events:initial;visibility:visible}.menu-container--active .menu-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.menu-container--active .menu-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.menu-container--active .menu-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.menu-container--active .menu-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.menu-container--active .menu-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.menu-container--active .menu-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.input .calcite-input__wrapper{margin-top:0px}:host([range][layout=vertical][scale=m]) .vertical-arrow-container{top:1.5rem;-webkit-padding-start:0.75rem;padding-inline-start:0.75rem}:host([range][layout=vertical][scale=m]) .vertical-arrow-container calcite-icon{height:0.75rem;width:0.75rem;min-width:0px}:host([range][layout=vertical][scale=l]) .vertical-arrow-container{top:2.25rem;padding-left:0.875rem;padding-right:0.875rem}:host([range][layout=vertical][active]) .vertical-arrow-container{display:none}::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 F=t("calcite_input_date_picker",function(){function t(t){var i=this;e(this,t);this.calciteDatePickerChange=a(this,"calciteDatePickerChange",7);this.calciteDatePickerRangeChange=a(this,"calciteDatePickerRangeChange",7);this.calciteInputDatePickerChange=a(this,"calciteInputDatePickerChange",7);this.calciteInternalInputDatePickerOpen=a(this,"calciteInternalInputDatePickerOpen",7);this.calciteInternalInputDatePickerClose=a(this,"calciteInternalInputDatePickerClose",7);this.disabled=false;this.active=false;this.intlPrevMonth=s.prevMonth;this.intlNextMonth=s.nextMonth;this.intlYear=s.year;this.locale=document.documentElement.lang||"en";this.scale="m";this.placement=D;this.range=false;this.required=false;this.overlayPositioning="absolute";this.proximitySelectionDisabled=false;this.layout="horizontal";this.focusedInput="start";this.activeTransitionProp="opacity";this.setFilteredPlacements=function(){var t=i,e=t.el,a=t.flipPlacements;i.filteredFlipPlacements=a?k(a,e):null};this.transitionEnd=function(t){if(t.propertyName===i.activeTransitionProp){i.active?i.calciteInternalInputDatePickerOpen.emit():i.calciteInternalInputDatePickerClose.emit()}};this.setStartInput=function(t){i.startInput=t};this.setEndInput=function(t){i.endInput=t};this.deactivate=function(){i.active=false};this.keyDownHandler=function(t){if(t.key==="Enter"&&!t.defaultPrevented){y(i)}};this.keyUpHandler=function(t){if(t.key==="Escape"){i.active=false}};this.inputBlur=function(t){i.blur(t.detail)};this.startInputFocus=function(){i.active=true;i.focusedInput="start"};this.endInputFocus=function(){i.active=true;i.focusedInput="end"};this.inputInput=function(t){i.input(t.detail.value)};this.setMenuEl=function(t){if(t){i.menuEl=t;i.createPopper()}};this.setStartWrapper=function(t){i.startWrapper=t;i.setReferenceEl()};this.setEndWrapper=function(t){i.endWrapper=t;i.setReferenceEl()};this.handleDateChange=function(t){if(i.range){return}i.value=o(t.detail)};this.handleDateRangeChange=function(t){var e,a;if(!i.range||!t.detail){return}var n=t.detail,r=n.startDate,s=n.endDate;i.start=o(r);i.end=o(s);i.value=[i.start,i.end];if(i.shouldFocusRangeEnd()){(e=i.endInput)===null||e===void 0?void 0:e.setFocus()}else if(i.shouldFocusRangeStart()){(a=i.startInput)===null||a===void 0?void 0:a.setFocus()}}}t.prototype.handleDisabledChange=function(t){if(!t){this.active=false}};t.prototype.valueHandler=function(t){if(Array.isArray(t)){this.valueAsDate=t.map((function(t){return l(t)}));this.start=t[0];this.end=t[1]}else if(t){this.valueAsDate=l(t);this.start="";this.end=""}else{this.valueAsDate=undefined;this.start=undefined;this.end=undefined}};t.prototype.flipPlacementsHandler=function(){this.setFilteredPlacements()};t.prototype.onMinChanged=function(t){if(t){this.minAsDate=l(t)}};t.prototype.onMaxChanged=function(t){if(t){this.maxAsDate=l(t)}};t.prototype.activeHandler=function(){if(!this.disabled){this.reposition();return}this.active=false};t.prototype.handleDateOrRangeChange=function(){this.calciteInputDatePickerChange.emit()};t.prototype.calciteDaySelectHandler=function(){if(this.shouldFocusRangeStart()||this.shouldFocusRangeEnd()){return}this.active=false};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.startInput)===null||t===void 0?void 0:t.setFocus();return[2]}))}))};t.prototype.reposition=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,a,i,n,r;return __generator(this,(function(s){switch(s.label){case 0:t=this,e=t.placement,a=t.popper,i=t.menuEl;n=this.getModifiers();if(!a)return[3,2];return[4,x({el:i,modifiers:n,placement:e,popper:a})];case 1:r=s.sent();return[3,3];case 2:r=this.createPopper();s.label=3;case 3:r;return[2]}}))}))};t.prototype.connectedCallback=function(){if(Array.isArray(this.value)){this.valueAsDate=this.value.map((function(t){return l(t)}));this.start=this.value[0];this.end=this.value[1]}else if(this.value){this.valueAsDate=l(this.value);this.start="";this.end=""}if(this.start){this.startAsDate=l(this.start)}if(this.end){this.endAsDate=l(this.end)}if(this.min){this.minAsDate=l(this.min)}if(this.max){this.maxAsDate=l(this.max)}this.createPopper();f(this);g(this);this.setFilteredPlacements()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadLocaleData()];case 1:t.sent();this.onMinChanged(this.min);this.onMaxChanged(this.max);return[2]}}))}))};t.prototype.disconnectedCallback=function(){this.destroyPopper();m(this);b(this)};t.prototype.componentDidRender=function(){C(this)};t.prototype.render=function(){var t;var e,a;var r=this.disabled;var s=c(this.range?this.startAsDate:this.valueAsDate,this.minAsDate,this.maxAsDate);var o=this.range?c(this.endAsDate,this.minAsDate,this.maxAsDate):null;var l=o?o.toLocaleDateString(this.locale):"";var p=s?s.toLocaleDateString(this.locale):"";return i(n,{onBlur:this.deactivate,onKeyDown:this.keyDownHandler,onKeyUp:this.keyUpHandler,role:"application"},this.localeData&&i("div",{"aria-expanded":_(this.active),class:"input-container",role:"application"},i("div",{class:"input-wrapper",ref:this.setStartWrapper},i("calcite-input",{class:"input ".concat(this.layout==="vertical"&&this.range?"no-bottom-border":""),disabled:r,icon:"calendar",label:v(this),"number-button-type":"none",onCalciteInputInput:this.inputInput,onCalciteInternalInputBlur:this.inputBlur,onCalciteInternalInputFocus:this.startInputFocus,placeholder:(e=this.localeData)===null||e===void 0?void 0:e.placeholder,ref:this.setStartInput,scale:this.scale,type:"text",value:p})),i("div",{"aria-hidden":_(!this.active),class:{"menu-container":true,"menu-container--active":this.active},ref:this.setMenuEl},i("div",{class:(t={},t["calendar-picker-wrapper"]=true,t["calendar-picker-wrapper--end"]=this.focusedInput==="end",t[I.animation]=true,t[I.animationActive]=this.active,t),onTransitionEnd:this.transitionEnd},i("calcite-date-picker",{activeRange:this.focusedInput,endAsDate:this.endAsDate,headingLevel:this.headingLevel,intlNextMonth:this.intlNextMonth,intlPrevMonth:this.intlPrevMonth,intlYear:this.intlYear,locale:this.locale,max:this.max,maxAsDate:this.maxAsDate,min:this.min,minAsDate:this.minAsDate,onCalciteDatePickerChange:this.handleDateChange,onCalciteDatePickerRangeChange:this.handleDateRangeChange,proximitySelectionDisabled:this.proximitySelectionDisabled,range:this.range,scale:this.scale,startAsDate:this.startAsDate,tabIndex:0,valueAsDate:this.valueAsDate}))),this.range&&this.layout==="horizontal"&&i("div",{class:"horizontal-arrow-container"},i("calcite-icon",{flipRtl:true,icon:"arrow-right",scale:"s"})),this.range&&this.layout==="vertical"&&this.scale!=="s"&&i("div",{class:"vertical-arrow-container"},i("calcite-icon",{icon:"arrow-down",scale:"s"})),this.range&&i("div",{class:"input-wrapper",ref:this.setEndWrapper},i("calcite-input",{class:{input:true,"border-top-color-one":this.layout==="vertical"&&this.range},disabled:r,icon:"calendar","number-button-type":"none",onCalciteInputInput:this.inputInput,onCalciteInternalInputBlur:this.inputBlur,onCalciteInternalInputFocus:this.endInputFocus,placeholder:(a=this.localeData)===null||a===void 0?void 0:a.placeholder,ref:this.setEndInput,scale:this.scale,type:"text",value:l}))),i(w,{component:this}))};t.prototype.setReferenceEl=function(){var t=this,e=t.focusedInput,a=t.layout,i=t.endWrapper,n=t.startWrapper;this.referenceEl=e==="end"||a==="vertical"?i||n:n||i;this.createPopper()};t.prototype.onLabelClick=function(){this.setFocus()};t.prototype.getModifiers=function(){var t={name:"flip",enabled:true};t.options={fallbackPlacements:this.filteredFlipPlacements||P};var e={name:"eventListeners",enabled:this.active};return[t,e]};t.prototype.createPopper=function(){this.destroyPopper();var t=this,e=t.menuEl,a=t.placement,i=t.referenceEl,n=t.overlayPositioning;if(!e||!i){return}var r=this.getModifiers();this.popper=A({el:e,modifiers:r,overlayPositioning:n,placement:a,referenceEl:i})};t.prototype.destroyPopper=function(){var t=this.popper;if(t){t.destroy()}this.popper=null};t.prototype.startWatcher=function(t){this.startAsDate=l(t)};t.prototype.endWatcher=function(t){this.endAsDate=l(t)};t.prototype.loadLocaleData=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(a){switch(a.label){case 0:t=this.locale;e=this;return[4,p(t)];case 1:e.localeData=a.sent();return[2]}}))}))};t.prototype.clearCurrentValue=function(){if(!this.range){if(typeof this.value==="string"&&this.value){this.calciteDatePickerChange.emit()}this.value="";return}var t=this.focusedInput;if(t==="start"){if(this.start){this.calciteDatePickerRangeChange.emit()}this.value=Array.isArray(this.value)?["",this.value[1]||""]:[""];this.start=undefined}else if(t==="end"){if(this.end){this.calciteDatePickerRangeChange.emit()}this.value=Array.isArray(this.value)?[this.value[0]||"",""]:["",""];this.end=undefined}};t.prototype.input=function(t){var e=this.getDateFromInput(t);if(!e){this.clearCurrentValue();return}if(!this.range){this.value=o(e);this.calciteDatePickerChange.emit(e);return}var a=this.focusedInput;if(a==="start"){if(!this.startAsDate||!u(e,this.startAsDate)){var i=o(e);this.value=Array.isArray(this.value)?[i,this.value[1]||""]:[i];this.start=i;this.calciteDatePickerRangeChange.emit({startDate:e,endDate:this.endAsDate})}}else if(a==="end"){if(!this.endAsDate||!u(e,this.endAsDate)){var n=o(e);this.value=Array.isArray(this.value)?[this.value[0]||"",n]:["",n];this.end=n;this.calciteDatePickerRangeChange.emit({startDate:this.startAsDate,endDate:e})}}};t.prototype.blur=function(t){var e=this,a=e.locale,i=e.focusedInput,n=e.endAsDate,r=e.range,s=e.startAsDate,o=e.valueAsDate;var l=this.getDateFromInput(t.value);if(!l){if(!r&&o){t.value=Array.isArray(o)?o[i==="end"?1:0].toLocaleDateString(a):o.toLocaleDateString(a)}else if(i==="start"&&s){t.value=s.toLocaleDateString(a)}else if(i==="end"&&n){t.value=n.toLocaleDateString(a)}}};t.prototype.shouldFocusRangeStart=function(){return!!(this.endAsDate&&!this.startAsDate&&this.focusedInput==="end"&&this.startInput)};t.prototype.shouldFocusRangeEnd=function(){return!!(this.startAsDate&&!this.endAsDate&&this.focusedInput==="start"&&this.endInput)};t.prototype.getDateFromInput=function(t){if(!this.localeData){return false}var e=this.localeData.separator;var a=h(t,this.localeData),i=a.day,n=a.month,r=a.year;var s=i>0;var o=n>-1;var l=new Date(r,n,i);l.setFullYear(r);var c=!isNaN(l.getTime());var p=t.split(e).filter((function(t){return t})).length>2;var u=r.toString().length>0;if(s&&o&&c&&p&&u&&d(l,this.min,this.max)){return l}return false};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["handleDisabledChange"],value:["valueHandler"],flipPlacements:["flipPlacementsHandler"],min:["onMinChanged"],max:["onMaxChanged"],active:["activeHandler"],layout:["setReferenceEl"],focusedInput:["setReferenceEl"],start:["startWatcher"],end:["endWatcher"],locale:["loadLocaleData"]}},enumerable:false,configurable:true});return t}());F.style=E}}}));
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
const number = require('./number-64bf4115.js');
|
|
9
|
-
|
|
10
|
-
const locales = [
|
|
11
|
-
"ar",
|
|
12
|
-
"bg",
|
|
13
|
-
"bs",
|
|
14
|
-
"ca",
|
|
15
|
-
"cs",
|
|
16
|
-
"da",
|
|
17
|
-
"de",
|
|
18
|
-
"de-CH",
|
|
19
|
-
"el",
|
|
20
|
-
"en",
|
|
21
|
-
"en-AU",
|
|
22
|
-
"en-CA",
|
|
23
|
-
"en-GB",
|
|
24
|
-
"es",
|
|
25
|
-
"es-MX",
|
|
26
|
-
"et",
|
|
27
|
-
"fi",
|
|
28
|
-
"fr",
|
|
29
|
-
"fr-CH",
|
|
30
|
-
"he",
|
|
31
|
-
"hi",
|
|
32
|
-
"hr",
|
|
33
|
-
"hu",
|
|
34
|
-
"id",
|
|
35
|
-
"it",
|
|
36
|
-
"it-CH",
|
|
37
|
-
"ja",
|
|
38
|
-
"ko",
|
|
39
|
-
"lt",
|
|
40
|
-
"lv",
|
|
41
|
-
"mk",
|
|
42
|
-
"nb",
|
|
43
|
-
"nl",
|
|
44
|
-
"pl",
|
|
45
|
-
"pt",
|
|
46
|
-
"pt-PT",
|
|
47
|
-
"ro",
|
|
48
|
-
"ru",
|
|
49
|
-
"sk",
|
|
50
|
-
"sl",
|
|
51
|
-
"sr",
|
|
52
|
-
"sv",
|
|
53
|
-
"th",
|
|
54
|
-
"tr",
|
|
55
|
-
"uk",
|
|
56
|
-
"vi",
|
|
57
|
-
"zh-CN",
|
|
58
|
-
"zh-HK",
|
|
59
|
-
"zh-TW"
|
|
60
|
-
];
|
|
61
|
-
const allDecimalsExceptLast = new RegExp(`[.](?=.*[.])`, "g");
|
|
62
|
-
const everythingExceptNumbersDecimalsAndMinusSigns = new RegExp("[^0-9-.]", "g");
|
|
63
|
-
const defaultGroupSeparator = new RegExp(",", "g");
|
|
64
|
-
const defaultNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;
|
|
65
|
-
function createLocaleNumberFormatter(locale, numberingSystem = defaultNumberingSystem) {
|
|
66
|
-
return new Intl.NumberFormat(locale, {
|
|
67
|
-
minimumFractionDigits: 0,
|
|
68
|
-
maximumFractionDigits: 20,
|
|
69
|
-
numberingSystem
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function delocalizeNumberString(numberString, locale) {
|
|
73
|
-
return number.sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
74
|
-
const delocalizedNumberString = nonExpoNumString
|
|
75
|
-
.replace(getMinusSign(locale), "-")
|
|
76
|
-
.replace(getGroupSeparator(locale), "")
|
|
77
|
-
.replace(getDecimalSeparator(locale), ".")
|
|
78
|
-
.replace(allDecimalsExceptLast, "")
|
|
79
|
-
.replace(everythingExceptNumbersDecimalsAndMinusSigns, "");
|
|
80
|
-
return number.isValidNumber(delocalizedNumberString) ? delocalizedNumberString : nonExpoNumString;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function getGroupSeparator(locale) {
|
|
84
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
85
|
-
const parts = formatter.formatToParts(1234567);
|
|
86
|
-
const value = parts.find((part) => part.type === "group").value;
|
|
87
|
-
// change whitespace group characters that don't render correctly
|
|
88
|
-
return value.trim().length === 0 ? " " : value;
|
|
89
|
-
}
|
|
90
|
-
function getDecimalSeparator(locale) {
|
|
91
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
92
|
-
const parts = formatter.formatToParts(1.1);
|
|
93
|
-
return parts.find((part) => part.type === "decimal").value;
|
|
94
|
-
}
|
|
95
|
-
function getMinusSign(locale) {
|
|
96
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
97
|
-
const parts = formatter.formatToParts(-9);
|
|
98
|
-
return parts.find((part) => part.type === "minusSign").value;
|
|
99
|
-
}
|
|
100
|
-
function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
|
|
101
|
-
return number.sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
102
|
-
if (nonExpoNumString) {
|
|
103
|
-
const number$1 = Number(number.sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, "")));
|
|
104
|
-
if (!isNaN(number$1)) {
|
|
105
|
-
const formatter = createLocaleNumberFormatter(locale, numberingSystem);
|
|
106
|
-
const parts = formatter.formatToParts(number$1);
|
|
107
|
-
const localizedNumberString = parts
|
|
108
|
-
.map(({ type, value }) => {
|
|
109
|
-
switch (type) {
|
|
110
|
-
case "group":
|
|
111
|
-
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
112
|
-
case "decimal":
|
|
113
|
-
return getDecimalSeparator(locale);
|
|
114
|
-
case "minusSign":
|
|
115
|
-
return getMinusSign(locale);
|
|
116
|
-
default:
|
|
117
|
-
return value;
|
|
118
|
-
}
|
|
119
|
-
})
|
|
120
|
-
.reduce((string, part) => string + part);
|
|
121
|
-
return localizedNumberString;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return nonExpoNumString;
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
exports.delocalizeNumberString = delocalizeNumberString;
|
|
129
|
-
exports.getDecimalSeparator = getDecimalSeparator;
|
|
130
|
-
exports.locales = locales;
|
|
131
|
-
exports.localizeNumberString = localizeNumberString;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
function isActivationKey(key) {
|
|
9
|
-
return key === "Enter" || key === " ";
|
|
10
|
-
}
|
|
11
|
-
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
12
|
-
|
|
13
|
-
function isValidNumber(numberString) {
|
|
14
|
-
return !(!numberString || isNaN(Number(numberString)));
|
|
15
|
-
}
|
|
16
|
-
function parseNumberString(numberString) {
|
|
17
|
-
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
18
|
-
return "";
|
|
19
|
-
}
|
|
20
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
21
|
-
let containsDecimal = false;
|
|
22
|
-
const result = nonExpoNumString
|
|
23
|
-
.split("")
|
|
24
|
-
.filter((value, i) => {
|
|
25
|
-
if (value.match(/\./g) && !containsDecimal) {
|
|
26
|
-
containsDecimal = true;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
if (value.match(/\-/g) && i === 0) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
return numberKeys.includes(value);
|
|
33
|
-
})
|
|
34
|
-
.reduce((string, part) => string + part);
|
|
35
|
-
return isValidNumber(result) ? Number(result).toString() : "";
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function sanitizeDecimalString(decimalString) {
|
|
39
|
-
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
40
|
-
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
41
|
-
}
|
|
42
|
-
function sanitizeNegativeString(negativeString) {
|
|
43
|
-
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
44
|
-
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
45
|
-
}
|
|
46
|
-
function sanitizeLeadingZeroString(zeroString) {
|
|
47
|
-
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
48
|
-
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
49
|
-
}
|
|
50
|
-
function sanitizeNumberString(numberString) {
|
|
51
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
52
|
-
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
|
|
53
|
-
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
54
|
-
return isValidNumber(sanitizedValue)
|
|
55
|
-
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
56
|
-
? sanitizedValue
|
|
57
|
-
: Number(sanitizedValue).toString()
|
|
58
|
-
: nonExpoNumString;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function sanitizeExponentialNumberString(numberString, func) {
|
|
62
|
-
if (!numberString) {
|
|
63
|
-
return numberString;
|
|
64
|
-
}
|
|
65
|
-
const firstE = numberString.toLowerCase().indexOf("e") + 1;
|
|
66
|
-
return numberString
|
|
67
|
-
.replace(/[eE]*$/g, "")
|
|
68
|
-
.substring(0, firstE)
|
|
69
|
-
.concat(numberString.slice(firstE).replace(/[eE]/g, ""))
|
|
70
|
-
.split(/[eE]/)
|
|
71
|
-
.map((section, i) => (i === 1 ? func(section.replace(/\./g, "")) : func(section)))
|
|
72
|
-
.join("e")
|
|
73
|
-
.replace(/^e/, "1e");
|
|
74
|
-
}
|
|
75
|
-
function stringContainsNumbers(string) {
|
|
76
|
-
return numberKeys.some((number) => string.includes(number));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
exports.isActivationKey = isActivationKey;
|
|
80
|
-
exports.isValidNumber = isValidNumber;
|
|
81
|
-
exports.numberKeys = numberKeys;
|
|
82
|
-
exports.parseNumberString = parseNumberString;
|
|
83
|
-
exports.sanitizeDecimalString = sanitizeDecimalString;
|
|
84
|
-
exports.sanitizeExponentialNumberString = sanitizeExponentialNumberString;
|
|
85
|
-
exports.sanitizeNumberString = sanitizeNumberString;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
function isActivationKey(key) {
|
|
7
|
-
return key === "Enter" || key === " ";
|
|
8
|
-
}
|
|
9
|
-
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
10
|
-
|
|
11
|
-
function isValidNumber(numberString) {
|
|
12
|
-
return !(!numberString || isNaN(Number(numberString)));
|
|
13
|
-
}
|
|
14
|
-
function parseNumberString(numberString) {
|
|
15
|
-
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
16
|
-
return "";
|
|
17
|
-
}
|
|
18
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
19
|
-
let containsDecimal = false;
|
|
20
|
-
const result = nonExpoNumString
|
|
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() : "";
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function sanitizeDecimalString(decimalString) {
|
|
37
|
-
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
38
|
-
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
39
|
-
}
|
|
40
|
-
function sanitizeNegativeString(negativeString) {
|
|
41
|
-
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
42
|
-
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
43
|
-
}
|
|
44
|
-
function sanitizeLeadingZeroString(zeroString) {
|
|
45
|
-
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
46
|
-
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
47
|
-
}
|
|
48
|
-
function sanitizeNumberString(numberString) {
|
|
49
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
50
|
-
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
|
|
51
|
-
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
52
|
-
return isValidNumber(sanitizedValue)
|
|
53
|
-
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
54
|
-
? sanitizedValue
|
|
55
|
-
: Number(sanitizedValue).toString()
|
|
56
|
-
: nonExpoNumString;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function sanitizeExponentialNumberString(numberString, func) {
|
|
60
|
-
if (!numberString) {
|
|
61
|
-
return numberString;
|
|
62
|
-
}
|
|
63
|
-
const firstE = numberString.toLowerCase().indexOf("e") + 1;
|
|
64
|
-
return numberString
|
|
65
|
-
.replace(/[eE]*$/g, "")
|
|
66
|
-
.substring(0, firstE)
|
|
67
|
-
.concat(numberString.slice(firstE).replace(/[eE]/g, ""))
|
|
68
|
-
.split(/[eE]/)
|
|
69
|
-
.map((section, i) => (i === 1 ? func(section.replace(/\./g, "")) : func(section)))
|
|
70
|
-
.join("e")
|
|
71
|
-
.replace(/^e/, "1e");
|
|
72
|
-
}
|
|
73
|
-
function stringContainsNumbers(string) {
|
|
74
|
-
return numberKeys.some((number) => string.includes(number));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { sanitizeExponentialNumberString as a, sanitizeDecimalString as b, isActivationKey as c, isValidNumber as i, numberKeys as n, parseNumberString as p, sanitizeNumberString as s };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
import { a as sanitizeExponentialNumberString, i as isValidNumber, b as sanitizeDecimalString } from './number-cb4048f3.js';
|
|
7
|
-
|
|
8
|
-
const locales = [
|
|
9
|
-
"ar",
|
|
10
|
-
"bg",
|
|
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
|
-
const allDecimalsExceptLast = new RegExp(`[.](?=.*[.])`, "g");
|
|
60
|
-
const everythingExceptNumbersDecimalsAndMinusSigns = new RegExp("[^0-9-.]", "g");
|
|
61
|
-
const defaultGroupSeparator = new RegExp(",", "g");
|
|
62
|
-
const defaultNumberingSystem = new Intl.NumberFormat().resolvedOptions().numberingSystem;
|
|
63
|
-
function createLocaleNumberFormatter(locale, numberingSystem = defaultNumberingSystem) {
|
|
64
|
-
return new Intl.NumberFormat(locale, {
|
|
65
|
-
minimumFractionDigits: 0,
|
|
66
|
-
maximumFractionDigits: 20,
|
|
67
|
-
numberingSystem
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function delocalizeNumberString(numberString, locale) {
|
|
71
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
72
|
-
const delocalizedNumberString = nonExpoNumString
|
|
73
|
-
.replace(getMinusSign(locale), "-")
|
|
74
|
-
.replace(getGroupSeparator(locale), "")
|
|
75
|
-
.replace(getDecimalSeparator(locale), ".")
|
|
76
|
-
.replace(allDecimalsExceptLast, "")
|
|
77
|
-
.replace(everythingExceptNumbersDecimalsAndMinusSigns, "");
|
|
78
|
-
return isValidNumber(delocalizedNumberString) ? delocalizedNumberString : nonExpoNumString;
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function getGroupSeparator(locale) {
|
|
82
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
83
|
-
const parts = formatter.formatToParts(1234567);
|
|
84
|
-
const value = parts.find((part) => part.type === "group").value;
|
|
85
|
-
// change whitespace group characters that don't render correctly
|
|
86
|
-
return value.trim().length === 0 ? " " : value;
|
|
87
|
-
}
|
|
88
|
-
function getDecimalSeparator(locale) {
|
|
89
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
90
|
-
const parts = formatter.formatToParts(1.1);
|
|
91
|
-
return parts.find((part) => part.type === "decimal").value;
|
|
92
|
-
}
|
|
93
|
-
function getMinusSign(locale) {
|
|
94
|
-
const formatter = createLocaleNumberFormatter(locale);
|
|
95
|
-
const parts = formatter.formatToParts(-9);
|
|
96
|
-
return parts.find((part) => part.type === "minusSign").value;
|
|
97
|
-
}
|
|
98
|
-
function localizeNumberString(numberString, locale, displayGroupSeparator = false, numberingSystem) {
|
|
99
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
100
|
-
if (nonExpoNumString) {
|
|
101
|
-
const number = Number(sanitizeDecimalString(nonExpoNumString.replace(defaultGroupSeparator, "")));
|
|
102
|
-
if (!isNaN(number)) {
|
|
103
|
-
const formatter = createLocaleNumberFormatter(locale, numberingSystem);
|
|
104
|
-
const parts = formatter.formatToParts(number);
|
|
105
|
-
const localizedNumberString = parts
|
|
106
|
-
.map(({ type, value }) => {
|
|
107
|
-
switch (type) {
|
|
108
|
-
case "group":
|
|
109
|
-
return displayGroupSeparator ? getGroupSeparator(locale) : "";
|
|
110
|
-
case "decimal":
|
|
111
|
-
return getDecimalSeparator(locale);
|
|
112
|
-
case "minusSign":
|
|
113
|
-
return getMinusSign(locale);
|
|
114
|
-
default:
|
|
115
|
-
return value;
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
.reduce((string, part) => string + part);
|
|
119
|
-
return localizedNumberString;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return nonExpoNumString;
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export { locales as a, delocalizeNumberString as d, getDecimalSeparator as g, localizeNumberString as l };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
function isActivationKey(key) {
|
|
7
|
-
return key === "Enter" || key === " ";
|
|
8
|
-
}
|
|
9
|
-
const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
10
|
-
|
|
11
|
-
function isValidNumber(numberString) {
|
|
12
|
-
return !(!numberString || isNaN(Number(numberString)));
|
|
13
|
-
}
|
|
14
|
-
function parseNumberString(numberString) {
|
|
15
|
-
if (!numberString || !stringContainsNumbers(numberString)) {
|
|
16
|
-
return "";
|
|
17
|
-
}
|
|
18
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
19
|
-
let containsDecimal = false;
|
|
20
|
-
const result = nonExpoNumString
|
|
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() : "";
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function sanitizeDecimalString(decimalString) {
|
|
37
|
-
const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
|
|
38
|
-
return decimalString.replace(decimalAtEndOfStringButNotStart, "");
|
|
39
|
-
}
|
|
40
|
-
function sanitizeNegativeString(negativeString) {
|
|
41
|
-
const allHyphensExceptTheStart = /(?!^-)-/g;
|
|
42
|
-
return negativeString.replace(allHyphensExceptTheStart, "");
|
|
43
|
-
}
|
|
44
|
-
function sanitizeLeadingZeroString(zeroString) {
|
|
45
|
-
const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
|
|
46
|
-
return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
|
|
47
|
-
}
|
|
48
|
-
function sanitizeNumberString(numberString) {
|
|
49
|
-
return sanitizeExponentialNumberString(numberString, (nonExpoNumString) => {
|
|
50
|
-
const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(nonExpoNumString)));
|
|
51
|
-
const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
|
|
52
|
-
return isValidNumber(sanitizedValue)
|
|
53
|
-
? isNegativeDecimalOnlyZeros.test(sanitizedValue)
|
|
54
|
-
? sanitizedValue
|
|
55
|
-
: Number(sanitizedValue).toString()
|
|
56
|
-
: nonExpoNumString;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function sanitizeExponentialNumberString(numberString, func) {
|
|
60
|
-
if (!numberString) {
|
|
61
|
-
return numberString;
|
|
62
|
-
}
|
|
63
|
-
const firstE = numberString.toLowerCase().indexOf("e") + 1;
|
|
64
|
-
return numberString
|
|
65
|
-
.replace(/[eE]*$/g, "")
|
|
66
|
-
.substring(0, firstE)
|
|
67
|
-
.concat(numberString.slice(firstE).replace(/[eE]/g, ""))
|
|
68
|
-
.split(/[eE]/)
|
|
69
|
-
.map((section, i) => (i === 1 ? func(section.replace(/\./g, "")) : func(section)))
|
|
70
|
-
.join("e")
|
|
71
|
-
.replace(/^e/, "1e");
|
|
72
|
-
}
|
|
73
|
-
function stringContainsNumbers(string) {
|
|
74
|
-
return numberKeys.some((number) => string.includes(number));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export { sanitizeExponentialNumberString as a, sanitizeDecimalString as b, isActivationKey as c, isValidNumber as i, numberKeys as n, parseNumberString as p, sanitizeNumberString as s };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.489
|
|
5
|
-
*/
|
|
6
|
-
import{h}from"./index-f9bd5cb4.js";function constrainHeadingLevel(e){return Math.min(Math.max(Math.ceil(e),1),6)}var Heading=function(e,n){var a="h".concat(e.level);delete e.level;return h(a,Object.assign({},e),n)};export{Heading as H,constrainHeadingLevel as c};
|