@esri/calcite-components 1.0.0-next.430 → 1.0.0-next.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/icon/fileEcd16.json +1 -0
- package/dist/calcite/assets/icon/fileEcd24.json +1 -0
- package/dist/calcite/assets/icon/fileEcd32.json +1 -0
- 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-15798e80.entry.js → p-00c9b30a.entry.js} +2 -2
- package/dist/calcite/{p-09a850b4.js → p-017baf06.js} +2 -2
- package/dist/calcite/{p-fe9ff146.system.entry.js → p-020da0bc.system.entry.js} +2 -2
- package/dist/calcite/{p-725f4da2.entry.js → p-03379824.entry.js} +2 -2
- package/dist/calcite/{p-cc09d65e.js → p-04981664.js} +1 -1
- package/dist/calcite/{p-e636c3e3.system.js → p-05106b5b.system.js} +2 -2
- package/dist/calcite/{p-a73d9415.system.entry.js → p-077a17a6.system.entry.js} +2 -2
- package/dist/calcite/{p-7adbc11f.system.entry.js → p-07ad21d8.system.entry.js} +2 -2
- package/dist/calcite/{p-6cccdd61.system.entry.js → p-098b8745.system.entry.js} +2 -2
- package/dist/calcite/{p-04698c9d.entry.js → p-0a1599c7.entry.js} +2 -2
- package/dist/calcite/p-0bdb5929.js +6 -0
- package/dist/calcite/{p-342baff3.system.entry.js → p-0d6f2d7d.system.entry.js} +2 -2
- package/dist/calcite/{p-0c4e2544.js → p-0fe13286.js} +2 -2
- package/dist/calcite/{p-2ff28bce.entry.js → p-109a7381.entry.js} +2 -2
- package/dist/calcite/{p-7e107910.system.js → p-16c7e565.system.js} +1 -1
- package/dist/calcite/{p-3d09adf2.system.js → p-183faad3.system.js} +1 -1
- package/dist/calcite/{p-e0eec72e.entry.js → p-1abeedcc.entry.js} +2 -2
- package/dist/calcite/{p-95c695bb.entry.js → p-1c22c912.entry.js} +2 -2
- package/dist/calcite/p-1c64b0fe.js +6 -0
- package/dist/calcite/{p-a698cf98.entry.js → p-1d532c1b.entry.js} +2 -2
- package/dist/calcite/p-1dcb5bca.system.js +6 -0
- package/dist/calcite/{p-d145279d.system.entry.js → p-20ea67a7.system.entry.js} +2 -2
- package/dist/calcite/{p-fc855363.system.entry.js → p-21370677.system.entry.js} +2 -2
- package/dist/calcite/{p-fae87ad2.system.entry.js → p-22055055.system.entry.js} +2 -2
- package/dist/calcite/{p-9c59be56.system.entry.js → p-29573fe1.system.entry.js} +2 -2
- package/dist/calcite/{p-156bdafd.system.entry.js → p-2e120510.system.entry.js} +2 -2
- package/dist/calcite/p-2e5c9edf.system.js +12 -0
- package/dist/calcite/{p-d289ce30.system.entry.js → p-2f86b9e1.system.entry.js} +2 -2
- package/dist/calcite/{p-25617995.system.entry.js → p-323ec128.system.entry.js} +3 -3
- package/dist/calcite/{p-bc156702.system.entry.js → p-326ee541.system.entry.js} +3 -3
- package/dist/calcite/{p-ccca37d4.entry.js → p-37014bdd.entry.js} +2 -2
- package/dist/calcite/{p-c72ab186.js → p-37aa8f59.js} +1 -1
- package/dist/calcite/{p-d553c216.entry.js → p-3aa18515.entry.js} +2 -2
- package/dist/calcite/{p-8790d1e8.js → p-3b87ec39.js} +1 -1
- package/dist/calcite/{p-49fd5e81.js → p-3c51261e.js} +1 -1
- package/dist/calcite/{p-75a03b97.system.entry.js → p-3c9f59e2.system.entry.js} +2 -2
- package/dist/calcite/{p-882b81da.system.entry.js → p-3cf4adc7.system.entry.js} +2 -2
- package/dist/calcite/{p-82e4d02a.entry.js → p-3fcd0deb.entry.js} +2 -2
- package/dist/calcite/{p-3ca2743d.system.entry.js → p-4020947c.system.entry.js} +2 -2
- package/dist/calcite/{p-2709d16f.entry.js → p-43cdcb4e.entry.js} +2 -2
- package/dist/calcite/{p-3887b97b.entry.js → p-4635fead.entry.js} +2 -2
- package/dist/calcite/{p-fc0c1a3a.js → p-490e30b2.js} +2 -2
- package/dist/calcite/{p-9ef5686a.system.entry.js → p-4a950476.system.entry.js} +2 -2
- package/dist/calcite/{p-9e4486da.system.entry.js → p-4bc83687.system.entry.js} +2 -2
- package/dist/calcite/{p-800feffd.entry.js → p-4d3091f5.entry.js} +2 -2
- package/dist/calcite/{p-9e76f637.system.entry.js → p-4d505f4a.system.entry.js} +2 -2
- package/dist/calcite/{p-7102f65d.system.entry.js → p-4e7f80c6.system.entry.js} +2 -2
- package/dist/calcite/{p-dd84754d.entry.js → p-4f905e32.entry.js} +2 -2
- package/dist/calcite/{p-b66d2160.system.entry.js → p-52395b19.system.entry.js} +2 -2
- package/dist/calcite/{p-5386a92a.js → p-527ae35d.js} +1 -1
- package/dist/calcite/{p-55d4617f.entry.js → p-540bffe7.entry.js} +2 -2
- package/dist/calcite/{p-58fe7402.entry.js → p-578511dd.entry.js} +2 -2
- package/dist/calcite/{p-b862e116.system.entry.js → p-580612ae.system.entry.js} +2 -2
- package/dist/calcite/{p-ed7198ab.js → p-58888091.js} +2 -2
- package/dist/calcite/{p-f8d57526.js → p-58df4161.js} +1 -1
- package/dist/calcite/{p-18cd2c2d.entry.js → p-58e948cb.entry.js} +2 -2
- package/dist/calcite/{p-1ec9e015.js → p-598fb334.js} +1 -1
- package/dist/calcite/{p-bcf6fd28.entry.js → p-5c702223.entry.js} +2 -2
- package/dist/calcite/{p-4684178f.entry.js → p-5d13d1b4.entry.js} +2 -2
- package/dist/calcite/{p-25e8b91d.entry.js → p-5e8bf664.entry.js} +2 -2
- package/dist/calcite/{p-cc2f5cec.entry.js → p-5eb03b86.entry.js} +2 -2
- package/dist/calcite/{p-5b2fdd1c.system.entry.js → p-5ee4d4e0.system.entry.js} +2 -2
- package/dist/calcite/{p-17f2a129.system.entry.js → p-5f4a10c4.system.entry.js} +2 -2
- package/dist/calcite/{p-85ef772b.entry.js → p-602fd21a.entry.js} +2 -2
- package/dist/calcite/{p-45a2d2f2.system.entry.js → p-60788f64.system.entry.js} +2 -2
- package/dist/calcite/{p-9764793b.system.js → p-660c8ea5.system.js} +1 -1
- package/dist/calcite/{p-51316fa8.entry.js → p-66b7155a.entry.js} +2 -2
- package/dist/calcite/{p-8f2922ac.system.entry.js → p-695a2f92.system.entry.js} +2 -2
- package/dist/calcite/{p-6e6943bc.js → p-6c262d4f.js} +1 -1
- package/dist/calcite/{p-634ae829.system.js → p-6c553c1a.system.js} +2 -2
- package/dist/calcite/{p-c1026be6.js → p-6e0bfa2c.js} +1 -1
- package/dist/calcite/p-6f65ed2e.js +6 -0
- package/dist/calcite/{p-142256da.entry.js → p-70fad398.entry.js} +2 -2
- package/dist/calcite/{p-96c9143b.entry.js → p-727ad4b2.entry.js} +2 -2
- package/dist/calcite/{p-30b4aee2.system.js → p-73c6fa09.system.js} +2 -2
- package/dist/calcite/{p-06ac73ba.system.entry.js → p-740f5f0e.system.entry.js} +2 -2
- package/dist/calcite/{p-4dac11ef.entry.js → p-7466d820.entry.js} +2 -2
- package/dist/calcite/{p-0c5dc519.system.entry.js → p-78e7ae36.system.entry.js} +2 -2
- package/dist/calcite/{p-ae5080e3.system.js → p-795be3c7.system.js} +2 -2
- package/dist/calcite/{p-b4cad296.js → p-7a61a293.js} +2 -2
- package/dist/calcite/{p-6c75a2c3.entry.js → p-7ac1438d.entry.js} +2 -2
- package/dist/calcite/{p-a465f73b.entry.js → p-7bad88ad.entry.js} +2 -2
- package/dist/calcite/{p-01bebbb2.system.entry.js → p-7c2a4869.system.entry.js} +2 -2
- package/dist/calcite/{p-5d4c8144.entry.js → p-80d46f04.entry.js} +2 -2
- package/dist/calcite/{p-785cf808.system.js → p-811da2b4.system.js} +1 -1
- package/dist/calcite/{p-9b8cfbfb.system.entry.js → p-82e61e17.system.entry.js} +2 -2
- package/dist/calcite/{p-a1fbcc2e.js → p-85d5f15c.js} +1 -1
- package/dist/calcite/{p-f98b56e7.system.entry.js → p-879d947b.system.entry.js} +2 -2
- package/dist/calcite/{p-40336c4d.system.entry.js → p-87e55f96.system.entry.js} +2 -2
- package/dist/calcite/{p-405ccb43.system.entry.js → p-885afaf6.system.entry.js} +3 -3
- package/dist/calcite/{p-4344c8fb.entry.js → p-8ae274a4.entry.js} +2 -2
- package/dist/calcite/{p-74cfecc6.system.entry.js → p-8e45d6ea.system.entry.js} +2 -2
- package/dist/calcite/{p-f74a1d61.entry.js → p-8f09e83b.entry.js} +2 -2
- package/dist/calcite/{p-664b9990.system.entry.js → p-93959c00.system.entry.js} +2 -2
- package/dist/calcite/{p-779be7b0.system.js → p-963d4975.system.js} +2 -2
- package/dist/calcite/{p-6749afad.entry.js → p-96561a1e.entry.js} +2 -2
- package/dist/calcite/{p-0b10cd7e.system.js → p-9748d91c.system.js} +1 -1
- package/dist/calcite/{p-8c5880fe.entry.js → p-97a022b1.entry.js} +2 -2
- package/dist/calcite/{p-4b3b77a5.system.entry.js → p-98509535.system.entry.js} +2 -2
- package/dist/calcite/{p-fcb85f5a.system.entry.js → p-99025ddb.system.entry.js} +2 -2
- package/dist/calcite/{p-f7e0392c.system.entry.js → p-99ea3a84.system.entry.js} +2 -2
- package/dist/calcite/{p-9204d083.system.entry.js → p-9aa31a38.system.entry.js} +2 -2
- package/dist/calcite/{p-2ca913a7.system.entry.js → p-9ca21475.system.entry.js} +2 -2
- package/dist/calcite/{p-4d479267.system.js → p-9d1d3034.system.js} +2 -2
- package/dist/calcite/{p-7b0daff6.entry.js → p-9d3491fa.entry.js} +2 -2
- package/dist/calcite/{p-d8370311.system.entry.js → p-9ed08c59.system.entry.js} +2 -2
- package/dist/calcite/{p-d01a99d9.system.entry.js → p-9f55a95b.system.entry.js} +2 -2
- package/dist/calcite/p-9f72ba0b.system.entry.js +6 -0
- package/dist/calcite/{p-78ab1a24.entry.js → p-9f8bcd09.entry.js} +2 -2
- package/dist/calcite/{p-5e6d344a.system.js → p-a00eecc4.system.js} +1 -1
- package/dist/calcite/{p-ccf412ea.js → p-a1020025.js} +2 -2
- package/dist/calcite/{p-798e55f8.system.entry.js → p-a2f79284.system.entry.js} +2 -2
- package/dist/calcite/p-a3f1141e.js +12 -0
- package/dist/calcite/{p-6765aa39.system.entry.js → p-ab6fabbb.system.entry.js} +2 -2
- package/dist/calcite/{p-065931ea.system.entry.js → p-ac68f7a6.system.entry.js} +2 -2
- package/dist/calcite/{p-63d50893.entry.js → p-acae83f8.entry.js} +2 -2
- package/dist/calcite/{p-c5ae7ec3.system.js → p-acb3dfde.system.js} +1 -1
- package/dist/calcite/{p-05883e95.system.entry.js → p-af4b4250.system.entry.js} +2 -2
- package/dist/calcite/{p-a0357e60.entry.js → p-b009e77d.entry.js} +2 -2
- package/dist/calcite/{p-a7ee1acd.entry.js → p-b1d5e24e.entry.js} +2 -2
- package/dist/calcite/{p-f89c8b5e.entry.js → p-b3db6a77.entry.js} +2 -2
- package/dist/calcite/p-b50da56a.entry.js +6 -0
- package/dist/calcite/{p-4fc481ea.entry.js → p-b55ac9b2.entry.js} +2 -2
- package/dist/calcite/{p-85730c80.js → p-b728aef8.js} +2 -2
- package/dist/calcite/{p-c5c42bed.entry.js → p-b795c9bb.entry.js} +2 -2
- package/dist/calcite/{p-3bf83335.system.js → p-b7a23936.system.js} +1 -1
- package/dist/calcite/{p-e70e2e36.system.js → p-b860094d.system.js} +1 -1
- package/dist/calcite/{p-85de34c5.js → p-baff2b76.js} +1 -1
- package/dist/calcite/{p-af193655.entry.js → p-bc490411.entry.js} +2 -2
- package/dist/calcite/{p-4c950302.system.js → p-bca67c4a.system.js} +1 -1
- package/dist/calcite/{p-f5c1e07b.system.entry.js → p-bf499efc.system.entry.js} +2 -2
- package/dist/calcite/{p-9c552466.entry.js → p-c0415ce4.entry.js} +2 -2
- package/dist/calcite/{p-e6f5955f.entry.js → p-c091d2ac.entry.js} +2 -2
- package/dist/calcite/{p-e41b86bc.system.js → p-c101d785.system.js} +1 -1
- package/dist/calcite/{p-750c9bd3.system.js → p-c1e45654.system.js} +1 -1
- package/dist/calcite/{p-db4d969c.system.entry.js → p-c4ca8ac8.system.entry.js} +2 -2
- package/dist/calcite/{p-d277d602.entry.js → p-c7a28440.entry.js} +2 -2
- package/dist/calcite/{p-af5ea246.system.entry.js → p-ca6f4b18.system.entry.js} +2 -2
- package/dist/calcite/p-cba301a2.system.js +6 -0
- package/dist/calcite/{p-2dafa9fc.js → p-cda3d1f0.js} +2 -2
- package/dist/calcite/{p-41daaa2b.system.entry.js → p-cdcd3c1f.system.entry.js} +2 -2
- package/dist/calcite/{p-9fe7ea0e.system.entry.js → p-cf4e0f02.system.entry.js} +2 -2
- package/dist/calcite/p-d574b665.entry.js +6 -0
- package/dist/calcite/{p-d9b11e91.js → p-d62824c7.js} +1 -1
- package/dist/calcite/{p-c9f2fce5.entry.js → p-da538f55.entry.js} +2 -2
- package/dist/calcite/{p-fdc0aea2.system.entry.js → p-ddefb864.system.entry.js} +2 -2
- package/dist/calcite/{p-8cd0b1e2.entry.js → p-e13567b8.entry.js} +2 -2
- package/dist/calcite/{p-760c20da.entry.js → p-e3433470.entry.js} +2 -2
- package/dist/calcite/{p-917e456b.system.entry.js → p-e3d9c090.system.entry.js} +2 -2
- package/dist/calcite/{p-fa09eba2.entry.js → p-e4635100.entry.js} +2 -2
- package/dist/calcite/{p-9eda8386.system.js → p-e78d203d.system.js} +2 -2
- package/dist/calcite/{p-62343a00.entry.js → p-ea52d564.entry.js} +2 -2
- package/dist/calcite/{p-b73fe065.system.entry.js → p-ea63f68c.system.entry.js} +2 -2
- package/dist/calcite/{p-b5e148e7.system.js → p-edbe578c.system.js} +2 -2
- package/dist/calcite/{p-30b47a95.entry.js → p-ee6465a8.entry.js} +2 -2
- package/dist/calcite/{p-7595bbf7.entry.js → p-f45d3fec.entry.js} +2 -2
- package/dist/calcite/p-f751e7cb.entry.js +6 -0
- package/dist/calcite/{p-cebc3956.system.entry.js → p-f8f99be8.system.entry.js} +3 -3
- package/dist/calcite/{p-8ed9c4a7.system.js → p-fb8a65bd.system.js} +2 -2
- package/dist/calcite/{p-10b4e7d1.entry.js → p-fc8b38d4.entry.js} +2 -2
- package/dist/calcite/{p-966854a2.system.js → p-fdc13026.system.js} +2 -2
- package/dist/calcite/{p-752accea.system.js → p-fdd77953.system.js} +1 -1
- package/dist/calcite/{p-96aa701c.system.entry.js → p-fee4222d.system.entry.js} +2 -2
- package/dist/calcite/{p-37fa5da9.entry.js → p-ffb486f6.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-3a617397.js → ExpandToggle-62cb86e4.js} +5 -5
- package/dist/cjs/{Heading-a1739d76.js → Heading-a5c1b0b4.js} +2 -2
- package/dist/cjs/{array-5f739953.js → array-3198dfdb.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 +4 -4
- 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 +7 -7
- 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 +9 -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 +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
- 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 +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-input.cjs.entry.js +11 -11
- 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 +3 -3
- 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 +2 -2
- 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 +6 -6
- 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 +18 -12
- 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 +5 -5
- 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 +4 -4
- package/dist/cjs/{conditionalSlot-97d0e204.js → conditionalSlot-7f9a4022.js} +3 -3
- package/dist/cjs/{debounce-1961458e.js → debounce-ea5a94a7.js} +1 -1
- package/dist/cjs/{dom-9112a2f5.js → dom-f3147cf0.js} +2 -2
- package/dist/cjs/{forIn-ca382db1.js → forIn-c8bb38ee.js} +2 -2
- package/dist/cjs/{form-2fd689ca.js → form-0fc1651b.js} +3 -3
- package/dist/cjs/{guid-aa0068fa.js → guid-119b52cc.js} +1 -1
- package/dist/cjs/{index-af6ebf15.js → index-6dad1746.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-8d2c7945.js → interactive-8dc2ceea.js} +1 -1
- package/dist/cjs/{interfaces-025e1d7b.js → interfaces-9e135f0f.js} +1 -1
- package/dist/cjs/{label-ceda22ca.js → label-d373140d.js} +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{locale-d2e41124.js → locale-f7f81b11.js} +2 -2
- package/dist/cjs/{math-d1ea4c45.js → math-c78d5680.js} +1 -1
- package/dist/cjs/{number-9733512e.js → number-0dbc88db.js} +1 -1
- package/dist/cjs/{observers-0321d521.js → observers-60875a1a.js} +1 -1
- package/dist/cjs/{popper-982dc8df.js → popper-57d4458b.js} +2 -2
- package/dist/cjs/{resources-a6d3078d.js → resources-210f4a2f.js} +3 -3
- package/dist/cjs/{resources-a1343e3b.js → resources-8f1717fe.js} +1 -1
- package/dist/cjs/{resources-c163ce43.js → resources-b704df5e.js} +5 -5
- package/dist/cjs/{resources-0c6be915.js → resources-bf53d218.js} +1 -1
- package/dist/cjs/{sortable.esm-b258b6c9.js → sortable.esm-21c92484.js} +63 -55
- package/dist/cjs/{utils-fda6b3d9.js → utils-99a79565.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 +1 -1
- 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/assets/icon/fileEcd16.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd24.json +1 -0
- package/dist/collection/components/icon/assets/icon/fileEcd32.json +1 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/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/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 +14 -13
- 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/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 +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- 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 +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow.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 +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +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.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/number.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/resources4.js +1 -1
- package/dist/components/resources5.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +63 -55
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +15 -8
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tooltip-manager.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +76 -62
- package/dist/esm/{ExpandToggle-b9e6cc02.js → ExpandToggle-c569de77.js} +5 -5
- package/dist/esm/{Heading-bf0dcdce.js → Heading-2a3bc0f4.js} +2 -2
- package/dist/esm/{array-8fbc62cc.js → array-fa488481.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 +4 -4
- 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 +7 -7
- 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 +9 -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 +3 -3
- package/dist/esm/calcite-graph_2.entry.js +9 -9
- package/dist/esm/calcite-handle.entry.js +2 -2
- 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 +11 -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 +11 -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 +3 -3
- 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 +2 -2
- 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 +6 -6
- 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 +18 -12
- 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 +5 -5
- 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 +4 -4
- package/dist/esm/{conditionalSlot-ee8dc764.js → conditionalSlot-3c729b4b.js} +3 -3
- package/dist/esm/{debounce-71013d9b.js → debounce-06e051a5.js} +1 -1
- package/dist/esm/{dom-6c1262a4.js → dom-cad37bdd.js} +2 -2
- package/dist/esm/{forIn-5a2ff386.js → forIn-56628e09.js} +2 -2
- package/dist/esm/{form-59cb94ac.js → form-8ad91aab.js} +3 -3
- package/dist/esm/{guid-2a264f44.js → guid-8e7be3e1.js} +1 -1
- package/dist/esm/{index-a852cbc0.js → index-b3355e3c.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-843bf339.js → interactive-89ab1652.js} +1 -1
- package/dist/esm/{interfaces-4cadda8d.js → interfaces-fe85bf1c.js} +1 -1
- package/dist/esm/{label-7979a13c.js → label-54be0ee4.js} +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{locale-81630499.js → locale-e4793330.js} +2 -2
- package/dist/esm/{math-34ad511e.js → math-9d808a62.js} +1 -1
- package/dist/esm/{number-0ae296d8.js → number-9235a26f.js} +1 -1
- package/dist/esm/{observers-3058d983.js → observers-05b7007a.js} +1 -1
- package/dist/esm/{popper-3e5bba76.js → popper-257870dc.js} +2 -2
- package/dist/esm/{resources-9c0fd61b.js → resources-078896d0.js} +3 -3
- package/dist/esm/{resources-7f8187d7.js → resources-500eede8.js} +1 -1
- package/dist/esm/{resources-1d6a7ad9.js → resources-61dd7775.js} +5 -5
- package/dist/esm/{resources-e0e65ec9.js → resources-fd83e825.js} +1 -1
- package/dist/esm/{sortable.esm-ec78c8ec.js → sortable.esm-36b2ea15.js} +63 -55
- package/dist/esm/{utils-fdcecfa8.js → utils-259f81ef.js} +1 -1
- package/dist/esm-es5/{ExpandToggle-b9e6cc02.js → ExpandToggle-c569de77.js} +2 -2
- package/dist/esm-es5/{Heading-bf0dcdce.js → Heading-2a3bc0f4.js} +2 -2
- package/dist/esm-es5/{array-8fbc62cc.js → array-fa488481.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 +2 -2
- 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 +2 -2
- package/dist/esm-es5/calcite-filter.entry.js +2 -2
- package/dist/esm-es5/calcite-flow.entry.js +2 -2
- package/dist/esm-es5/calcite-graph_2.entry.js +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 +2 -2
- 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 +3 -3
- package/dist/esm-es5/calcite-list_3.entry.js +3 -3
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +3 -3
- 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 +2 -2
- 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-ee8dc764.js → conditionalSlot-3c729b4b.js} +2 -2
- package/dist/esm-es5/{debounce-71013d9b.js → debounce-06e051a5.js} +1 -1
- package/dist/esm-es5/{dom-6c1262a4.js → dom-cad37bdd.js} +2 -2
- package/dist/esm-es5/{forIn-5a2ff386.js → forIn-56628e09.js} +2 -2
- package/dist/esm-es5/{form-59cb94ac.js → form-8ad91aab.js} +2 -2
- package/dist/esm-es5/{guid-2a264f44.js → guid-8e7be3e1.js} +1 -1
- package/dist/esm-es5/{index-a852cbc0.js → index-b3355e3c.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-843bf339.js → interactive-89ab1652.js} +1 -1
- package/dist/esm-es5/{interfaces-4cadda8d.js → interfaces-fe85bf1c.js} +1 -1
- package/dist/esm-es5/{label-7979a13c.js → label-54be0ee4.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-81630499.js → locale-e4793330.js} +2 -2
- package/dist/esm-es5/{math-34ad511e.js → math-9d808a62.js} +1 -1
- package/dist/esm-es5/{number-0ae296d8.js → number-9235a26f.js} +1 -1
- package/dist/esm-es5/{observers-3058d983.js → observers-05b7007a.js} +1 -1
- package/dist/esm-es5/{popper-3e5bba76.js → popper-257870dc.js} +2 -2
- package/dist/esm-es5/{resources-9c0fd61b.js → resources-078896d0.js} +2 -2
- package/dist/esm-es5/{resources-7f8187d7.js → resources-500eede8.js} +1 -1
- package/dist/esm-es5/{resources-1d6a7ad9.js → resources-61dd7775.js} +2 -2
- package/dist/esm-es5/{resources-e0e65ec9.js → resources-fd83e825.js} +1 -1
- package/dist/esm-es5/sortable.esm-36b2ea15.js +12 -0
- package/dist/esm-es5/{utils-fdcecfa8.js → utils-259f81ef.js} +1 -1
- package/dist/extras/docs-json.json +2 -8
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/tab-nav/tab-nav.d.ts +2 -1
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +72 -63
- package/package.json +12 -12
- package/dist/calcite/p-04125541.js +0 -6
- package/dist/calcite/p-094e0790.js +0 -6
- package/dist/calcite/p-114c97c7.entry.js +0 -6
- package/dist/calcite/p-34f2e7c2.system.js +0 -12
- package/dist/calcite/p-37095a3f.js +0 -12
- package/dist/calcite/p-4f11f04b.entry.js +0 -6
- package/dist/calcite/p-67b40450.system.js +0 -6
- package/dist/calcite/p-7d61ca43.system.js +0 -6
- package/dist/calcite/p-9e28b051.system.entry.js +0 -6
- package/dist/calcite/p-a4f47b7f.entry.js +0 -6
- package/dist/calcite/p-b2c8896f.js +0 -6
- package/dist/esm-es5/sortable.esm-ec78c8ec.js +0 -12
|
@@ -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.429
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,g as n,F as o}from"./p-85de34c5.js";import{g as r}from"./p-6e6943bc.js";import{n as s,a as c,k as l,d as m}from"./p-2dafa9fc.js";import{c as d}from"./p-c72ab186.js";import{u as h}from"./p-5386a92a.js";const b=class{constructor(a){t(this,a),this.calciteTabRegister=i(this,"calciteTabRegister",7),this.active=!1,this.scale="m",this.guid=`calcite-tab-title-${r()}`}render(){const t=this.el.id||this.guid;return a(e,{"aria-expanded":this.active.toString(),"aria-labelledby":this.labeledBy,id:t,role:"tabpanel"},a("section",null,a("slot",null)))}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs")}componentDidLoad(){this.calciteTabRegister.emit()}componentWillRender(){var t;this.scale=null===(t=this.parentTabsEl)||void 0===t?void 0:t.scale}disconnectedCallback(){var t;null===(t=document.body)||void 0===t||t.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))}tabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.active=this.tab===t.detail.tab:this.getTabIndex().then((i=>{this.active=i===t.detail.tab})))}async getTabIndex(){return Array.prototype.indexOf.call(s(this.el.parentElement.children).filter((t=>t.matches("calcite-tab"))),this.el)}async updateAriaInfo(t=[],i=[]){this.labeledBy=i[t.indexOf(this.el.id)]||null}get el(){return n(this)}};b.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([active]) section{display:block}:host{display:none;height:100%;width:100%}:host([active]){display:block;height:100%;width:100%;overflow:auto}section{display:none;height:100%;width:100%}:host([scale=s]){padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}";const p=class{constructor(a){t(this,a),this.calciteTabChange=i(this,"calciteTabChange",7),this.scale="m",this.layout="inline",this.position="below",this.bordered=!1,this.animationActiveDuration=.3,this.handleContainerScroll=()=>{this.activeIndicatorEl.style.transitionDuration="0s",this.updateOffsetPosition()}}async selectedTabChanged(){localStorage&&this.storageId&&null!=this.selectedTab&&localStorage.setItem(`calcite-tab-nav-${this.storageId}`,JSON.stringify(this.selectedTab)),this.calciteTabChange.emit({tab:this.selectedTab}),this.selectedTabEl=await this.getTabTitleById(this.selectedTab)}selectedTabElChanged(){this.updateOffsetPosition(),this.updateActiveWidth(),this.activeIndicatorEl.style.transitionDuration=`${this.animationActiveDuration}s`}connectedCallback(){this.parentTabsEl=this.el.closest("calcite-tabs")}componentWillLoad(){const t=`calcite-tab-nav-${this.storageId}`;if(localStorage&&this.storageId&&localStorage.getItem(t)){const i=JSON.parse(localStorage.getItem(t));this.selectedTab=i,this.calciteTabChange.emit({tab:this.selectedTab})}}componentWillRender(){const{parentTabsEl:t}=this;this.layout=null==t?void 0:t.layout,this.position=null==t?void 0:t.position,this.scale=null==t?void 0:t.scale,this.bordered=null==t?void 0:t.bordered,this.selectedTabEl&&this.updateOffsetPosition()}componentDidRender(){this.tabTitles.length&&this.tabTitles.every((t=>!t.active))&&!this.selectedTab&&this.tabTitles[0].getTabIdentifier().then((t=>{this.calciteTabChange.emit({tab:t})}))}render(){const t=c(this.el),i=`${this.indicatorWidth}px`,n=`${this.indicatorOffset}px`;return a(e,{role:"tablist"},a("div",{class:"tab-nav",onScroll:this.handleContainerScroll,ref:t=>this.tabNavEl=t},a("div",{class:"tab-nav-active-indicator-container",ref:t=>this.activeIndicatorContainerEl=t},a("div",{class:"tab-nav-active-indicator",ref:t=>this.activeIndicatorEl=t,style:"rtl"!==t?{width:i,left:n}:{width:i,right:n}})),a("slot",null)))}resizeHandler(){this.activeIndicatorEl.style.transitionDuration="0s",this.updateActiveWidth(),this.updateOffsetPosition()}focusPreviousTabHandler(t){const i=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);(this.enabledTabTitles[i-1]||this.enabledTabTitles[this.enabledTabTitles.length-1]).focus(),t.stopPropagation(),t.preventDefault()}focusNextTabHandler(t){const i=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);(this.enabledTabTitles[i+1]||this.enabledTabTitles[0]).focus(),t.stopPropagation(),t.preventDefault()}activateTabHandler(t){this.selectedTab=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target),t.stopPropagation(),t.preventDefault()}updateTabTitles(t){t.target.active&&(this.selectedTab=t.detail)}globalTabChangeHandler(t){this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTab!==t.detail.tab&&(this.selectedTab=t.detail.tab)}updateOffsetPosition(){var t,i,a,e,n;const o=c(this.el),r=null===(t=this.activeIndicatorContainerEl)||void 0===t?void 0:t.offsetWidth,s=null===(i=this.selectedTabEl)||void 0===i?void 0:i.offsetLeft,l=null===(a=this.selectedTabEl)||void 0===a?void 0:a.offsetWidth;this.indicatorOffset="rtl"!==o?s-(null===(e=this.tabNavEl)||void 0===e?void 0:e.scrollLeft):r-(s+l)+(null===(n=this.tabNavEl)||void 0===n?void 0:n.scrollLeft)}updateActiveWidth(){var t;this.indicatorWidth=null===(t=this.selectedTabEl)||void 0===t?void 0:t.offsetWidth}getIndexOfTabTitle(t,i=this.tabTitles){return i.indexOf(t)}async getTabTitleById(t){return Promise.all(this.tabTitles.map((t=>t.getTabIdentifier()))).then((i=>this.tabTitles[i.indexOf(t)]))}get tabTitles(){return l(this.el,"calcite-tab-title")}get enabledTabTitles(){return l(this.el,"calcite-tab-title:not([disabled])")}get el(){return n(this)}static get watchers(){return{selectedTab:["selectedTabChanged"],selectedTabEl:["selectedTabElChanged"]}}};p.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}:host([layout=center]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;bottom:0px;display:block;height:0.125rem;background-color:var(--calcite-ui-brand);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([position=below]) .tab-nav-active-indicator{bottom:unset;top:0px}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}";const f=class{constructor(a){t(this,a),this.calciteTabsActivate=i(this,"calciteTabsActivate",7),this.calciteTabsFocusNext=i(this,"calciteTabsFocusNext",7),this.calciteTabsFocusPrevious=i(this,"calciteTabsFocusPrevious",7),this.calciteTabTitleRegister=i(this,"calciteTabTitleRegister",7),this.active=!1,this.disabled=!1,this.bordered=!1,this.mutationObserver=d("mutation",(()=>this.updateHasText())),this.hasText=!1,this.guid=`calcite-tab-title-${r()}`}activeTabChanged(){this.active&&this.emitActiveTab()}connectedCallback(){this.setupTextContentObserver(),this.parentTabNavEl=this.el.closest("calcite-tab-nav"),this.parentTabsEl=this.el.closest("calcite-tabs")}disconnectedCallback(){var t,i;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(i=document.body)||void 0===i||i.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el}))}componentWillLoad(){this.updateHasText(),this.tab&&this.active&&this.emitActiveTab()}componentWillRender(){this.parentTabsEl&&(this.layout=this.parentTabsEl.layout,this.position=this.parentTabsEl.position,this.scale=this.parentTabsEl.scale,this.bordered=this.parentTabsEl.bordered),!this.parentTabsEl&&this.parentTabNavEl&&(this.position=m(this.parentTabNavEl,"position",this.position),this.scale=m(this.parentTabNavEl,"scale",this.scale))}render(){const t=this.el.id||this.guid,i=this.bordered&&!this.disabled&&"center"!==this.layout,n=a("calcite-icon",{class:"calcite-tab-title--icon icon-start",flipRtl:"start"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconStart,scale:"s"}),o=a("calcite-icon",{class:"calcite-tab-title--icon icon-end",flipRtl:"end"===this.iconFlipRtl||"both"===this.iconFlipRtl,icon:this.iconEnd,scale:"s"});return a(e,{"aria-controls":this.controls,"aria-expanded":this.active.toString(),id:t,role:"tab"},a("a",{class:{container:!0,"container--has-text":this.hasText},style:i&&{width:`${this.parentTabNavEl.indicatorWidth}px`}},this.iconStart?n:null,a("slot",null),this.iconEnd?o:null))}async componentDidLoad(){this.calciteTabTitleRegister.emit(await this.getTabIdentifier())}componentDidRender(){h(this,!0)}tabChangeHandler(t){t.composedPath().find((t=>"CALCITE-TABS"===t.tagName))===this.parentTabsEl&&(this.tab?this.active=this.tab===t.detail.tab:this.getTabIndex().then((i=>{this.active=i===t.detail.tab})))}onClick(){this.emitActiveTab()}keyDownHandler(t){switch(t.key){case" ":case"Enter":this.emitActiveTab(),t.preventDefault();break;case"ArrowRight":"ltr"===c(this.el)?this.calciteTabsFocusNext.emit():this.calciteTabsFocusPrevious.emit();break;case"ArrowLeft":"ltr"===c(this.el)?this.calciteTabsFocusPrevious.emit():this.calciteTabsFocusNext.emit()}}async getTabIndex(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"),this.el)}async getTabIdentifier(){return this.tab?this.tab:this.getTabIndex()}async updateAriaInfo(t=[],i=[]){this.controls=t[i.indexOf(this.el.id)]||null}updateHasText(){this.hasText=this.el.textContent.trim().length>0}setupTextContentObserver(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0})}emitActiveTab(){this.disabled||this.calciteTabsActivate.emit({tab:this.tab})}get el(){return n(this)}static get watchers(){return{active:["activeTabChanged"]}}};f.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{margin-right:1.25rem;display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}:host([position=below]) a{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([active]) a{border-color:transparent;color:var(--calcite-ui-text-1)}: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]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) a,:host([scale=m]) span{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-bottom-color:transparent;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][active][position=below]){-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) a,:host([bordered]:focus) a,:host([bordered]:active) a{position:relative}:host([bordered]:hover) a{background-color:var(--calcite-button-transparent-hover);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([bordered]) a{border-bottom-style:unset}:host([bordered][position=below]) a{border-top-style:unset}:host([active][bordered]) a{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}";const u=class{constructor(i){t(this,i),this.layout="inline",this.position="above",this.scale="m",this.bordered=!1,this.titles=[],this.tabs=[]}connectedCallback(){"center"===this.layout&&(this.bordered=!1)}render(){return a(o,null,a("slot",{name:"tab-nav"}),a("section",null,a("slot",null)))}calciteTabTitleRegister(t){this.titles=[...this.titles,t.target],this.registryHandler(),t.stopPropagation()}calciteTabTitleUnregister(t){this.titles=this.titles.filter((i=>i!==t.detail)),this.registryHandler(),t.stopPropagation()}calciteTabRegister(t){this.tabs=[...this.tabs,t.target],this.registryHandler(),t.stopPropagation()}calciteTabUnregister(t){this.tabs=this.tabs.filter((i=>i!==t.detail)),this.registryHandler(),t.stopPropagation()}async registryHandler(){let t,i;if(this.tabs.some((t=>t.tab))||this.titles.some((t=>t.tab)))t=this.tabs.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id)),i=this.titles.sort(((t,i)=>t.tab.localeCompare(i.tab))).map((t=>t.id));else{const a=await Promise.all(this.tabs.map((t=>t.getTabIndex()))),e=await Promise.all(this.titles.map((t=>t.getTabIndex())));t=a.reduce(((t,i,a)=>(t[i]=this.tabs[a].id,t)),[]),i=e.reduce(((t,i,a)=>(t[i]=this.titles[a].id,t)),[])}this.tabs.forEach((a=>a.updateAriaInfo(t,i))),this.titles.forEach((a=>a.updateAriaInfo(t,i)))}get el(){return n(this)}};u.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([bordered]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);overflow:hidden;border-top-style:solid}:host([position=below]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-bottom-style:solid}";export{b as calcite_tab,p as calcite_tab_nav,f as calcite_tab_title,u as calcite_tabs}
|
|
@@ -1,12 +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.429
|
|
5
|
-
*/
|
|
6
|
-
System.register([],(function(e){"use strict";return{execute:function(){e("S",Ue);
|
|
7
|
-
/**!
|
|
8
|
-
* Sortable 1.14.0
|
|
9
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
10
|
-
* @author owenm <owen23355@gmail.com>
|
|
11
|
-
* @license MIT
|
|
12
|
-
*/function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);if(t){o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.push.apply(n,o)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};if(n%2){t(Object(o),true).forEach((function(t){i(e,t,o[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(o))}else{t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}}return e}function o(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){o=function(e){return typeof e}}else{o=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return o(e)}function i(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function r(){r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n){if(Object.prototype.hasOwnProperty.call(n,o)){e[o]=n[o]}}}return e};return r.apply(this,arguments)}function a(e,t){if(e==null)return{};var n={};var o=Object.keys(e);var i,r;for(r=0;r<o.length;r++){i=o[r];if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function l(e,t){if(e==null)return{};var n=a(e,t);var o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}var s="1.14.0";function u(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var c=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var f=u(/Edge/i);var d=u(/firefox/i);var h=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i);var p=u(/iP(ad|od|hone)/i);var v=u(/chrome/i)&&u(/android/i);var g={capture:false,passive:false};function m(e,t,n){e.addEventListener(t,n,!c&&g)}function b(e,t,n){e.removeEventListener(t,n,!c&&g)}function w(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(e){return false}}return false}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&w(e,t):w(e,t))||o&&e===n){return e}if(e===n)break}while(e=y(e))}return null}var S=/\s+/g;function D(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var o=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(S," ")}}}function _(e,t,n){var o=e&&e.style;if(o){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in o)&&t.indexOf("webkit")===-1){t="-webkit-"+t}o[t]=n+(typeof n==="string"?"":"px")}}}function T(e,t){var n="";if(typeof e==="string"){n=e}else{do{var o=_(e,"transform");if(o&&o!=="none"){n=o+" "+n}}while(!t&&(e=e.parentNode))}var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function C(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n){for(;i<r;i++){n(o[i],i)}}return o}return[]}function O(){var e=document.scrollingElement;if(e){return e}else{return document.documentElement}}function x(e,t,n,o,i){if(!e.getBoundingClientRect&&e!==window)return;var r,a,l,s,u,f,d;if(e!==window&&e.parentNode&&e!==O()){r=e.getBoundingClientRect();a=r.top;l=r.left;s=r.bottom;u=r.right;f=r.height;d=r.width}else{a=0;l=0;s=window.innerHeight;u=window.innerWidth;f=window.innerHeight;d=window.innerWidth}if((t||n)&&e!==window){i=i||e.parentNode;if(!c){do{if(i&&i.getBoundingClientRect&&(_(i,"transform")!=="none"||n&&_(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(_(i,"border-top-width"));l-=h.left+parseInt(_(i,"border-left-width"));s=a+r.height;u=l+r.width;break}}while(i=i.parentNode)}}if(o&&e!==window){var p=T(i||e),v=p&&p.a,g=p&&p.d;if(p){a/=g;l/=v;d/=v;f/=g;s=a+f;u=l+d}}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}function N(e,t,n){var o=X(e,true),i=x(e)[t];while(o){var r=x(o)[n],a=void 0;if(n==="top"||n==="left"){a=i>=r}else{a=i<=r}if(!a)return o;if(o===O())break;o=X(o,false)}return false}function M(e,t,n,o){var i=0,r=0,a=e.children;while(r<a.length){if(a[r].style.display!=="none"&&a[r]!==Ue.ghost&&(o||a[r]!==Ue.dragged)&&E(a[r],n.draggable,e,false)){if(i===t){return a[r]}i++}r++}return null}function I(e,t){var n=e.lastElementChild;while(n&&(n===Ue.ghost||_(n,"display")==="none"||t&&!w(n,t))){n=n.previousElementSibling}return n||null}function P(e,t){var n=0;if(!e||!e.parentNode){return-1}while(e=e.previousElementSibling){if(e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Ue.clone&&(!t||w(e,t))){n++}}return n}function A(e){var t=0,n=0,o=O();if(e){do{var i=T(e),r=i.a,a=i.d;t+=e.scrollLeft*r;n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode))}return[t,n]}function k(e,t){for(var n in e){if(!e.hasOwnProperty(n))continue;for(var o in t){if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}}return-1}function X(e,t){if(!e||!e.getBoundingClientRect)return O();var n=e;var o=false;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return O();if(o||t)return n;o=true}}}while(n=n.parentNode);return O()}function Y(e,t){if(e&&t){for(var n in t){if(t.hasOwnProperty(n)){e[n]=t[n]}}}return e}function R(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var B;function F(e,t){return function(){if(!B){var n=arguments,o=this;if(n.length===1){e.call(o,n[0])}else{e.apply(o,n)}B=setTimeout((function(){B=void 0}),t)}}}function j(){clearTimeout(B);B=void 0}function H(e,t,n){e.scrollLeft+=t;e.scrollTop+=n}function L(e){var t=window.Polymer;var n=window.jQuery||window.Zepto;if(t&&t.dom){return t.dom(e).cloneNode(true)}else if(n){return n(e).clone(true)[0]}else{return e.cloneNode(true)}}var W="Sortable"+(new Date).getTime();function z(){var e=[],t;return{captureAnimationState:function t(){e=[];if(!this.options.animation)return;var o=[].slice.call(this.el.children);o.forEach((function(t){if(_(t,"display")==="none"||t===Ue.ghost)return;e.push({target:t,rect:x(t)});var o=n({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=T(t,true);if(i){o.top-=i.f;o.left-=i.e}}t.fromRect=o}))},addAnimationState:function t(n){e.push(n)},removeAnimationState:function t(n){e.splice(k(e,{target:n}),1)},animateAll:function n(o){var i=this;if(!this.options.animation){clearTimeout(t);if(typeof o==="function")o();return}var r=false,a=0;e.forEach((function(e){var t=0,n=e.target,o=n.fromRect,l=x(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,f=T(n,true);if(f){l.top-=f.f;l.left-=f.e}n.toRect=l;if(n.thisAnimationDuration){if(R(s,l)&&!R(o,l)&&(c.top-l.top)/(c.left-l.left)===(o.top-l.top)/(o.left-l.left)){t=U(c,s,u,i.options)}}if(!R(l,o)){n.prevFromRect=o;n.prevToRect=l;if(!t){t=i.options.animation}i.animate(n,c,l,t)}if(t){r=true;a=Math.max(a,t);clearTimeout(n.animationResetTimer);n.animationResetTimer=setTimeout((function(){n.animationTime=0;n.prevFromRect=null;n.fromRect=null;n.prevToRect=null;n.thisAnimationDuration=null}),t);n.thisAnimationDuration=t}}));clearTimeout(t);if(!r){if(typeof o==="function")o()}else{t=setTimeout((function(){if(typeof o==="function")o()}),a)}e=[]},animate:function e(t,n,o,i){if(i){_(t,"transition","");_(t,"transform","");var r=T(this.el),a=r&&r.a,l=r&&r.d,s=(n.left-o.left)/(a||1),u=(n.top-o.top)/(l||1);t.animatingX=!!s;t.animatingY=!!u;_(t,"transform","translate3d("+s+"px,"+u+"px,0)");this.forRepaintDummy=G(t);_(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:""));_(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){_(t,"transition","");_(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),i)}}}}function G(e){return e.offsetWidth}function U(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var V=[];var q={initializeByDefault:true};var Z={mount:function e(t){for(var n in q){if(q.hasOwnProperty(n)&&!(n in t)){t[n]=q[n]}}V.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));V.push(t)},pluginEvent:function e(t,o,i){var r=this;this.eventCanceled=false;i.cancel=function(){r.eventCanceled=true};var a=t+"Global";V.forEach((function(e){if(!o[e.pluginName])return;if(o[e.pluginName][a]){o[e.pluginName][a](n({sortable:o},i))}if(o.options[e.pluginName]&&o[e.pluginName][t]){o[e.pluginName][t](n({sortable:o},i))}}))},initializePlugins:function e(t,n,o,i){V.forEach((function(e){var i=e.pluginName;if(!t.options[i]&&!e.initializeByDefault)return;var a=new e(t,n,t.options);a.sortable=t;a.options=t.options;t[i]=a;r(o,a.defaults)}));for(var a in t.options){if(!t.options.hasOwnProperty(a))continue;var l=this.modifyOption(t,a,t.options[a]);if(typeof l!=="undefined"){t.options[a]=l}}},getEventProperties:function e(t,n){var o={};V.forEach((function(e){if(typeof e.eventProperties!=="function")return;r(o,e.eventProperties.call(n[e.pluginName],t))}));return o},modifyOption:function e(t,n,o){var i;V.forEach((function(e){if(!t[e.pluginName])return;if(e.optionListeners&&typeof e.optionListeners[n]==="function"){i=e.optionListeners[n].call(t[e.pluginName],o)}}));return i}};function K(e){var t=e.sortable,o=e.rootEl,i=e.name,r=e.targetEl,a=e.cloneEl,l=e.toEl,s=e.fromEl,u=e.oldIndex,d=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,v=e.originalEvent,g=e.putSortable,m=e.extraEventProperties;t=t||o&&o[W];if(!t)return;var b,w=t.options,y="on"+i.charAt(0).toUpperCase()+i.substr(1);if(window.CustomEvent&&!c&&!f){b=new CustomEvent(i,{bubbles:true,cancelable:true})}else{b=document.createEvent("Event");b.initEvent(i,true,true)}b.to=l||o;b.from=s||o;b.item=r||o;b.clone=a;b.oldIndex=u;b.newIndex=d;b.oldDraggableIndex=h;b.newDraggableIndex=p;b.originalEvent=v;b.pullMode=g?g.lastPutMode:undefined;var E=n(n({},m),Z.getEventProperties(i,t));for(var S in E){b[S]=E[S]}if(o){o.dispatchEvent(b)}if(w[y]){w[y].call(t,b)}}var Q=["evt"];var $=function e(t,o){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},r=i.evt,a=l(i,Q);Z.pluginEvent.bind(Ue)(t,o,n({dragEl:ee,parentEl:te,ghostEl:ne,rootEl:oe,nextEl:ie,lastDownEl:re,cloneEl:ae,cloneHidden:le,dragStarted:De,putSortable:he,activeSortable:Ue.active,originalEvent:r,oldIndex:se,oldDraggableIndex:ce,newIndex:ue,newDraggableIndex:fe,hideGhostForTarget:Le,unhideGhostForTarget:We,cloneNowHidden:function e(){le=true},cloneNowShown:function e(){le=false},dispatchSortableEvent:function e(t){J({sortable:o,name:t,originalEvent:r})}},a))};function J(e){K(n({putSortable:he,cloneEl:ae,targetEl:ee,rootEl:oe,oldIndex:se,oldDraggableIndex:ce,newIndex:ue,newDraggableIndex:fe},e))}var ee,te,ne,oe,ie,re,ae,le,se,ue,ce,fe,de,he,pe=false,ve=false,ge=[],me,be,we,ye,Ee,Se,De,_e,Te,Ce=false,Oe=false,xe,Ne,Me=[],Ie=false,Pe=[];var Ae=typeof document!=="undefined",ke=p,Xe=f||c?"cssFloat":"float",Ye=Ae&&!v&&!p&&"draggable"in document.createElement("div"),Re=function(){if(!Ae)return;if(c){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),Be=function e(t,n){var o=_(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=M(t,0,n),a=M(t,1,n),l=r&&_(r),s=a&&_(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+x(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(a).width;if(o.display==="flex"){return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal"}if(o.display==="grid"){return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(r&&l["float"]&&l["float"]!=="none"){var f=l["float"]==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&o[Xe]==="none"||a&&o[Xe]==="none"&&u+c>i)?"vertical":"horizontal"},Fe=function e(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,a=o?t.width:t.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},je=function e(t,n){var o;ge.some((function(e){var i=e[W].options.emptyInsertThreshold;if(!i||I(e))return;var r=x(e),a=t>=r.left-i&&t<=r.right+i,l=n>=r.top-i&&n<=r.bottom+i;if(a&&l){return o=e}}));return o},He=function e(t){function n(e,t){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(e==null&&(t||l)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(o,i,r,a),t)(o,i,r,a)}else{var s=(t?o:i).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var i={};var r=t.group;if(!r||o(r)!="object"){r={name:r}}i.name=r.name;i.checkPull=n(r.pull,true);i.checkPut=n(r.put);i.revertClone=r.revertClone;t.group=i},Le=function e(){if(!Re&&ne){_(ne,"display","none")}},We=function e(){if(!Re&&ne){_(ne,"display","")}};if(Ae){document.addEventListener("click",(function(e){if(ve){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ve=false;return false}}),true)}var ze=function e(t){if(ee){t=t.touches?t.touches[0]:t;var n=je(t.clientX,t.clientY);if(n){var o={};for(var i in t){if(t.hasOwnProperty(i)){o[i]=t[i]}}o.target=o.rootEl=n;o.preventDefault=void 0;o.stopPropagation=void 0;n[W]._onDragOver(o)}}};var Ge=function e(t){if(ee){ee.parentNode[W]._isOutsideThisEl(t.target)}};function Ue(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=r({},t);e[W]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return Be(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ue.supportPointer!==false&&"PointerEvent"in window&&!h,emptyInsertThreshold:5};Z.initializePlugins(this,e,n);for(var o in n){!(o in t)&&(t[o]=n[o])}He(t);for(var i in this){if(i.charAt(0)==="_"&&typeof this[i]==="function"){this[i]=this[i].bind(this)}}this.nativeDraggable=t.forceFallback?false:Ye;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){m(e,"pointerdown",this._onTapStart)}else{m(e,"mousedown",this._onTapStart);m(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){m(e,"dragover",this);m(e,"dragenter",this)}ge.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);r(this,z())}Ue.prototype={constructor:Ue,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){_e=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,ee):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;nt(o);if(ee){return}if(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled){return}if(u.isContentEditable){return}if(!this.nativeDraggable&&h&&s&&s.tagName.toUpperCase()==="SELECT"){return}s=E(s,i.draggable,o,false);if(s&&s.animated){return}if(re===s){return}se=P(s);ce=P(s,i.draggable);if(typeof c==="function"){if(c.call(this,t,s,this)){J({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o});$("filter",n,{evt:t});r&&t.cancelable&&t.preventDefault();return}}else if(c){c=c.split(",").some((function(e){e=E(u,e.trim(),o,false);if(e){J({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:o,toEl:o});$("filter",n,{evt:t});return true}}));if(c){r&&t.cancelable&&t.preventDefault();return}}if(i.handle&&!E(u,i.handle,o,false)){return}this._prepareDragStart(t,l,s)},_prepareDragStart:function e(t,n,o){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(o&&!ee&&o.parentNode===r){var u=x(o);oe=r;ee=o;te=ee.parentNode;ie=ee.nextSibling;re=o;de=a.group;Ue.dragged=ee;me={target:ee,clientX:(n||t).clientX,clientY:(n||t).clientY};Ee=me.clientX-u.left;Se=me.clientY-u.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;ee.style["will-change"]="all";s=function e(){$("delayEnded",i,{evt:t});if(Ue.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents();if(!d&&i.nativeDraggable){ee.draggable=true}i._triggerDragStart(t,n);J({sortable:i,name:"choose",originalEvent:t});D(ee,a.chosenClass,true)};a.ignore.split(",").forEach((function(e){C(ee,e.trim(),Ze)}));m(l,"dragover",ze);m(l,"mousemove",ze);m(l,"touchmove",ze);m(l,"mouseup",i._onDrop);m(l,"touchend",i._onDrop);m(l,"touchcancel",i._onDrop);if(d&&this.nativeDraggable){this.options.touchStartThreshold=4;ee.draggable=true}$("delayStart",this,{evt:t});if(a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(f||c))){if(Ue.eventCanceled){this._onDrop();return}m(l,"mouseup",i._disableDelayedDrag);m(l,"touchend",i._disableDelayedDrag);m(l,"touchcancel",i._disableDelayedDrag);m(l,"mousemove",i._delayedDragTouchMoveHandler);m(l,"touchmove",i._delayedDragTouchMoveHandler);a.supportPointer&&m(l,"pointermove",i._delayedDragTouchMoveHandler);i._dragStartTimer=setTimeout(s,a.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){ee&&Ze(ee);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;b(t,"mouseup",this._disableDelayedDrag);b(t,"touchend",this._disableDelayedDrag);b(t,"touchcancel",this._disableDelayedDrag);b(t,"mousemove",this._delayedDragTouchMoveHandler);b(t,"touchmove",this._delayedDragTouchMoveHandler);b(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){m(document,"pointermove",this._onTouchMove)}else if(n){m(document,"touchmove",this._onTouchMove)}else{m(document,"mousemove",this._onTouchMove)}}else{m(ee,"dragend",this);m(oe,"dragstart",this._onDragStart)}try{if(document.selection){ot((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(e){}},_dragStarted:function e(t,n){pe=false;if(oe&&ee){$("dragStarted",this,{evt:n});if(this.nativeDraggable){m(document,"dragover",Ge)}var o=this.options;!t&&D(ee,o.dragClass,false);D(ee,o.ghostClass,true);Ue.active=this;t&&this._appendGhost();J({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(be){this._lastX=be.clientX;this._lastY=be.clientY;Le();var t=document.elementFromPoint(be.clientX,be.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(be.clientX,be.clientY);if(t===n)break;n=t}ee.parentNode[W]._isOutsideThisEl(t);if(n){do{if(n[W]){var o=void 0;o=n[W]._onDragOver({clientX:be.clientX,clientY:be.clientY,target:t,rootEl:n});if(o&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}We()}},_onTouchMove:function e(t){if(me){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,a=ne&&T(ne,true),l=ne&&a&&a.a,s=ne&&a&&a.d,u=ke&&Ne&&A(Ne),c=(r.clientX-me.clientX+i.x)/(l||1)+(u?u[0]-Me[0]:0)/(l||1),f=(r.clientY-me.clientY+i.y)/(s||1)+(u?u[1]-Me[1]:0)/(s||1);if(!Ue.active&&!pe){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o){return}this._onDragStart(t,true)}if(ne){if(a){a.e+=c-(we||0);a.f+=f-(ye||0)}else{a={a:1,b:0,c:0,d:1,e:c,f:f}}var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");_(ne,"webkitTransform",d);_(ne,"mozTransform",d);_(ne,"msTransform",d);_(ne,"transform",d);we=c;ye=f;be=r}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ne){var t=this.options.fallbackOnBody?document.body:oe,n=x(ee,true,ke,true,t),o=this.options;if(ke){Ne=t;while(_(Ne,"position")==="static"&&_(Ne,"transform")==="none"&&Ne!==document){Ne=Ne.parentNode}if(Ne!==document.body&&Ne!==document.documentElement){if(Ne===document)Ne=O();n.top+=Ne.scrollTop;n.left+=Ne.scrollLeft}else{Ne=O()}Me=A(Ne)}ne=ee.cloneNode(true);D(ne,o.ghostClass,false);D(ne,o.fallbackClass,true);D(ne,o.dragClass,true);_(ne,"transition","");_(ne,"transform","");_(ne,"box-sizing","border-box");_(ne,"margin",0);_(ne,"top",n.top);_(ne,"left",n.left);_(ne,"width",n.width);_(ne,"height",n.height);_(ne,"opacity","0.8");_(ne,"position",ke?"absolute":"fixed");_(ne,"zIndex","100000");_(ne,"pointerEvents","none");Ue.ghost=ne;t.appendChild(ne);_(ne,"transform-origin",Ee/parseInt(ne.style.width)*100+"% "+Se/parseInt(ne.style.height)*100+"%")}},_onDragStart:function e(t,n){var o=this;var i=t.dataTransfer;var r=o.options;$("dragStart",this,{evt:t});if(Ue.eventCanceled){this._onDrop();return}$("setupClone",this);if(!Ue.eventCanceled){ae=L(ee);ae.draggable=false;ae.style["will-change"]="";this._hideClone();D(ae,this.options.chosenClass,false);Ue.clone=ae}o.cloneId=ot((function(){$("clone",o);if(Ue.eventCanceled)return;if(!o.options.removeCloneOnHide){oe.insertBefore(ae,ee)}o._hideClone();J({sortable:o,name:"clone"})}));!n&&D(ee,r.dragClass,true);if(n){ve=true;o._loopId=setInterval(o._emulateDragOver,50)}else{b(document,"mouseup",o._onDrop);b(document,"touchend",o._onDrop);b(document,"touchcancel",o._onDrop);if(i){i.effectAllowed="move";r.setData&&r.setData.call(o,i,ee)}m(document,"drop",o);_(ee,"transform","translateZ(0)")}pe=true;o._dragStartId=ot(o._dragStarted.bind(o,n,t));m(document,"selectstart",o);De=true;if(h){_(document.body,"user-select","none")}},_onDragOver:function e(t){var o=this.el,i=t.target,r,a,l,s=this.options,u=s.group,c=Ue.active,f=de===u,d=s.sort,h=he||c,p,v=this,g=false;if(Ie)return;function m(e,s){$(e,v,n({evt:t,isOwner:f,axis:p?"vertical":"horizontal",revert:l,dragRect:r,targetRect:a,canSort:d,fromSortable:h,target:i,completed:w,onMove:function e(n,i){return qe(oe,o,ee,r,n,x(n),t,i)},changed:y},s))}function b(){m("dragOverAnimationCapture");v.captureAnimationState();if(v!==h){h.captureAnimationState()}}function w(e){m("dragOverCompleted",{insertion:e});if(e){if(f){c._hideClone()}else{c._showClone(v)}if(v!==h){D(ee,he?he.options.ghostClass:c.options.ghostClass,false);D(ee,s.ghostClass,true)}if(he!==v&&v!==Ue.active){he=v}else if(v===Ue.active&&he){he=null}if(h===v){v._ignoreWhileAnimating=i}v.animateAll((function(){m("dragOverAnimationComplete");v._ignoreWhileAnimating=null}));if(v!==h){h.animateAll();h._ignoreWhileAnimating=null}}if(i===ee&&!ee.animated||i===o&&!i.animated){_e=null}if(!s.dragoverBubble&&!t.rootEl&&i!==document){ee.parentNode[W]._isOutsideThisEl(t.target);!e&&ze(t)}!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return g=true}function y(){ue=P(ee);fe=P(ee,s.draggable);J({sortable:v,name:"change",toEl:o,newIndex:ue,newDraggableIndex:fe,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}i=E(i,s.draggable,o,true);m("dragOver");if(Ue.eventCanceled)return g;if(ee.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||v._ignoreWhileAnimating===i){return w(false)}ve=false;if(c&&!s.disabled&&(f?d||(l=te!==oe):he===this||(this.lastPutMode=de.checkPull(this,c,ee,t))&&u.checkPut(this,c,ee,t))){p=this._getDirection(t,i)==="vertical";r=x(ee);m("dragOverValid");if(Ue.eventCanceled)return g;if(l){te=oe;b();this._hideClone();m("revert");if(!Ue.eventCanceled){if(ie){oe.insertBefore(ee,ie)}else{oe.appendChild(ee)}}return w(true)}var S=I(o,s.draggable);if(!S||$e(t,p,this)&&!S.animated){if(S===ee){return w(false)}if(S&&o===t.target){i=S}if(i){a=x(i)}if(qe(oe,o,ee,r,i,a,t,!!i)!==false){b();o.appendChild(ee);te=o;y();return w(true)}}else if(S&&Qe(t,p,this)){var T=M(o,0,s,true);if(T===ee){return w(false)}i=T;a=x(i);if(qe(oe,o,ee,r,i,a,t,false)!==false){b();o.insertBefore(ee,T);te=o;y();return w(true)}}else if(i.parentNode===o){a=x(i);var C=0,O,A=ee.parentNode!==o,k=!Fe(ee.animated&&ee.toRect||r,i.animated&&i.toRect||a,p),X=p?"top":"left",Y=N(i,"top","top")||N(ee,"top","top"),R=Y?Y.scrollTop:void 0;if(_e!==i){O=a[X];Ce=false;Oe=!k&&s.invertSwap||A}C=Je(t,i,a,p,k?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Oe,_e===i);var B;if(C!==0){var F=P(ee);do{F-=C;B=te.children[F]}while(B&&(_(B,"display")==="none"||B===ne))}if(C===0||B===i){return w(false)}_e=i;Te=C;var j=i.nextElementSibling,L=false;L=C===1;var z=qe(oe,o,ee,r,i,a,t,L);if(z!==false){if(z===1||z===-1){L=z===1}Ie=true;setTimeout(Ke,30);b();if(L&&!j){o.appendChild(ee)}else{i.parentNode.insertBefore(ee,L?j:i)}if(Y){H(Y,0,R-Y.scrollTop)}te=ee.parentNode;if(O!==undefined&&!Oe){xe=Math.abs(O-x(i)[X])}y();return w(true)}}if(o.contains(ee)){return w(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function e(){b(document,"mousemove",this._onTouchMove);b(document,"touchmove",this._onTouchMove);b(document,"pointermove",this._onTouchMove);b(document,"dragover",ze);b(document,"mousemove",ze);b(document,"touchmove",ze)},_offUpEvents:function e(){var t=this.el.ownerDocument;b(t,"mouseup",this._onDrop);b(t,"touchend",this._onDrop);b(t,"pointerup",this._onDrop);b(t,"touchcancel",this._onDrop);b(document,"selectstart",this)},_onDrop:function e(t){var n=this.el,o=this.options;ue=P(ee);fe=P(ee,o.draggable);$("drop",this,{evt:t});te=ee&&ee.parentNode;ue=P(ee);fe=P(ee,o.draggable);if(Ue.eventCanceled){this._nulling();return}pe=false;Oe=false;Ce=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);it(this.cloneId);it(this._dragStartId);if(this.nativeDraggable){b(document,"drop",this);b(n,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(h){_(document.body,"user-select","")}_(ee,"transform","");if(t){if(De){t.cancelable&&t.preventDefault();!o.dropBubble&&t.stopPropagation()}ne&&ne.parentNode&&ne.parentNode.removeChild(ne);if(oe===te||he&&he.lastPutMode!=="clone"){ae&&ae.parentNode&&ae.parentNode.removeChild(ae)}if(ee){if(this.nativeDraggable){b(ee,"dragend",this)}Ze(ee);ee.style["will-change"]="";if(De&&!pe){D(ee,he?he.options.ghostClass:this.options.ghostClass,false)}D(ee,this.options.chosenClass,false);J({sortable:this,name:"unchoose",toEl:te,newIndex:null,newDraggableIndex:null,originalEvent:t});if(oe!==te){if(ue>=0){J({rootEl:te,name:"add",toEl:te,fromEl:oe,originalEvent:t});J({sortable:this,name:"remove",toEl:te,originalEvent:t});J({rootEl:te,name:"sort",toEl:te,fromEl:oe,originalEvent:t});J({sortable:this,name:"sort",toEl:te,originalEvent:t})}he&&he.save()}else{if(ue!==se){if(ue>=0){J({sortable:this,name:"update",toEl:te,originalEvent:t});J({sortable:this,name:"sort",toEl:te,originalEvent:t})}}}if(Ue.active){if(ue==null||ue===-1){ue=se;fe=ce}J({sortable:this,name:"end",toEl:te,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){$("nulling",this);oe=ee=te=ne=ie=ae=re=le=me=be=De=ue=fe=se=ce=_e=Te=he=de=Ue.dragged=Ue.ghost=Ue.clone=Ue.active=null;Pe.forEach((function(e){e.checked=true}));Pe.length=we=ye=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(ee){this._onDragOver(t);Ve(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,o=this.el.children,i=0,r=o.length,a=this.options;for(;i<r;i++){n=o[i];if(E(n,a.draggable,this.el,false)){t.push(n.getAttribute(a.dataIdAttr)||tt(n))}}return t},sort:function e(t,n){var o={},i=this.el;this.toArray().forEach((function(e,t){var n=i.children[t];if(E(n,this.options.draggable,i,false)){o[e]=n}}),this);n&&this.captureAnimationState();t.forEach((function(e){if(o[e]){i.removeChild(o[e]);i.appendChild(o[e])}}));n&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,n){return E(t,n||this.options.draggable,this.el,false)},option:function e(t,n){var o=this.options;if(n===void 0){return o[t]}else{var i=Z.modifyOption(this,t,n);if(typeof i!=="undefined"){o[t]=i}else{o[t]=n}if(t==="group"){He(o)}}},destroy:function e(){$("destroy",this);var t=this.el;t[W]=null;b(t,"mousedown",this._onTapStart);b(t,"touchstart",this._onTapStart);b(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){b(t,"dragover",this);b(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();ge.splice(ge.indexOf(this.el),1);this.el=t=null},_hideClone:function e(){if(!le){$("hideClone",this);if(Ue.eventCanceled)return;_(ae,"display","none");if(this.options.removeCloneOnHide&&ae.parentNode){ae.parentNode.removeChild(ae)}le=true}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(le){$("showClone",this);if(Ue.eventCanceled)return;if(ee.parentNode==oe&&!this.options.group.revertClone){oe.insertBefore(ae,ee)}else if(ie){oe.insertBefore(ae,ie)}else{oe.appendChild(ae)}if(this.options.group.revertClone){this.animate(ee,ae)}_(ae,"display","");le=false}}};function Ve(e){if(e.dataTransfer){e.dataTransfer.dropEffect="move"}e.cancelable&&e.preventDefault()}function qe(e,t,n,o,i,r,a,l){var s,u=e[W],d=u.options.onMove,h;if(window.CustomEvent&&!c&&!f){s=new CustomEvent("move",{bubbles:true,cancelable:true})}else{s=document.createEvent("Event");s.initEvent("move",true,true)}s.to=t;s.from=e;s.dragged=n;s.draggedRect=o;s.related=i||t;s.relatedRect=r||x(t);s.willInsertAfter=l;s.originalEvent=a;e.dispatchEvent(s);if(d){h=d.call(u,s,a)}return h}function Ze(e){e.draggable=false}function Ke(){Ie=false}function Qe(e,t,n){var o=x(M(n.el,0,n.options,true));var i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function $e(e,t,n){var o=x(I(n.el,n.options.draggable));var i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function Je(e,t,n,o,i,r,a,l){var s=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,f=o?n.bottom:n.right,d=false;if(!a){if(l&&xe<u*i){if(!Ce&&(Te===1?s>c+u*r/2:s<f-u*r/2)){Ce=true}if(!Ce){if(Te===1?s<c+xe:s>f-xe){return-Te}}else{d=true}}else{if(s>c+u*(1-i)/2&&s<f-u*(1-i)/2){return et(t)}}}d=d||a;if(d){if(s<c+u*r/2||s>f-u*r/2){return s>c+u/2?1:-1}}return 0}function et(e){if(P(ee)<P(e)){return 1}else{return-1}}function tt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;while(n--){o+=t.charCodeAt(n)}return o.toString(36)}function nt(e){Pe.length=0;var t=e.getElementsByTagName("input");var n=t.length;while(n--){var o=t[n];o.checked&&Pe.push(o)}}function ot(e){return setTimeout(e,0)}function it(e){return clearTimeout(e)}if(Ae){m(document,"touchmove",(function(e){if((Ue.active||pe)&&e.cancelable){e.preventDefault()}}))}Ue.utils={on:m,off:b,css:_,find:C,is:function e(t,n){return!!E(t,n,t,false)},extend:Y,throttle:F,closest:E,toggleClass:D,clone:L,index:P,nextTick:ot,cancelNextTick:it,detectDirection:Be,getChild:M};Ue.get=function(e){return e[W]};Ue.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++){t[o]=arguments[o]}if(t[0].constructor===Array)t=t[0];t.forEach((function(e){if(!e.prototype||!e.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e))}if(e.utils)Ue.utils=n(n({},Ue.utils),e.utils);Z.mount(e)}))};Ue.create=function(e,t){return new Ue(e,t)};Ue.version=s;var rt=[],at,lt,st=false,ut,ct,ft,dt;function ht(){function e(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}}e.prototype={dragStarted:function e(t){var n=t.originalEvent;if(this.sortable.nativeDraggable){m(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){m(document,"pointermove",this._handleFallbackAutoScroll)}else if(n.touches){m(document,"touchmove",this._handleFallbackAutoScroll)}else{m(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function e(t){var n=t.originalEvent;if(!this.options.dragOverBubble&&!n.rootEl){this._handleAutoScroll(n)}},drop:function e(){if(this.sortable.nativeDraggable){b(document,"dragover",this._handleAutoScroll)}else{b(document,"pointermove",this._handleFallbackAutoScroll);b(document,"touchmove",this._handleFallbackAutoScroll);b(document,"mousemove",this._handleFallbackAutoScroll)}vt();pt();j()},nulling:function e(){ft=lt=at=st=dt=ut=ct=null;rt.length=0},_handleFallbackAutoScroll:function e(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function e(t,n){var o=this;var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(i,r);ft=t;if(n||this.options.forceAutoScrollFallback||f||c||h){gt(t,this.options,a,n);var l=X(a,true);if(st&&(!dt||i!==ut||r!==ct)){dt&&vt();dt=setInterval((function(){var e=X(document.elementFromPoint(i,r),true);if(e!==l){l=e;pt()}gt(t,o.options,e,n)}),10);ut=i;ct=r}}else{if(!this.options.bubbleScroll||X(a,true)===O()){pt();return}gt(t,this.options,X(a,false),false)}}};return r(e,{pluginName:"scroll",initializeByDefault:true})}function pt(){rt.forEach((function(e){clearInterval(e.pid)}));rt=[]}function vt(){clearInterval(dt)}var gt=F((function(e,t,n,o){if(!t.scroll)return;var i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=O();var u=false,c;if(lt!==n){lt=n;pt();at=t.scroll;c=t.scrollFn;if(at===true){at=X(n,true)}}var f=0;var d=at;do{var h=d,p=x(h),v=p.top,g=p.bottom,m=p.left,b=p.right,w=p.width,y=p.height,E=void 0,S=void 0,D=h.scrollWidth,T=h.scrollHeight,C=_(h),N=h.scrollLeft,M=h.scrollTop;if(h===s){E=w<D&&(C.overflowX==="auto"||C.overflowX==="scroll"||C.overflowX==="visible");S=y<T&&(C.overflowY==="auto"||C.overflowY==="scroll"||C.overflowY==="visible")}else{E=w<D&&(C.overflowX==="auto"||C.overflowX==="scroll");S=y<T&&(C.overflowY==="auto"||C.overflowY==="scroll")}var I=E&&(Math.abs(b-i)<=a&&N+w<D)-(Math.abs(m-i)<=a&&!!N);var P=S&&(Math.abs(g-r)<=a&&M+y<T)-(Math.abs(v-r)<=a&&!!M);if(!rt[f]){for(var A=0;A<=f;A++){if(!rt[A]){rt[A]={}}}}if(rt[f].vx!=I||rt[f].vy!=P||rt[f].el!==h){rt[f].el=h;rt[f].vx=I;rt[f].vy=P;clearInterval(rt[f].pid);if(I!=0||P!=0){u=true;rt[f].pid=setInterval(function(){if(o&&this.layer===0){Ue.active._onTouchMove(ft)}var t=rt[this.layer].vy?rt[this.layer].vy*l:0;var n=rt[this.layer].vx?rt[this.layer].vx*l:0;if(typeof c==="function"){if(c.call(Ue.dragged.parentNode[W],n,t,e,ft,rt[this.layer].el)!=="continue"){return}}H(rt[this.layer].el,n,t)}.bind({layer:f}),24)}}f++}while(t.bubbleScroll&&d!==s&&(d=X(d,false)));st=u}),30);var mt=function e(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,r=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!n)return;var u=o||r;l();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n;var f=document.elementFromPoint(c.clientX,c.clientY);s();if(u&&!u.el.contains(f)){a("spill");this.onSpill({dragEl:i,putSortable:o})}};function bt(){}bt.prototype={startIndex:null,dragStart:function e(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function e(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState();if(o){o.captureAnimationState()}var i=M(this.sortable.el,this.startIndex,this.options);if(i){this.sortable.el.insertBefore(n,i)}else{this.sortable.el.appendChild(n)}this.sortable.animateAll();if(o){o.animateAll()}},drop:mt};r(bt,{pluginName:"revertOnSpill"});function wt(){}wt.prototype={onSpill:function e(t){var n=t.dragEl,o=t.putSortable;var i=o||this.sortable;i.captureAnimationState();n.parentNode&&n.parentNode.removeChild(n);i.animateAll()},drop:mt};r(wt,{pluginName:"removeOnSpill"});Ue.mount(new ht);Ue.mount(wt,bt)}}}));
|
|
@@ -1,12 +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.429
|
|
5
|
-
*/
|
|
6
|
-
/**!
|
|
7
|
-
* Sortable 1.14.0
|
|
8
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
9
|
-
* @author owenm <owen23355@gmail.com>
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/
|
|
12
|
-
function t(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function n(n){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?t(Object(o),!0).forEach((function(t){e(n,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}))}return n}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t}).apply(this,arguments)}function r(t,n){if(null==t)return{};var i,e,o=function(t,n){if(null==t)return{};var i,e,o={},r=Object.keys(t);for(e=0;e<r.length;e++)n.indexOf(i=r[e])>=0||(o[i]=t[i]);return o}(t,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(e=0;e<r.length;e++)n.indexOf(i=r[e])>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function a(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=a(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),s=a(/Edge/i),l=a(/firefox/i),c=a(/safari/i)&&!a(/chrome/i)&&!a(/android/i),f=a(/iP(ad|od|hone)/i),h=a(/chrome/i)&&a(/android/i),d={capture:!1,passive:!1};function v(t,n,i){t.addEventListener(n,i,!u&&d)}function m(t,n,i){t.removeEventListener(n,i,!u&&d)}function p(t,n){if(n){if(">"===n[0]&&(n=n.substring(1)),t)try{if(t.matches)return t.matches(n);if(t.msMatchesSelector)return t.msMatchesSelector(n);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(n)}catch(t){return!1}return!1}}function g(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function b(t,n,i,e){if(t){i=i||document;do{if(null!=n&&(">"===n[0]?t.parentNode===i&&p(t,n):p(t,n))||e&&t===i)return t;if(t===i)break}while(t=g(t))}return null}var w,E=/\s+/g;function y(t,n,i){if(t&&n)if(t.classList)t.classList[i?"add":"remove"](n);else{var e=(" "+t.className+" ").replace(E," ").replace(" "+n+" "," ");t.className=(e+(i?" "+n:"")).replace(E," ")}}function S(t,n,i){var e=t&&t.style;if(e){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===n?i:i[n];n in e||-1!==n.indexOf("webkit")||(n="-webkit-"+n),e[n]=i+("string"==typeof i?"":"px")}}function T(t,n){var i="";if("string"==typeof t)i=t;else do{var e=S(t,"transform");e&&"none"!==e&&(i=e+" "+i)}while(!n&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function O(t,n,i){if(t){var e=t.getElementsByTagName(n),o=0,r=e.length;if(i)for(;o<r;o++)i(e[o],o);return e}return[]}function I(){return document.scrollingElement||document.documentElement}function x(t,n,i,e,o){if(t.getBoundingClientRect||t===window){var r,a,s,l,c,f,h;if(t!==window&&t.parentNode&&t!==I()?(a=(r=t.getBoundingClientRect()).top,s=r.left,l=r.bottom,c=r.right,f=r.height,h=r.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,h=window.innerWidth),(n||i)&&t!==window&&(o=o||t.parentNode,!u))do{if(o&&o.getBoundingClientRect&&("none"!==S(o,"transform")||i&&"static"!==S(o,"position"))){var d=o.getBoundingClientRect();a-=d.top+parseInt(S(o,"border-top-width")),s-=d.left+parseInt(S(o,"border-left-width")),l=a+r.height,c=s+r.width;break}}while(o=o.parentNode);if(e&&t!==window){var v=T(o||t),m=v&&v.a,p=v&&v.d;v&&(l=(a/=p)+(f/=p),c=(s/=m)+(h/=m))}return{top:a,left:s,bottom:l,right:c,width:h,height:f}}}function M(t,n,i){for(var e=j(t,!0),o=x(t)[n];e;){var r=x(e)[i];if(!("top"===i||"left"===i?o>=r:o<=r))return e;if(e===I())break;e=j(e,!1)}return!1}function _(t,n,i,e){for(var o=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==zt.ghost&&(e||a[r]!==zt.dragged)&&b(a[r],i.draggable,t,!1)){if(o===n)return a[r];o++}r++}return null}function D(t,n){for(var i=t.lastElementChild;i&&(i===zt.ghost||"none"===S(i,"display")||n&&!p(i,n));)i=i.previousElementSibling;return i||null}function k(t,n){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===zt.clone||n&&!p(t,n)||i++;return i}function C(t){var n=0,i=0,e=I();if(t)do{var o=T(t);n+=t.scrollLeft*o.a,i+=t.scrollTop*o.d}while(t!==e&&(t=t.parentNode));return[n,i]}function j(t,n){if(!t||!t.getBoundingClientRect)return I();var i=t,e=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var o=S(i);if(i.clientWidth<i.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!i.getBoundingClientRect||i===document.body)return I();if(e||n)return i;e=!0}}}while(i=i.parentNode);return I()}function A(t,n){return Math.round(t.top)===Math.round(n.top)&&Math.round(t.left)===Math.round(n.left)&&Math.round(t.height)===Math.round(n.height)&&Math.round(t.width)===Math.round(n.width)}function z(t,n){return function(){if(!w){var i=arguments,e=this;1===i.length?t.call(e,i[0]):t.apply(e,i),w=setTimeout((function(){w=void 0}),n)}}}function N(t,n,i){t.scrollLeft+=n,t.scrollTop+=i}function F(t){var n=window.Polymer,i=window.jQuery||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}var P="Sortable"+(new Date).getTime();var B=[],H={initializeByDefault:!0},G={mount:function(t){for(var n in H)H.hasOwnProperty(n)&&!(n in t)&&(t[n]=H[n]);B.forEach((function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),B.push(t)},pluginEvent:function(t,i,e){var o=this;this.eventCanceled=!1,e.cancel=function(){o.eventCanceled=!0};var r=t+"Global";B.forEach((function(o){i[o.pluginName]&&(i[o.pluginName][r]&&i[o.pluginName][r](n({sortable:i},e)),i.options[o.pluginName]&&i[o.pluginName][t]&&i[o.pluginName][t](n({sortable:i},e)))}))},initializePlugins:function(t,n,i){for(var e in B.forEach((function(e){var r=e.pluginName;if(t.options[r]||e.initializeByDefault){var a=new e(t,n,t.options);a.sortable=t,a.options=t.options,t[r]=a,o(i,a.defaults)}})),t.options)if(t.options.hasOwnProperty(e)){var r=this.modifyOption(t,e,t.options[e]);void 0!==r&&(t.options[e]=r)}},getEventProperties:function(t,n){var i={};return B.forEach((function(e){"function"==typeof e.eventProperties&&o(i,e.eventProperties.call(n[e.pluginName],t))})),i},modifyOption:function(t,n,i){var e;return B.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[n]&&(e=o.optionListeners[n].call(t[o.pluginName],i))})),e}},L=["evt"],R=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.evt,a=r(e,L);G.pluginEvent.bind(zt)(t,i,n({dragEl:X,parentEl:Y,ghostEl:U,rootEl:V,nextEl:Z,lastDownEl:$,cloneEl:q,cloneHidden:J,dragStarted:ct,putSortable:et,activeSortable:zt.active,originalEvent:o,oldIndex:K,oldDraggableIndex:tt,newIndex:Q,newDraggableIndex:nt,hideGhostForTarget:kt,unhideGhostForTarget:Ct,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(t){W({sortable:i,name:t,originalEvent:o})}},a))};function W(t){!function(t){var i=t.sortable,e=t.rootEl,o=t.name,r=t.targetEl,a=t.cloneEl,l=t.toEl,c=t.fromEl,f=t.oldIndex,h=t.newIndex,d=t.oldDraggableIndex,v=t.newDraggableIndex,m=t.originalEvent,p=t.putSortable,g=t.extraEventProperties;if(i=i||e&&e[P]){var b,w=i.options,E="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||s?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||e,b.from=c||e,b.item=r||e,b.clone=a,b.oldIndex=f,b.newIndex=h,b.oldDraggableIndex=d,b.newDraggableIndex=v,b.originalEvent=m,b.pullMode=p?p.lastPutMode:void 0;var y=n(n({},g),G.getEventProperties(o,i));for(var S in y)b[S]=y[S];e&&e.dispatchEvent(b),w[E]&&w[E].call(i,b)}}(n({putSortable:et,cloneEl:q,targetEl:X,rootEl:V,oldIndex:K,oldDraggableIndex:tt,newIndex:Q,newDraggableIndex:nt},t))}var X,Y,U,V,Z,$,q,J,K,Q,tt,nt,it,et,ot,rt,at,ut,st,lt,ct,ft,ht,dt,vt,mt=!1,pt=!1,gt=[],bt=!1,wt=!1,Et=[],yt=!1,St=[],Tt="undefined"!=typeof document,Ot=f,It=s||u?"cssFloat":"float",xt=Tt&&!h&&!f&&"draggable"in document.createElement("div"),Mt=function(){if(Tt){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),_t=function(t,n){var i=S(t),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=_(t,0,n),r=_(t,1,n),a=o&&S(o),u=r&&S(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+x(o).width,l=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+x(r).width;return"flex"===i.display?"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal":"grid"===i.display?i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!r||"both"!==u.clear&&u.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=e&&"none"===i[It]||r&&"none"===i[It]&&s+l>e)?"vertical":"horizontal"},Dt=function(t){function n(t,i){return function(e,o,r,a){if(null==t&&(i||e.options.group.name&&o.options.group.name&&e.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return n(t(e,o,r,a),i)(e,o,r,a);var u=(i?e:o).options.group.name;return!0===t||"string"==typeof t&&t===u||t.join&&t.indexOf(u)>-1}}var e={},o=t.group;o&&"object"==i(o)||(o={name:o}),e.name=o.name,e.checkPull=n(o.pull,!0),e.checkPut=n(o.put),e.revertClone=o.revertClone,t.group=e},kt=function(){!Mt&&U&&S(U,"display","none")},Ct=function(){!Mt&&U&&S(U,"display","")};Tt&&document.addEventListener("click",(function(t){if(pt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),pt=!1,!1}),!0);var jt=function(t){if(X){var n=(o=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,gt.some((function(t){var n=t[P].options.emptyInsertThreshold;if(n&&!D(t)){var i=x(t);return o>=i.left-n&&o<=i.right+n&&r>=i.top-n&&r<=i.bottom+n?a=t:void 0}})),a);if(n){var i={};for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[P]._onDragOver(i)}}var o,r,a},At=function(t){X&&X.parentNode[P]._isOutsideThisEl(t.target)};function zt(t,i){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=i=o({},i),t[P]=this;var e,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _t(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,n){t.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window&&!c,emptyInsertThreshold:5};for(var u in G.initializePlugins(this,t,a),a)!(u in i)&&(i[u]=a[u]);for(var s in Dt(i),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!i.forceFallback&&xt,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),gt.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),o(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==S(t,"display")&&t!==zt.ghost){r.push({target:t,rect:x(t)});var i=n({},r[r.length-1].rect);if(t.thisAnimationDuration){var e=T(t,!0);e&&(i.top-=e.f,i.left-=e.e)}t.fromRect=i}}))},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,n){for(var i in t)if(t.hasOwnProperty(i))for(var e in n)if(n.hasOwnProperty(e)&&n[e]===t[i][e])return Number(i);return-1}(r,{target:t}),1)},animateAll:function(t){var n=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof t&&t());var i=!1,o=0;r.forEach((function(t){var e=0,r=t.target,a=r.fromRect,u=x(r),s=r.prevFromRect,l=r.prevToRect,c=t.rect,f=T(r,!0);f&&(u.top-=f.f,u.left-=f.e),r.toRect=u,r.thisAnimationDuration&&A(s,u)&&!A(a,u)&&(c.top-u.top)/(c.left-u.left)==(a.top-u.top)/(a.left-u.left)&&(e=function(t,n,i,e){return Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*e.animation}(c,s,l,n.options)),A(u,a)||(r.prevFromRect=a,r.prevToRect=u,e||(e=n.options.animation),n.animate(r,c,u,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),e),r.thisAnimationDuration=e)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof t&&t()}),o):"function"==typeof t&&t(),r=[]},animate:function(t,n,i,e){if(e){S(t,"transition",""),S(t,"transform","");var o=T(this.el),r=(n.left-i.left)/(o&&o.a||1),a=(n.top-i.top)/(o&&o.d||1);t.animatingX=!!r,t.animatingY=!!a,S(t,"transform","translate3d("+r+"px,"+a+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),S(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),S(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){S(t,"transition",""),S(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Nt(t,n,i,e,o,r,a,l){var c,f,h=t[P],d=h.options.onMove;return!window.CustomEvent||u||s?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=n,c.from=t,c.dragged=i,c.draggedRect=e,c.related=o||n,c.relatedRect=r||x(n),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),d&&(f=d.call(h,c,a)),f}function Ft(t){t.draggable=!1}function Pt(){yt=!1}function Bt(t){for(var n=t.tagName+t.className+t.src+t.href+t.textContent,i=n.length,e=0;i--;)e+=n.charCodeAt(i);return e.toString(36)}function Ht(t){return setTimeout(t,0)}function Gt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ft=null)},_getDirection:function(t,n){return"function"==typeof this.options.direction?this.options.direction.call(this,t,n,X):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,o=e.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,u=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,l=e.filter;if(function(t){St.length=0;for(var n=t.getElementsByTagName("input"),i=n.length;i--;){var e=n[i];e.checked&&St.push(e)}}(i),!X&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!c||!u||"SELECT"!==u.tagName.toUpperCase())&&!((u=b(u,e.draggable,i,!1))&&u.animated||$===u)){if(K=k(u),tt=k(u,e.draggable),"function"==typeof l){if(l.call(this,t,u,this))return W({sortable:n,rootEl:s,name:"filter",targetEl:u,toEl:i,fromEl:i}),R("filter",n,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=b(s,e.trim(),i,!1))return W({sortable:n,rootEl:e,name:"filter",targetEl:u,fromEl:i,toEl:i}),R("filter",n,{evt:t}),!0}))))return void(o&&t.cancelable&&t.preventDefault());e.handle&&!b(s,e.handle,i,!1)||this._prepareDragStart(t,a,u)}}},_prepareDragStart:function(t,n,i){var e,o=this,r=o.el,a=o.options,c=r.ownerDocument;if(i&&!X&&i.parentNode===r){var f=x(i);if(V=r,Y=(X=i).parentNode,Z=X.nextSibling,$=i,it=a.group,zt.dragged=X,st=(ot={target:X,clientX:(n||t).clientX,clientY:(n||t).clientY}).clientX-f.left,lt=ot.clientY-f.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,X.style["will-change"]="all",e=function(){R("delayEnded",o,{evt:t}),zt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!l&&o.nativeDraggable&&(X.draggable=!0),o._triggerDragStart(t,n),W({sortable:o,name:"choose",originalEvent:t}),y(X,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){O(X,t.trim(),Ft)})),v(c,"dragover",jt),v(c,"mousemove",jt),v(c,"touchmove",jt),v(c,"mouseup",o._onDrop),v(c,"touchend",o._onDrop),v(c,"touchcancel",o._onDrop),l&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),R("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!n||this.nativeDraggable&&(s||u))e();else{if(zt.eventCanceled)return void this._onDrop();v(c,"mouseup",o._disableDelayedDrag),v(c,"touchend",o._disableDelayedDrag),v(c,"touchcancel",o._disableDelayedDrag),v(c,"mousemove",o._delayedDragTouchMoveHandler),v(c,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&v(c,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(e,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&Ft(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||"touch"==t.pointerType&&t,!this.nativeDraggable||n?v(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(v(X,"dragend",this),v(V,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,n){if(mt=!1,V&&X){R("dragStarted",this,{evt:n}),this.nativeDraggable&&v(document,"dragover",At);var i=this.options;!t&&y(X,i.dragClass,!1),y(X,i.ghostClass,!0),zt.active=this,t&&this._appendGhost(),W({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(rt){this._lastX=rt.clientX,this._lastY=rt.clientY,kt();for(var t=document.elementFromPoint(rt.clientX,rt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(rt.clientX,rt.clientY))!==n;)n=t;if(X.parentNode[P]._isOutsideThisEl(t),n)do{if(n[P]&&n[P]._onDragOver({clientX:rt.clientX,clientY:rt.clientY,target:t,rootEl:n})&&!this.options.dragoverBubble)break;t=n}while(n=n.parentNode);Ct()}},_onTouchMove:function(t){if(ot){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,o=t.touches?t.touches[0]:t,r=U&&T(U,!0),a=U&&r&&r.a,u=U&&r&&r.d,s=Ot&&vt&&C(vt),l=(o.clientX-ot.clientX+e.x)/(a||1)+(s?s[0]-Et[0]:0)/(a||1),c=(o.clientY-ot.clientY+e.y)/(u||1)+(s?s[1]-Et[1]:0)/(u||1);if(!zt.active&&!mt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(U){r?(r.e+=l-(at||0),r.f+=c-(ut||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");S(U,"webkitTransform",f),S(U,"mozTransform",f),S(U,"msTransform",f),S(U,"transform",f),at=l,ut=c,rt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!U){var t=this.options.fallbackOnBody?document.body:V,n=x(X,!0,Ot,!0,t),i=this.options;if(Ot){for(vt=t;"static"===S(vt,"position")&&"none"===S(vt,"transform")&&vt!==document;)vt=vt.parentNode;vt!==document.body&&vt!==document.documentElement?(vt===document&&(vt=I()),n.top+=vt.scrollTop,n.left+=vt.scrollLeft):vt=I(),Et=C(vt)}y(U=X.cloneNode(!0),i.ghostClass,!1),y(U,i.fallbackClass,!0),y(U,i.dragClass,!0),S(U,"transition",""),S(U,"transform",""),S(U,"box-sizing","border-box"),S(U,"margin",0),S(U,"top",n.top),S(U,"left",n.left),S(U,"width",n.width),S(U,"height",n.height),S(U,"opacity","0.8"),S(U,"position",Ot?"absolute":"fixed"),S(U,"zIndex","100000"),S(U,"pointerEvents","none"),zt.ghost=U,t.appendChild(U),S(U,"transform-origin",st/parseInt(U.style.width)*100+"% "+lt/parseInt(U.style.height)*100+"%")}},_onDragStart:function(t,n){var i=this,e=t.dataTransfer,o=i.options;R("dragStart",this,{evt:t}),zt.eventCanceled?this._onDrop():(R("setupClone",this),zt.eventCanceled||((q=F(X)).draggable=!1,q.style["will-change"]="",this._hideClone(),y(q,this.options.chosenClass,!1),zt.clone=q),i.cloneId=Ht((function(){R("clone",i),zt.eventCanceled||(i.options.removeCloneOnHide||V.insertBefore(q,X),i._hideClone(),W({sortable:i,name:"clone"}))})),!n&&y(X,o.dragClass,!0),n?(pt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(m(document,"mouseup",i._onDrop),m(document,"touchend",i._onDrop),m(document,"touchcancel",i._onDrop),e&&(e.effectAllowed="move",o.setData&&o.setData.call(i,e,X)),v(document,"drop",i),S(X,"transform","translateZ(0)")),mt=!0,i._dragStartId=Ht(i._dragStarted.bind(i,n,t)),v(document,"selectstart",i),ct=!0,c&&S(document.body,"user-select","none"))},_onDragOver:function(t){var i,e,o,r,a=this.el,u=t.target,s=this.options,l=s.group,c=zt.active,f=it===l,h=s.sort,d=et||c,v=this,m=!1;if(!yt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),u=b(u,s.draggable,a,!0),G("dragOver"),zt.eventCanceled)return m;if(X.contains(t.target)||u.animated&&u.animatingX&&u.animatingY||v._ignoreWhileAnimating===u)return $(!1);if(pt=!1,c&&!s.disabled&&(f?h||(o=Y!==V):et===this||(this.lastPutMode=it.checkPull(this,c,X,t))&&l.checkPut(this,c,X,t))){if(r="vertical"===this._getDirection(t,u),i=x(X),G("dragOverValid"),zt.eventCanceled)return m;if(o)return Y=V,L(),this._hideClone(),G("revert"),zt.eventCanceled||(Z?V.insertBefore(X,Z):V.appendChild(X)),$(!0);var p=D(a,s.draggable);if(!p||function(t,n,i){var e=x(D(i.el,i.options.draggable));return n?t.clientX>e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,r,this)&&!p.animated){if(p===X)return $(!1);if(p&&a===t.target&&(u=p),u&&(e=x(u)),!1!==Nt(V,a,X,i,u,e,t,!!u))return L(),a.appendChild(X),Y=a,q(),$(!0)}else if(p&&function(t,n,i){var e=x(_(i.el,0,i.options,!0));return n?t.clientX<e.left-10||t.clientY<e.top&&t.clientX<e.right:t.clientY<e.top-10||t.clientY<e.bottom&&t.clientX<e.left}(t,r,this)){var g=_(a,0,s,!0);if(g===X)return $(!1);if(e=x(u=g),!1!==Nt(V,a,X,i,u,e,t,!1))return L(),a.insertBefore(X,g),Y=a,q(),$(!0)}else if(u.parentNode===a){e=x(u);var w,E,T,O=X.parentNode!==a,I=!function(t,n,i){var e=i?t.left:t.top,o=i?n.left:n.top;return e===o||(i?t.right:t.bottom)===(i?n.right:n.bottom)||e+(i?t.width:t.height)/2===o+(i?n.width:n.height)/2}(X.animated&&X.toRect||i,u.animated&&u.toRect||e,r),C=r?"top":"left",j=M(u,"top","top")||M(X,"top","top"),A=j?j.scrollTop:void 0;if(ft!==u&&(E=e[C],bt=!1,wt=!I&&s.invertSwap||O),0!==(w=function(t,n,i,e,o,r,a,u){var s=e?t.clientY:t.clientX,l=e?i.height:i.width,c=e?i.top:i.left,f=e?i.bottom:i.right,h=!1;if(!a)if(u&&dt<l*o){if(!bt&&(1===ht?s>c+l*r/2:s<f-l*r/2)&&(bt=!0),bt)h=!0;else if(1===ht?s<c+dt:s>f-dt)return-ht}else if(s>c+l*(1-o)/2&&s<f-l*(1-o)/2)return function(t){return k(X)<k(t)?1:-1}(n);return(h=h||a)&&(s<c+l*r/2||s>f-l*r/2)?s>c+l/2?1:-1:0}(t,u,e,r,I?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,wt,ft===u))){var z=k(X);do{T=Y.children[z-=w]}while(T&&("none"===S(T,"display")||T===U))}if(0===w||T===u)return $(!1);ft=u,ht=w;var F=u.nextElementSibling,B=!1,H=Nt(V,a,X,i,u,e,t,B=1===w);if(!1!==H)return 1!==H&&-1!==H||(B=1===H),yt=!0,setTimeout(Pt,30),L(),B&&!F?a.appendChild(X):u.parentNode.insertBefore(X,B?F:u),j&&N(j,0,A-j.scrollTop),Y=X.parentNode,void 0===E||wt||(dt=Math.abs(E-x(u)[C])),q(),$(!0)}if(a.contains(X))return $(!1)}return!1}function G(s,l){R(s,v,n({evt:t,isOwner:f,axis:r?"vertical":"horizontal",revert:o,dragRect:i,targetRect:e,canSort:h,fromSortable:d,target:u,completed:$,onMove:function(n,e){return Nt(V,a,X,i,n,x(n),t,e)},changed:q},l))}function L(){G("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function $(n){return G("dragOverCompleted",{insertion:n}),n&&(f?c._hideClone():c._showClone(v),v!==d&&(y(X,et?et.options.ghostClass:c.options.ghostClass,!1),y(X,s.ghostClass,!0)),et!==v&&v!==zt.active?et=v:v===zt.active&&et&&(et=null),d===v&&(v._ignoreWhileAnimating=u),v.animateAll((function(){G("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(u===X&&!X.animated||u===a&&!u.animated)&&(ft=null),s.dragoverBubble||t.rootEl||u===document||(X.parentNode[P]._isOutsideThisEl(t.target),!n&&jt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function q(){Q=k(X),nt=k(X,s.draggable),W({sortable:v,name:"change",toEl:a,newIndex:Q,newDraggableIndex:nt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",jt),m(document,"mousemove",jt),m(document,"touchmove",jt)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var n=this.el,i=this.options;Q=k(X),nt=k(X,i.draggable),R("drop",this,{evt:t}),Y=X&&X.parentNode,Q=k(X),nt=k(X,i.draggable),zt.eventCanceled||(mt=!1,wt=!1,bt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Gt(this.cloneId),Gt(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),c&&S(document.body,"user-select",""),S(X,"transform",""),t&&(ct&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),U&&U.parentNode&&U.parentNode.removeChild(U),(V===Y||et&&"clone"!==et.lastPutMode)&&q&&q.parentNode&&q.parentNode.removeChild(q),X&&(this.nativeDraggable&&m(X,"dragend",this),Ft(X),X.style["will-change"]="",ct&&!mt&&y(X,et?et.options.ghostClass:this.options.ghostClass,!1),y(X,this.options.chosenClass,!1),W({sortable:this,name:"unchoose",toEl:Y,newIndex:null,newDraggableIndex:null,originalEvent:t}),V!==Y?(Q>=0&&(W({rootEl:Y,name:"add",toEl:Y,fromEl:V,originalEvent:t}),W({sortable:this,name:"remove",toEl:Y,originalEvent:t}),W({rootEl:Y,name:"sort",toEl:Y,fromEl:V,originalEvent:t}),W({sortable:this,name:"sort",toEl:Y,originalEvent:t})),et&&et.save()):Q!==K&&Q>=0&&(W({sortable:this,name:"update",toEl:Y,originalEvent:t}),W({sortable:this,name:"sort",toEl:Y,originalEvent:t})),zt.active&&(null!=Q&&-1!==Q||(Q=K,nt=tt),W({sortable:this,name:"end",toEl:Y,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){R("nulling",this),V=X=Y=U=Z=q=$=J=ot=rt=ct=Q=nt=K=tt=ft=ht=et=it=zt.dragged=zt.ghost=zt.clone=zt.active=null,St.forEach((function(t){t.checked=!0})),St.length=at=ut=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":X&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,n=[],i=this.el.children,e=0,o=i.length,r=this.options;e<o;e++)b(t=i[e],r.draggable,this.el,!1)&&n.push(t.getAttribute(r.dataIdAttr)||Bt(t));return n},sort:function(t,n){var i={},e=this.el;this.toArray().forEach((function(t,n){var o=e.children[n];b(o,this.options.draggable,e,!1)&&(i[t]=o)}),this),n&&this.captureAnimationState(),t.forEach((function(t){i[t]&&(e.removeChild(i[t]),e.appendChild(i[t]))})),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return b(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var i=this.options;if(void 0===n)return i[t];var e=G.modifyOption(this,t,n);i[t]=void 0!==e?e:n,"group"===t&&Dt(i)},destroy:function(){R("destroy",this);var t=this.el;t[P]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),gt.splice(gt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!J){if(R("hideClone",this),zt.eventCanceled)return;S(q,"display","none"),this.options.removeCloneOnHide&&q.parentNode&&q.parentNode.removeChild(q),J=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(J){if(R("showClone",this),zt.eventCanceled)return;X.parentNode!=V||this.options.group.revertClone?Z?V.insertBefore(q,Z):V.appendChild(q):V.insertBefore(q,X),this.options.group.revertClone&&this.animate(X,q),S(q,"display",""),J=!1}}else this._hideClone()}},Tt&&v(document,"touchmove",(function(t){(zt.active||mt)&&t.cancelable&&t.preventDefault()})),zt.utils={on:v,off:m,css:S,find:O,is:function(t,n){return!!b(t,n,t,!1)},extend:function(t,n){if(t&&n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i]);return t},throttle:z,closest:b,toggleClass:y,clone:F,index:k,nextTick:Ht,cancelNextTick:Gt,detectDirection:_t,getChild:_},zt.get=function(t){return t[P]},zt.mount=function(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];i[0].constructor===Array&&(i=i[0]),i.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(zt.utils=n(n({},zt.utils),t.utils)),G.mount(t)}))},zt.create=function(t,n){return new zt(t,n)},zt.version="1.14.0";var Lt,Rt,Wt,Xt,Yt,Ut,Vt=[],Zt=!1;function $t(){Vt.forEach((function(t){clearInterval(t.pid)})),Vt=[]}function qt(){clearInterval(Ut)}var Jt=z((function(t,n,i,e){if(n.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,u=n.scrollSensitivity,s=n.scrollSpeed,l=I(),c=!1;Rt!==i&&(Rt=i,$t(),o=n.scrollFn,!0===(Lt=n.scroll)&&(Lt=j(i,!0)));var f=0,h=Lt;do{var d=h,v=x(d),m=v.top,p=v.bottom,g=v.left,b=v.right,w=v.width,E=v.height,y=void 0,T=void 0,O=d.scrollWidth,M=d.scrollHeight,_=S(d),D=d.scrollLeft,k=d.scrollTop;d===l?(y=w<O&&("auto"===_.overflowX||"scroll"===_.overflowX||"visible"===_.overflowX),T=E<M&&("auto"===_.overflowY||"scroll"===_.overflowY||"visible"===_.overflowY)):(y=w<O&&("auto"===_.overflowX||"scroll"===_.overflowX),T=E<M&&("auto"===_.overflowY||"scroll"===_.overflowY));var C=y&&(Math.abs(b-r)<=u&&D+w<O)-(Math.abs(g-r)<=u&&!!D),A=T&&(Math.abs(p-a)<=u&&k+E<M)-(Math.abs(m-a)<=u&&!!k);if(!Vt[f])for(var z=0;z<=f;z++)Vt[z]||(Vt[z]={});Vt[f].vx==C&&Vt[f].vy==A&&Vt[f].el===d||(Vt[f].el=d,Vt[f].vx=C,Vt[f].vy=A,clearInterval(Vt[f].pid),0==C&&0==A||(c=!0,Vt[f].pid=setInterval(function(){e&&0===this.layer&&zt.active._onTouchMove(Yt);var n=Vt[this.layer].vy?Vt[this.layer].vy*s:0,i=Vt[this.layer].vx?Vt[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(zt.dragged.parentNode[P],i,n,t,Yt,Vt[this.layer].el)||N(Vt[this.layer].el,i,n)}.bind({layer:f}),24))),f++}while(n.bubbleScroll&&h!==l&&(h=j(h,!1)));Zt=c}}),30),Kt=function(t){var n=t.originalEvent,i=t.putSortable,e=t.dragEl,o=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(n){var a=i||t.activeSortable;(0,t.hideGhostForTarget)();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,s=document.elementFromPoint(u.clientX,u.clientY);r(),a&&!a.el.contains(s)&&(o("spill"),this.onSpill({dragEl:e,putSortable:i}))}};function Qt(){}function tn(){}Qt.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var n=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var e=_(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(n,e):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:Kt},o(Qt,{pluginName:"revertOnSpill"}),tn.prototype={onSpill:function(t){var n=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Kt},o(tn,{pluginName:"removeOnSpill"}),zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):v(document,this.options.supportPointer?"pointermove":n.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;this.options.dragOverBubble||n.rootEl||this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),qt(),$t(),clearTimeout(w),w=void 0},nulling:function(){Yt=Rt=Lt=Zt=Ut=Wt=Xt=null,Vt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,e=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(e,o);if(Yt=t,n||this.options.forceAutoScrollFallback||s||u||c){Jt(t,this.options,r,n);var a=j(r,!0);!Zt||Ut&&e===Wt&&o===Xt||(Ut&&qt(),Ut=setInterval((function(){var r=j(document.elementFromPoint(e,o),!0);r!==a&&(a=r,$t()),Jt(t,i.options,r,n)}),10),Wt=e,Xt=o)}else{if(!this.options.bubbleScroll||j(r,!0)===I())return void $t();Jt(t,this.options,j(r,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(tn,Qt);export{zt 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.429
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as i,h as e,F as a,g as n}from"./p-85de34c5.js";import{C as s,I as o,S as l}from"./p-cc09d65e.js";import{g as r,f as c}from"./p-2dafa9fc.js";import{g as m}from"./p-a1fbcc2e.js";import{g as h}from"./p-6e6943bc.js";import{c as u}from"./p-c72ab186.js";import{c as p,d}from"./p-094e0790.js";const f=["ArrowUp","ArrowDown"],b=["ArrowUp","ArrowDown","End","Home"],x=class{constructor(e){t(this,e),this.calciteActionMenuOpenChange=i(this,"calciteActionMenuOpenChange",7),this.expanded=!1,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.actionElements=[],this.mutationObserver=u("mutation",(()=>this.getActions())),this.guid=`calcite-action-menu-${h()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.activeMenuItemIndex=-1,this.connectMenuButtonEl=()=>{const{el:t,menuButtonId:i,menuId:e,open:a,label:n}=this,s=r(t,l.trigger)||this.defaultMenuButtonEl;this.menuButtonEl!==s&&(this.disconnectMenuButtonEl(),this.menuButtonEl=s,this.setTooltipReferenceElement(),s&&(s.active=a,s.setAttribute("aria-controls",e),s.setAttribute("aria-expanded",a.toString()),s.setAttribute("aria-haspopup","true"),s.id||(s.id=i),s.label||(s.label=n),s.text||(s.text=n),s.addEventListener("click",this.menuButtonClick),s.addEventListener("keydown",this.menuButtonKeyDown),s.addEventListener("keyup",this.menuButtonKeyUp)))},this.disconnectMenuButtonEl=()=>{const{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown),t.removeEventListener("keyup",this.menuButtonKeyUp))},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.setTooltipReferenceElement=()=>{const{el:t,expanded:i,menuButtonEl:e}=this,a=r(t,l.tooltip),n="SLOT"===(null==a?void 0:a.tagName)?a.assignedElements()[0]:a;"CALCITE-TOOLTIP"===(null==n?void 0:n.tagName)&&(n.referenceElement=i?null:e)},this.updateAction=(t,i)=>{const{guid:e,activeMenuItemIndex:a}=this,n=`${e}-action-${i}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=n),t.active=i===a},this.updateActions=t=>{null==t||t.forEach(this.updateAction)},this.getActions=()=>{const{el:t}=this,i=r(t,{all:!0,matches:"calcite-action"});this.updateActions(i),this.actionElements=i,this.connectMenuButtonEl()},this.menuButtonKeyUp=t=>{const{key:i}=t,{actionElements:e}=this;this.isValidKey(i,f)&&(t.preventDefault(),e.length&&(this.toggleOpen(!0),this.handleActionNavigation(i,e)))},this.menuButtonKeyDown=t=>{const{key:i}=t;this.isValidKey(i,f)&&t.preventDefault()},this.menuActionsContainerKeyDown=t=>{const{key:i}=t,{actionElements:e,activeMenuItemIndex:a}=this;if("Tab"!==i)if(" "!==i&&"Enter"!==i)this.isValidKey(i,b)&&t.preventDefault();else{t.preventDefault();const i=e[a];i?i.click():this.toggleOpen(!1)}else this.open=!1},this.menuActionsContainerKeyUp=t=>{const{key:i}=t,{actionElements:e}=this;"Escape"!==i?this.isValidKey(i,b)&&(t.preventDefault(),e.length&&this.handleActionNavigation(i,e)):this.toggleOpen(!1)},this.handleActionNavigation=(t,i)=>{const e=this.activeMenuItemIndex;"Home"===t&&(this.activeMenuItemIndex=0),"End"===t&&(this.activeMenuItemIndex=i.length-1),"ArrowUp"===t&&(this.activeMenuItemIndex=m(Math.max(e-1,-1),i.length)),"ArrowDown"===t&&(this.activeMenuItemIndex=m(e+1,i.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t}}connectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0,subtree:!0}),this.getActions(),p(this)}disconnectedCallback(){var t;null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.disconnectMenuButtonEl(),d(this)}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpenChange.emit(t)}closeCalciteActionMenuOnClick(t){t.composedPath().includes(this.el)||(this.open=!1)}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){c(this.open?this.menuEl:this.menuButtonEl)}renderMenuButton(){const{el:t,label:i,scale:a}=this,n=e("slot",{name:l.trigger},e("calcite-action",{class:s.defaultTrigger,icon:o.menu,ref:this.setDefaultMenuButtonEl,scale:a,text:i}));return r(t,l.tooltip)?e("calcite-tooltip-manager",null,n):n}renderMenuItems(){const{actionElements:t,activeMenuItemIndex:i,open:a,menuId:n,menuButtonEl:o,label:l,placement:r,overlayPositioning:c,flipPlacements:m}=this,h=t[i];return e("calcite-popover",{disablePointer:!0,flipPlacements:m,label:l,offsetDistance:0,open:a,overlayPositioning:c,placement:r,referenceElement:o},e("div",{"aria-activedescendant":(null==h?void 0:h.id)||null,"aria-labelledby":null==o?void 0:o.id,class:s.menu,id:n,onClick:this.handleCalciteActionClick,onKeyDown:this.menuActionsContainerKeyDown,onKeyUp:this.menuActionsContainerKeyUp,ref:t=>this.menuEl=t,role:"menu",tabIndex:-1},e("slot",null)))}render(){return e(a,null,this.renderMenuButton(),this.renderMenuItems(),e("slot",{name:l.tooltip}))}getAssignedElements(){return Array.from(this.el.querySelectorAll("slot")).map((t=>t.assignedElements({flatten:!0}))).reduce(((t,i)=>t.concat(i)),[])}isValidKey(t,i){return!!i.find((i=>i===t))}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}};x.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:-ms-flexbox;display:flex;outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";export{x as calcite_action_menu}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,u)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return c([e,t])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-next.429
|
|
6
|
-
*/System.register(["./p-9764793b.system.js","./p-e636c3e3.system.js"],(function(e){"use strict";var t,n;return{setters:[function(e){t=e.a},function(e){n=e.a}],execute:function(){e({a:f,b:c,c:y,d:s,e:w,f:h,g:o,h:g,i:u,l:v,n:p,p:d,s:l});function r(e){if(e===void 0){e=""}if(n.indexOf(e)>-1){return e}e=e.toLowerCase();if(e.includes("-")){e=e.replace(/(\w+)-(\w+)/,(function(e,t,n){return"".concat(t,"-").concat(n.toUpperCase())}));if(!n.includes(e)){e=e.split("-")[0]}}return n.includes(e)?e:"en"}var i={};var a={};function o(e){return __awaiter(this,void 0,void 0,(function(){var n,u;return __generator(this,(function(c){switch(c.label){case 0:n=r(e);if(i[n]){return[2,i[n]]}if(!a[n]){a[n]=fetch(t("./assets/date-picker/nls/".concat(n,".json"))).then((function(e){return e.json()})).catch((function(){console.error('Translations for "'.concat(n,'" not found or invalid, falling back to english'));return o("en")}))}return[4,a[n]];case 1:u=c.sent();i[n]=u;return[2,u]}}))}))}function u(e,t,n){var r=e.getTime();var i=!(t instanceof Date)||r>=t.getTime();var a=!(n instanceof Date)||r<=n.getTime();return i&&a}function c(e,t,n){if(!(e instanceof Date)){return null}var r=e.getTime();var i=t instanceof Date&&r<t.getTime();var a=n instanceof Date&&r>n.getTime();if(i){return t}if(a){return n}return e}function f(e){if(e instanceof Date){return e}if(!e||typeof e!=="string"){return null}var t=e.split(/[: T-]/).map(parseFloat);var n=new Date(t[0],(t[1]||1)-1,t[2]||1);n.setFullYear(t[0]);if(isNaN(n.getTime())){throw new Error('Invalid ISO 8601 date: "'.concat(e,'"'))}return n}function s(e){if(typeof e==="string"){return e}if(e instanceof Date){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split("T")[0]}return""}function l(e,t){return e instanceof Date&&t instanceof Date&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function h(e){var t=e.getMonth();var n=new Date(e);n.setMonth(t-1);if(t===n.getMonth()){return new Date(e.getFullYear(),t,0)}return n}function p(e){var t=e.getMonth();var n=new Date(e);n.setMonth(t+1);if((t+2)%7===n.getMonth()%7){return new Date(e.getFullYear(),t+2,0)}return n}function v(e,t){return String(e).split("").map((function(e){return t.numerals[e]})).join("")}function g(e,t){var n="0123456789";return parseInt(e.split("").map((function(e){return n[t.numerals.indexOf(e)]})).filter((function(e){return e})).join(""))}function d(e,t){var n=t.separator,r=t.unitOrder;var i=w(r);var a=m(e).split(n);return{day:parseInt(a[i.indexOf("d")]),month:parseInt(a[i.indexOf("m")])-1,year:parseInt(a[i.indexOf("y")])}}function m(e){if(e===void 0){e=""}return e.replace(/[\u0660-\u0669]/g,(function(e){return e.charCodeAt(0)-1632})).replace(/[\u06f0-\u06f9]/g,(function(e){return e.charCodeAt(0)-1776}))}function w(e){var t=["d","m","y"];var n=e.toLowerCase();return t.sort((function(e,t){return n.indexOf(e)-n.indexOf(t)}))}function y(e,t){var n=e.getTime();var r=t.getTime();return(n-r)/(1e3*3600*24)}var b=e("H",2);var D=e("T",{nextMonth:"Next month",prevMonth:"Previous month",year:"Year"})}}}));
|
|
@@ -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.429
|
|
5
|
-
*/
|
|
6
|
-
System.register(["./p-9764793b.system.js","./p-634ae829.system.js","./p-e41b86bc.system.js","./p-e70e2e36.system.js"],(function(e){"use strict";var t,n,r,o,i;return{setters:[function(e){t=e.f;n=e.h},function(e){r=e.a},function(e){o=e.S},function(e){i=e.S}],execute:function(){e("t",p);var a=e("o",150);var c=2;var u=function(e){var t=e.height,n=e.actionHeight,r=e.groupCount;return Math.floor((t-r*c)/n)};var l=e("g",(function(e){var t=e.actionCount,n=e.actionHeight,r=e.height,o=e.groupCount;return Math.max(t-u({height:r,actionHeight:n,groupCount:o}),0)}));var s=e("q",(function(e){return Array.from(e.querySelectorAll("calcite-action")).filter((function(e){return e.closest("calcite-action-menu")?e.slot===o.trigger:true}))}));var f=e("a",(function(e){var n=e.actionGroups,r=e.expanded,o=e.overflowCount;var a=o;n.reverse().forEach((function(e){var n=0;var o=s(e).reverse();o.forEach((function(e){if(e.slot===i.menuActions){e.removeAttribute("slot");e.textEnabled=r}}));if(a>0){o.some((function(e){var t=o.filter((function(e){return!e.slot}));if(t.length>1&&o.length>2&&!e.closest("calcite-action-menu")){e.textEnabled=true;e.setAttribute("slot",i.menuActions);n++;if(n>1){a--}}return a<1}))}t(e)}))}));var v={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function h(e,t){var n;return e||((n=t.closest("calcite-shell-panel"))===null||n===void 0?void 0:n.position)||"start"}function p(e){var t=e.parent,n=e.expanded;s(t).filter((function(e){return e.slot!==i.menuActions})).forEach((function(e){return e.textEnabled=n}));t.querySelectorAll("calcite-action-group").forEach((function(e){return e.expanded=n}))}var g=function(e){var t=e.tooltip,n=e.referenceElement,r=e.expanded,o=e.ref;if(t){t.referenceElement=!r&&n?n:null}if(o){o(n)}return n};var d=e("E",(function(e){var t=e.expanded,o=e.intlExpand,i=e.intlCollapse,a=e.toggle,c=e.el,u=e.position,l=e.tooltip,s=e.ref,f=e.scale;var p=r(c)==="rtl";var d=t?i:o;var m=[v.chevronsLeft,v.chevronsRight];if(p){m.reverse()}var x=h(u,c)==="end";var E=x?m[1]:m[0];var b=x?m[0]:m[1];var y=n("calcite-action",{icon:t?E:b,onClick:a,ref:function(e){return g({tooltip:l,referenceElement:e,expanded:t,ref:s})},scale:f,text:d,textEnabled:t});return l?n("calcite-tooltip-manager",null,y):y}))}}}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{c(a.next(t))}catch(t){o(t)}}function s(t){try{c(a["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):n(t.value).then(r,s)}c((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return c([t,e])}}function c(r){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(o=r[0]&2?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;if(n=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;n=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];n=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var a=0,n=e.length,o;a<n;a++){if(o||!(a in e)){if(!o)o=Array.prototype.slice.call(e,0,a);o[a]=e[a]}}return t.concat(o||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.429
|
|
6
|
-
*/System.register(["./p-9764793b.system.js","./p-4c950302.system.js","./p-634ae829.system.js","./p-785cf808.system.js","./p-0b10cd7e.system.js"],(function(t){"use strict";var e,i,a,n,o,r,s,c,l,d,b,p,m;return{setters:[function(t){e=t.r;i=t.c;a=t.h;n=t.H;o=t.g;r=t.F},function(t){s=t.g},function(t){c=t.n;l=t.a;d=t.k;b=t.d},function(t){p=t.c},function(t){m=t.u}],execute:function(){var f="@-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([active]) section{display:block}:host{display:none;height:100%;width:100%}:host([active]){display:block;height:100%;width:100%;overflow:auto}section{display:none;height:100%;width:100%}:host([scale=s]){padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}";var u=t("calcite_tab",function(){function t(t){e(this,t);this.calciteTabRegister=i(this,"calciteTabRegister",7);this.active=false;this.scale="m";this.guid="calcite-tab-title-".concat(s())}t.prototype.render=function(){var t=this.el.id||this.guid;return a(n,{"aria-expanded":this.active.toString(),"aria-labelledby":this.labeledBy,id:t,role:"tabpanel"},a("section",null,a("slot",null)))};t.prototype.connectedCallback=function(){this.parentTabsEl=this.el.closest("calcite-tabs")};t.prototype.componentDidLoad=function(){this.calciteTabRegister.emit()};t.prototype.componentWillRender=function(){var t;this.scale=(t=this.parentTabsEl)===null||t===void 0?void 0:t.scale};t.prototype.disconnectedCallback=function(){var t;(t=document.body)===null||t===void 0?void 0:t.dispatchEvent(new CustomEvent("calciteTabUnregister",{detail:this.el}))};t.prototype.tabChangeHandler=function(t){var e=this;var i=t.composedPath().find((function(t){return t.tagName==="CALCITE-TABS"}));if(i!==this.parentTabsEl){return}if(this.tab){this.active=this.tab===t.detail.tab}else{this.getTabIndex().then((function(i){e.active=i===t.detail.tab}))}};t.prototype.getTabIndex=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Array.prototype.indexOf.call(c(this.el.parentElement.children).filter((function(t){return t.matches("calcite-tab")})),this.el)]}))}))};t.prototype.updateAriaInfo=function(t,e){if(t===void 0){t=[]}if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.labeledBy=e[t.indexOf(this.el.id)]||null;return[2]}))}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());u.style=f;var h="@-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{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:start;justify-content:flex-start;overflow:auto}:host([layout=center]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{position:absolute;left:0px;right:0px;bottom:0px;height:0.125rem;width:100%;overflow:hidden}.tab-nav-active-indicator{position:absolute;bottom:0px;display:block;height:0.125rem;background-color:var(--calcite-ui-brand);-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host([position=below]) .tab-nav-active-indicator{bottom:unset;top:0px}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0px}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}";var v=t("calcite_tab_nav",function(){function t(t){var a=this;e(this,t);this.calciteTabChange=i(this,"calciteTabChange",7);this.scale="m";this.layout="inline";this.position="below";this.bordered=false;this.animationActiveDuration=.3;this.handleContainerScroll=function(){a.activeIndicatorEl.style.transitionDuration="0s";a.updateOffsetPosition()}}t.prototype.selectedTabChanged=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(localStorage&&this.storageId&&this.selectedTab!==undefined&&this.selectedTab!==null){localStorage.setItem("calcite-tab-nav-".concat(this.storageId),JSON.stringify(this.selectedTab))}this.calciteTabChange.emit({tab:this.selectedTab});t=this;return[4,this.getTabTitleById(this.selectedTab)];case 1:t.selectedTabEl=e.sent();return[2]}}))}))};t.prototype.selectedTabElChanged=function(){this.updateOffsetPosition();this.updateActiveWidth();this.activeIndicatorEl.style.transitionDuration="".concat(this.animationActiveDuration,"s")};t.prototype.connectedCallback=function(){this.parentTabsEl=this.el.closest("calcite-tabs")};t.prototype.componentWillLoad=function(){var t="calcite-tab-nav-".concat(this.storageId);if(localStorage&&this.storageId&&localStorage.getItem(t)){var e=JSON.parse(localStorage.getItem(t));this.selectedTab=e;this.calciteTabChange.emit({tab:this.selectedTab})}};t.prototype.componentWillRender=function(){var t=this.parentTabsEl;this.layout=t===null||t===void 0?void 0:t.layout;this.position=t===null||t===void 0?void 0:t.position;this.scale=t===null||t===void 0?void 0:t.scale;this.bordered=t===null||t===void 0?void 0:t.bordered;if(this.selectedTabEl){this.updateOffsetPosition()}};t.prototype.componentDidRender=function(){var t=this;if(this.tabTitles.length&&this.tabTitles.every((function(t){return!t.active}))&&!this.selectedTab){this.tabTitles[0].getTabIdentifier().then((function(e){t.calciteTabChange.emit({tab:e})}))}};t.prototype.render=function(){var t=this;var e=l(this.el);var i="".concat(this.indicatorWidth,"px");var o="".concat(this.indicatorOffset,"px");var r=e!=="rtl"?{width:i,left:o}:{width:i,right:o};return a(n,{role:"tablist"},a("div",{class:"tab-nav",onScroll:this.handleContainerScroll,ref:function(e){return t.tabNavEl=e}},a("div",{class:"tab-nav-active-indicator-container",ref:function(e){return t.activeIndicatorContainerEl=e}},a("div",{class:"tab-nav-active-indicator",ref:function(e){return t.activeIndicatorEl=e},style:r})),a("slot",null)))};t.prototype.resizeHandler=function(){this.activeIndicatorEl.style.transitionDuration="0s";this.updateActiveWidth();this.updateOffsetPosition()};t.prototype.focusPreviousTabHandler=function(t){var e=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);var i=this.enabledTabTitles[e-1]||this.enabledTabTitles[this.enabledTabTitles.length-1];i.focus();t.stopPropagation();t.preventDefault()};t.prototype.focusNextTabHandler=function(t){var e=this.getIndexOfTabTitle(t.target,this.enabledTabTitles);var i=this.enabledTabTitles[e+1]||this.enabledTabTitles[0];i.focus();t.stopPropagation();t.preventDefault()};t.prototype.activateTabHandler=function(t){this.selectedTab=t.detail.tab?t.detail.tab:this.getIndexOfTabTitle(t.target);t.stopPropagation();t.preventDefault()};t.prototype.updateTabTitles=function(t){if(t.target.active){this.selectedTab=t.detail}};t.prototype.globalTabChangeHandler=function(t){if(this.syncId&&t.target!==this.el&&t.target.syncId===this.syncId&&this.selectedTab!==t.detail.tab){this.selectedTab=t.detail.tab}};t.prototype.updateOffsetPosition=function(){var t,e,i,a,n;var o=l(this.el);var r=(t=this.activeIndicatorContainerEl)===null||t===void 0?void 0:t.offsetWidth;var s=(e=this.selectedTabEl)===null||e===void 0?void 0:e.offsetLeft;var c=(i=this.selectedTabEl)===null||i===void 0?void 0:i.offsetWidth;var d=r-(s+c);this.indicatorOffset=o!=="rtl"?s-((a=this.tabNavEl)===null||a===void 0?void 0:a.scrollLeft):d+((n=this.tabNavEl)===null||n===void 0?void 0:n.scrollLeft)};t.prototype.updateActiveWidth=function(){var t;this.indicatorWidth=(t=this.selectedTabEl)===null||t===void 0?void 0:t.offsetWidth};t.prototype.getIndexOfTabTitle=function(t,e){if(e===void 0){e=this.tabTitles}return e.indexOf(t)};t.prototype.getTabTitleById=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){return[2,Promise.all(this.tabTitles.map((function(t){return t.getTabIdentifier()}))).then((function(i){return e.tabTitles[i.indexOf(t)]}))]}))}))};Object.defineProperty(t.prototype,"tabTitles",{get:function(){return d(this.el,"calcite-tab-title")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"enabledTabTitles",{get:function(){return d(this.el,"calcite-tab-title:not([disabled])")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selectedTab:["selectedTabChanged"],selectedTabEl:["selectedTabElChanged"]}},enumerable:false,configurable:true});return t}());v.style=h;var y="@-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{margin-right:1.25rem;display:block;-ms-flex:0 1 auto;flex:0 1 auto;outline:2px solid transparent;outline-offset:2px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:1.25rem;margin-inline-end:1.25rem}:host([layout=center]){margin-top:0px;margin-bottom:0px;margin-left:1.25rem;margin-right:1.25rem;text-align:center;-ms-flex-preferred-size:12rem;flex-basis:12rem}:host([position=below]) a{border-bottom-width:0px;border-top-width:2px;border-top-color:transparent;border-top-style:solid}:host a{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) a{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host(:active) a,:host(:focus) a,:host(:hover) a{border-color:var(--calcite-ui-border-2);color:var(--calcite-ui-text-1);-webkit-text-decoration-line:none;text-decoration-line:none}:host([active]) a{border-color:transparent;color:var(--calcite-ui-text-1)}: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]) span,:host([disabled]) a{pointer-events:none;opacity:0.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){-webkit-margin-end:1rem;margin-inline-end:1rem}:host([scale=s]) a,:host([scale=s]) span{padding-top:0.25rem;padding-bottom:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) a,:host([scale=m]) span{padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){-webkit-margin-end:1.5rem;margin-inline-end:1.5rem}:host([scale=l]) a,:host([scale=l]) span{padding-top:0.75rem;padding-bottom:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}a,span{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;height:100%;width:100%;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-pack:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom-width:2px;padding-left:0px;padding-right:0px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;border-bottom-color:transparent;border-bottom-style:solid}span{cursor:default}.calcite-tab-title--icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-item-align:center;align-self:center}.calcite-tab-title--icon svg{-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}.container--has-text{padding:0.25rem}.container--has-text .calcite-tab-title--icon.icon-start{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}.container--has-text .calcite-tab-title--icon.icon-end{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-start][icon-end]) .calcite-tab-title--icon:first-child{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([bordered]){-webkit-margin-end:0;margin-inline-end:0}:host([bordered][active]){-webkit-box-shadow:inset 0px -2px var(--calcite-ui-foreground-1);box-shadow:inset 0px -2px var(--calcite-ui-foreground-1)}:host([bordered][active][position=below]){-webkit-box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1);box-shadow:inset 0 2px 0 var(--calcite-ui-foreground-1)}:host([bordered]:hover) a,:host([bordered]:focus) a,:host([bordered]:active) a{position:relative}:host([bordered]:hover) a{background-color:var(--calcite-button-transparent-hover);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s}:host([bordered]) a{border-bottom-style:unset}:host([bordered][position=below]) a{border-top-style:unset}:host([active][bordered]) a{border-left:1px solid var(--calcite-ui-border-1);border-right:1px solid var(--calcite-ui-border-1)}:host([bordered]) a,:host([bordered]) span{padding-left:0.75rem;padding-right:0.75rem}:host([bordered][scale=s]) a,:host([bordered][scale=s]) span{padding-left:0.5rem;padding-right:0.5rem}:host([bordered][scale=l]) a,:host([bordered][scale=l]) span{padding-left:1rem;padding-right:1rem}";var g=t("calcite_tab_title",function(){function t(t){var a=this;e(this,t);this.calciteTabsActivate=i(this,"calciteTabsActivate",7);this.calciteTabsFocusNext=i(this,"calciteTabsFocusNext",7);this.calciteTabsFocusPrevious=i(this,"calciteTabsFocusPrevious",7);this.calciteTabTitleRegister=i(this,"calciteTabTitleRegister",7);this.active=false;this.disabled=false;this.bordered=false;this.mutationObserver=p("mutation",(function(){return a.updateHasText()}));this.hasText=false;this.guid="calcite-tab-title-".concat(s())}t.prototype.activeTabChanged=function(){if(this.active){this.emitActiveTab()}};t.prototype.connectedCallback=function(){this.setupTextContentObserver();this.parentTabNavEl=this.el.closest("calcite-tab-nav");this.parentTabsEl=this.el.closest("calcite-tabs")};t.prototype.disconnectedCallback=function(){var t,e;(t=this.mutationObserver)===null||t===void 0?void 0:t.disconnect();(e=document.body)===null||e===void 0?void 0:e.dispatchEvent(new CustomEvent("calciteTabTitleUnregister",{detail:this.el}))};t.prototype.componentWillLoad=function(){{this.updateHasText()}if(this.tab&&this.active){this.emitActiveTab()}};t.prototype.componentWillRender=function(){if(this.parentTabsEl){this.layout=this.parentTabsEl.layout;this.position=this.parentTabsEl.position;this.scale=this.parentTabsEl.scale;this.bordered=this.parentTabsEl.bordered}if(!this.parentTabsEl&&this.parentTabNavEl){this.position=b(this.parentTabNavEl,"position",this.position);this.scale=b(this.parentTabNavEl,"scale",this.scale)}};t.prototype.render=function(){var t=this.el.id||this.guid;var e=this.bordered&&!this.disabled&&this.layout!=="center";var i=a("calcite-icon",{class:"calcite-tab-title--icon icon-start",flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:"s"});var o=a("calcite-icon",{class:"calcite-tab-title--icon icon-end",flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:"s"});return a(n,{"aria-controls":this.controls,"aria-expanded":this.active.toString(),id:t,role:"tab"},a("a",{class:{container:true,"container--has-text":this.hasText},style:e&&{width:"".concat(this.parentTabNavEl.indicatorWidth,"px")}},this.iconStart?i:null,a("slot",null),this.iconEnd?o:null))};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:e=(t=this.calciteTabTitleRegister).emit;return[4,this.getTabIdentifier()];case 1:e.apply(t,[i.sent()]);return[2]}}))}))};t.prototype.componentDidRender=function(){m(this,true)};t.prototype.tabChangeHandler=function(t){var e=this;var i=t.composedPath().find((function(t){return t.tagName==="CALCITE-TABS"}));if(i!==this.parentTabsEl){return}if(this.tab){this.active=this.tab===t.detail.tab}else{this.getTabIndex().then((function(i){e.active=i===t.detail.tab}))}};t.prototype.onClick=function(){this.emitActiveTab()};t.prototype.keyDownHandler=function(t){switch(t.key){case" ":case"Enter":this.emitActiveTab();t.preventDefault();break;case"ArrowRight":if(l(this.el)==="ltr"){this.calciteTabsFocusNext.emit()}else{this.calciteTabsFocusPrevious.emit()}break;case"ArrowLeft":if(l(this.el)==="ltr"){this.calciteTabsFocusPrevious.emit()}else{this.calciteTabsFocusNext.emit()}break}};t.prototype.getTabIndex=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-tab-title"),this.el)]}))}))};t.prototype.getTabIdentifier=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.tab?this.tab:this.getTabIndex()]}))}))};t.prototype.updateAriaInfo=function(t,e){if(t===void 0){t=[]}if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.controls=t[e.indexOf(this.el.id)]||null;return[2]}))}))};t.prototype.updateHasText=function(){this.hasText=this.el.textContent.trim().length>0};t.prototype.setupTextContentObserver=function(){var t;(t=this.mutationObserver)===null||t===void 0?void 0:t.observe(this.el,{childList:true,subtree:true})};t.prototype.emitActiveTab=function(){if(!this.disabled){this.calciteTabsActivate.emit({tab:this.tab})}};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeTabChanged"]}},enumerable:false,configurable:true});return t}());g.style=y;var w={tabNav:"tab-nav"};var k="@-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:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([bordered]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1);background-color:var(--calcite-ui-foreground-1)}:host([bordered]:not([position=below])) ::slotted(calcite-tab-nav){margin-bottom:-1px}:host([bordered][position=below]) ::slotted(calcite-tab-nav){margin-top:-1px}:host([bordered][position=below]){-webkit-box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1);box-shadow:inset 0 1px 0 var(--calcite-ui-border-1), inset 0 -1px 0 var(--calcite-ui-border-1)}:host([bordered]) section{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-1)}:host([bordered][scale=s]) section{padding:0.75rem}:host([bordered][scale=m]) section{padding:0.5rem}:host([bordered][scale=l]) section{padding:1rem}:host([position=below]){-ms-flex-direction:column-reverse;flex-direction:column-reverse}section{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;border-top-width:1px;border-top-color:var(--calcite-ui-border-1);overflow:hidden;border-top-style:solid}:host([position=below]) section{-ms-flex-direction:column-reverse;flex-direction:column-reverse;border-top-width:0px;border-bottom-width:1px;border-bottom-color:var(--calcite-ui-border-1)}:host([position=below]:not([bordered])) section{border-bottom-style:solid}";var x=t("calcite_tabs",function(){function t(t){e(this,t);this.layout="inline";this.position="above";this.scale="m";this.bordered=false;this.titles=[];this.tabs=[]}t.prototype.connectedCallback=function(){if(this.layout==="center"){this.bordered=false}};t.prototype.render=function(){return a(r,null,a("slot",{name:w.tabNav}),a("section",null,a("slot",null)))};t.prototype.calciteTabTitleRegister=function(t){this.titles=__spreadArray(__spreadArray([],this.titles,true),[t.target],false);this.registryHandler();t.stopPropagation()};t.prototype.calciteTabTitleUnregister=function(t){this.titles=this.titles.filter((function(e){return e!==t.detail}));this.registryHandler();t.stopPropagation()};t.prototype.calciteTabRegister=function(t){this.tabs=__spreadArray(__spreadArray([],this.tabs,true),[t.target],false);this.registryHandler();t.stopPropagation()};t.prototype.calciteTabUnregister=function(t){this.tabs=this.tabs.filter((function(e){return e!==t.detail}));this.registryHandler();t.stopPropagation()};t.prototype.registryHandler=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,a;var n=this;return __generator(this,(function(o){switch(o.label){case 0:if(!(this.tabs.some((function(t){return t.tab}))||this.titles.some((function(t){return t.tab}))))return[3,1];t=this.tabs.sort((function(t,e){return t.tab.localeCompare(e.tab)})).map((function(t){return t.id}));e=this.titles.sort((function(t,e){return t.tab.localeCompare(e.tab)})).map((function(t){return t.id}));return[3,4];case 1:return[4,Promise.all(this.tabs.map((function(t){return t.getTabIndex()})))];case 2:i=o.sent();return[4,Promise.all(this.titles.map((function(t){return t.getTabIndex()})))];case 3:a=o.sent();t=i.reduce((function(t,e,i){t[e]=n.tabs[i].id;return t}),[]);e=a.reduce((function(t,e,i){t[e]=n.titles[i].id;return t}),[]);o.label=4;case 4:this.tabs.forEach((function(i){return i.updateAriaInfo(t,e)}));this.titles.forEach((function(i){return i.updateAriaInfo(t,e)}));return[2]}}))}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());x.style=k}}}));
|
|
@@ -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.429
|
|
5
|
-
*/
|
|
6
|
-
import{r as t,c as e,h as i,H as a,g as n}from"./p-85de34c5.js";import{f as o,n as r,g as c,a as s,C as l,k as m}from"./p-2dafa9fc.js";import{c as h,d}from"./p-094e0790.js";import"./p-6e6943bc.js";import"./p-c72ab186.js";var f;!function(t){t.Single="single",t.Multi="multi",t.Children="children",t.MultiChildren="multi-children",t.Ancestors="ancestors"}(f||(f={}));const p=class{constructor(i){t(this,i),this.calciteTreeSelect=e(this,"calciteTreeSelect",7),this.lines=!1,this.inputEnabled=!1,this.scale="m",this.selectionMode=f.Single}componentWillRender(){const t=this.el.parentElement.closest("calcite-tree");this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}render(){return i(a,{"aria-multiselectable":this.child?void 0:(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren).toString(),role:this.child?void 0:"tree",tabIndex:this.getRootTabIndex()},i("slot",null))}onFocus(){if(!this.child){const t=this.el.querySelector("calcite-tree-item[selected]")||this.el.querySelector("calcite-tree-item");o(t)}}onFocusIn(t){(t.relatedTarget===this.el||!this.el.contains(t.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(t){!this.el.contains(t.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onClick(t){const e=t.target,i=r(e.querySelectorAll("calcite-tree-item"));if(this.child)return;if(this.child||(t.preventDefault(),t.stopPropagation()),this.selectionMode===f.Ancestors&&!this.child)return void this.updateAncestorTree(t);const a=t.detail.modifyCurrentSelection&&(this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren),n=this.selectionMode===f.MultiChildren||this.selectionMode===f.Children,o=!a&&((this.selectionMode===f.Single||this.selectionMode===f.Multi)&&i.length<=0||this.selectionMode===f.Children||this.selectionMode===f.MultiChildren),c=this.selectionMode===f.Children||this.selectionMode===f.MultiChildren;if(!this.child){const s=[];null!==this.selectionMode&&(!e.hasChildren||e.hasChildren&&(this.selectionMode===f.Children||this.selectionMode===f.MultiChildren))&&s.push(e),n&&i.forEach((t=>{s.push(t)})),o&&r(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach((t=>{s.includes(t)||(t.selected=!1)})),c&&!t.detail.forceToggle&&(e.expanded=!0),a&&window.getSelection().removeAllRanges(),s.forEach(a&&e.selected||n&&t.detail.forceToggle?t=>{t.selected=!1}:t=>{t.selected=!0})}this.calciteTreeSelect.emit({selected:r(this.el.querySelectorAll("calcite-tree-item")).filter((t=>t.selected))})}keyDownHandler(t){var e;const i=this.el.closest("calcite-tree:not([child])"),a=t.target;if(i===this.el&&"CALCITE-TREE-ITEM"===a.tagName&&this.el.contains(a))switch(t.key){case"ArrowDown":const i=a.nextElementSibling;i&&i.matches("calcite-tree-item")&&(i.focus(),t.preventDefault());break;case"ArrowLeft":if(a.hasChildren&&a.expanded){a.expanded=!1,t.preventDefault();break}const n=a.parentElement.closest("calcite-tree-item");if(n&&(!a.hasChildren||!1===a.expanded)){n.focus(),t.preventDefault();break}break;case"ArrowRight":if(!a.hasChildren)break;a.expanded&&document.activeElement===a?(null===(e=a.querySelector("calcite-tree-item"))||void 0===e||e.focus(),t.preventDefault()):(a.expanded=!0,t.preventDefault());break;case"ArrowUp":const o=a.previousElementSibling;o&&o.matches("calcite-tree-item")&&(o.focus(),t.preventDefault())}}updateAncestorTree(t){const e=t.target,i=e.querySelectorAll("calcite-tree-item"),a=[];let n=e.parentElement.closest("calcite-tree-item");for(;n;)a.push(n),n=n.parentElement.closest("calcite-tree-item");e.selected=!e.selected,e.indeterminate=!1,(null==i?void 0:i.length)&&i.forEach((t=>{t.selected=e.selected,t.indeterminate=!1})),a&&a.forEach((t=>{const e=r(t.querySelectorAll("calcite-tree-item")),i=e.filter((t=>t.selected));if(0===i.length)return t.selected=!1,void(t.indeterminate=!1);const a=i.length<e.length;t.indeterminate=a,t.selected=!a})),this.calciteTreeSelect.emit({selected:r(this.el.querySelectorAll("calcite-tree-item")).filter((t=>t.selected))})}getRootTabIndex(){return this.child?-1:0}get el(){return n(this)}};p.style="@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;outline:2px solid transparent;outline-offset:2px}";const k=class{constructor(i){t(this,i),this.calciteTreeItemSelect=e(this,"calciteTreeItemSelect",7),this.selected=!1,this.expanded=!1,this.parentExpanded=!1,this.depth=-1,this.hasChildren=null,this.iconClickHandler=t=>{t.stopPropagation(),this.expanded=!this.expanded},this.childrenClickHandler=t=>t.stopPropagation(),this.updateParentIsExpanded=(t,e)=>{c(t,"children",{all:!0,selector:"calcite-tree-item"}).forEach((t=>t.parentExpanded=e))},this.updateAncestorTree=()=>{if(this.selected&&this.selectionMode===f.Ancestors){const t=[];let e=this.parentTreeItem;for(;e;)t.push(e),e=e.parentElement.closest("calcite-tree-item");t.forEach((t=>t.indeterminate=!0))}}}expandedHandler(t){this.updateParentIsExpanded(this.el,t)}getselectionMode(){this.isSelectionMultiLike=this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren}connectedCallback(){if(this.parentTreeItem=this.el.parentElement.closest("calcite-tree-item"),this.parentTreeItem){const{expanded:t}=this.parentTreeItem;this.updateParentIsExpanded(this.parentTreeItem,t)}h(this)}disconnectedCallback(){d(this)}componentWillRender(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let t,e=this.el.closest("calcite-tree");if(e)for(this.selectionMode=e.selectionMode,this.scale=e.scale||"m",this.lines=e.lines;e&&(t=e.parentElement.closest("calcite-tree"),t!==e);)e=t,this.depth=this.depth+1}componentDidLoad(){this.updateAncestorTree()}render(){const t="rtl"===s(this.el),e=this.selectionMode===f.Single||this.selectionMode===f.Children,n=this.selectionMode===f.Multi||this.selectionMode===f.MultiChildren,o=this.hasChildren?i("calcite-icon",{class:{chevron:!0,[l.rtl]:t},"data-test-id":"icon",icon:"chevron-right",onClick:this.iconClickHandler,scale:"s"}):null,r=i("slot",{key:"default-slot"}),c=this.selectionMode===f.Ancestors?i("label",{class:"checkbox-label",key:"checkbox-label"},i("calcite-checkbox",{checked:this.selected,class:"checkbox","data-test-id":"checkbox",indeterminate:this.hasChildren&&this.indeterminate,scale:this.scale,tabIndex:-1}),r):null,m=e?"bullet-point":n?"check":null,h=m?i("calcite-icon",{class:{"bullet-point":"bullet-point"===m,checkmark:"check"===m,[l.rtl]:t},icon:m,scale:"s"}):null,d=!(this.parentExpanded||1===this.depth);return i(a,{"aria-expanded":this.hasChildren?this.expanded.toString():void 0,"aria-hidden":d.toString(),"aria-selected":this.selected?"true":n?"false":void 0,"calcite-hydrated-hidden":d,role:"treeitem",tabindex:this.parentExpanded||1===this.depth?"0":"-1"},i("div",{class:{"node-container":!0,[l.rtl]:t},"data-selection-mode":this.selectionMode,ref:t=>this.defaultSlotWrapper=t},o,h,c||r),i("div",{class:{"children-container":!0,[l.rtl]:t},"data-test-id":"calcite-tree-children",onClick:this.childrenClickHandler,ref:t=>this.childrenSlotWrapper=t,role:this.hasChildren?"group":void 0},i("slot",{name:"children"})))}onClick(t){const[e]=m(this.el,"a");e&&"a"!==t.composedPath()[0].tagName.toLowerCase()&&window.open(e.href,""===e.target?"_self":e.target),this.calciteTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode===f.Ancestors||this.isSelectionMultiLike,forceToggle:!1})}keyDownHandler(t){let e;switch(t.key){case" ":this.calciteTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),t.preventDefault();break;case"Enter":const i=r(this.el.children).find((t=>t.matches("a")));i?(i.click(),this.selected=!0):this.calciteTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,forceToggle:!1}),t.preventDefault();break;case"Home":e=this.el.closest("calcite-tree:not([child])"),e.querySelector("calcite-tree-item").focus();break;case"End":e=this.el.closest("calcite-tree:not([child])");let a=e.children[e.children.length-1],n=r(a.children).find((t=>t.matches("calcite-tree")));for(;n;)a=n.children[e.children.length-1],n=r(a.children).find((t=>t.matches("calcite-tree")));a.focus()}}get el(){return n(this)}static get watchers(){return{expanded:["expandedHandler"],selectionMode:["getselectionMode"]}}};k.style='@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;max-width:100%;cursor:pointer;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-container{--calcite-tree-padding-y:0.25rem}:host([scale=s]) .node-container .checkbox,:host([scale=s]) .node-container .chevron,:host([scale=s]) .node-container .checkmark,:host([scale=s]) .node-container .bullet-point{margin-inline:0.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-container{--calcite-tree-padding-y:0.5rem}:host([scale=m]) .node-container .checkbox,:host([scale=m]) .node-container .chevron,:host([scale=m]) .node-container .checkmark,:host([scale=m]) .node-container .bullet-point{margin-inline:0.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-container{--calcite-tree-padding-y:0.75rem}:host([scale=l]) .node-container .checkbox,:host([scale=l]) .node-container .chevron,:host([scale=l]) .node-container .checkmark,:host([scale=l]) .node-container .bullet-point{margin-inline:0.75rem}:host([lines]) .children-container:after{position:absolute;top:0px;width:1px;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;height:96%;content:"";background-color:var(--calcite-ui-border-2);z-index:-1}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-width:0px;max-width:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}::slotted(*):hover{text-decoration:none !important}::slotted(a){width:100%;-webkit-text-decoration-line:none;text-decoration-line:none}:host{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.checkbox{outline:2px solid transparent;outline-offset:2px;line-height:0}.checkbox-label{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.children-container{position:relative;height:0px;overflow:hidden;-webkit-margin-start:1.25rem;margin-inline-start:1.25rem;-webkit-transform:scaleY(0);transform:scaleY(0);opacity:0;-webkit-transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;-webkit-transform-origin:top;transform-origin:top}:host([expanded])>.children-container{-webkit-transform:scaleY(1);transform:scaleY(1);opacity:1;height:auto}.node-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--calcite-tree-padding-y) 0}.node-container .checkmark,.node-container .bullet-point{opacity:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;color:var(--calcite-ui-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus) .node-container .checkmark,:host(:focus) .node-container .bullet-point{opacity:1}:host([selected])>.node-container,:host([selected])>.node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([selected])>.node-container .bullet-point,:host([selected])>.node-container .checkmark,:host([selected])>.node-container:hover .bullet-point,:host([selected])>.node-container:hover .checkmark{opacity:1;color:var(--calcite-ui-brand)}:host(:not([has-children])):host([scale=s])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.25rem;padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.5rem;padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem}:host([has-children])>.node-container[data-selection-mode=ancestors] .checkbox{-webkit-margin-start:0;margin-inline-start:0}:host([has-children])>.node-container .bullet-point,:host([has-children])>.node-container .checkmark{display:none}:host([has-children][expanded]:not([selected]))>.node-container ::slotted(*){font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}:host([has-children][selected])>.node-container[data-selection-mode=children],:host([has-children][selected])>.node-container[data-selection-mode=multi-children]{color:var(--calcite-ui-brand)}.chevron{position:relative;-ms-flex-item-align:center;align-self:center;color:var(--calcite-ui-text-3);-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:var(--calcite-animation-timing);transition-duration:var(--calcite-animation-timing);-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-transform:rotate(0deg);transform:rotate(0deg)}.calcite--rtl .chevron{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host([expanded])>.node-container>.chevron{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-ui-brand)}';export{p as calcite_tree,k as calcite_tree_item}
|
|
@@ -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.429
|
|
5
|
-
*/
|
|
6
|
-
import{q as n,c as e}from"./p-2dafa9fc.js";const t="calciteInternalLabelConnected",c="calciteInternaLabelDisconnected",a=new WeakMap,o=new Set;function l(t){const c=(t=>{const{id:c}=t,a=c&&n(t,{selector:`calcite-label[for="${c}"]`});if(a)return a;const o=e(t,"calcite-label");return!o||function(n,e){let t;const c="custom-element-ancestor-check",a=c=>{c.stopImmediatePropagation();const a=c.composedPath();t=a.slice(a.indexOf(e),a.indexOf(n))};return n.addEventListener(c,a,{once:!0}),e.dispatchEvent(new CustomEvent(c,{composed:!0,bubbles:!0})),n.removeEventListener(c,a),t.filter((t=>t!==e&&t!==n)).filter((n=>{var e;return null===(e=n.tagName)||void 0===e?void 0:e.includes("-")})).length>0}(o,t)?null:o})(t.el);if(a.has(c))return;const l=u.bind(t),i=d.bind(t);c?((()=>{t.labelEl=c;const n=r.bind(t);a.set(t.labelEl,n),t.labelEl.addEventListener("calciteInternalLabelClick",n)})(),o.delete(t),document.removeEventListener("calciteInternalLabelConnected",l),document.addEventListener("calciteInternaLabelDisconnected",i)):c||o.has(t)||(i(),document.removeEventListener("calciteInternaLabelDisconnected",i))}function i(n){const e=u.bind(n),t=d.bind(n);if(o.delete(n),document.removeEventListener("calciteInternalLabelConnected",e),document.removeEventListener("calciteInternaLabelDisconnected",t),!n.labelEl)return;const c=a.get(n.labelEl);n.labelEl.removeEventListener("calciteInternalLabelClick",c),a.delete(n.labelEl)}function s(n){var e,t;return n.label||(null===(t=null===(e=n.labelEl)||void 0===e?void 0:e.textContent)||void 0===t?void 0:t.trim())||""}function r(n){this.disabled||this.el.contains(n.detail.sourceEvent.target)||this.onLabelClick(n)}function u(){o.has(this)&&l(this)}function d(){o.add(this);const n=u.bind(this);document.addEventListener("calciteInternalLabelConnected",n)}export{c as a,l as c,i as d,s as g,t as l}
|