@esri/calcite-components 1.0.0-beta.87 → 1.0.0-beta.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-14368daa.entry.js → p-05e6e44e.entry.js} +2 -2
- package/dist/calcite/{p-b7181609.entry.js → p-07dd470c.entry.js} +2 -2
- package/dist/calcite/{p-c6c191a4.system.entry.js → p-08d33cff.system.entry.js} +2 -2
- package/dist/calcite/p-0d787eb2.entry.js +6 -0
- package/dist/calcite/{p-59574854.system.js → p-0d8047a0.system.js} +2 -2
- package/dist/calcite/{p-9e8a8543.entry.js → p-0e005277.entry.js} +2 -2
- package/dist/calcite/{p-fbc834e7.system.entry.js → p-0e02d130.system.entry.js} +2 -2
- package/dist/calcite/{p-1647d422.js → p-0ee2d220.js} +2 -2
- package/dist/calcite/{p-9c216ae7.js → p-0fa03f2b.js} +2 -2
- package/dist/calcite/{p-f935181a.entry.js → p-123213d5.entry.js} +2 -2
- package/dist/calcite/{p-9d161fd1.system.entry.js → p-16eceb49.system.entry.js} +2 -2
- package/dist/calcite/{p-eb133e45.entry.js → p-187f9893.entry.js} +2 -2
- package/dist/calcite/{p-fb5b969f.system.entry.js → p-19403345.system.entry.js} +2 -2
- package/dist/calcite/{p-70df22f8.system.entry.js → p-1a31febb.system.entry.js} +2 -2
- package/dist/calcite/{p-2d6b5124.system.entry.js → p-1af1f3c4.system.entry.js} +2 -2
- package/dist/calcite/{p-db98f211.system.entry.js → p-1b89f988.system.entry.js} +3 -3
- package/dist/calcite/p-1c7df5d0.entry.js +6 -0
- package/dist/calcite/{p-5e5bb0fe.js → p-1f4f5c19.js} +2 -2
- package/dist/calcite/{p-bd8dabb4.system.entry.js → p-20c0dc2d.system.entry.js} +2 -2
- package/dist/calcite/{p-29610c9f.entry.js → p-21c25c2d.entry.js} +2 -2
- package/dist/calcite/{p-0b966e54.entry.js → p-2234a2fa.entry.js} +2 -2
- package/dist/calcite/{p-a64c38ea.system.entry.js → p-27859709.system.entry.js} +2 -2
- package/dist/calcite/{p-d913deb7.system.entry.js → p-2a0b7910.system.entry.js} +2 -2
- package/dist/calcite/{p-f7481a5b.system.entry.js → p-2a743b41.system.entry.js} +2 -2
- package/dist/calcite/{p-f200ceb7.system.entry.js → p-2dee422c.system.entry.js} +2 -2
- package/dist/calcite/{p-271b3555.system.entry.js → p-328830de.system.entry.js} +2 -2
- package/dist/calcite/{p-e0ab7e38.entry.js → p-32b753c4.entry.js} +2 -2
- package/dist/calcite/{p-88633a5f.system.entry.js → p-33845d5b.system.entry.js} +2 -2
- package/dist/calcite/{p-d9b2646c.system.entry.js → p-33ee66c9.system.entry.js} +2 -2
- package/dist/calcite/{p-8270f683.system.js → p-35b01278.system.js} +3 -3
- package/dist/calcite/{p-db7068cb.js → p-37711534.js} +1 -1
- package/dist/calcite/{p-5b1c8598.system.entry.js → p-3789d49d.system.entry.js} +2 -2
- package/dist/calcite/{p-fcb2ff51.js → p-38d46205.js} +1 -1
- package/dist/calcite/p-3b9eeea0.system.js +6 -0
- package/dist/calcite/{p-90bb8af7.system.entry.js → p-3d9d8cc2.system.entry.js} +2 -2
- package/dist/calcite/{p-204cda47.entry.js → p-3ef08257.entry.js} +2 -2
- package/dist/calcite/{p-cd41f4a3.entry.js → p-404c5ccb.entry.js} +2 -2
- package/dist/calcite/{p-95e23b85.entry.js → p-437d9469.entry.js} +2 -2
- package/dist/calcite/{p-149f567e.entry.js → p-438e073a.entry.js} +2 -2
- package/dist/calcite/{p-e0f3d151.entry.js → p-45157ebd.entry.js} +2 -2
- package/dist/calcite/{p-151ef522.system.js → p-47e17bfe.system.js} +1 -1
- package/dist/calcite/{p-57b6f7fb.system.entry.js → p-480110aa.system.entry.js} +3 -3
- package/dist/calcite/{p-84f563f6.js → p-49228240.js} +1 -1
- package/dist/calcite/{p-c44fe786.js → p-499e3e8e.js} +1 -1
- package/dist/calcite/{p-53a423d9.system.entry.js → p-4b7bc432.system.entry.js} +2 -2
- package/dist/calcite/{p-23a52c67.entry.js → p-4b7d8730.entry.js} +2 -2
- package/dist/calcite/{p-00b8ff95.system.entry.js → p-4bc6cf58.system.entry.js} +2 -2
- package/dist/calcite/{p-a2fb1d9c.system.js → p-4cc55c6b.system.js} +1 -1
- package/dist/calcite/{p-24daa1f0.entry.js → p-4d6c3948.entry.js} +2 -2
- package/dist/calcite/{p-c8a4f49a.entry.js → p-4ff43ccd.entry.js} +2 -2
- package/dist/calcite/{p-b330e520.system.entry.js → p-56f528e7.system.entry.js} +2 -2
- package/dist/calcite/{p-2ed8b011.system.js → p-576c6d90.system.js} +1 -1
- package/dist/calcite/{p-a7798679.entry.js → p-580abf04.entry.js} +2 -2
- package/dist/calcite/{p-6d315566.system.entry.js → p-59f13078.system.entry.js} +2 -2
- package/dist/calcite/{p-abb072bc.js → p-5b999a6c.js} +1 -1
- package/dist/calcite/{p-635720f4.system.js → p-5bcb3550.system.js} +2 -2
- package/dist/calcite/{p-b451a135.entry.js → p-5bf1d9dd.entry.js} +2 -2
- package/dist/calcite/{p-3b28ce55.system.entry.js → p-5c848d3b.system.entry.js} +2 -2
- package/dist/calcite/{p-add9d199.system.entry.js → p-5d4ed662.system.entry.js} +2 -2
- package/dist/calcite/{p-938ee739.system.entry.js → p-60ed92d7.system.entry.js} +2 -2
- package/dist/calcite/{p-9a7290b9.system.entry.js → p-61d0aee5.system.entry.js} +2 -2
- package/dist/calcite/{p-f1e819d0.js → p-63f9e247.js} +2 -2
- package/dist/calcite/{p-95d58e86.system.entry.js → p-668c6c3f.system.entry.js} +2 -2
- package/dist/calcite/{p-8c18de14.system.entry.js → p-693b6420.system.entry.js} +3 -3
- package/dist/calcite/{p-031fe642.system.js → p-6c6dcd8d.system.js} +1 -1
- package/dist/calcite/{p-27db08bc.entry.js → p-72a89fd7.entry.js} +2 -2
- package/dist/calcite/{p-e2087090.js → p-72b4a0ba.js} +2 -2
- package/dist/calcite/{p-8a4187a1.system.entry.js → p-733efb75.system.entry.js} +2 -2
- package/dist/calcite/{p-b9a92e2a.system.entry.js → p-748fa3dd.system.entry.js} +3 -3
- package/dist/calcite/{p-fe2ddf18.system.entry.js → p-74b61b36.system.entry.js} +2 -2
- package/dist/calcite/{p-8666e681.system.entry.js → p-754f723b.system.entry.js} +3 -3
- package/dist/calcite/{p-584cb04b.system.js → p-7792e0a6.system.js} +1 -1
- package/dist/calcite/{p-4db1c603.system.entry.js → p-78dc480f.system.entry.js} +2 -2
- package/dist/calcite/{p-996d8919.entry.js → p-7b4c1ad2.entry.js} +2 -2
- package/dist/calcite/{p-3c9f7afb.entry.js → p-7bf92781.entry.js} +2 -2
- package/dist/calcite/{p-34ff2c2f.system.js → p-7c185bac.system.js} +1 -1
- package/dist/calcite/{p-efd107ed.entry.js → p-7c8e376b.entry.js} +2 -2
- package/dist/calcite/{p-1087f996.system.js → p-7def66ec.system.js} +1 -1
- package/dist/calcite/{p-49d40985.system.entry.js → p-7e9cc96c.system.entry.js} +2 -2
- package/dist/calcite/p-83666d45.js +6 -0
- package/dist/calcite/p-8434e35e.system.js +6 -0
- package/dist/calcite/{p-d0043d6d.system.js → p-84382537.system.js} +1 -1
- package/dist/calcite/{p-f5ef4bdb.system.js → p-864d818a.system.js} +2 -2
- package/dist/calcite/{p-09d4e789.system.js → p-86c1da3b.system.js} +1 -1
- package/dist/calcite/{p-62e5d329.entry.js → p-8a72d959.entry.js} +2 -2
- package/dist/calcite/{p-98f5945a.system.js → p-8f1ef9e3.system.js} +2 -2
- package/dist/calcite/{p-4a0d41e4.js → p-904f11d1.js} +1 -1
- package/dist/calcite/{p-292b7dab.js → p-912b88e8.js} +1 -1
- package/dist/calcite/{p-878cfb6b.entry.js → p-96941e56.entry.js} +2 -2
- package/dist/calcite/{p-76d5c5ab.entry.js → p-9cdc7258.entry.js} +2 -2
- package/dist/calcite/p-9eadec21.system.entry.js +6 -0
- package/dist/calcite/{p-3fc47895.entry.js → p-9f224e5a.entry.js} +2 -2
- package/dist/calcite/{p-61653e5f.entry.js → p-a019237b.entry.js} +2 -2
- package/dist/calcite/{p-3a1beee3.system.js → p-a0fed957.system.js} +2 -2
- package/dist/calcite/{p-3b02f6a7.entry.js → p-a105b7a9.entry.js} +2 -2
- package/dist/calcite/{p-26803235.entry.js → p-a1aa7ee6.entry.js} +2 -2
- package/dist/calcite/{p-389bfb3f.js → p-a32cac6b.js} +2 -2
- package/dist/calcite/{p-dfce3d62.system.entry.js → p-a3789d06.system.entry.js} +2 -2
- package/dist/calcite/{p-017caeef.entry.js → p-a4d9aa0a.entry.js} +2 -2
- package/dist/calcite/{p-01225516.entry.js → p-a4ea532b.entry.js} +2 -2
- package/dist/calcite/{p-e85df792.system.entry.js → p-a540ae2e.system.entry.js} +2 -2
- package/dist/calcite/p-a5684301.entry.js +6 -0
- package/dist/calcite/{p-afd70310.js → p-a60d4cb7.js} +1 -1
- package/dist/calcite/p-a8b2237b.js +6 -0
- package/dist/calcite/{p-dca64758.system.entry.js → p-aa416cb5.system.entry.js} +2 -2
- package/dist/calcite/{p-27dd1893.entry.js → p-aa8fc73f.entry.js} +2 -2
- package/dist/calcite/{p-87b06a4a.js → p-abd4e5a8.js} +1 -1
- package/dist/calcite/{p-c11c8810.system.entry.js → p-ac8db979.system.entry.js} +2 -2
- package/dist/calcite/{p-325c25e7.entry.js → p-adab454f.entry.js} +2 -2
- package/dist/calcite/{p-58c76aff.entry.js → p-adeecd96.entry.js} +2 -2
- package/dist/calcite/{p-25116f74.system.entry.js → p-ae90837b.system.entry.js} +2 -2
- package/dist/calcite/{p-9ac11a5a.system.entry.js → p-afa91b41.system.entry.js} +2 -2
- package/dist/calcite/{p-89151794.system.entry.js → p-b05e7ca1.system.entry.js} +2 -2
- package/dist/calcite/{p-20bd3399.system.entry.js → p-b0aeacc3.system.entry.js} +2 -2
- package/dist/calcite/{p-fc45579a.entry.js → p-b1c5f13a.entry.js} +2 -2
- package/dist/calcite/{p-f934284b.system.entry.js → p-b2dd4d80.system.entry.js} +2 -2
- package/dist/calcite/{p-d91d56df.entry.js → p-b4195586.entry.js} +2 -2
- package/dist/calcite/{p-489e9825.system.entry.js → p-b496305b.system.entry.js} +3 -3
- package/dist/calcite/{p-ed90ef39.entry.js → p-b52a5633.entry.js} +2 -2
- package/dist/calcite/p-b850c351.entry.js +6 -0
- package/dist/calcite/{p-fe8a9479.system.js → p-b87c3776.system.js} +2 -2
- package/dist/calcite/{p-1534218b.system.js → p-bbab7f59.system.js} +1 -1
- package/dist/calcite/{p-f4b01f6e.js → p-bbe16621.js} +1 -1
- package/dist/calcite/{p-a65a2b93.system.js → p-bc258f16.system.js} +1 -1
- package/dist/calcite/{p-0d4fb8ca.entry.js → p-bf548bd9.entry.js} +2 -2
- package/dist/calcite/{p-288354f0.system.js → p-c093135e.system.js} +2 -2
- package/dist/calcite/{p-c8e7775c.system.entry.js → p-c117dcf5.system.entry.js} +2 -2
- package/dist/calcite/{p-6ab55ea8.entry.js → p-c1b32a3d.entry.js} +2 -2
- package/dist/calcite/{p-39c28eb7.entry.js → p-c4814258.entry.js} +2 -2
- package/dist/calcite/p-c64bb5ab.entry.js +6 -0
- package/dist/calcite/p-c6ca0a3f.system.js +6 -0
- package/dist/calcite/{p-8fed02c7.js → p-c6f1b820.js} +1 -1
- package/dist/calcite/{p-fc321a74.system.entry.js → p-c74e6ff5.system.entry.js} +2 -2
- package/dist/calcite/{p-6b815a3f.system.js → p-c8c7e371.system.js} +2 -2
- package/dist/calcite/{p-cf2ff728.system.entry.js → p-c9df277f.system.entry.js} +2 -2
- package/dist/calcite/{p-9416a65c.entry.js → p-ca63fb4e.entry.js} +2 -2
- package/dist/calcite/{p-afaa2b92.entry.js → p-ccd64eb0.entry.js} +2 -2
- package/dist/calcite/{p-5544e264.entry.js → p-ccdbf308.entry.js} +2 -2
- package/dist/calcite/{p-d9cf3438.system.entry.js → p-cd0cfb2f.system.entry.js} +2 -2
- package/dist/calcite/{p-70f9bfcf.system.entry.js → p-ce8b973f.system.entry.js} +2 -2
- package/dist/calcite/{p-fb374b42.entry.js → p-d270b62c.entry.js} +2 -2
- package/dist/calcite/{p-e8b42645.js → p-d281f769.js} +1 -1
- package/dist/calcite/{p-deefbe33.system.js → p-d2ab4bdc.system.js} +1 -1
- package/dist/calcite/{p-61379359.js → p-d3040412.js} +2 -2
- package/dist/calcite/{p-42a122ab.entry.js → p-d38ba3ff.entry.js} +2 -2
- package/dist/calcite/{p-be70e32c.entry.js → p-d5f69973.entry.js} +2 -2
- package/dist/calcite/{p-b4ed3310.system.entry.js → p-d6831fe3.system.entry.js} +2 -2
- package/dist/calcite/{p-1774ae47.js → p-d741852a.js} +2 -2
- package/dist/calcite/{p-99834ee5.system.js → p-d941f3d7.system.js} +1 -1
- package/dist/calcite/p-e0541094.system.entry.js +6 -0
- package/dist/calcite/{p-a6c2e6e3.entry.js → p-e22b4af5.entry.js} +2 -2
- package/dist/calcite/{p-9a6b21d8.entry.js → p-e7ed03fe.entry.js} +2 -2
- package/dist/calcite/p-e828a3b7.system.entry.js +6 -0
- package/dist/calcite/{p-140247a4.entry.js → p-ea2143ca.entry.js} +2 -2
- package/dist/calcite/{p-b65a82b9.system.js → p-ec28cc42.system.js} +1 -1
- package/dist/calcite/{p-221e3f32.system.entry.js → p-f5da0db4.system.entry.js} +2 -2
- package/dist/calcite/{p-c49a8303.system.entry.js → p-f5fddea4.system.entry.js} +2 -2
- package/dist/calcite/{p-d522d0d3.entry.js → p-f668746f.entry.js} +2 -2
- package/dist/calcite/{p-0296d6e5.js → p-f6f30d24.js} +2 -2
- package/dist/calcite/{p-ad9ce24b.system.entry.js → p-f810e95d.system.entry.js} +2 -2
- package/dist/calcite/{p-18679417.js → p-f89e6de1.js} +1 -1
- package/dist/calcite/{p-80362407.entry.js → p-f9b4f2b0.entry.js} +2 -2
- package/dist/calcite/{p-874248a5.entry.js → p-fba03004.entry.js} +2 -2
- package/dist/calcite/{p-c82c15ee.system.entry.js → p-fbde199c.system.entry.js} +2 -2
- package/dist/calcite/{p-12f67a05.entry.js → p-fc0b8a95.entry.js} +2 -2
- package/dist/calcite/{p-3daaf28f.system.entry.js → p-fccd5648.system.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-34dbe39b.js → ExpandToggle-603be21c.js} +21 -10
- package/dist/cjs/{Heading-12d798ce.js → Heading-e26750e9.js} +2 -2
- package/dist/cjs/{array-e582a132.js → array-181cd592.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-action-bar.cjs.entry.js +29 -21
- package/dist/cjs/calcite-action-group.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-menu.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action.cjs.entry.js +6 -6
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -5
- package/dist/cjs/calcite-avatar.cjs.entry.js +5 -5
- package/dist/cjs/calcite-block_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-card.cjs.entry.js +6 -6
- package/dist/cjs/calcite-checkbox.cjs.entry.js +7 -7
- package/dist/cjs/calcite-chip.cjs.entry.js +6 -6
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +9 -9
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +37 -36
- 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 +4 -4
- package/dist/cjs/calcite-icon.cjs.entry.js +5 -5
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-message.cjs.entry.js +4 -4
- package/dist/cjs/calcite-input-number.cjs.entry.js +11 -11
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +9 -9
- 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 +5 -5
- package/dist/cjs/calcite-panel.cjs.entry.js +9 -9
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-popover_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +8 -8
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
- package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
- package/dist/cjs/calcite-shell_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-switch.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tab_4.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-tile.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tip_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +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 +3 -3
- package/dist/cjs/{conditionalSlot-352bec3d.js → conditionalSlot-02fc5606.js} +3 -3
- package/dist/cjs/{debounce-6cd1535e.js → debounce-e4dd028c.js} +1 -1
- package/dist/cjs/{dom-ed822c13.js → dom-e0f73c63.js} +2 -2
- package/dist/cjs/{floating-ui-ddaf1746.js → floating-ui-7f8ad32d.js} +2 -2
- package/dist/cjs/{forIn-9c2acd4a.js → forIn-36af86fa.js} +2 -2
- package/dist/cjs/{form-e3be7149.js → form-59d6059f.js} +3 -3
- package/dist/cjs/{guid-c86839da.js → guid-955076f7.js} +1 -1
- package/dist/cjs/{index-33f65b26.js → index-305cfbf8.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-a3821d41.js → interactive-300a5a8c.js} +1 -1
- package/dist/cjs/{interfaces-0d6f4796.js → interfaces-f4ba9171.js} +1 -1
- package/dist/cjs/{key-a2e96b2d.js → key-47458bff.js} +1 -1
- package/dist/cjs/{label-bd9a47bd.js → label-71cc342a.js} +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{locale-48e984a4.js → locale-197adffa.js} +2 -2
- package/dist/cjs/{math-b4d12de8.js → math-0d3c02ac.js} +1 -1
- package/dist/cjs/{observers-11defbec.js → observers-338f5a0e.js} +1 -1
- package/dist/cjs/{resources-1388772a.js → resources-375506a4.js} +1 -1
- package/dist/cjs/{resources-826e04f0.js → resources-377246d0.js} +3 -3
- package/dist/cjs/{resources-ca50aa50.js → resources-3aa3e75b.js} +5 -5
- package/dist/cjs/{resources-0b605ada.js → resources-e62b43d8.js} +1 -1
- package/dist/cjs/{sortable.esm-67fdfa55.js → sortable.esm-cd2f8082.js} +1 -1
- package/dist/cjs/{utils-1a470335.js → utils-5f59cc7c.js} +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/accordion-item/interfaces.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.css +31 -5
- package/dist/collection/components/action-bar/action-bar.js +46 -12
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +16 -6
- package/dist/collection/components/action-group/action-group.js +3 -3
- 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.css +11 -7
- package/dist/collection/components/action-pad/action-pad.js +3 -3
- 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/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +34 -32
- 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 +2 -2
- 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/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-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/interfaces.js +1 -1
- package/dist/collection/components/input-number/resources.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/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-group/interfaces.js +1 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/rating/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stepper/interfaces.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/interfaces.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/interfaces.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/interfaces.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/interfaces.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +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/interfaces.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +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/floating-ui.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/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +17 -7
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +3 -3
- 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 +22 -13
- 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 +4 -4
- 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 +2 -2
- 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-number.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 +31 -29
- package/dist/components/filter.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/forIn.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/interfaces.js +1 -1
- package/dist/components/interfaces2.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/custom-elements/index.js +71 -52
- package/dist/esm/{ExpandToggle-8ad8aac0.js → ExpandToggle-9a766aef.js} +21 -11
- package/dist/esm/{Heading-4d9f4f89.js → Heading-1d8ac13b.js} +2 -2
- package/dist/esm/{array-c38e9698.js → array-01c0fc97.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +6 -6
- package/dist/esm/calcite-action-bar.entry.js +29 -21
- package/dist/esm/calcite-action-group.entry.js +10 -10
- package/dist/esm/calcite-action-menu.entry.js +8 -8
- package/dist/esm/calcite-action-pad.entry.js +12 -12
- package/dist/esm/calcite-action.entry.js +6 -6
- package/dist/esm/calcite-alert.entry.js +5 -5
- package/dist/esm/calcite-avatar.entry.js +5 -5
- package/dist/esm/calcite-block_2.entry.js +8 -8
- package/dist/esm/calcite-button.entry.js +8 -8
- package/dist/esm/calcite-card.entry.js +6 -6
- package/dist/esm/calcite-checkbox.entry.js +7 -7
- package/dist/esm/calcite-chip.entry.js +6 -6
- package/dist/esm/calcite-color-picker_3.entry.js +8 -8
- package/dist/esm/calcite-combobox_3.entry.js +12 -12
- package/dist/esm/calcite-date-picker_4.entry.js +9 -9
- package/dist/esm/calcite-dropdown_3.entry.js +37 -36
- 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 +4 -4
- package/dist/esm/calcite-icon.entry.js +5 -5
- package/dist/esm/calcite-inline-editable.entry.js +7 -7
- package/dist/esm/calcite-input-date-picker.entry.js +11 -11
- package/dist/esm/calcite-input-message.entry.js +4 -4
- package/dist/esm/calcite-input-number.entry.js +11 -11
- package/dist/esm/calcite-input-time-picker_2.entry.js +9 -9
- 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 +5 -5
- package/dist/esm/calcite-panel.entry.js +9 -9
- package/dist/esm/calcite-pick-list_3.entry.js +11 -11
- package/dist/esm/calcite-popover_2.entry.js +7 -7
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +3 -3
- package/dist/esm/calcite-radio-button.entry.js +8 -8
- package/dist/esm/calcite-radio-group_2.entry.js +7 -7
- package/dist/esm/calcite-rating.entry.js +8 -8
- package/dist/esm/calcite-scrim.entry.js +2 -2
- package/dist/esm/calcite-shell_3.entry.js +7 -7
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +5 -5
- package/dist/esm/calcite-switch.entry.js +7 -7
- package/dist/esm/calcite-tab_4.entry.js +6 -6
- package/dist/esm/calcite-tile-select_2.entry.js +4 -4
- package/dist/esm/calcite-tile.entry.js +7 -7
- package/dist/esm/calcite-tip_3.entry.js +7 -7
- package/dist/esm/calcite-tooltip_2.entry.js +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 +3 -3
- package/dist/esm/{conditionalSlot-e49df07c.js → conditionalSlot-c6d33dce.js} +3 -3
- package/dist/esm/{debounce-76a1065a.js → debounce-3e0197e5.js} +1 -1
- package/dist/esm/{dom-19ab3d2f.js → dom-d90fe08d.js} +2 -2
- package/dist/esm/{floating-ui-4afc064e.js → floating-ui-46c5b613.js} +2 -2
- package/dist/esm/{forIn-1c3a0d8e.js → forIn-47801022.js} +2 -2
- package/dist/esm/{form-ecbc6fec.js → form-3b0e9050.js} +3 -3
- package/dist/esm/{guid-ba74e5d4.js → guid-ac825a40.js} +1 -1
- package/dist/esm/{index-5048a317.js → index-a3160f12.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-71744e3e.js → interactive-b44d43a3.js} +1 -1
- package/dist/esm/{interfaces-e771f6c8.js → interfaces-3a88d705.js} +1 -1
- package/dist/esm/{key-af81a004.js → key-95b5c356.js} +1 -1
- package/dist/esm/{label-dfcfa9e0.js → label-78d76445.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{locale-ab6b5afc.js → locale-855e3c53.js} +2 -2
- package/dist/esm/{math-a5e24a73.js → math-4579adc8.js} +1 -1
- package/dist/esm/{observers-61a2bb4f.js → observers-365eaca9.js} +1 -1
- package/dist/esm/{resources-c995bb5e.js → resources-4b4a5920.js} +3 -3
- package/dist/esm/{resources-9348154b.js → resources-5b92e29d.js} +1 -1
- package/dist/esm/{resources-e1d5ca1c.js → resources-832f46ae.js} +1 -1
- package/dist/esm/{resources-566ead7b.js → resources-994e0a78.js} +5 -5
- package/dist/esm/{sortable.esm-d0f38173.js → sortable.esm-4ec6af7d.js} +1 -1
- package/dist/esm/{utils-531de8fa.js → utils-21e6f8f9.js} +1 -1
- package/dist/esm-es5/ExpandToggle-9a766aef.js +6 -0
- package/dist/esm-es5/{Heading-4d9f4f89.js → Heading-1d8ac13b.js} +2 -2
- package/dist/esm-es5/{array-c38e9698.js → array-01c0fc97.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +2 -2
- package/dist/esm-es5/calcite-action-bar.entry.js +3 -3
- 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 +3 -3
- 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-number.entry.js +2 -2
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +2 -2
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-loader.entry.js +2 -2
- package/dist/esm-es5/calcite-modal.entry.js +2 -2
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-option_3.entry.js +2 -2
- package/dist/esm-es5/calcite-pagination.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
- package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
- package/dist/esm-es5/calcite-progress.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button-group.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-button.entry.js +2 -2
- package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm-es5/calcite-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-scrim.entry.js +2 -2
- package/dist/esm-es5/calcite-shell_3.entry.js +2 -2
- package/dist/esm-es5/calcite-sortable-list.entry.js +2 -2
- package/dist/esm-es5/calcite-split-button.entry.js +2 -2
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tile.entry.js +2 -2
- package/dist/esm-es5/calcite-tip_3.entry.js +3 -3
- package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm-es5/calcite-tree_2.entry.js +2 -2
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +2 -2
- package/dist/esm-es5/{conditionalSlot-e49df07c.js → conditionalSlot-c6d33dce.js} +2 -2
- package/dist/esm-es5/{debounce-76a1065a.js → debounce-3e0197e5.js} +1 -1
- package/dist/esm-es5/{dom-19ab3d2f.js → dom-d90fe08d.js} +2 -2
- package/dist/esm-es5/{floating-ui-4afc064e.js → floating-ui-46c5b613.js} +2 -2
- package/dist/esm-es5/{forIn-1c3a0d8e.js → forIn-47801022.js} +2 -2
- package/dist/esm-es5/{form-ecbc6fec.js → form-3b0e9050.js} +2 -2
- package/dist/esm-es5/{guid-ba74e5d4.js → guid-ac825a40.js} +1 -1
- package/dist/esm-es5/{index-5048a317.js → index-a3160f12.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{interactive-71744e3e.js → interactive-b44d43a3.js} +1 -1
- package/dist/esm-es5/{interfaces-e771f6c8.js → interfaces-3a88d705.js} +1 -1
- package/dist/esm-es5/{key-af81a004.js → key-95b5c356.js} +1 -1
- package/dist/esm-es5/{label-dfcfa9e0.js → label-78d76445.js} +2 -2
- package/dist/esm-es5/loader.js +2 -2
- package/dist/esm-es5/{locale-ab6b5afc.js → locale-855e3c53.js} +2 -2
- package/dist/esm-es5/{math-a5e24a73.js → math-4579adc8.js} +1 -1
- package/dist/esm-es5/{observers-61a2bb4f.js → observers-365eaca9.js} +1 -1
- package/dist/esm-es5/{resources-c995bb5e.js → resources-4b4a5920.js} +2 -2
- package/dist/esm-es5/{resources-9348154b.js → resources-5b92e29d.js} +1 -1
- package/dist/esm-es5/{resources-e1d5ca1c.js → resources-832f46ae.js} +1 -1
- package/dist/esm-es5/{resources-566ead7b.js → resources-994e0a78.js} +2 -2
- package/dist/esm-es5/{sortable.esm-d0f38173.js → sortable.esm-4ec6af7d.js} +1 -1
- package/dist/esm-es5/{utils-531de8fa.js → utils-21e6f8f9.js} +1 -1
- package/dist/extras/docs-json.json +37 -3
- 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/action-bar/action-bar.d.ts +9 -2
- package/dist/types/components/action-bar/utils.d.ts +9 -1
- package/dist/types/components/dropdown/dropdown.d.ts +3 -2
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +72 -52
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/calcite/p-1d97eff4.entry.js +0 -6
- package/dist/calcite/p-23f02457.system.js +0 -6
- package/dist/calcite/p-2a7e2957.system.js +0 -6
- package/dist/calcite/p-2b1db9be.js +0 -6
- package/dist/calcite/p-50513c03.entry.js +0 -6
- package/dist/calcite/p-516a5c68.system.entry.js +0 -6
- package/dist/calcite/p-9267c232.system.entry.js +0 -6
- package/dist/calcite/p-9ac7eaf9.entry.js +0 -6
- package/dist/calcite/p-b2fd8207.system.js +0 -6
- package/dist/calcite/p-ced28d9d.system.entry.js +0 -6
- package/dist/calcite/p-e64aaaff.entry.js +0 -6
- package/dist/calcite/p-eb357ea6.entry.js +0 -6
- package/dist/calcite/p-ec6c73c0.js +0 -6
- package/dist/esm-es5/ExpandToggle-8ad8aac0.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
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,r){function o(t){try{
|
|
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,r){function o(t){try{s(a.next(t))}catch(t){r(t)}}function c(t){try{s(a["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):n(t.value).then(o,c)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,n,r,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(t){return function(e){return s([t,e])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-beta.
|
|
6
|
-
*/System.register(["./p-09d4e789.system.js","./p-f5ef4bdb.system.js","./p-deefbe33.system.js","./p-b65a82b9.system.js","./p-98f5945a.system.js","./p-fe8a9479.system.js","./p-2a7e2957.system.js","./p-1087f996.system.js","./p-99834ee5.system.js","./p-151ef522.system.js"],(function(t){"use strict";var e,i,a,n,r,o,s,c,l,m,d,f,p,u,h,b,y,w,g,k,v,x,D,_,I,z,C,L,H,j,P,F,S,E,R,W,V,A;return{setters:[function(t){e=t.r;i=t.c;a=t.h;n=t.g;r=t.F},function(t){o=t.m;s=t.d;c=t.a;l=t.s;m=t.h;d=t.b;f=t.k;p=t.i;u=t.e;h=t.f;b=t.r;y=t.l;w=t.n;g=t.j;k=t.o;v=t.p;x=t.I;D=t.L;_=t.q;I=t.t;z=t.H;C=t.T;L=t.u;H=t.C;j=t.S},function(t){P=t.c},function(t){F=t.u},function(t){S=t.g;E=t.t},function(t){R=t.H;W=t.c},function(t){V=t.c;A=t.d},function(){},function(){},function(){}],execute:function(){var O="@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([filter-enabled]) header{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:1}calcite-filter{-webkit-margin-after:0px;margin-block-end:0px}:host([loading][disabled]){min-block-size:2rem}";var K=t("calcite_pick_list",function(){function t(t){var a=this;e(this,t);this.calciteListChange=i(this,"calciteListChange",7);this.disabled=false;this.filterEnabled=false;this.loading=false;this.multiple=false;this.selectionFollowsFocus=false;this.selectedValues=new Map;this.dataForFilter=[];this.lastSelectedItem=null;this.mutationObserver=P("mutation",o.bind(this));this.setFilterEl=function(t){a.filterEl=t};this.deselectRemovedItems=s.bind(this);this.deselectSiblingItems=c.bind(this);this.selectSiblings=l.bind(this);this.handleFilter=m.bind(this);this.getItemData=d.bind(this);this.keyDownHandler=f.bind(this)}t.prototype.connectedCallback=function(){p.call(this);u.call(this)};t.prototype.disconnectedCallback=function(){h.call(this)};t.prototype.componentDidRender=function(){F(this)};t.prototype.calciteListItemRemoveHandler=function(t){b.call(this,t)};t.prototype.calciteListItemChangeHandler=function(t){y.call(this,t)};t.prototype.calciteInternalListItemPropsChangeHandler=function(t){t.stopPropagation();this.setUpFilter()};t.prototype.calciteInternalListItemValueChangeHandler=function(t){w.call(this,t);t.stopPropagation()};t.prototype.calciteListFocusOutHandler=function(t){g.call(this,t)};t.prototype.setUpItems=function(){k.call(this,"calcite-pick-list-item")};t.prototype.setUpFilter=function(){if(this.filterEnabled){this.dataForFilter=this.getItemData()}};t.prototype.getSelectedItems=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.selectedValues]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,v.call(this,t)]}))}))};t.prototype.getIconType=function(){return this.multiple?x.square:x.circle};t.prototype.render=function(){return a(D,{onKeyDown:this.keyDownHandler,props:this})};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());K.style=O;var T="@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:last-child){-webkit-margin-after:0px;margin-block-end:0px}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}h3.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{-webkit-margin-start:1.5rem;margin-inline-start:1.5rem}";var U=t("calcite_pick_list_group",function(){function t(t){e(this,t)}t.prototype.connectedCallback=function(){V(this)};t.prototype.disconnectedCallback=function(){A(this)};t.prototype.render=function(){var t;var e;var i=this,n=i.el,o=i.groupTitle,s=i.headingLevel;var c=S(n,_.parentItem)!==null;var l=(t={},t[I.container]=true,t[I.indented]=c,t);var m=o;var d=(e=n.closest("calcite-pick-list"))===null||e===void 0?void 0:e.headingLevel;var f=d?W(d+1):null;var p=s||f||z;return a(r,null,m?a(R,{class:I.heading,level:p},m):null,a("slot",{name:_.parentItem}),a("section",{class:l},a("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());U.style=T;var q='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{margin:0px;-webkit-margin-after:1px;margin-block-end:1px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition:background-color var(--calcite-animation-timing);transition:background-color var(--calcite-animation-timing);-webkit-animation:calcite-fade-in var(--calcite-animation-timing);animation:calcite-fade-in var(--calcite-animation-timing)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;cursor:pointer;-ms-flex-align:center;align-items:center;background-color:transparent;outline-color:transparent}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover{background-color:var(--calcite-ui-foreground-2)}:host([non-interactive]:hover){background-color:var(--calcite-ui-foreground-1)}:host([non-interactive]) .label,:host([non-interactive]) .icon{pointer-events:none}.icon{margin-block:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:0.25rem;color:var(--calcite-ui-brand);-ms-flex:0 0 auto;flex:0 0 auto;line-height:0}.icon:hover{background-color:var(--calcite-ui-foreground-2)}.icon-dot{display:-ms-flexbox;display:flex;inline-size:1.5rem;-ms-flex-align:center;align-items:center;padding:0.5rem}.icon-dot:before{opacity:0;content:"•"}.icon calcite-icon{opacity:0}:host([selected]) .icon-dot:before,:host([selected]) .icon calcite-icon{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing);opacity:1}.text-container{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word}.title{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}.description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.actions{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end}.actions--start~.label{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}';var G=t("calcite_pick_list_item",function(){function t(t){var a=this;e(this,t);this.calciteListItemChange=i(this,"calciteListItemChange",7);this.calciteListItemRemove=i(this,"calciteListItemRemove",7);this.calciteInternalListItemPropsChange=i(this,"calciteInternalListItemPropsChange",7);this.calciteInternalListItemValueChange=i(this,"calciteInternalListItemValueChange",7);this.disabled=false;this.disableDeselect=false;this.nonInteractive=false;this.icon=null;this.removable=false;this.selected=false;this.intlRemove=C.remove;this.pickListClickHandler=function(t){if(a.disabled||a.disableDeselect&&a.selected||a.nonInteractive){return}a.shiftPressed=t.shiftKey;a.selected=!a.selected};this.pickListKeyDownHandler=function(t){if(t.key===" "){t.preventDefault();if(a.disableDeselect&&a.selected||a.nonInteractive){return}a.selected=!a.selected}};this.removeClickHandler=function(){a.calciteListItemRemove.emit()}}t.prototype.descriptionWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.labelWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.metadataWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.selectedWatchHandler=function(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed});this.shiftPressed=false};t.prototype.valueWatchHandler=function(t,e){this.calciteInternalListItemValueChange.emit({oldValue:e,newValue:t})};t.prototype.connectedCallback=function(){V(this)};t.prototype.disconnectedCallback=function(){A(this)};t.prototype.componentDidRender=function(){F(this,this.el.closest("calcite-pick-list")?"managed":false)};t.prototype.toggleSelected=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.selected=typeof t==="boolean"?t:!this.selected;return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.focusEl)===null||t===void 0?void 0:t.focus();return[2]}))}))};t.prototype.renderIcon=function(){var t;var e=this.icon;if(!e){return null}return a("span",{class:(t={},t[H.icon]=true,t[H.iconDot]=e===x.circle,t),onClick:this.pickListClickHandler},e===x.square?a("calcite-icon",{icon:L.checked,scale:"s"}):null)};t.prototype.renderRemoveAction=function(){return this.removable?a("calcite-action",{class:H.remove,icon:L.remove,onCalciteActionClick:this.removeClickHandler,slot:j.actionsEnd,text:this.intlRemove}):null};t.prototype.renderActionsStart=function(){var t;var e=this.el;var i=S(e,j.actionsStart);return i?a("div",{class:(t={},t[H.actions]=true,t[H.actionsStart]=true,t)},a("slot",{name:j.actionsStart})):null};t.prototype.renderActionsEnd=function(){var t;var e=this,i=e.el,n=e.removable;var r=S(i,j.actionsEnd);return r||n?a("div",{class:(t={},t[H.actions]=true,t[H.actionsEnd]=true,t)},a("slot",{name:j.actionsEnd}),this.renderRemoveAction()):null};t.prototype.render=function(){var t=this;var e=this,i=e.description,n=e.label;return a(r,null,this.renderIcon(),this.renderActionsStart(),a("label",{"aria-label":n,class:H.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:function(e){return t.focusEl=e},tabIndex:0},a("div",{"aria-checked":E(this.selected),class:H.textContainer,role:"menuitemcheckbox"},a("span",{class:H.title},n),i?a("span",{class:H.description},i):null)),this.renderActionsEnd())};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{description:["descriptionWatchHandler"],label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}},enumerable:false,configurable:true});return t}());G.style=q}}}));
|
|
5
|
+
* v1.0.0-beta.88
|
|
6
|
+
*/System.register(["./p-86c1da3b.system.js","./p-864d818a.system.js","./p-d2ab4bdc.system.js","./p-ec28cc42.system.js","./p-8f1ef9e3.system.js","./p-b87c3776.system.js","./p-c6ca0a3f.system.js","./p-7def66ec.system.js","./p-d941f3d7.system.js","./p-47e17bfe.system.js"],(function(t){"use strict";var e,i,a,n,r,o,c,s,l,m,d,f,p,u,h,b,y,w,g,k,v,x,D,_,I,z,C,L,H,j,P,F,S,E,R,W,V,A;return{setters:[function(t){e=t.r;i=t.c;a=t.h;n=t.g;r=t.F},function(t){o=t.m;c=t.d;s=t.a;l=t.s;m=t.h;d=t.b;f=t.k;p=t.i;u=t.e;h=t.f;b=t.r;y=t.l;w=t.n;g=t.j;k=t.o;v=t.p;x=t.I;D=t.L;_=t.q;I=t.t;z=t.H;C=t.T;L=t.u;H=t.C;j=t.S},function(t){P=t.c},function(t){F=t.u},function(t){S=t.g;E=t.t},function(t){R=t.H;W=t.c},function(t){V=t.c;A=t.d},function(){},function(){},function(){}],execute:function(){var O="@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([filter-enabled]) header{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end;background-color:var(--calcite-ui-foreground-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([filter-enabled]) header.sticky-pos{position:-webkit-sticky;position:sticky;inset-block-start:0px;z-index:1}calcite-filter{-webkit-margin-after:0px;margin-block-end:0px}:host([loading][disabled]){min-block-size:2rem}";var K=t("calcite_pick_list",function(){function t(t){var a=this;e(this,t);this.calciteListChange=i(this,"calciteListChange",7);this.disabled=false;this.filterEnabled=false;this.loading=false;this.multiple=false;this.selectionFollowsFocus=false;this.selectedValues=new Map;this.dataForFilter=[];this.lastSelectedItem=null;this.mutationObserver=P("mutation",o.bind(this));this.setFilterEl=function(t){a.filterEl=t};this.deselectRemovedItems=c.bind(this);this.deselectSiblingItems=s.bind(this);this.selectSiblings=l.bind(this);this.handleFilter=m.bind(this);this.getItemData=d.bind(this);this.keyDownHandler=f.bind(this)}t.prototype.connectedCallback=function(){p.call(this);u.call(this)};t.prototype.disconnectedCallback=function(){h.call(this)};t.prototype.componentDidRender=function(){F(this)};t.prototype.calciteListItemRemoveHandler=function(t){b.call(this,t)};t.prototype.calciteListItemChangeHandler=function(t){y.call(this,t)};t.prototype.calciteInternalListItemPropsChangeHandler=function(t){t.stopPropagation();this.setUpFilter()};t.prototype.calciteInternalListItemValueChangeHandler=function(t){w.call(this,t);t.stopPropagation()};t.prototype.calciteListFocusOutHandler=function(t){g.call(this,t)};t.prototype.setUpItems=function(){k.call(this,"calcite-pick-list-item")};t.prototype.setUpFilter=function(){if(this.filterEnabled){this.dataForFilter=this.getItemData()}};t.prototype.getSelectedItems=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.selectedValues]}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,v.call(this,t)]}))}))};t.prototype.getIconType=function(){return this.multiple?x.square:x.circle};t.prototype.render=function(){return a(D,{onKeyDown:this.keyDownHandler,props:this})};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());K.style=O;var T="@-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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{-webkit-margin-after:0.25rem;margin-block-end:0.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-ui-text-2)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:last-child){-webkit-margin-after:0px;margin-block-end:0px}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}h3.heading{margin-block:0.5rem;margin-inline:1rem;font-size:var(--calcite-font-size--1);line-height:1.375;color:var(--calcite-ui-text-3)}.container--indented{-webkit-margin-start:1.5rem;margin-inline-start:1.5rem}";var U=t("calcite_pick_list_group",function(){function t(t){e(this,t)}t.prototype.connectedCallback=function(){V(this)};t.prototype.disconnectedCallback=function(){A(this)};t.prototype.render=function(){var t;var e;var i=this,n=i.el,o=i.groupTitle,c=i.headingLevel;var s=S(n,_.parentItem)!==null;var l=(t={},t[I.container]=true,t[I.indented]=s,t);var m=o;var d=(e=n.closest("calcite-pick-list"))===null||e===void 0?void 0:e.headingLevel;var f=d?W(d+1):null;var p=c||f||z;return a(r,null,m?a(R,{class:I.heading,level:p},m):null,a("slot",{name:_.parentItem}),a("section",{class:l},a("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());U.style=T;var q='@charset "UTF-8";@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{margin:0px;-webkit-margin-after:1px;margin-block-end:1px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-1);--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-transition:background-color var(--calcite-animation-timing);transition:background-color var(--calcite-animation-timing);-webkit-animation:calcite-fade-in var(--calcite-animation-timing);animation:calcite-fade-in var(--calcite-animation-timing)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}.label{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;cursor:pointer;-ms-flex-align:center;align-items:center;background-color:transparent;outline-color:transparent}.label:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.label:hover{background-color:var(--calcite-ui-foreground-2)}:host([non-interactive]:hover){background-color:var(--calcite-ui-foreground-1)}:host([non-interactive]) .label,:host([non-interactive]) .icon{pointer-events:none}.icon{margin-block:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;padding:0.25rem;color:var(--calcite-ui-brand);-ms-flex:0 0 auto;flex:0 0 auto;line-height:0}.icon:hover{background-color:var(--calcite-ui-foreground-2)}.icon-dot{display:-ms-flexbox;display:flex;inline-size:1.5rem;-ms-flex-align:center;align-items:center;padding:0.5rem}.icon-dot:before{opacity:0;content:"•"}.icon calcite-icon{opacity:0}:host([selected]) .icon-dot:before,:host([selected]) .icon calcite-icon{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing);opacity:1}.text-container{pointer-events:none;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--2);line-height:1.375;word-wrap:break-word;word-break:break-word}.title{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}.description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.actions{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:end;justify-content:flex-end}.actions--start~.label{-webkit-padding-start:0.25rem;padding-inline-start:0.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}';var G=t("calcite_pick_list_item",function(){function t(t){var a=this;e(this,t);this.calciteListItemChange=i(this,"calciteListItemChange",7);this.calciteListItemRemove=i(this,"calciteListItemRemove",7);this.calciteInternalListItemPropsChange=i(this,"calciteInternalListItemPropsChange",7);this.calciteInternalListItemValueChange=i(this,"calciteInternalListItemValueChange",7);this.disabled=false;this.disableDeselect=false;this.nonInteractive=false;this.icon=null;this.removable=false;this.selected=false;this.intlRemove=C.remove;this.pickListClickHandler=function(t){if(a.disabled||a.disableDeselect&&a.selected||a.nonInteractive){return}a.shiftPressed=t.shiftKey;a.selected=!a.selected};this.pickListKeyDownHandler=function(t){if(t.key===" "){t.preventDefault();if(a.disableDeselect&&a.selected||a.nonInteractive){return}a.selected=!a.selected}};this.removeClickHandler=function(){a.calciteListItemRemove.emit()}}t.prototype.descriptionWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.labelWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.metadataWatchHandler=function(){this.calciteInternalListItemPropsChange.emit()};t.prototype.selectedWatchHandler=function(){this.calciteListItemChange.emit({item:this.el,value:this.value,selected:this.selected,shiftPressed:this.shiftPressed});this.shiftPressed=false};t.prototype.valueWatchHandler=function(t,e){this.calciteInternalListItemValueChange.emit({oldValue:e,newValue:t})};t.prototype.connectedCallback=function(){V(this)};t.prototype.disconnectedCallback=function(){A(this)};t.prototype.componentDidRender=function(){F(this,this.el.closest("calcite-pick-list")?"managed":false)};t.prototype.toggleSelected=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.selected=typeof t==="boolean"?t:!this.selected;return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.focusEl)===null||t===void 0?void 0:t.focus();return[2]}))}))};t.prototype.renderIcon=function(){var t;var e=this.icon;if(!e){return null}return a("span",{class:(t={},t[H.icon]=true,t[H.iconDot]=e===x.circle,t),onClick:this.pickListClickHandler},e===x.square?a("calcite-icon",{icon:L.checked,scale:"s"}):null)};t.prototype.renderRemoveAction=function(){return this.removable?a("calcite-action",{class:H.remove,icon:L.remove,onCalciteActionClick:this.removeClickHandler,slot:j.actionsEnd,text:this.intlRemove}):null};t.prototype.renderActionsStart=function(){var t;var e=this.el;var i=S(e,j.actionsStart);return i?a("div",{class:(t={},t[H.actions]=true,t[H.actionsStart]=true,t)},a("slot",{name:j.actionsStart})):null};t.prototype.renderActionsEnd=function(){var t;var e=this,i=e.el,n=e.removable;var r=S(i,j.actionsEnd);return r||n?a("div",{class:(t={},t[H.actions]=true,t[H.actionsEnd]=true,t)},a("slot",{name:j.actionsEnd}),this.renderRemoveAction()):null};t.prototype.render=function(){var t=this;var e=this,i=e.description,n=e.label;return a(r,null,this.renderIcon(),this.renderActionsStart(),a("label",{"aria-label":n,class:H.label,onClick:this.pickListClickHandler,onKeyDown:this.pickListKeyDownHandler,ref:function(e){return t.focusEl=e},tabIndex:0},a("div",{"aria-checked":E(this.selected),class:H.textContainer,role:"menuitemcheckbox"},a("span",{class:H.title},n),i?a("span",{class:H.description},i):null)),this.renderActionsEnd())};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{description:["descriptionWatchHandler"],label:["labelWatchHandler"],metadata:["metadataWatchHandler"],selected:["selectedWatchHandler"],value:["valueWatchHandler"]}},enumerable:false,configurable:true});return t}());G.style=q}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
|
-
import{r as e,c as t,h as i,F as a,g as n}from"./p-c44fe786.js";import{a as l,g as o,t as s}from"./p-5e5bb0fe.js";import{H as c}from"./p-0296d6e5.js";import{S as r}from"./p-afd70310.js";import{c as d,d as h}from"./p-2b1db9be.js";import{u as m}from"./p-87b06a4a.js";import{c as p}from"./p-84f563f6.js";import"./p-292b7dab.js";const f=class{constructor(i){e(this,i),this.calcitePanelDismiss=t(this,"calcitePanelDismiss",7),this.calcitePanelDismissedChange=t(this,"calcitePanelDismissedChange",7),this.calcitePanelScroll=t(this,"calcitePanelScroll",7),this.calcitePanelBackClick=t(this,"calcitePanelBackClick",7),this.dismissed=!1,this.closed=!1,this.disabled=!1,this.dismissible=!1,this.closable=!1,this.showBackButton=!1,this.loading=!1,this.menuOpen=!1,this.resizeObserver=p("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1)},this.setContainerRef=e=>{this.containerEl=e},this.setCloseRef=e=>{this.closeButtonEl=e},this.setBackRef=e=>{this.backButtonEl=e},this.panelKeyDownHandler=e=>{"Escape"===e.key&&this.close()},this.close=()=>{this.closed=!0,this.calcitePanelDismiss.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.backButtonClick=()=>{this.calcitePanelBackClick.emit()},this.setPanelScrollEl=e=>{var t,i;this.panelScrollEl=e,null===(t=this.resizeObserver)||void 0===t||t.disconnect(),e&&(null===(i=this.resizeObserver)||void 0===i||i.observe(e),this.resizeHandler())}}dismissedHandler(e){this.closed=e,this.calcitePanelDismissedChange.emit()}closedHandler(e){this.dismissed=e}dismissibleHandler(e){this.closable=e}closableHandler(e){this.dismissible=e}componentDidRender(){m(this)}connectedCallback(){d(this);const e=this.dismissed||this.closed,t=this.dismissible||this.closable;e&&(this.dismissedHandler(e),this.closedHandler(e)),t&&(this.dismissibleHandler(t),this.closableHandler(t))}disconnectedCallback(){var e;h(this),null===(e=this.resizeObserver)||void 0===e||e.disconnect()}async setFocus(e){var t,i,a;"dismiss-button"!==e?"back-button"!==e?null===(a=this.containerEl)||void 0===a||a.focus():null===(i=this.backButtonEl)||void 0===i||i.setFocus():null===(t=this.closeButtonEl)||void 0===t||t.setFocus()}async scrollContentTo(e){var t;null===(t=this.panelScrollEl)||void 0===t||t.scrollTo(e)}renderBackButton(){const{el:e}=this,t="rtl"===l(e),{showBackButton:a,intlBack:n,backButtonClick:o}=this,s=n||"Back";return a?i("calcite-action",{"aria-label":s,class:"back-button",icon:t?"chevron-right":"chevron-left",key:"back-button",onClick:o,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:s}):null}renderHeaderContent(){const{heading:e,headingLevel:t,summary:a,description:n}=this,l=e?i(c,{class:"heading",level:t||3},e):null,o=n||a?i("span",{class:"description"},n||a):null;return l||o?i("div",{class:"header-content",key:"header-content"},l,o):null}renderHeaderSlottedContent(){return i("div",{class:"header-content",key:"slotted-header-content"},i("slot",{name:"header-content"}))}renderHeaderStartActions(){const{el:e}=this;return o(e,"header-actions-start")?i("div",{class:{"header-actions--start":!0,"header-actions":!0},key:"header-actions-start"},i("slot",{name:"header-actions-start"})):null}renderHeaderActionsEnd(){const{close:e,el:t,intlClose:a,closable:n}=this,l=a||"Close",s=n?i("calcite-action",{"aria-label":l,icon:"x",onClick:e,ref:this.setCloseRef,text:l}):null,c=i("slot",{name:"header-actions-end"});return o(t,"header-actions-end")||s?i("div",{class:{"header-actions--end":!0,"header-actions":!0},key:"header-actions-end"},c,s):null}renderMenu(){const{el:e,intlOptions:t,menuOpen:a}=this;return o(e,"header-menu-actions")?i("calcite-action-menu",{flipPlacements:["top","bottom"],key:"menu",label:t||"Options",open:a,placement:"bottom-end"},i("calcite-action",{icon:"ellipsis",slot:r.trigger,text:t||"Options"}),i("slot",{name:"header-menu-actions"})):null}renderHeaderNode(){const{el:e,showBackButton:t}=this,a=this.renderBackButton(),n=o(e,"header-content")?this.renderHeaderSlottedContent():this.renderHeaderContent(),l=this.renderHeaderStartActions(),s=this.renderHeaderActionsEnd(),c=this.renderMenu();return l||n||s||c||t?i("header",{class:"header"},a,l,n,s,c):null}renderFooterNode(){const{el:e}=this,t=o(e,"footer"),a=o(e,"footer-actions");return t||a?i("footer",{class:"footer",key:"footer"},t?i("slot",{key:"footer-slot",name:"footer"}):null,a?i("slot",{key:"footer-actions-slot",name:"footer-actions"}):null):null}renderContent(){const{el:e}=this,t=o(e,"fab"),a=i("slot",{key:"default-slot"}),n="content-wrapper";return t?i("div",{class:{"content-wrapper":!0,"content-height":!0},key:n,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("section",{class:"content-container"},a),this.renderFab()):i("section",{class:{"content-wrapper":!0,"content-container":!0},key:n,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},a)}renderFab(){return i("div",{class:"fab-container"},i("slot",{name:"fab"}))}render(){const{loading:e,panelKeyDownHandler:t,closed:n,closable:l}=this,o=i("article",{"aria-busy":s(e),class:"container",hidden:n,onKeyDown:t,ref:this.setContainerRef,tabIndex:l?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return i(a,null,e?i("calcite-scrim",{loading:e}):null,o)}get el(){return n(this)}static get watchers(){return{dismissed:["dismissedHandler"],closed:["closedHandler"],dismissible:["dismissibleHandler"],closable:["closableHandler"]}}};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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);-webkit-transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:-webkit-sticky;position:sticky;inset-block-start:0px;inline-size:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-inline-size:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);z-index:1}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:-webkit-sticky;position:sticky;inset-block-end:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;inset-block-end:0px;inset-inline:0px;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content;z-index:1}";export{f as calcite_panel}
|
|
6
|
+
import{r as e,c as t,h as i,F as a,g as n}from"./p-499e3e8e.js";import{a as l,g as o,t as s}from"./p-1f4f5c19.js";import{H as c}from"./p-f6f30d24.js";import{S as r}from"./p-a60d4cb7.js";import{c as d,d as h}from"./p-a8b2237b.js";import{u as m}from"./p-abd4e5a8.js";import{c as p}from"./p-49228240.js";import"./p-912b88e8.js";const f=class{constructor(i){e(this,i),this.calcitePanelDismiss=t(this,"calcitePanelDismiss",7),this.calcitePanelDismissedChange=t(this,"calcitePanelDismissedChange",7),this.calcitePanelScroll=t(this,"calcitePanelScroll",7),this.calcitePanelBackClick=t(this,"calcitePanelBackClick",7),this.dismissed=!1,this.closed=!1,this.disabled=!1,this.dismissible=!1,this.closable=!1,this.showBackButton=!1,this.loading=!1,this.menuOpen=!1,this.resizeObserver=p("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1)},this.setContainerRef=e=>{this.containerEl=e},this.setCloseRef=e=>{this.closeButtonEl=e},this.setBackRef=e=>{this.backButtonEl=e},this.panelKeyDownHandler=e=>{"Escape"===e.key&&this.close()},this.close=()=>{this.closed=!0,this.calcitePanelDismiss.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.backButtonClick=()=>{this.calcitePanelBackClick.emit()},this.setPanelScrollEl=e=>{var t,i;this.panelScrollEl=e,null===(t=this.resizeObserver)||void 0===t||t.disconnect(),e&&(null===(i=this.resizeObserver)||void 0===i||i.observe(e),this.resizeHandler())}}dismissedHandler(e){this.closed=e,this.calcitePanelDismissedChange.emit()}closedHandler(e){this.dismissed=e}dismissibleHandler(e){this.closable=e}closableHandler(e){this.dismissible=e}componentDidRender(){m(this)}connectedCallback(){d(this);const e=this.dismissed||this.closed,t=this.dismissible||this.closable;e&&(this.dismissedHandler(e),this.closedHandler(e)),t&&(this.dismissibleHandler(t),this.closableHandler(t))}disconnectedCallback(){var e;h(this),null===(e=this.resizeObserver)||void 0===e||e.disconnect()}async setFocus(e){var t,i,a;"dismiss-button"!==e?"back-button"!==e?null===(a=this.containerEl)||void 0===a||a.focus():null===(i=this.backButtonEl)||void 0===i||i.setFocus():null===(t=this.closeButtonEl)||void 0===t||t.setFocus()}async scrollContentTo(e){var t;null===(t=this.panelScrollEl)||void 0===t||t.scrollTo(e)}renderBackButton(){const{el:e}=this,t="rtl"===l(e),{showBackButton:a,intlBack:n,backButtonClick:o}=this,s=n||"Back";return a?i("calcite-action",{"aria-label":s,class:"back-button",icon:t?"chevron-right":"chevron-left",key:"back-button",onClick:o,ref:this.setBackRef,scale:"s",slot:"header-actions-start",text:s}):null}renderHeaderContent(){const{heading:e,headingLevel:t,summary:a,description:n}=this,l=e?i(c,{class:"heading",level:t||3},e):null,o=n||a?i("span",{class:"description"},n||a):null;return l||o?i("div",{class:"header-content",key:"header-content"},l,o):null}renderHeaderSlottedContent(){return i("div",{class:"header-content",key:"slotted-header-content"},i("slot",{name:"header-content"}))}renderHeaderStartActions(){const{el:e}=this;return o(e,"header-actions-start")?i("div",{class:{"header-actions--start":!0,"header-actions":!0},key:"header-actions-start"},i("slot",{name:"header-actions-start"})):null}renderHeaderActionsEnd(){const{close:e,el:t,intlClose:a,closable:n}=this,l=a||"Close",s=n?i("calcite-action",{"aria-label":l,icon:"x",onClick:e,ref:this.setCloseRef,text:l}):null,c=i("slot",{name:"header-actions-end"});return o(t,"header-actions-end")||s?i("div",{class:{"header-actions--end":!0,"header-actions":!0},key:"header-actions-end"},c,s):null}renderMenu(){const{el:e,intlOptions:t,menuOpen:a}=this;return o(e,"header-menu-actions")?i("calcite-action-menu",{flipPlacements:["top","bottom"],key:"menu",label:t||"Options",open:a,placement:"bottom-end"},i("calcite-action",{icon:"ellipsis",slot:r.trigger,text:t||"Options"}),i("slot",{name:"header-menu-actions"})):null}renderHeaderNode(){const{el:e,showBackButton:t}=this,a=this.renderBackButton(),n=o(e,"header-content")?this.renderHeaderSlottedContent():this.renderHeaderContent(),l=this.renderHeaderStartActions(),s=this.renderHeaderActionsEnd(),c=this.renderMenu();return l||n||s||c||t?i("header",{class:"header"},a,l,n,s,c):null}renderFooterNode(){const{el:e}=this,t=o(e,"footer"),a=o(e,"footer-actions");return t||a?i("footer",{class:"footer",key:"footer"},t?i("slot",{key:"footer-slot",name:"footer"}):null,a?i("slot",{key:"footer-actions-slot",name:"footer-actions"}):null):null}renderContent(){const{el:e}=this,t=o(e,"fab"),a=i("slot",{key:"default-slot"}),n="content-wrapper";return t?i("div",{class:{"content-wrapper":!0,"content-height":!0},key:n,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("section",{class:"content-container"},a),this.renderFab()):i("section",{class:{"content-wrapper":!0,"content-container":!0},key:n,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},a)}renderFab(){return i("div",{class:"fab-container"},i("slot",{name:"fab"}))}render(){const{loading:e,panelKeyDownHandler:t,closed:n,closable:l}=this,o=i("article",{"aria-busy":s(e),class:"container",hidden:n,onKeyDown:t,ref:this.setContainerRef,tabIndex:l?0:-1},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return i(a,null,e?i("calcite-scrim",{loading:e}):null,o)}get el(){return n(this)}static get watchers(){return{dismissed:["dismissedHandler"],closed:["closedHandler"],dismissible:["dismissibleHandler"],closable:["closableHandler"]}}};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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:-ms-flexbox;display:flex;-ms-flex-line-pack:justify;align-content:space-between;-ms-flex-align:center;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{-ms-flex:1 1 auto;flex:1 1 auto;padding:0.5rem}h1.heading{font-size:var(--calcite-font-size-2);line-height:1.5rem}h2.heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}h3.heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}h4.heading,h5.heading{font-size:var(--calcite-font-size--1);line-height:1rem}.container{margin:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);-webkit-transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}:host([loading]) .container,:host([disabled]) .container{position:relative;z-index:1}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:-webkit-sticky;position:sticky;inset-block-start:0px;inline-size:100%;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:start;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;z-index:2}.header-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.header-actions--end,.menu-container:only-child{-webkit-margin-start:auto;margin-inline-start:auto}.menu-button{position:relative;block-size:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{min-inline-size:10rem;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;background-color:var(--calcite-ui-background);z-index:1}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:-webkit-sticky;position:sticky;inset-block-end:0px;display:-ms-flexbox;display:flex;inline-size:100%;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);-ms-flex:0 0 auto;flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:-webkit-sticky;position:sticky;inset-block-end:0px;inset-inline:0px;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content;z-index:1}";export{f as calcite_panel}
|
|
@@ -0,0 +1,6 @@
|
|
|
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-beta.88
|
|
5
|
+
*/
|
|
6
|
+
import{r as t,c as i,h as e,H as n,g as o}from"./p-499e3e8e.js";import{T as a,g as s,s as r,d as l,a as c,C as u}from"./p-1f4f5c19.js";import{c as m,d,g as h}from"./p-d3040412.js";import{s as b,c as p,d as f,H as v}from"./p-0ee2d220.js";import{d as x,i as g,p as w,g as k,l as y,s as z}from"./p-d741852a.js";import{n as D}from"./p-bbe16621.js";import{d as j}from"./p-d281f769.js";import{c as I}from"./p-49228240.js";import{u as E}from"./p-abd4e5a8.js";import"./p-912b88e8.js";const N=class{constructor(e){t(this,e),this.calciteInternalInputNumberFocus=i(this,"calciteInternalInputNumberFocus",7),this.calciteInternalInputNumberBlur=i(this,"calciteInternalInputNumberBlur",7),this.calciteInputNumberInput=i(this,"calciteInputNumberInput",7),this.calciteInputNumberChange=i(this,"calciteInputNumberChange",7),this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.groupSeparator=!1,this.hidden=!1,this.intlLoading=a.loading,this.iconFlipRtl=!1,this.loading=!1,this.locale=document.documentElement.lang||"en",this.localeFormat=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.editingEnabled=!1,this.value="",this.previousValueOrigin="initial",this.mutationObserver=I("mutation",(()=>this.setDisabledAction())),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||(this.isClearable&&"Escape"===t.key&&(this.clearInputValue(t),t.preventDefault()),"Enter"!==t.key||t.defaultPrevented||b(this))},this.clearInputValue=t=>{this.setNumberValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{"user"===this.previousValueOrigin&&this.value!==this.previousEmittedValue&&this.calciteInputNumberChange.emit(),this.previousEmittedValue=this.value},this.inputNumberBlurHandler=()=>{this.calciteInternalInputNumberBlur.emit(),this.emitChangeIfUserModified()},this.inputNumberFocusHandler=t=>{const i=s(this.el,"action");t.target!==i&&this.setFocus(),this.calciteInternalInputNumberFocus.emit()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly)return;const i=x(t.target.value,this.locale);"insertFromPaste"===t.inputType?(g(i)||t.preventDefault(),this.setNumberValue({nativeEvent:t,origin:"user",value:w(i)}),this.childNumberEl.value=this.localizedValue):this.setNumberValue({nativeEvent:t,origin:"user",value:i})},this.inputNumberKeyDownHandler=t=>{if(this.disabled||this.readOnly)return;if("ArrowUp"===t.key)return t.preventDefault(),void this.nudgeNumberValue("up",t);if("ArrowDown"===t.key)return void this.nudgeNumberValue("down",t);const i=[...D,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.shiftKey&&"Tab"===t.key;if(i.includes(t.key)&&(!t.shiftKey||e))return void("Enter"===t.key&&this.emitChangeIfUserModified());const n=k(this.locale);if(t.key===n){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&-1===this.childNumberEl.value.indexOf(n))return}if(/[eE]/.test(t.key)){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&!/[eE]/.test(this.childNumberEl.value))return}if("-"===t.key){if(!this.value&&!this.childNumberEl.value)return;if(this.value&&this.childNumberEl.value.split("-").length<=2)return}t.preventDefault()},this.nudgeNumberValue=(t,i)=>{if(i instanceof KeyboardEvent&&i.repeat)return;const e=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null;this.incrementOrDecrementNumberValue(t,e,n,i),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let o=!0;this.nudgeNumberValueIntervalId=window.setInterval((()=>{o?o=!1:this.incrementOrDecrementNumberValue(t,e,n,i)}),100)},this.nudgeButtonPointerUpAndOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.nudgeButtonPointerDownHandler=t=>{t.preventDefault(),this.disabled||this.nudgeNumberValue(t.target.dataset.adjustment,t)},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputNumberValue=t=>{this.childNumberEl&&(this.childNumberEl.value=t)},this.setPreviousEmittedNumberValue=t=>{this.previousEmittedValue=g(t)?t:""},this.setPreviousNumberValue=t=>{this.previousValue=g(t)?t:""},this.setNumberValue=({committing:t=!1,nativeEvent:i,origin:e,previousValue:n,value:o})=>{const a=y(this.previousValue,this.locale,this.groupSeparator,this.numberingSystem),s=z(o),r=o&&!s?g(this.previousValue)?this.previousValue:"":s,l=y(r,this.locale,this.groupSeparator,this.numberingSystem);this.setPreviousNumberValue(n||this.value),this.previousValueOrigin=e,this.userChangedValue="user"===e&&this.value!==r,this.value=r,this.localizedValue=l,"direct"===e&&this.setInputNumberValue(l),i&&(this.calciteInputNumberInput.emit({element:this.childNumberEl,nativeEvent:i,value:this.value}).defaultPrevented?(this.value=this.previousValue,this.localizedValue=a):t&&this.emitChangeIfUserModified())},this.inputNumberKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)}}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var t;this.maxString=(null===(t=this.max)||void 0===t?void 0:t.toString())||null}minWatcher(){var t;this.minString=(null===(t=this.min)||void 0===t?void 0:t.toString())||null}valueWatcher(t,i){this.userChangedValue||(this.setNumberValue({origin:"direct",previousValue:i,value:null==t||""==t?"":g(t)?t:this.previousValue||""}),this.warnAboutInvalidNumberValue(t)),this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=r({},this.icon,"number")}get isClearable(){return this.clearable&&this.value.length>0}connectedCallback(){var t;this.scale=l(this.el,"scale",this.scale),this.status=l(this.el,"status",this.status),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),this.setPreviousEmittedNumberValue(this.value),this.setPreviousNumberValue(this.value),this.warnAboutInvalidNumberValue(this.value),this.setNumberValue({origin:"connected",value:g(this.value)?this.value:""}),m(this),p(this),null===(t=this.mutationObserver)||void 0===t||t.observe(this.el,{childList:!0}),this.setDisabledAction()}disconnectedCallback(){var t;d(this),f(this),null===(t=this.mutationObserver)||void 0===t||t.disconnect()}componentWillLoad(){var t,i;this.maxString=null===(t=this.max)||void 0===t?void 0:t.toString(),this.minString=null===(i=this.min)||void 0===i?void 0:i.toString(),this.requestedIcon=r({},this.icon,"number")}componentShouldUpdate(t,i,e){return!("value"===e&&t&&!g(t)&&(this.setNumberValue({origin:"reset",value:i}),1))}componentDidRender(){E(this)}async setFocus(){var t;null===(t=this.childNumberEl)||void 0===t||t.focus()}async selectText(){var t;null===(t=this.childNumberEl)||void 0===t||t.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,i,e,n){const{value:o}=this,a="any"===this.step?1:Math.abs(this.step||1),s=o&&""!==o?parseFloat(o):0,r=s+a*("up"===t?1:-1),l="number"==typeof e&&!isNaN(e)&&r<e||"number"==typeof i&&!isNaN(i)&&r>i?s:r,c=j(s),u=j(a);this.setNumberValue({committing:!0,nativeEvent:n,origin:"user",value:l.toFixed(Math.max(c,u))})}onFormReset(){this.setNumberValue({origin:"reset",value:this.defaultValue})}syncHiddenFormInput(t){var i,e,n,o;t.type="number",t.min=null!==(e=null===(i=this.min)||void 0===i?void 0:i.toString(10))&&void 0!==e?e:"",t.max=null!==(o=null===(n=this.max)||void 0===n?void 0:n.toString(10))&&void 0!==o?o:""}setDisabledAction(){const t=s(this.el,"action");t&&(this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled"))}warnAboutInvalidNumberValue(t){t&&!g(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){const t=c(this.el),i=e("div",{class:"loader"},e("calcite-progress",{label:this.intlLoading,type:"indeterminate"})),o=e("button",{"aria-label":this.intlClear||"Clear value",class:"clear-button",disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:this.disabled?-1:0,type:"button"},e("calcite-icon",{icon:"x",scale:"s"})),a=e("calcite-icon",{class:"icon",flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:"s"}),s="horizontal"===this.numberButtonType,r=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":s},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerUpAndOutHandler,onPointerUp:this.nudgeButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-up",scale:"s"})),l=e("button",{class:{"number-button-item":!0,"number-button-item--horizontal":s},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.nudgeButtonPointerDownHandler,onPointerOut:this.nudgeButtonPointerUpAndOutHandler,onPointerUp:this.nudgeButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},e("calcite-icon",{icon:"chevron-down",scale:"s"})),m=e("div",{class:"number-button-wrapper"},r,l),d=e("div",{class:"prefix"},this.prefixText),b=e("div",{class:"suffix"},this.suffixText),p=e("input",{"aria-label":h(this),autofocus:!!this.autofocus||null,defaultValue:this.defaultValue,disabled:!!this.disabled||null,enterKeyHint:this.el.enterKeyHint,inputMode:this.el.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,name:void 0,onBlur:this.inputNumberBlurHandler,onFocus:this.inputNumberFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputNumberKeyUpHandler,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.localizedValue});return e(n,{onClick:this.inputNumberFocusHandler,onKeyDown:this.keyDownHandler},e("div",{class:{wrapper:!0,[u.rtl]:"rtl"===t}},"horizontal"!==this.numberButtonType||this.readOnly?null:l,this.prefixText?d:null,e("div",{class:"element-wrapper"},p,this.isClearable?o:null,this.requestedIcon?a:null,this.loading?i:null),e("div",{class:"action-wrapper"},e("slot",{name:"action"})),"vertical"!==this.numberButtonType||this.readOnly?null:m,this.suffixText?b:null,"horizontal"!==this.numberButtonType||this.readOnly?null:r,e(v,{component:this})))}get el(){return o(this)}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],value:["valueWatcher"],icon:["updateRequestedIcon"]}}};N.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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host input{-webkit-transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;-ms-flex:1 1 0%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}:host input:-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input::placeholder,:host input:-ms-input-placeholder,:host input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}:host input:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}:host input[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}:host input[readonly]:focus{color:var(--calcite-ui-text-1)}:host calcite-icon{color:var(--calcite-ui-text-3)}:host input{outline-color:transparent}:host input:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([status=invalid]) input{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:-2px}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{-webkit-padding-start:2rem;padding-inline-start:2rem}:host([icon][scale=m]) input{-webkit-padding-start:2.5rem;padding-inline-start:2.5rem}:host([icon][scale=l]) input{-webkit-padding-start:3rem;padding-inline-start:3rem}.element-wrapper{position:relative;-ms-flex-order:3;order:3;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center}.icon{pointer-events:none;position:absolute;z-index:10;display:block;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button{pointer-events:initial;-ms-flex-order:4;order:4;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;min-block-size:100%;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:stretch;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{-ms-flex-order:7;order:7;display:-ms-flexbox;display:flex}.prefix,.suffix{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{-ms-flex-order:2;order:2;border-inline-end-width:0px}.suffix{-ms-flex-order:5;order:5;border-inline-start-width:0px}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;-ms-flex-order:6;order:6;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex}:host([number-button-type=vertical]) input{-ms-flex-order:2;order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:1;order:1;max-block-size:100%;min-block-size:100%;-ms-flex-item-align:stretch;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{-ms-flex-order:5;order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-item-align:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;z-index:10;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}:host .inline-child{background-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host .inline-child .editing-enabled{background-color:inherit}:host .inline-child:not(.editing-enabled){display:-ms-flexbox;display:flex;cursor:pointer;border-color:transparent;-webkit-padding-start:0;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{N as calcite_input_number}
|
|
@@ -2,5 +2,5 @@ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t)
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-beta.
|
|
6
|
-
*/System.register(["./p-
|
|
5
|
+
* v1.0.0-beta.88
|
|
6
|
+
*/System.register(["./p-86c1da3b.system.js"],(function(t){"use strict";var n;return{setters:[function(t){n=t.h}],execute:function(){t("c",e);function e(t){return Math.min(Math.max(Math.ceil(t),1),6)}var r=t("H",(function(t,e){var r="h".concat(t.level);delete t.level;return n(r,__assign({},t),e)}))}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
6
|
System.register([],(function(t){"use strict";return{execute:function(){var n=t("c",(function(t,n,r){return Math.max(n,Math.min(t,r))}));var r=t("d",(function(t){var n=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);if(!n){return 0}return Math.max(0,(n[1]?n[1].length:0)-(n[2]?+n[2]:0))}))}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
6
|
function n(n){return"Enter"===n||" "===n}const t=["0","1","2","3","4","5","6","7","8","9"];export{n as i,t as n}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
6
|
System.register([],(function(t){"use strict";return{execute:function(){t("i",e);function e(t){return t==="Enter"||t===" "}var n=t("n",["0","1","2","3","4","5","6","7","8","9"])}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,H as e,g as n}from"./p-c44fe786.js";import{a as o,d as r,t as l}from"./p-5e5bb0fe.js";import{c as s,d as c}from"./p-61379359.js";import{a as m,c as d,d as u,H as f}from"./p-1647d422.js";import{u as p}from"./p-87b06a4a.js";import"./p-292b7dab.js";const h=class{constructor(a){t(this,a),this.calciteRadioGroupChange=i(this,"calciteRadioGroupChange",7),this.appearance="solid",this.disabled=!1,this.required=!1,this.layout="horizontal",this.scale="m",this.value=null,this.width="auto",this.handleClick=t=>{"calcite-radio-group-item"===t.target.localName&&this.selectItem(t.target,!0)}}valueHandler(t){this.getItems().forEach((i=>i.checked=i.value===t))}handleSelectedItemChange(t,i){if(this.value=null==t?void 0:t.value,t===i)return;const a=this.getItems(),e=Array.from(a).filter((i=>i===t)).pop();e?this.selectItem(e):a[0]&&(a[0].tabIndex=0)}componentWillLoad(){const t=this.getItems(),i=Array.from(t).filter((t=>t.checked)).pop();i?this.selectItem(i):t[0]&&(t[0].tabIndex=0)}componentDidLoad(){m(this,this.value)}connectedCallback(){s(this),d(this)}disconnectedCallback(){c(this),u(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.handleClick,role:"radiogroup"},a("slot",null),a(f,{component:this}))}handleSelected(t){t.preventDefault(),this.selectItem(t.target),t.stopPropagation()}handleKeyDown(t){const i=t.key,{el:a,selectedItem:e}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;let n=i;"rtl"===o(a)&&("ArrowRight"===i&&(n="ArrowLeft"),"ArrowLeft"===i&&(n="ArrowRight"));const r=this.getItems();let l=-1;switch(r.forEach(((t,i)=>{t===e&&(l=i)})),n){case"ArrowLeft":case"ArrowUp":t.preventDefault();const i=r.item(l<1?r.length-1:l-1);return void this.selectItem(i,!0);case"ArrowRight":case"ArrowDown":t.preventDefault();const a=-1===l?r.item(1):r.item(l+1)||r.item(0);return void this.selectItem(a,!0);case" ":return t.preventDefault(),void this.selectItem(t.target,!0);default:return}}async setFocus(){var t;null===(t=this.selectedItem||this.getItems()[0])||void 0===t||t.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(t,i=!1){if(t===this.selectedItem)return;const a=this.getItems();let e=null;a.forEach((a=>{const n=a.value===t.value;(n&&!a.checked||!n&&a.checked)&&(a.checked=n),a.tabIndex=n?0:-1,n&&(e=a,i&&this.calciteRadioGroupChange.emit(e.value))})),this.selectedItem=e,e&&e.focus()}get el(){return n(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};h.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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:-webkit-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){-ms-flex:1 1 auto;flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){-ms-flex-pack:start;justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const b=class{constructor(a){t(this,a),this.calciteInternalRadioGroupItemChange=i(this,"calciteInternalRadioGroupItemChange",7),this.checked=!1,this.iconFlipRtl=!1,this.iconPosition="start"}handleCheckedChange(){this.calciteInternalRadioGroupItemChange.emit()}render(){const{checked:t,value:i}=this,n=r(this.el,"scale","m"),o=r(this.el,"appearance","solid"),s=r(this.el,"layout","horizontal"),c=a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.icon,scale:"s"});return a(e,{"aria-checked":l(t),"aria-label":i,role:"radio"},a("label",{class:{"label--scale-s":"s"===n,"label--scale-m":"m"===n,"label--scale-l":"l"===n,"label--horizontal":"horizontal"===s,"label--outline":"outline"===o}},this.icon&&"start"===this.iconPosition?c:null,a("slot",null,i),a("slot",{name:"input"}),this.icon&&"end"===this.iconPosition?c:null))}get el(){return n(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;font-weight:var(--calcite-font-weight-normal);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{-ms-flex-pack:center;justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}";export{h as calcite_radio_group,b as calcite_radio_group_item}
|
|
6
|
+
import{r as t,c as i,h as a,H as e,g as n}from"./p-499e3e8e.js";import{a as o,d as r,t as l}from"./p-1f4f5c19.js";import{c as s,d as c}from"./p-d3040412.js";import{a as m,c as d,d as u,H as f}from"./p-0ee2d220.js";import{u as p}from"./p-abd4e5a8.js";import"./p-912b88e8.js";const h=class{constructor(a){t(this,a),this.calciteRadioGroupChange=i(this,"calciteRadioGroupChange",7),this.appearance="solid",this.disabled=!1,this.required=!1,this.layout="horizontal",this.scale="m",this.value=null,this.width="auto",this.handleClick=t=>{"calcite-radio-group-item"===t.target.localName&&this.selectItem(t.target,!0)}}valueHandler(t){this.getItems().forEach((i=>i.checked=i.value===t))}handleSelectedItemChange(t,i){if(this.value=null==t?void 0:t.value,t===i)return;const a=this.getItems(),e=Array.from(a).filter((i=>i===t)).pop();e?this.selectItem(e):a[0]&&(a[0].tabIndex=0)}componentWillLoad(){const t=this.getItems(),i=Array.from(t).filter((t=>t.checked)).pop();i?this.selectItem(i):t[0]&&(t[0].tabIndex=0)}componentDidLoad(){m(this,this.value)}connectedCallback(){s(this),d(this)}disconnectedCallback(){c(this),u(this)}componentDidRender(){p(this)}render(){return a(e,{onClick:this.handleClick,role:"radiogroup"},a("slot",null),a(f,{component:this}))}handleSelected(t){t.preventDefault(),this.selectItem(t.target),t.stopPropagation()}handleKeyDown(t){const i=t.key,{el:a,selectedItem:e}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(i))return;let n=i;"rtl"===o(a)&&("ArrowRight"===i&&(n="ArrowLeft"),"ArrowLeft"===i&&(n="ArrowRight"));const r=this.getItems();let l=-1;switch(r.forEach(((t,i)=>{t===e&&(l=i)})),n){case"ArrowLeft":case"ArrowUp":t.preventDefault();const i=r.item(l<1?r.length-1:l-1);return void this.selectItem(i,!0);case"ArrowRight":case"ArrowDown":t.preventDefault();const a=-1===l?r.item(1):r.item(l+1)||r.item(0);return void this.selectItem(a,!0);case" ":return t.preventDefault(),void this.selectItem(t.target,!0);default:return}}async setFocus(){var t;null===(t=this.selectedItem||this.getItems()[0])||void 0===t||t.focus()}onLabelClick(){this.setFocus()}getItems(){return this.el.querySelectorAll("calcite-radio-group-item")}selectItem(t,i=!1){if(t===this.selectedItem)return;const a=this.getItems();let e=null;a.forEach((a=>{const n=a.value===t.value;(n&&!a.checked||!n&&a.checked)&&(a.checked=n),a.tabIndex=n?0:-1,n&&(e=a,i&&this.calciteRadioGroupChange.emit(e.value))})),this.selectedItem=e,e&&e.focus()}get el(){return n(this)}static get watchers(){return{value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};h.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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;-ms-flex-item-align:start;align-self:flex-start}:host([width=full]){inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:-webkit-fit-content;min-inline-size:fit-content}:host([width=full]) ::slotted(calcite-radio-group-item){-ms-flex:1 1 auto;flex:1 1 auto}:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item){-ms-flex-pack:start;justify-content:flex-start}::slotted(calcite-radio-group-item[checked]),::slotted(calcite-radio-group-item:focus){z-index:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";const b=class{constructor(a){t(this,a),this.calciteInternalRadioGroupItemChange=i(this,"calciteInternalRadioGroupItemChange",7),this.checked=!1,this.iconFlipRtl=!1,this.iconPosition="start"}handleCheckedChange(){this.calciteInternalRadioGroupItemChange.emit()}render(){const{checked:t,value:i}=this,n=r(this.el,"scale","m"),o=r(this.el,"appearance","solid"),s=r(this.el,"layout","horizontal"),c=a("calcite-icon",{class:"radio-group-item-icon",flipRtl:this.iconFlipRtl,icon:this.icon,scale:"s"});return a(e,{"aria-checked":l(t),"aria-label":i,role:"radio"},a("label",{class:{"label--scale-s":"s"===n,"label--scale-m":"m"===n,"label--scale-l":"l"===n,"label--horizontal":"horizontal"===s,"label--outline":"outline"===o}},this.icon&&"start"===this.iconPosition?c:null,a("slot",null,i),a("slot",{name:"input"}),this.icon&&"end"===this.iconPosition?c:null))}get el(){return n(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-item-align:stretch;align-self:stretch;font-weight:var(--calcite-font-weight-normal);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;-ms-flex-align:center;align-items:center;color:var(--calcite-ui-text-3);-webkit-transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{-ms-flex-pack:center;justify-content:center}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}:host(:active) label{background-color:var(--calcite-ui-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}:host([checked]) .label--outline{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon{color:highlightText}}.radio-group-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;line-height:inherit}:host([icon-position=start]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([icon-position=end]) .label--scale-s .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}:host([icon-position=start]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([icon-position=end]) .label--scale-m .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host([icon-position=start]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([icon-position=end]) .label--scale-l .radio-group-item-icon{-webkit-margin-end:unset;margin-inline-end:unset;-webkit-margin-start:1rem;margin-inline-start:1rem}";export{h as calcite_radio_group,b as calcite_radio_group_item}
|
|
@@ -2,5 +2,5 @@ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t)
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-beta.
|
|
6
|
-
*/System.register(["./p-98f5945a.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.a}],execute:function(){var r=this;t({a:kt,c:Et,f:Pt,p:Ot});function n(t){return t.split("-")[0]}function i(t){return t.split("-")[1]}function a(t){return["top","bottom"].includes(n(t))?"x":"y"}function o(t){return t==="y"?"height":"width"}function l(t,e,r){var l=t.reference,s=t.floating;var f=l.x+l.width/2-s.width/2;var u=l.y+l.height/2-s.height/2;var c=a(e);var d=o(c);var v=l[d]/2-s[d]/2;var p=n(e);var h=c==="x";var g;switch(p){case"top":g={x:f,y:l.y-s.height};break;case"bottom":g={x:f,y:l.y+l.height};break;case"right":g={x:l.x+l.width,y:u};break;case"left":g={x:l.x-s.width,y:u};break;default:g={x:l.x,y:l.y}}switch(i(e)){case"start":g[c]-=v*(r&&h?-1:1);break;case"end":g[c]+=v*(r&&h?-1:1);break}return g}var s=function(t,e,n){return __awaiter(r,void 0,void 0,(function(){var r,i,a,o,s,f,u,c,d,v,p,h,g,m,y,_,w,b,x,A,R,P,L,O,T;var E,k;return __generator(this,(function(D){switch(D.label){case 0:r=n.placement,i=r===void 0?"bottom":r,a=n.strategy,o=a===void 0?"absolute":a,s=n.middleware,f=s===void 0?[]:s,u=n.platform;return[4,u.isRTL==null?void 0:u.isRTL(e)];case 1:c=D.sent();return[4,u.getElementRects({reference:t,floating:e,strategy:o})];case 2:d=D.sent();v=l(d,i,c),p=v.x,h=v.y;g=i;m={};y=0;_=0;D.label=3;case 3:if(!(_<f.length))return[3,11];w=f[_],b=w.name,x=w.fn;return[4,x({x:p,y:h,initialPlacement:i,placement:g,strategy:o,middlewareData:m,rects:d,platform:u,elements:{reference:t,floating:e}})];case 4:A=D.sent(),R=A.x,P=A.y,L=A.data,O=A.reset;p=R!=null?R:p;h=P!=null?P:h;m=__assign(__assign({},m),(E={},E[b]=__assign(__assign({},m[b]),L),E));if(!(O&&y<=50))return[3,10];y++;if(!(typeof O==="object"))return[3,9];if(O.placement){g=O.placement}if(!O.rects)return[3,8];if(!(O.rects===true))return[3,6];return[4,u.getElementRects({reference:t,floating:e,strategy:o})];case 5:T=D.sent();return[3,7];case 6:T=O.rects;D.label=7;case 7:d=T;D.label=8;case 8:k=l(d,g,c),p=k.x,h=k.y;D.label=9;case 9:_=-1;return[3,10];case 10:_++;return[3,3];case 11:return[2,{x:p,y:h,placement:g,strategy:o,middlewareData:m}]}}))}))};function f(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function u(t){return typeof t!=="number"?f(t):{top:t,right:t,bottom:t,left:t}}function c(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function d(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,l,s,f,d,v,p,h,g,m,y,_,w,b,x,A,R,P,L,O,T,E,k,D,S,H,W;var C,j;return __generator(this,(function(M){switch(M.label){case 0:if(e===void 0){e={}}n=t.x,i=t.y,a=t.platform,o=t.rects,l=t.elements,s=t.strategy;f=e.boundary,d=f===void 0?"clippingAncestors":f,v=e.rootBoundary,p=v===void 0?"viewport":v,h=e.elementContext,g=h===void 0?"floating":h,m=e.altBoundary,y=m===void 0?false:m,_=e.padding,w=_===void 0?0:_;b=u(w);x=g==="floating"?"reference":"floating";A=l[y?x:g];P=c;O=(L=a).getClippingRect;C={};return[4,a.isElement==null?void 0:a.isElement(A)];case 1:if(!((r=M.sent())!=null?r:true))return[3,2];T=A;return[3,5];case 2:E=A.contextElement;if(E)return[3,4];return[4,a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)];case 3:E=M.sent();M.label=4;case 4:T=E;M.label=5;case 5:return[4,O.apply(L,[(C.element=T,C.boundary=d,C.rootBoundary=p,C.strategy=s,C)])];case 6:R=P.apply(void 0,[M.sent()]);D=c;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,9];W=(H=a).convertOffsetParentRelativeRectToViewportRelativeRect;j={rect:g==="floating"?__assign(__assign({},o.floating),{x:n,y:i}):o.reference};return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)];case 7:return[4,W.apply(H,[(j.offsetParent=M.sent(),j.strategy=s,j)])];case 8:S=M.sent();return[3,10];case 9:S=o[g];M.label=10;case 10:k=D.apply(void 0,[S]);return[2,{top:R.top-k.top+b.top,bottom:k.bottom-R.bottom+b.bottom,left:R.left-k.left+b.left,right:k.right-R.right+b.right}]}}))}))}var v=Math.min;var p=Math.max;function h(t,e,r){return p(t,v(e,r))}var g=function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,l,s,f,c,d,v,p,g,m,y,_,w,b,x,A,R,P,L,O,T,E,k,D,S,H,W,C;var j,M;return __generator(this,(function(F){switch(F.label){case 0:r=t!=null?t:{},n=r.element,l=r.padding,s=l===void 0?0:l;f=e.x,c=e.y,d=e.placement,v=e.rects,p=e.platform;if(n==null){return[2,{}]}g=u(s);m={x:f,y:c};y=a(d);_=i(d);w=o(y);return[4,p.getDimensions(n)];case 1:b=F.sent();x=y==="y"?"top":"left";A=y==="y"?"bottom":"right";R=v.reference[w]+v.reference[y]-m[y]-v.floating[w];P=m[y]-v.reference[y];return[4,p.getOffsetParent==null?void 0:p.getOffsetParent(n)];case 2:L=F.sent();O=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0;if(O===0){O=v.floating[w]}T=R/2-P/2;E=g[x];k=O-b[w]-g[A];D=O/2-b[w]/2+T;S=h(E,D,k);H=_==="start"?g[x]:g[A];W=H>0&&D!==S&&v.reference[w]<=v.floating[w];C=W?D<E?E-D:k-D:0;return[2,(j={},j[y]=m[y]-C,j.data=(M={},M[y]=S,M.centerOffset=D-S,M),j)]}}))}))}}};var m={left:"right",right:"left",bottom:"top",top:"bottom"};function y(t){return t.replace(/left|right|bottom|top/g,(function(t){return m[t]}))}function _(t,e,r){if(r===void 0){r=false}var n=i(t);var l=a(t);var s=o(l);var f=l==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[s]>e.floating[s]){f=y(f)}return{main:f,cross:y(f)}}var w={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(function(t){return w[t]}))}var x=["top","right","bottom","left"];var A=x.reduce((function(t,e){return t.concat(e,e+"-start",e+"-end")}),[]);function R(t,e,r){var a=t?__spreadArray(__spreadArray([],r.filter((function(e){return i(e)===t})),true),r.filter((function(e){return i(e)!==t})),true):r.filter((function(t){return n(t)===t}));return a.filter((function(r){if(t){return i(r)===t||(e?b(r)!==r:false)}return true}))}var P=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,a,o,l,s,f,u,c,v,p,h,g,m,y,w,b,x,P,L,O,T,E,k,D,S,H,W,C,j,M,F,N,V;return __generator(this,(function(B){switch(B.label){case 0:s=e.x,f=e.y,u=e.rects,c=e.middlewareData,v=e.placement,p=e.platform,h=e.elements;g=t.alignment,m=g===void 0?null:g,y=t.allowedPlacements,w=y===void 0?A:y,b=t.autoAlignment,x=b===void 0?true:b,P=__rest(t,["alignment","allowedPlacements","autoAlignment"]);L=R(m,x,w);return[4,d(e,P)];case 1:O=B.sent();T=(r=(i=c.autoPlacement)==null?void 0:i.index)!=null?r:0;E=L[T];if(E==null){return[2,{}]}H=_;W=[E,u];return[4,p.isRTL==null?void 0:p.isRTL(h.floating)];case 2:k=H.apply(void 0,W.concat([B.sent()])),D=k.main,S=k.cross;if(v!==E){return[2,{x:s,y:f,reset:{placement:L[0]}}]}C=[O[n(E)],O[D],O[S]];j=__spreadArray(__spreadArray([],(a=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?a:[],true),[{placement:E,overflows:C}],false);M=L[T+1];if(M){return[2,{data:{index:T+1,overflows:j},reset:{placement:M}}]}F=j.slice().sort((function(t,e){return t.overflows[0]-e.overflows[0]}));N=(l=F.find((function(t){var e=t.overflows;return e.every((function(t){return t<=0}))})))==null?void 0:l.placement;V=N!=null?N:F[0].placement;if(V!==v){return[2,{data:{index:T+1,overflows:j},reset:{placement:V}}]}return[2,{}]}}))}))}}};function L(t){var e=y(t);return[b(t),e,b(e)]}var O=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,a,o,l,s,f,u,c,v,p,h,g,m,w,b,x,A,R,P,O,T,E,k,D,S,H,W,C,j,M,F,N,V,B,z;return __generator(this,(function(I){switch(I.label){case 0:i=e.placement,a=e.middlewareData,o=e.rects,l=e.initialPlacement,s=e.platform,f=e.elements;u=t.mainAxis,c=u===void 0?true:u,v=t.crossAxis,p=v===void 0?true:v,h=t.fallbackPlacements,g=t.fallbackStrategy,m=g===void 0?"bestFit":g,w=t.flipAlignment,b=w===void 0?true:w,x=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]);A=n(i);R=A===l;P=h||(R||!b?[y(l)]:L(l));O=__spreadArray([l],P,true);return[4,d(e,x)];case 1:T=I.sent();E=[];k=((r=a.flip)==null?void 0:r.overflows)||[];if(c){E.push(T[A])}if(!p)return[3,3];W=_;C=[i,o];return[4,s.isRTL==null?void 0:s.isRTL(f.floating)];case 2:D=W.apply(void 0,C.concat([I.sent()])),S=D.main,H=D.cross;E.push(T[S],T[H]);I.label=3;case 3:k=__spreadArray(__spreadArray([],k,true),[{placement:i,overflows:E}],false);if(!E.every((function(t){return t<=0}))){F=((j=(M=a.flip)==null?void 0:M.index)!=null?j:0)+1;N=O[F];if(N){return[2,{data:{index:F,overflows:k},reset:{placement:N}}]}V="bottom";switch(m){case"bestFit":{z=(B=k.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:B[0].placement;if(z){V=z}break}case"initialPlacement":V=l;break}if(i!==V){return[2,{reset:{placement:V}}]}}return[2,{}]}}))}))}}};function T(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return x.some((function(e){return t[e]>=0}))}var k=function(t){var e=t===void 0?{}:t,r=e.strategy,n=r===void 0?"referenceHidden":r,i=__rest(e,["strategy"]);return{name:"hide",fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,a,o,a,o;return __generator(this,(function(l){switch(l.label){case 0:e=t.rects;r=n;switch(r){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,d(t,__assign(__assign({},i),{elementContext:"reference"}))];case 2:a=l.sent();o=T(a,e.reference);return[2,{data:{referenceHiddenOffsets:o,referenceHidden:E(o)}}];case 3:return[4,d(t,__assign(__assign({},i),{altBoundary:true}))];case 4:a=l.sent();o=T(a,e.floating);return[2,{data:{escapedOffsets:o,escaped:E(o)}}];case 5:{return[2,{}]}l.label=6;case 6:return[2]}}))}))}}};function D(t,e){return __awaiter(this,void 0,void 0,(function(){var r,o,l,s,f,u,c,d,v,p,h,g,m,y;return __generator(this,(function(_){switch(_.label){case 0:r=t.placement,o=t.platform,l=t.elements;return[4,o.isRTL==null?void 0:o.isRTL(l.floating)];case 1:s=_.sent();f=n(r);u=i(r);c=a(r)==="x";d=["left","top"].includes(f)?-1:1;v=s&&c?-1:1;p=typeof e==="function"?e(t):e;h=typeof p==="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},p),g=h.mainAxis,m=h.crossAxis,y=h.alignmentAxis;if(u&&typeof y==="number"){m=u==="end"?y*-1:y}return[2,c?{x:m*v,y:g*d}:{x:g*d,y:m*v}]}}))}))}var S=function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.x,n=e.y;return[4,D(e,t)];case 1:i=a.sent();return[2,{x:r+i.x,y:n+i.y,data:i}]}}))}))}}};function H(t){return t==="x"?"y":"x"}var W=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,o,l,s,f,u,c,v,p,g,m,y,_,w,b,x,A,R,P,x,A,L,O,T;var E;return __generator(this,(function(k){switch(k.label){case 0:r=e.x,i=e.y,o=e.placement;l=t.mainAxis,s=l===void 0?true:l,f=t.crossAxis,u=f===void 0?false:f,c=t.limiter,v=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,p=__rest(t,["mainAxis","crossAxis","limiter"]);g={x:r,y:i};return[4,d(e,p)];case 1:m=k.sent();y=a(n(o));_=H(y);w=g[y];b=g[_];if(s){x=y==="y"?"top":"left";A=y==="y"?"bottom":"right";R=w+m[x];P=w-m[A];w=h(R,w,P)}if(u){x=_==="y"?"top":"left";A=_==="y"?"bottom":"right";L=b+m[x];O=b-m[A];b=h(L,b,O)}T=v.fn(__assign(__assign({},e),(E={},E[y]=w,E[_]=b,E)));return[2,__assign(__assign({},T),{data:{x:T.x-r,y:T.y-i}})]}}))}))}}};function C(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function j(t){if(t==null){return window}if(!C(t)){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function M(t){return j(t).getComputedStyle(t)}function F(t){return C(t)?"":t?(t.nodeName||"").toLowerCase():""}function N(){var t=navigator.userAgentData;if(t!=null&&t.brands){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function V(t){return t instanceof j(t).HTMLElement}function B(t){return t instanceof j(t).Element}function z(t){return t instanceof j(t).Node}function I(t){if(typeof ShadowRoot==="undefined"){return false}var e=j(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function X(t){var e=M(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Y(t){return["table","td","th"].includes(F(t))}function q(t){var e=/firefox/i.test(N());var r=M(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":false)}function G(){return!/^((?!chrome|android).)*safari/i.test(N())}var J=Math.min;var K=Math.max;var Q=Math.round;function U(t,e,r){var n,i,a,o;if(e===void 0){e=false}if(r===void 0){r=false}var l=t.getBoundingClientRect();var s=1;var f=1;if(e&&V(t)){s=t.offsetWidth>0?Q(l.width)/t.offsetWidth||1:1;f=t.offsetHeight>0?Q(l.height)/t.offsetHeight||1:1}var u=B(t)?j(t):window;var c=!G()&&r;var d=(l.left+(c?(n=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0:0))/s;var v=(l.top+(c?(a=(o=u.visualViewport)==null?void 0:o.offsetTop)!=null?a:0:0))/f;var p=l.width/s;var h=l.height/f;return{width:p,height:h,top:v,right:d+p,bottom:v+h,left:d,x:d,y:v}}function Z(t){return((z(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){if(B(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tt(t){return U(Z(t)).left+$(t).scrollLeft}function et(t){var e=U(t);return Q(e.width)!==t.offsetWidth||Q(e.height)!==t.offsetHeight}function rt(t,e,r){var n=V(e);var i=Z(e);var a=U(t,n&&et(e),r==="fixed");var o={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&r!=="fixed"){if(F(e)!=="body"||X(i)){o=$(e)}if(V(e)){var s=U(e,true);l.x=s.x+e.clientLeft;l.y=s.y+e.clientTop}else if(i){l.x=tt(i)}}return{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function nt(t){if(F(t)==="html"){return t}return t.assignedSlot||t.parentNode||(I(t)?t.host:null)||Z(t)}function it(t){if(!V(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function at(t){var e=nt(t);if(I(e)){e=e.host}while(V(e)&&!["html","body"].includes(F(e))){if(q(e)){return e}else{e=e.parentNode}}return null}function ot(t){var e=j(t);var r=it(t);while(r&&Y(r)&&getComputedStyle(r).position==="static"){r=it(r)}if(r&&(F(r)==="html"||F(r)==="body"&&getComputedStyle(r).position==="static"&&!q(r))){return e}return r||at(t)||e}function lt(t){if(V(t)){return{width:t.offsetWidth,height:t.offsetHeight}}var e=U(t);return{width:e.width,height:e.height}}function st(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var i=V(r);var a=Z(r);if(r===a){return e}var o={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(i||!i&&n!=="fixed"){if(F(r)!=="body"||X(a)){o=$(r)}if(V(r)){var s=U(r,true);l.x=s.x+r.clientLeft;l.y=s.y+r.clientTop}}return __assign(__assign({},e),{x:e.x-o.scrollLeft+l.x,y:e.y-o.scrollTop+l.y})}function ft(t,e){var r=j(t);var n=Z(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var l=0;var s=0;if(i){a=i.width;o=i.height;var f=G();if(f||!f&&e==="fixed"){l=i.offsetLeft;s=i.offsetTop}}return{width:a,height:o,x:l,y:s}}function ut(t){var e;var r=Z(t);var n=$(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=K(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=K(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var l=-n.scrollLeft+tt(t);var s=-n.scrollTop;if(M(i||r).direction==="rtl"){l+=K(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:l,y:s}}function ct(t){var e=nt(t);if(["html","body","#document"].includes(F(e))){return t.ownerDocument.body}if(V(e)&&X(e)){return e}return ct(e)}function dt(t,e){var r;if(e===void 0){e=[]}var n=ct(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=j(n);var o=i?[a].concat(a.visualViewport||[],X(n)?n:[]):n;var l=e.concat(o);return i?l:l.concat(dt(o))}function vt(t,e){var r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(r&&I(r)){var n=e;do{if(n&&t===n){return true}n=n.parentNode||n.host}while(n)}return false}function pt(t,e){var r=U(t,false,e==="fixed");var n=r.top+t.clientTop;var i=r.left+t.clientLeft;return{top:n,left:i,x:i,y:n,right:i+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function ht(t,e,r){if(e==="viewport"){return c(ft(t,r))}if(B(e)){return pt(e,r)}return c(ut(Z(t)))}function gt(t){var e=dt(t);var r=["absolute","fixed"].includes(M(t).position);var n=r&&V(t)?ot(t):t;if(!B(n)){return[]}return e.filter((function(t){return B(t)&&vt(t,n)&&F(t)!=="body"}))}function mt(t){var e=t.element,r=t.boundary,n=t.rootBoundary,i=t.strategy;var a=r==="clippingAncestors"?gt(e):[].concat(r);var o=__spreadArray(__spreadArray([],a,true),[n],false);var l=o[0];var s=o.reduce((function(t,r){var n=ht(e,r,i);t.top=K(n.top,t.top);t.right=J(n.right,t.right);t.bottom=J(n.bottom,t.bottom);t.left=K(n.left,t.left);return t}),ht(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}var yt={getClippingRect:mt,convertOffsetParentRelativeRectToViewportRelativeRect:st,isElement:B,getDimensions:lt,getOffsetParent:ot,getDocumentElement:Z,getElementRects:function(t){var e=t.reference,r=t.floating,n=t.strategy;return{reference:rt(e,ot(r),n),floating:__assign(__assign({},lt(r)),{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return M(t).direction==="rtl"}};function _t(t,e,r,n){if(n===void 0){n={}}var i=n.ancestorScroll,a=i===void 0?true:i,o=n.ancestorResize,l=o===void 0?true:o,s=n.elementResize,f=s===void 0?true:s,u=n.animationFrame,c=u===void 0?false:u;var d=a&&!c;var v=l&&!c;var p=d||v?__spreadArray(__spreadArray([],B(t)?dt(t):[],true),dt(e),true):[];p.forEach((function(t){d&&t.addEventListener("scroll",r,{passive:true});v&&t.addEventListener("resize",r)}));var h=null;if(f){var g=true;h=new ResizeObserver((function(){if(!g){r()}g=false}));B(t)&&!c&&h.observe(t);h.observe(e)}var m;var y=c?U(t):null;if(c){_()}function _(){var e=U(t);if(y&&(e.x!==y.x||e.y!==y.y||e.width!==y.width||e.height!==y.height)){r()}y=e;m=requestAnimationFrame(_)}r();return function(){var t;p.forEach((function(t){d&&t.removeEventListener("scroll",r);v&&t.removeEventListener("resize",r)}));(t=h)==null?void 0:t.disconnect();h=null;if(c){cancelAnimationFrame(m)}}}var wt=function(t,e,r){return s(t,e,__assign({platform:yt},r))};var bt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"];var xt=t("d","bottom-start");var At=t("F",{animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"});function Rt(t){var e=t.placement,r=t.disableFlip,n=t.flipPlacements,i=t.offsetDistance,a=t.offsetSkidding,o=t.arrowEl,l=t.type;var s=[W(),k()];if(l==="menu"){return __spreadArray(__spreadArray([],s,true),[O({fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]})],false)}if(l==="popover"||l==="tooltip"){var f=__spreadArray(__spreadArray([],s,true),[S({mainAxis:typeof i==="number"?i:0,crossAxis:typeof a==="number"?a:0})],false);if(e==="auto"||e==="auto-start"||e==="auto-end"){f.push(P({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null}))}else if(!r){f.push(O(n?{fallbackPlacements:n}:{}))}if(o){f.push(g({element:o}))}return f}return[]}function Pt(t,e){var r=t.filter((function(t){return bt.includes(t)}));if(r.length!==t.length){console.warn("".concat(e.tagName,": Invalid value found in: flipPlacements. Try any of these: ").concat(bt.map((function(t){return'"'.concat(t,'"')})).join(", ").trim()),{el:e})}return r}function Lt(t,r){var n=["left","right"];if(e(t)==="rtl"){n.reverse()}return r.replace(/-leading/gi,"-start").replace(/-trailing/gi,"-end").replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}function Ot(t){var e=t.referenceEl,r=t.floatingEl,n=t.overlayPositioning,i=n===void 0?"absolute":n,a=t.placement,o=t.disableFlip,l=t.flipPlacements,s=t.offsetDistance,f=t.offsetSkidding,u=t.arrowEl,c=t.type;return __awaiter(this,void 0,void 0,(function(){var t,n,d,v,p,h,g,m,y,_,w,b,x,A;return __generator(this,(function(R){switch(R.label){case 0:if(!e||!r){return[2,null]}return[4,wt(e,r,{strategy:i,placement:a==="auto"||a==="auto-start"||a==="auto-end"?undefined:Lt(r,a),middleware:Rt({placement:a,disableFlip:o,flipPlacements:l,offsetDistance:s,offsetSkidding:f,arrowEl:u,type:c})})];case 1:n=R.sent(),d=n.x,v=n.y,p=n.placement,h=n.strategy,g=n.middlewareData;if(g===null||g===void 0?void 0:g.arrow){m=g.arrow,y=m.x,_=m.y;Object.assign(u.style,{left:y!=null?"".concat(y,"px"):"",top:_!=null?"".concat(_,"px"):""})}w=(t=g===null||g===void 0?void 0:g.hide)===null||t===void 0?void 0:t.referenceHidden;b=w?"hidden":null;x=b?"none":null;r.setAttribute("data-placement",p);A="translate(".concat(Math.round(d),"px,").concat(Math.round(v),"px)");Object.assign(r.style,{visibility:b,pointerEvents:x,position:h,top:"0",left:"0",transform:A});return[2]}}))}))}var Tt=new WeakMap;function Et(t,e,r){if(!r||!e){return}kt(t,e,r);Tt.set(t,_t(e,r,(function(){if(t.open){t.reposition()}})))}function kt(t,e,r){if(!r||!e){return}var n=Tt.get(t);if(n){n()}Tt.delete(t)}var Dt=4;var St=t("b",Math.ceil(Math.hypot(Dt,Dt)))}}}));
|
|
5
|
+
* v1.0.0-beta.88
|
|
6
|
+
*/System.register(["./p-8f1ef9e3.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.a}],execute:function(){var r=this;t({a:kt,c:Et,f:Pt,p:Ot});function n(t){return t.split("-")[0]}function i(t){return t.split("-")[1]}function a(t){return["top","bottom"].includes(n(t))?"x":"y"}function o(t){return t==="y"?"height":"width"}function l(t,e,r){var l=t.reference,s=t.floating;var f=l.x+l.width/2-s.width/2;var u=l.y+l.height/2-s.height/2;var c=a(e);var d=o(c);var v=l[d]/2-s[d]/2;var p=n(e);var h=c==="x";var g;switch(p){case"top":g={x:f,y:l.y-s.height};break;case"bottom":g={x:f,y:l.y+l.height};break;case"right":g={x:l.x+l.width,y:u};break;case"left":g={x:l.x-s.width,y:u};break;default:g={x:l.x,y:l.y}}switch(i(e)){case"start":g[c]-=v*(r&&h?-1:1);break;case"end":g[c]+=v*(r&&h?-1:1);break}return g}var s=function(t,e,n){return __awaiter(r,void 0,void 0,(function(){var r,i,a,o,s,f,u,c,d,v,p,h,g,m,y,_,w,b,x,A,R,P,L,O,T;var E,k;return __generator(this,(function(D){switch(D.label){case 0:r=n.placement,i=r===void 0?"bottom":r,a=n.strategy,o=a===void 0?"absolute":a,s=n.middleware,f=s===void 0?[]:s,u=n.platform;return[4,u.isRTL==null?void 0:u.isRTL(e)];case 1:c=D.sent();return[4,u.getElementRects({reference:t,floating:e,strategy:o})];case 2:d=D.sent();v=l(d,i,c),p=v.x,h=v.y;g=i;m={};y=0;_=0;D.label=3;case 3:if(!(_<f.length))return[3,11];w=f[_],b=w.name,x=w.fn;return[4,x({x:p,y:h,initialPlacement:i,placement:g,strategy:o,middlewareData:m,rects:d,platform:u,elements:{reference:t,floating:e}})];case 4:A=D.sent(),R=A.x,P=A.y,L=A.data,O=A.reset;p=R!=null?R:p;h=P!=null?P:h;m=__assign(__assign({},m),(E={},E[b]=__assign(__assign({},m[b]),L),E));if(!(O&&y<=50))return[3,10];y++;if(!(typeof O==="object"))return[3,9];if(O.placement){g=O.placement}if(!O.rects)return[3,8];if(!(O.rects===true))return[3,6];return[4,u.getElementRects({reference:t,floating:e,strategy:o})];case 5:T=D.sent();return[3,7];case 6:T=O.rects;D.label=7;case 7:d=T;D.label=8;case 8:k=l(d,g,c),p=k.x,h=k.y;D.label=9;case 9:_=-1;return[3,10];case 10:_++;return[3,3];case 11:return[2,{x:p,y:h,placement:g,strategy:o,middlewareData:m}]}}))}))};function f(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function u(t){return typeof t!=="number"?f(t):{top:t,right:t,bottom:t,left:t}}function c(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function d(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,l,s,f,d,v,p,h,g,m,y,_,w,b,x,A,R,P,L,O,T,E,k,D,S,H,W;var C,j;return __generator(this,(function(M){switch(M.label){case 0:if(e===void 0){e={}}n=t.x,i=t.y,a=t.platform,o=t.rects,l=t.elements,s=t.strategy;f=e.boundary,d=f===void 0?"clippingAncestors":f,v=e.rootBoundary,p=v===void 0?"viewport":v,h=e.elementContext,g=h===void 0?"floating":h,m=e.altBoundary,y=m===void 0?false:m,_=e.padding,w=_===void 0?0:_;b=u(w);x=g==="floating"?"reference":"floating";A=l[y?x:g];P=c;O=(L=a).getClippingRect;C={};return[4,a.isElement==null?void 0:a.isElement(A)];case 1:if(!((r=M.sent())!=null?r:true))return[3,2];T=A;return[3,5];case 2:E=A.contextElement;if(E)return[3,4];return[4,a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)];case 3:E=M.sent();M.label=4;case 4:T=E;M.label=5;case 5:return[4,O.apply(L,[(C.element=T,C.boundary=d,C.rootBoundary=p,C.strategy=s,C)])];case 6:R=P.apply(void 0,[M.sent()]);D=c;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,9];W=(H=a).convertOffsetParentRelativeRectToViewportRelativeRect;j={rect:g==="floating"?__assign(__assign({},o.floating),{x:n,y:i}):o.reference};return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)];case 7:return[4,W.apply(H,[(j.offsetParent=M.sent(),j.strategy=s,j)])];case 8:S=M.sent();return[3,10];case 9:S=o[g];M.label=10;case 10:k=D.apply(void 0,[S]);return[2,{top:R.top-k.top+b.top,bottom:k.bottom-R.bottom+b.bottom,left:R.left-k.left+b.left,right:k.right-R.right+b.right}]}}))}))}var v=Math.min;var p=Math.max;function h(t,e,r){return p(t,v(e,r))}var g=function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,l,s,f,c,d,v,p,g,m,y,_,w,b,x,A,R,P,L,O,T,E,k,D,S,H,W,C;var j,M;return __generator(this,(function(F){switch(F.label){case 0:r=t!=null?t:{},n=r.element,l=r.padding,s=l===void 0?0:l;f=e.x,c=e.y,d=e.placement,v=e.rects,p=e.platform;if(n==null){return[2,{}]}g=u(s);m={x:f,y:c};y=a(d);_=i(d);w=o(y);return[4,p.getDimensions(n)];case 1:b=F.sent();x=y==="y"?"top":"left";A=y==="y"?"bottom":"right";R=v.reference[w]+v.reference[y]-m[y]-v.floating[w];P=m[y]-v.reference[y];return[4,p.getOffsetParent==null?void 0:p.getOffsetParent(n)];case 2:L=F.sent();O=L?y==="y"?L.clientHeight||0:L.clientWidth||0:0;if(O===0){O=v.floating[w]}T=R/2-P/2;E=g[x];k=O-b[w]-g[A];D=O/2-b[w]/2+T;S=h(E,D,k);H=_==="start"?g[x]:g[A];W=H>0&&D!==S&&v.reference[w]<=v.floating[w];C=W?D<E?E-D:k-D:0;return[2,(j={},j[y]=m[y]-C,j.data=(M={},M[y]=S,M.centerOffset=D-S,M),j)]}}))}))}}};var m={left:"right",right:"left",bottom:"top",top:"bottom"};function y(t){return t.replace(/left|right|bottom|top/g,(function(t){return m[t]}))}function _(t,e,r){if(r===void 0){r=false}var n=i(t);var l=a(t);var s=o(l);var f=l==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[s]>e.floating[s]){f=y(f)}return{main:f,cross:y(f)}}var w={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(function(t){return w[t]}))}var x=["top","right","bottom","left"];var A=x.reduce((function(t,e){return t.concat(e,e+"-start",e+"-end")}),[]);function R(t,e,r){var a=t?__spreadArray(__spreadArray([],r.filter((function(e){return i(e)===t})),true),r.filter((function(e){return i(e)!==t})),true):r.filter((function(t){return n(t)===t}));return a.filter((function(r){if(t){return i(r)===t||(e?b(r)!==r:false)}return true}))}var P=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,a,o,l,s,f,u,c,v,p,h,g,m,y,w,b,x,P,L,O,T,E,k,D,S,H,W,C,j,M,F,N,V;return __generator(this,(function(B){switch(B.label){case 0:s=e.x,f=e.y,u=e.rects,c=e.middlewareData,v=e.placement,p=e.platform,h=e.elements;g=t.alignment,m=g===void 0?null:g,y=t.allowedPlacements,w=y===void 0?A:y,b=t.autoAlignment,x=b===void 0?true:b,P=__rest(t,["alignment","allowedPlacements","autoAlignment"]);L=R(m,x,w);return[4,d(e,P)];case 1:O=B.sent();T=(r=(i=c.autoPlacement)==null?void 0:i.index)!=null?r:0;E=L[T];if(E==null){return[2,{}]}H=_;W=[E,u];return[4,p.isRTL==null?void 0:p.isRTL(h.floating)];case 2:k=H.apply(void 0,W.concat([B.sent()])),D=k.main,S=k.cross;if(v!==E){return[2,{x:s,y:f,reset:{placement:L[0]}}]}C=[O[n(E)],O[D],O[S]];j=__spreadArray(__spreadArray([],(a=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?a:[],true),[{placement:E,overflows:C}],false);M=L[T+1];if(M){return[2,{data:{index:T+1,overflows:j},reset:{placement:M}}]}F=j.slice().sort((function(t,e){return t.overflows[0]-e.overflows[0]}));N=(l=F.find((function(t){var e=t.overflows;return e.every((function(t){return t<=0}))})))==null?void 0:l.placement;V=N!=null?N:F[0].placement;if(V!==v){return[2,{data:{index:T+1,overflows:j},reset:{placement:V}}]}return[2,{}]}}))}))}}};function L(t){var e=y(t);return[b(t),e,b(e)]}var O=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,a,o,l,s,f,u,c,v,p,h,g,m,w,b,x,A,R,P,O,T,E,k,D,S,H,W,C,j,M,F,N,V,B,z;return __generator(this,(function(I){switch(I.label){case 0:i=e.placement,a=e.middlewareData,o=e.rects,l=e.initialPlacement,s=e.platform,f=e.elements;u=t.mainAxis,c=u===void 0?true:u,v=t.crossAxis,p=v===void 0?true:v,h=t.fallbackPlacements,g=t.fallbackStrategy,m=g===void 0?"bestFit":g,w=t.flipAlignment,b=w===void 0?true:w,x=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]);A=n(i);R=A===l;P=h||(R||!b?[y(l)]:L(l));O=__spreadArray([l],P,true);return[4,d(e,x)];case 1:T=I.sent();E=[];k=((r=a.flip)==null?void 0:r.overflows)||[];if(c){E.push(T[A])}if(!p)return[3,3];W=_;C=[i,o];return[4,s.isRTL==null?void 0:s.isRTL(f.floating)];case 2:D=W.apply(void 0,C.concat([I.sent()])),S=D.main,H=D.cross;E.push(T[S],T[H]);I.label=3;case 3:k=__spreadArray(__spreadArray([],k,true),[{placement:i,overflows:E}],false);if(!E.every((function(t){return t<=0}))){F=((j=(M=a.flip)==null?void 0:M.index)!=null?j:0)+1;N=O[F];if(N){return[2,{data:{index:F,overflows:k},reset:{placement:N}}]}V="bottom";switch(m){case"bestFit":{z=(B=k.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:B[0].placement;if(z){V=z}break}case"initialPlacement":V=l;break}if(i!==V){return[2,{reset:{placement:V}}]}}return[2,{}]}}))}))}}};function T(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return x.some((function(e){return t[e]>=0}))}var k=function(t){var e=t===void 0?{}:t,r=e.strategy,n=r===void 0?"referenceHidden":r,i=__rest(e,["strategy"]);return{name:"hide",fn:function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,a,o,a,o;return __generator(this,(function(l){switch(l.label){case 0:e=t.rects;r=n;switch(r){case"referenceHidden":return[3,1];case"escaped":return[3,3]}return[3,5];case 1:return[4,d(t,__assign(__assign({},i),{elementContext:"reference"}))];case 2:a=l.sent();o=T(a,e.reference);return[2,{data:{referenceHiddenOffsets:o,referenceHidden:E(o)}}];case 3:return[4,d(t,__assign(__assign({},i),{altBoundary:true}))];case 4:a=l.sent();o=T(a,e.floating);return[2,{data:{escapedOffsets:o,escaped:E(o)}}];case 5:{return[2,{}]}l.label=6;case 6:return[2]}}))}))}}};function D(t,e){return __awaiter(this,void 0,void 0,(function(){var r,o,l,s,f,u,c,d,v,p,h,g,m,y;return __generator(this,(function(_){switch(_.label){case 0:r=t.placement,o=t.platform,l=t.elements;return[4,o.isRTL==null?void 0:o.isRTL(l.floating)];case 1:s=_.sent();f=n(r);u=i(r);c=a(r)==="x";d=["left","top"].includes(f)?-1:1;v=s&&c?-1:1;p=typeof e==="function"?e(t):e;h=typeof p==="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},p),g=h.mainAxis,m=h.crossAxis,y=h.alignmentAxis;if(u&&typeof y==="number"){m=u==="end"?y*-1:y}return[2,c?{x:m*v,y:g*d}:{x:g*d,y:m*v}]}}))}))}var S=function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.x,n=e.y;return[4,D(e,t)];case 1:i=a.sent();return[2,{x:r+i.x,y:n+i.y,data:i}]}}))}))}}};function H(t){return t==="x"?"y":"x"}var W=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,i,o,l,s,f,u,c,v,p,g,m,y,_,w,b,x,A,R,P,x,A,L,O,T;var E;return __generator(this,(function(k){switch(k.label){case 0:r=e.x,i=e.y,o=e.placement;l=t.mainAxis,s=l===void 0?true:l,f=t.crossAxis,u=f===void 0?false:f,c=t.limiter,v=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,p=__rest(t,["mainAxis","crossAxis","limiter"]);g={x:r,y:i};return[4,d(e,p)];case 1:m=k.sent();y=a(n(o));_=H(y);w=g[y];b=g[_];if(s){x=y==="y"?"top":"left";A=y==="y"?"bottom":"right";R=w+m[x];P=w-m[A];w=h(R,w,P)}if(u){x=_==="y"?"top":"left";A=_==="y"?"bottom":"right";L=b+m[x];O=b-m[A];b=h(L,b,O)}T=v.fn(__assign(__assign({},e),(E={},E[y]=w,E[_]=b,E)));return[2,__assign(__assign({},T),{data:{x:T.x-r,y:T.y-i}})]}}))}))}}};function C(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function j(t){if(t==null){return window}if(!C(t)){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function M(t){return j(t).getComputedStyle(t)}function F(t){return C(t)?"":t?(t.nodeName||"").toLowerCase():""}function N(){var t=navigator.userAgentData;if(t!=null&&t.brands){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function V(t){return t instanceof j(t).HTMLElement}function B(t){return t instanceof j(t).Element}function z(t){return t instanceof j(t).Node}function I(t){if(typeof ShadowRoot==="undefined"){return false}var e=j(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function X(t){var e=M(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Y(t){return["table","td","th"].includes(F(t))}function q(t){var e=/firefox/i.test(N());var r=M(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":false)}function G(){return!/^((?!chrome|android).)*safari/i.test(N())}var J=Math.min;var K=Math.max;var Q=Math.round;function U(t,e,r){var n,i,a,o;if(e===void 0){e=false}if(r===void 0){r=false}var l=t.getBoundingClientRect();var s=1;var f=1;if(e&&V(t)){s=t.offsetWidth>0?Q(l.width)/t.offsetWidth||1:1;f=t.offsetHeight>0?Q(l.height)/t.offsetHeight||1:1}var u=B(t)?j(t):window;var c=!G()&&r;var d=(l.left+(c?(n=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0:0))/s;var v=(l.top+(c?(a=(o=u.visualViewport)==null?void 0:o.offsetTop)!=null?a:0:0))/f;var p=l.width/s;var h=l.height/f;return{width:p,height:h,top:v,right:d+p,bottom:v+h,left:d,x:d,y:v}}function Z(t){return((z(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){if(B(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tt(t){return U(Z(t)).left+$(t).scrollLeft}function et(t){var e=U(t);return Q(e.width)!==t.offsetWidth||Q(e.height)!==t.offsetHeight}function rt(t,e,r){var n=V(e);var i=Z(e);var a=U(t,n&&et(e),r==="fixed");var o={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&r!=="fixed"){if(F(e)!=="body"||X(i)){o=$(e)}if(V(e)){var s=U(e,true);l.x=s.x+e.clientLeft;l.y=s.y+e.clientTop}else if(i){l.x=tt(i)}}return{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function nt(t){if(F(t)==="html"){return t}return t.assignedSlot||t.parentNode||(I(t)?t.host:null)||Z(t)}function it(t){if(!V(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function at(t){var e=nt(t);if(I(e)){e=e.host}while(V(e)&&!["html","body"].includes(F(e))){if(q(e)){return e}else{e=e.parentNode}}return null}function ot(t){var e=j(t);var r=it(t);while(r&&Y(r)&&getComputedStyle(r).position==="static"){r=it(r)}if(r&&(F(r)==="html"||F(r)==="body"&&getComputedStyle(r).position==="static"&&!q(r))){return e}return r||at(t)||e}function lt(t){if(V(t)){return{width:t.offsetWidth,height:t.offsetHeight}}var e=U(t);return{width:e.width,height:e.height}}function st(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var i=V(r);var a=Z(r);if(r===a){return e}var o={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(i||!i&&n!=="fixed"){if(F(r)!=="body"||X(a)){o=$(r)}if(V(r)){var s=U(r,true);l.x=s.x+r.clientLeft;l.y=s.y+r.clientTop}}return __assign(__assign({},e),{x:e.x-o.scrollLeft+l.x,y:e.y-o.scrollTop+l.y})}function ft(t,e){var r=j(t);var n=Z(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var l=0;var s=0;if(i){a=i.width;o=i.height;var f=G();if(f||!f&&e==="fixed"){l=i.offsetLeft;s=i.offsetTop}}return{width:a,height:o,x:l,y:s}}function ut(t){var e;var r=Z(t);var n=$(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=K(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=K(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var l=-n.scrollLeft+tt(t);var s=-n.scrollTop;if(M(i||r).direction==="rtl"){l+=K(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:l,y:s}}function ct(t){var e=nt(t);if(["html","body","#document"].includes(F(e))){return t.ownerDocument.body}if(V(e)&&X(e)){return e}return ct(e)}function dt(t,e){var r;if(e===void 0){e=[]}var n=ct(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=j(n);var o=i?[a].concat(a.visualViewport||[],X(n)?n:[]):n;var l=e.concat(o);return i?l:l.concat(dt(o))}function vt(t,e){var r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(r&&I(r)){var n=e;do{if(n&&t===n){return true}n=n.parentNode||n.host}while(n)}return false}function pt(t,e){var r=U(t,false,e==="fixed");var n=r.top+t.clientTop;var i=r.left+t.clientLeft;return{top:n,left:i,x:i,y:n,right:i+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function ht(t,e,r){if(e==="viewport"){return c(ft(t,r))}if(B(e)){return pt(e,r)}return c(ut(Z(t)))}function gt(t){var e=dt(t);var r=["absolute","fixed"].includes(M(t).position);var n=r&&V(t)?ot(t):t;if(!B(n)){return[]}return e.filter((function(t){return B(t)&&vt(t,n)&&F(t)!=="body"}))}function mt(t){var e=t.element,r=t.boundary,n=t.rootBoundary,i=t.strategy;var a=r==="clippingAncestors"?gt(e):[].concat(r);var o=__spreadArray(__spreadArray([],a,true),[n],false);var l=o[0];var s=o.reduce((function(t,r){var n=ht(e,r,i);t.top=K(n.top,t.top);t.right=J(n.right,t.right);t.bottom=J(n.bottom,t.bottom);t.left=K(n.left,t.left);return t}),ht(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}var yt={getClippingRect:mt,convertOffsetParentRelativeRectToViewportRelativeRect:st,isElement:B,getDimensions:lt,getOffsetParent:ot,getDocumentElement:Z,getElementRects:function(t){var e=t.reference,r=t.floating,n=t.strategy;return{reference:rt(e,ot(r),n),floating:__assign(__assign({},lt(r)),{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return M(t).direction==="rtl"}};function _t(t,e,r,n){if(n===void 0){n={}}var i=n.ancestorScroll,a=i===void 0?true:i,o=n.ancestorResize,l=o===void 0?true:o,s=n.elementResize,f=s===void 0?true:s,u=n.animationFrame,c=u===void 0?false:u;var d=a&&!c;var v=l&&!c;var p=d||v?__spreadArray(__spreadArray([],B(t)?dt(t):[],true),dt(e),true):[];p.forEach((function(t){d&&t.addEventListener("scroll",r,{passive:true});v&&t.addEventListener("resize",r)}));var h=null;if(f){var g=true;h=new ResizeObserver((function(){if(!g){r()}g=false}));B(t)&&!c&&h.observe(t);h.observe(e)}var m;var y=c?U(t):null;if(c){_()}function _(){var e=U(t);if(y&&(e.x!==y.x||e.y!==y.y||e.width!==y.width||e.height!==y.height)){r()}y=e;m=requestAnimationFrame(_)}r();return function(){var t;p.forEach((function(t){d&&t.removeEventListener("scroll",r);v&&t.removeEventListener("resize",r)}));(t=h)==null?void 0:t.disconnect();h=null;if(c){cancelAnimationFrame(m)}}}var wt=function(t,e,r){return s(t,e,__assign({platform:yt},r))};var bt=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"];var xt=t("d","bottom-start");var At=t("F",{animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"});function Rt(t){var e=t.placement,r=t.disableFlip,n=t.flipPlacements,i=t.offsetDistance,a=t.offsetSkidding,o=t.arrowEl,l=t.type;var s=[W(),k()];if(l==="menu"){return __spreadArray(__spreadArray([],s,true),[O({fallbackPlacements:["top-start","top","top-end","bottom-start","bottom","bottom-end"]})],false)}if(l==="popover"||l==="tooltip"){var f=__spreadArray(__spreadArray([],s,true),[S({mainAxis:typeof i==="number"?i:0,crossAxis:typeof a==="number"?a:0})],false);if(e==="auto"||e==="auto-start"||e==="auto-end"){f.push(P({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null}))}else if(!r){f.push(O(n?{fallbackPlacements:n}:{}))}if(o){f.push(g({element:o}))}return f}return[]}function Pt(t,e){var r=t.filter((function(t){return bt.includes(t)}));if(r.length!==t.length){console.warn("".concat(e.tagName,": Invalid value found in: flipPlacements. Try any of these: ").concat(bt.map((function(t){return'"'.concat(t,'"')})).join(", ").trim()),{el:e})}return r}function Lt(t,r){var n=["left","right"];if(e(t)==="rtl"){n.reverse()}return r.replace(/-leading/gi,"-start").replace(/-trailing/gi,"-end").replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}function Ot(t){var e=t.referenceEl,r=t.floatingEl,n=t.overlayPositioning,i=n===void 0?"absolute":n,a=t.placement,o=t.disableFlip,l=t.flipPlacements,s=t.offsetDistance,f=t.offsetSkidding,u=t.arrowEl,c=t.type;return __awaiter(this,void 0,void 0,(function(){var t,n,d,v,p,h,g,m,y,_,w,b,x,A;return __generator(this,(function(R){switch(R.label){case 0:if(!e||!r){return[2,null]}return[4,wt(e,r,{strategy:i,placement:a==="auto"||a==="auto-start"||a==="auto-end"?undefined:Lt(r,a),middleware:Rt({placement:a,disableFlip:o,flipPlacements:l,offsetDistance:s,offsetSkidding:f,arrowEl:u,type:c})})];case 1:n=R.sent(),d=n.x,v=n.y,p=n.placement,h=n.strategy,g=n.middlewareData;if(g===null||g===void 0?void 0:g.arrow){m=g.arrow,y=m.x,_=m.y;Object.assign(u.style,{left:y!=null?"".concat(y,"px"):"",top:_!=null?"".concat(_,"px"):""})}w=(t=g===null||g===void 0?void 0:g.hide)===null||t===void 0?void 0:t.referenceHidden;b=w?"hidden":null;x=b?"none":null;r.setAttribute("data-placement",p);A="translate(".concat(Math.round(d),"px,").concat(Math.round(v),"px)");Object.assign(r.style,{visibility:b,pointerEvents:x,position:h,top:"0",left:"0",transform:A});return[2]}}))}))}var Tt=new WeakMap;function Et(t,e,r){if(!r||!e){return}kt(t,e,r);Tt.set(t,_t(e,r,(function(){if(t.open){t.reposition()}})))}function kt(t,e,r){if(!r||!e){return}var n=Tt.get(t);if(n){n()}Tt.delete(t)}var Dt=4;var St=t("b",Math.ceil(Math.hypot(Dt,Dt)))}}}));
|
|
@@ -2,5 +2,5 @@ var __awaiter=this&&this.__awaiter||function(t,e,n,a){function i(t){return t ins
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
5
|
-
* v1.0.0-beta.
|
|
6
|
-
*/System.register(["./p-
|
|
5
|
+
* v1.0.0-beta.88
|
|
6
|
+
*/System.register(["./p-86c1da3b.system.js","./p-47e17bfe.system.js","./p-0d8047a0.system.js","./p-a0fed957.system.js","./p-ec28cc42.system.js","./p-bc258f16.system.js","./p-8f1ef9e3.system.js"],(function(t){"use strict";var e,n,a,i,r,o,s,c,l,u,f,p,d;return{setters:[function(t){e=t.r;n=t.c;a=t.h;i=t.F;r=t.g},function(t){o=t.g},function(t){s=t.c;c=t.d},function(t){l=t.c;u=t.d;f=t.H},function(t){p=t.u},function(t){d=t.i},function(){}],execute:function(){var m={rating:"Rating",stars:"Stars: ${num}"};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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0px;display:-ms-flexbox;display:flex;border-width:0px;padding:0px}.wrapper{display:inline-block;-webkit-margin-end:var(--calcite-rating-spacing-unit);margin-inline-end:var(--calcite-rating-spacing-unit)}.star{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}:host .fraction{pointer-events:none;position:absolute;inset-block-start:0px;overflow:hidden;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){-webkit-margin-start:var(--calcite-rating-spacing-unit);margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";var v=t("calcite_rating",function(){function t(t){var a=this;e(this,t);this.calciteRatingChange=n(this,"calciteRatingChange",7);this.scale="m";this.value=0;this.readOnly=false;this.disabled=false;this.showChip=false;this.intlRating=m.rating;this.intlStars=m.stars;this.required=false;this.onKeyboardPressed=function(t){if(!a.required&&d(t.key)){t.preventDefault();a.updateValue(0)}};this.onFocusChange=function(t){a.hasFocus=true;if(!a.required&&a.focusValue===t){a.updateValue(0)}else{a.focusValue=t}};this.guid="calcite-ratings-".concat(o())}t.prototype.connectedCallback=function(){s(this);l(this)};t.prototype.disconnectedCallback=function(){c(this);u(this)};t.prototype.componentDidRender=function(){p(this)};t.prototype.blurHandler=function(){this.hasFocus=false};t.prototype.renderStars=function(){var t=this;return[1,2,3,4,5].map((function(e){var n=t.value>=e;var i=t.average&&!t.value&&e<=t.average;var r=e<=t.hoverValue;var o=t.average&&t.average+1-e;var s=!t.value&&!r&&o>0&&o<1;var c=t.hasFocus&&t.focusValue===e;return a("span",{class:{wrapper:true}},a("label",{class:{star:true,focused:c,selected:n,average:i,hovered:r,partial:s},htmlFor:"".concat(t.guid,"-").concat(e),onMouseOver:function(){t.hoverValue=e}},a("calcite-icon",{"aria-hidden":"true",class:"icon",icon:n||i||t.readOnly?"star-f":"star",scale:t.scale}),s&&a("div",{class:"fraction",style:{width:"".concat(o*100,"%")}},a("calcite-icon",{icon:"star-f",scale:t.scale})),a("span",{class:"visually-hidden"},t.intlStars.replace("${num}","".concat(e)))),a("input",{checked:e===t.value,class:"visually-hidden",disabled:t.disabled||t.readOnly,id:"".concat(t.guid,"-").concat(e),name:t.guid,onChange:function(){return t.updateValue(e)},onClick:function(t){return t.stopPropagation()},onFocus:function(){return t.onFocusChange(e)},onKeyDown:t.onKeyboardPressed,ref:function(n){return(e===1||e===t.value)&&(t.inputFocusRef=n)},type:"radio",value:e}))}))};t.prototype.render=function(){var t=this;var e=this,n=e.disabled,r=e.intlRating,o=e.showChip,s=e.scale,c=e.count,l=e.average;return a(i,null,a("fieldset",{class:"fieldset",disabled:n,onBlur:function(){return t.hoverValue=null},onMouseLeave:function(){return t.hoverValue=null},onTouchEnd:function(){return t.hoverValue=null}},a("legend",{class:"visually-hidden"},r),this.renderStars()),(c||l)&&o?a("calcite-chip",{scale:s,value:c===null||c===void 0?void 0:c.toString()},!!l&&a("span",{class:"number--average"},l.toString()),!!c&&a("span",{class:"number--count"},"(",c===null||c===void 0?void 0:c.toString(),")")):null,a(f,{component:this}))};t.prototype.onLabelClick=function(){this.setFocus()};t.prototype.updateValue=function(t){this.value=t;this.calciteRatingChange.emit({value:t})};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){(t=this.inputFocusRef)===null||t===void 0?void 0:t.focus();return[2]}))}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());v.style=h}}}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-beta.
|
|
4
|
+
* v1.0.0-beta.88
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as a,F as n,g as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as a,F as n,g as e}from"./p-499e3e8e.js";import{g as s}from"./p-912b88e8.js";import{c as o,d as r}from"./p-d3040412.js";import{c as l,d as c,H as m}from"./p-0ee2d220.js";import{u as d}from"./p-abd4e5a8.js";import{i as p}from"./p-bbe16621.js";import"./p-1f4f5c19.js";const h=class{constructor(a){t(this,a),this.calciteRatingChange=i(this,"calciteRatingChange",7),this.scale="m",this.value=0,this.readOnly=!1,this.disabled=!1,this.showChip=!1,this.intlRating="Rating",this.intlStars="Stars: ${num}",this.required=!1,this.onKeyboardPressed=t=>{!this.required&&p(t.key)&&(t.preventDefault(),this.updateValue(0))},this.onFocusChange=t=>{this.hasFocus=!0,this.required||this.focusValue!==t?this.focusValue=t:this.updateValue(0)},this.guid=`calcite-ratings-${s()}`}connectedCallback(){o(this),l(this)}disconnectedCallback(){r(this),c(this)}componentDidRender(){d(this)}blurHandler(){this.hasFocus=!1}renderStars(){return[1,2,3,4,5].map((t=>{const i=this.value>=t,n=this.average&&!this.value&&t<=this.average,e=t<=this.hoverValue,s=this.average&&this.average+1-t,o=!this.value&&!e&&s>0&&s<1;return a("span",{class:{wrapper:!0}},a("label",{class:{star:!0,focused:this.hasFocus&&this.focusValue===t,selected:i,average:n,hovered:e,partial:o},htmlFor:`${this.guid}-${t}`,onMouseOver:()=>{this.hoverValue=t}},a("calcite-icon",{"aria-hidden":"true",class:"icon",icon:i||n||this.readOnly?"star-f":"star",scale:this.scale}),o&&a("div",{class:"fraction",style:{width:100*s+"%"}},a("calcite-icon",{icon:"star-f",scale:this.scale})),a("span",{class:"visually-hidden"},this.intlStars.replace("${num}",`${t}`))),a("input",{checked:t===this.value,class:"visually-hidden",disabled:this.disabled||this.readOnly,id:`${this.guid}-${t}`,name:this.guid,onChange:()=>this.updateValue(t),onClick:t=>t.stopPropagation(),onFocus:()=>this.onFocusChange(t),onKeyDown:this.onKeyboardPressed,ref:i=>(1===t||t===this.value)&&(this.inputFocusRef=i),type:"radio",value:t}))}))}render(){const{disabled:t,intlRating:i,showChip:e,scale:s,count:o,average:r}=this;return a(n,null,a("fieldset",{class:"fieldset",disabled:t,onBlur:()=>this.hoverValue=null,onMouseLeave:()=>this.hoverValue=null,onTouchEnd:()=>this.hoverValue=null},a("legend",{class:"visually-hidden"},i),this.renderStars()),(o||r)&&e?a("calcite-chip",{scale:s,value:null==o?void 0:o.toString()},!!r&&a("span",{class:"number--average"},r.toString()),!!o&&a("span",{class:"number--count"},"(",null==o?void 0:o.toString(),")")):null,a(m,{component:this}))}onLabelClick(){this.setFocus()}updateValue(t){this.value=t,this.calciteRatingChange.emit({value:t})}async setFocus(){var t;null===(t=this.inputFocusRef)||void 0===t||t.focus()}get el(){return e(this)}};h.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-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}: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{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;inline-size:-moz-fit-content;inline-size:-webkit-fit-content;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}:host([scale=s]){block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}:host([scale=m]){block-size:2rem;--calcite-rating-spacing-unit:0.5rem}:host([scale=l]){block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}:host([read-only]){pointer-events:none}.fieldset{margin:0px;display:-ms-flexbox;display:flex;border-width:0px;padding:0px}.wrapper{display:inline-block;-webkit-margin-end:var(--calcite-rating-spacing-unit);margin-inline-end:var(--calcite-rating-spacing-unit)}.star{position:relative;display:-ms-flexbox;display:flex;cursor:pointer;outline-color:transparent;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-input)}.focused{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.average,.fraction{color:var(--calcite-ui-warning)}.hovered,.selected,:host([read-only]) .average,:host([read-only]) .fraction{color:var(--calcite-ui-brand)}:host .fraction{pointer-events:none;position:absolute;inset-block-start:0px;overflow:hidden;-webkit-transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:var(--calcite-font-weight-bold)}.number--count{color:var(--calcite-ui-text-2);font-style:italic}.number--count:not(:first-child){-webkit-margin-start:var(--calcite-rating-spacing-unit);margin-inline-start:var(--calcite-rating-spacing-unit)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";export{h as calcite_rating}
|