@esri/calcite-components 1.0.0-beta.77 → 1.0.0-beta.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/date-picker/nls/bs.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ca.json +1 -1
- package/dist/calcite/assets/date-picker/nls/cs.json +1 -1
- package/dist/calcite/assets/date-picker/nls/da.json +1 -1
- package/dist/calcite/assets/date-picker/nls/de.json +1 -1
- package/dist/calcite/assets/date-picker/nls/el.json +1 -1
- package/dist/calcite/assets/date-picker/nls/en-AU.json +1 -1
- package/dist/calcite/assets/date-picker/nls/es.json +1 -1
- package/dist/calcite/assets/date-picker/nls/et.json +1 -1
- package/dist/calcite/assets/date-picker/nls/fi.json +1 -1
- package/dist/calcite/assets/date-picker/nls/fr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/hr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/hu.json +1 -1
- package/dist/calcite/assets/date-picker/nls/it.json +1 -1
- package/dist/calcite/assets/date-picker/nls/lt.json +1 -1
- package/dist/calcite/assets/date-picker/nls/lv.json +1 -1
- package/dist/calcite/assets/date-picker/nls/mk.json +1 -1
- package/dist/calcite/assets/date-picker/nls/nb.json +1 -1
- package/dist/calcite/assets/date-picker/nls/nl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/pl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ro.json +1 -1
- package/dist/calcite/assets/date-picker/nls/ru.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sl.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/sv.json +1 -1
- package/dist/calcite/assets/date-picker/nls/tr.json +1 -1
- package/dist/calcite/assets/date-picker/nls/uk.json +1 -1
- package/dist/calcite/assets/date-picker/nls/vi.json +1 -1
- package/dist/calcite/assets/icon/tiledImageryLayer16.json +1 -0
- package/dist/calcite/assets/icon/tiledImageryLayer24.json +1 -0
- package/dist/calcite/assets/icon/tiledImageryLayer32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/{p-e5420c67.entry.js → p-00d4b36e.entry.js} +1 -1
- package/dist/calcite/{p-b78f6de5.system.entry.js → p-02854dce.system.entry.js} +1 -1
- package/dist/calcite/{p-9ae39d7f.entry.js → p-02a3ad67.entry.js} +1 -1
- package/dist/calcite/{p-a61df17c.entry.js → p-02b4bcec.entry.js} +1 -1
- package/dist/calcite/{p-be231b84.entry.js → p-02cc50b9.entry.js} +1 -1
- package/dist/calcite/{p-374c3c70.entry.js → p-03a6680c.entry.js} +1 -1
- package/dist/calcite/{p-ada75056.system.js → p-08c58589.system.js} +1 -1
- package/dist/calcite/{p-5c2545f0.system.entry.js → p-0bd5bb31.system.entry.js} +1 -1
- package/dist/calcite/p-11413626.system.entry.js +5 -0
- package/dist/calcite/{p-fda73553.system.entry.js → p-129954f1.system.entry.js} +1 -1
- package/dist/calcite/{p-dcfb3261.system.entry.js → p-12a4eac6.system.entry.js} +1 -1
- package/dist/calcite/{p-153af136.entry.js → p-1370cabf.entry.js} +1 -1
- package/dist/calcite/{p-40c3d7a6.system.entry.js → p-13e36552.system.entry.js} +1 -1
- package/dist/calcite/{p-be87f022.system.entry.js → p-1a34e1df.system.entry.js} +1 -1
- package/dist/calcite/p-1a3a366d.system.js +1 -1
- package/dist/calcite/p-1d345756.system.entry.js +5 -0
- package/dist/calcite/{p-f3a85d19.system.entry.js → p-1f82294e.system.entry.js} +1 -1
- package/dist/calcite/{p-e3e09c27.entry.js → p-1fe5a777.entry.js} +1 -1
- package/dist/calcite/{p-36e29ddc.js → p-2277b440.js} +1 -1
- package/dist/calcite/{p-448ee714.entry.js → p-26bcdb22.entry.js} +1 -1
- package/dist/calcite/p-296c1d5a.system.entry.js +5 -0
- package/dist/calcite/{p-cfcb2161.entry.js → p-2a3d08b7.entry.js} +1 -1
- package/dist/calcite/{p-aceeb62f.entry.js → p-2c293ed2.entry.js} +1 -1
- package/dist/calcite/{p-0a8635a5.system.entry.js → p-2eb067c8.system.entry.js} +1 -1
- package/dist/calcite/{p-dd8b6d4f.system.entry.js → p-2fbc2a9b.system.entry.js} +2 -2
- package/dist/calcite/{p-14bac901.system.entry.js → p-313fa6fa.system.entry.js} +1 -1
- package/dist/calcite/{p-668c5e70.js → p-33cff2d9.js} +1 -1
- package/dist/calcite/{p-e39100e6.system.entry.js → p-3543ddfe.system.entry.js} +1 -1
- package/dist/calcite/{p-e3f19c5f.system.entry.js → p-35461165.system.entry.js} +1 -1
- package/dist/calcite/{p-2e29554c.js → p-362522e5.js} +0 -0
- package/dist/calcite/{p-f894bab4.system.entry.js → p-36fa8b0f.system.entry.js} +1 -1
- package/dist/calcite/{p-1c0b4e1a.system.entry.js → p-383b48a0.system.entry.js} +1 -1
- package/dist/calcite/p-38c4fbab.system.entry.js +5 -0
- package/dist/calcite/{p-9c7544ce.entry.js → p-3955bdff.entry.js} +1 -1
- package/dist/calcite/p-3a7606c8.entry.js +5 -0
- package/dist/calcite/{p-c11cbced.system.entry.js → p-3c773436.system.entry.js} +1 -1
- package/dist/calcite/p-3e522dbe.entry.js +5 -0
- package/dist/calcite/{p-a5b366e8.entry.js → p-417c7d5d.entry.js} +1 -1
- package/dist/calcite/{p-68aab44a.system.entry.js → p-41806a13.system.entry.js} +1 -1
- package/dist/calcite/{p-141c978b.system.entry.js → p-43ec3d32.system.entry.js} +1 -1
- package/dist/calcite/{p-22ad05e8.entry.js → p-44dcac16.entry.js} +1 -1
- package/dist/calcite/p-458933db.system.entry.js +5 -0
- package/dist/calcite/{p-a8ac1295.system.entry.js → p-475869c9.system.entry.js} +1 -1
- package/dist/calcite/{p-3dd50bac.system.entry.js → p-4ff0e3a9.system.entry.js} +1 -1
- package/dist/calcite/{p-b4a23fdf.entry.js → p-55fa7908.entry.js} +1 -1
- package/dist/calcite/{p-7f1ff224.system.entry.js → p-579d1f1a.system.entry.js} +1 -1
- package/dist/calcite/{p-f4d9c369.system.entry.js → p-5a4b0056.system.entry.js} +1 -1
- package/dist/calcite/{p-838a07fc.system.entry.js → p-5a7b1bd1.system.entry.js} +2 -2
- package/dist/calcite/p-5c425028.entry.js +5 -0
- package/dist/calcite/p-5d52246b.system.js +5 -0
- package/dist/calcite/p-5ea8668d.entry.js +5 -0
- package/dist/calcite/{p-8456e717.system.entry.js → p-5ecd3b72.system.entry.js} +1 -1
- package/dist/calcite/{p-caad6f3c.entry.js → p-633a2c7f.entry.js} +1 -1
- package/dist/calcite/p-673a3cd9.entry.js +5 -0
- package/dist/calcite/p-6a3357f9.system.js +5 -0
- package/dist/calcite/{p-0119b1c4.entry.js → p-71d1bfb2.entry.js} +1 -1
- package/dist/calcite/p-743597e4.entry.js +5 -0
- package/dist/calcite/{p-d9499121.system.entry.js → p-75d8fd87.system.entry.js} +1 -1
- package/dist/calcite/{p-49992d49.entry.js → p-783bfba1.entry.js} +1 -1
- package/dist/calcite/{p-786b8250.entry.js → p-7863deb5.entry.js} +1 -1
- package/dist/calcite/p-793659d0.entry.js +5 -0
- package/dist/calcite/{p-7d4316a1.system.entry.js → p-7a0e8fab.system.entry.js} +1 -1
- package/dist/calcite/p-7ccf6273.entry.js +5 -0
- package/dist/calcite/{p-fe3fff79.entry.js → p-7d937b47.entry.js} +1 -1
- package/dist/calcite/{p-570074bd.entry.js → p-7d9f20b8.entry.js} +1 -1
- package/dist/calcite/{p-869eb8f9.entry.js → p-7dfe915f.entry.js} +1 -1
- package/dist/calcite/{p-d86f287b.entry.js → p-80ab216e.entry.js} +1 -1
- package/dist/calcite/{p-5f41045a.entry.js → p-818b3ac7.entry.js} +1 -1
- package/dist/calcite/p-81a3de30.system.entry.js +5 -0
- package/dist/calcite/p-81f7b919.entry.js +5 -0
- package/dist/calcite/{p-e469c1bc.entry.js → p-82c142d8.entry.js} +1 -1
- package/dist/calcite/{p-b1a43a5f.system.entry.js → p-847fc3a4.system.entry.js} +1 -1
- package/dist/calcite/{p-fc122064.entry.js → p-84f8db8e.entry.js} +1 -1
- package/dist/calcite/p-874ac36f.entry.js +5 -0
- package/dist/calcite/p-8f93be14.system.js +5 -0
- package/dist/calcite/{p-f974ab2f.entry.js → p-93bf2f70.entry.js} +1 -1
- package/dist/calcite/p-993a9701.system.entry.js +5 -0
- package/dist/calcite/{p-10b1b39a.system.entry.js → p-99da584e.system.entry.js} +1 -1
- package/dist/calcite/{p-39f8d232.entry.js → p-9c86f528.entry.js} +1 -1
- package/dist/calcite/{p-49782820.entry.js → p-9cfa3928.entry.js} +1 -1
- package/dist/calcite/{p-ab14b0a2.system.js → p-9d071e3c.system.js} +1 -1
- package/dist/calcite/p-9d102b23.system.entry.js +5 -0
- package/dist/calcite/{p-9eb4062a.entry.js → p-9f2e3d1e.entry.js} +1 -1
- package/dist/calcite/p-a117af56.system.js +1 -1
- package/dist/calcite/{p-513bc44f.system.entry.js → p-a4cc864a.system.entry.js} +1 -1
- package/dist/calcite/{p-f5739197.entry.js → p-a5397c9d.entry.js} +1 -1
- package/dist/calcite/p-a5e8d728.entry.js +5 -0
- package/dist/calcite/p-a7e2bf9b.system.entry.js +5 -0
- package/dist/calcite/p-aa336fc3.system.entry.js +5 -0
- package/dist/calcite/{p-52f03db0.entry.js → p-b03b03d5.entry.js} +1 -1
- package/dist/calcite/{p-d6f6b6c1.entry.js → p-b55643f5.entry.js} +1 -1
- package/dist/calcite/{p-479f8f07.entry.js → p-b58cdaca.entry.js} +1 -1
- package/dist/calcite/{p-86b63ebb.system.entry.js → p-b76ee102.system.entry.js} +1 -1
- package/dist/calcite/{p-5007d2f5.entry.js → p-b85064fc.entry.js} +1 -1
- package/dist/calcite/{p-c1d5aac6.js → p-ba2c5e07.js} +1 -1
- package/dist/calcite/p-bac18793.system.entry.js +5 -0
- package/dist/calcite/{p-bde80af8.entry.js → p-bfaed65e.entry.js} +1 -1
- package/dist/calcite/p-c0e695bd.js +5 -0
- package/dist/calcite/{p-82d85d32.system.entry.js → p-c6851d0b.system.entry.js} +1 -1
- package/dist/calcite/p-c9f280c1.system.js +5 -0
- package/dist/calcite/{p-66ca7309.entry.js → p-cc894f09.entry.js} +1 -1
- package/dist/calcite/{p-2e351904.system.entry.js → p-cd406e29.system.entry.js} +1 -1
- package/dist/calcite/{p-c1c37da9.entry.js → p-d08d1450.entry.js} +1 -1
- package/dist/calcite/{p-7b5207ea.system.entry.js → p-d1060fb1.system.entry.js} +1 -1
- package/dist/calcite/p-d359def7.system.entry.js +5 -0
- package/dist/calcite/p-d44165c7.entry.js +5 -0
- package/dist/calcite/{p-a5e0e140.entry.js → p-d4ba6e66.entry.js} +1 -1
- package/dist/calcite/{p-46b6888c.entry.js → p-d648a677.entry.js} +1 -1
- package/dist/calcite/{p-5ac1f5fb.system.entry.js → p-d7395b71.system.entry.js} +1 -1
- package/dist/calcite/{p-307c74d9.system.entry.js → p-da78fbb6.system.entry.js} +1 -1
- package/dist/calcite/{p-631e416a.system.js → p-daf1d0cf.system.js} +1 -1
- package/dist/calcite/p-dc9ff95e.system.entry.js +5 -0
- package/dist/calcite/p-dcf17450.system.entry.js +5 -0
- package/dist/calcite/{p-04bf9bca.system.entry.js → p-df3775ba.system.entry.js} +1 -1
- package/dist/calcite/p-e2047621.system.js +1 -1
- package/dist/calcite/{p-d2bcb3ae.entry.js → p-e23de208.entry.js} +1 -1
- package/dist/calcite/{p-de274791.system.js → p-e4c317a4.system.js} +1 -1
- package/dist/calcite/p-e5c3f4f6.system.entry.js +5 -0
- package/dist/calcite/{p-050a406e.entry.js → p-e7dd0a9f.entry.js} +1 -1
- package/dist/calcite/{p-9ca6c750.system.entry.js → p-e88fd904.system.entry.js} +1 -1
- package/dist/calcite/p-ec9bab33.system.js +2 -2
- package/dist/calcite/{p-30f0e22d.system.entry.js → p-ee88180e.system.entry.js} +1 -1
- package/dist/calcite/{p-53220585.system.entry.js → p-efb21590.system.entry.js} +2 -2
- package/dist/calcite/{p-c5463268.system.entry.js → p-f20b0a41.system.entry.js} +1 -1
- package/dist/calcite/{p-f763b1e7.system.entry.js → p-f31de031.system.entry.js} +1 -1
- package/dist/calcite/{p-2aea5398.entry.js → p-f542ba26.entry.js} +1 -1
- package/dist/calcite/p-f56ce7ea.js +5 -0
- package/dist/calcite/p-f5e91588.system.entry.js +5 -0
- package/dist/calcite/{p-f01b987c.entry.js → p-f681fbba.entry.js} +1 -1
- package/dist/calcite/{p-04bf684c.entry.js → p-f6d994ff.entry.js} +1 -1
- package/dist/calcite/{p-444e31b1.entry.js → p-f9d1a58e.entry.js} +1 -1
- package/dist/calcite/{p-f908d72a.system.entry.js → p-fd0d5d44.system.entry.js} +1 -1
- package/dist/calcite/p-fedbc6e6.js +5 -0
- package/dist/cjs/{ExpandToggle-ef5d508c.js → ExpandToggle-dbdede53.js} +2 -2
- package/dist/cjs/{Heading-ef16f5df.js → Heading-1870bc0e.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +17 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
- package/dist/cjs/calcite-action-pad.cjs.entry.js +3 -3
- package/dist/cjs/calcite-action.cjs.entry.js +3 -2
- package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
- package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +18 -10
- package/dist/cjs/calcite-button.cjs.entry.js +7 -13
- package/dist/cjs/calcite-card.cjs.entry.js +2 -2
- package/dist/cjs/calcite-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/calcite-chip.cjs.entry.js +2 -2
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
- package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
- package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +34 -5
- package/dist/cjs/calcite-input.cjs.entry.js +4 -4
- package/dist/cjs/calcite-label.cjs.entry.js +1 -1
- package/dist/cjs/calcite-link.cjs.entry.js +5 -15
- package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
- package/dist/cjs/calcite-modal.cjs.entry.js +2 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +2 -2
- package/dist/cjs/calcite-option_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
- package/dist/cjs/calcite-panel.cjs.entry.js +3 -3
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +4 -4
- package/dist/cjs/calcite-popover_2.cjs.entry.js +4 -4
- package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-rating.cjs.entry.js +2 -2
- package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
- package/dist/cjs/calcite-shell_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-switch.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tab_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tip_3.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -5
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +3 -3
- package/dist/cjs/calcite.cjs.js +3 -3
- package/dist/cjs/{conditionalSlot-92505fba.js → conditionalSlot-2917212e.js} +1 -1
- package/dist/cjs/{form-237cf392.js → form-d540f0cb.js} +1 -1
- package/dist/cjs/{index-6b5d2de5.js → index-8760acaf.js} +23 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{resources-4850fd7c.js → resources-00f23831.js} +2 -1
- package/dist/cjs/{resources-8a9f4e9c.js → resources-1e94d43c.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.css +7 -6
- package/dist/collection/components/accordion/accordion.js +2 -1
- package/dist/collection/components/accordion-item/accordion-item.js +13 -3
- package/dist/collection/components/action/action.js +2 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/block/block.js +7 -2
- package/dist/collection/components/block-section/block-section.js +12 -7
- package/dist/collection/components/button/button.js +6 -15
- package/dist/collection/components/color-picker/color-picker.js +2 -2
- package/dist/collection/components/combobox/combobox.css +2 -6
- package/dist/collection/components/date-picker/assets/date-picker/nls/bs.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ca.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/cs.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/da.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/de.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/el.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/en-AU.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/es.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/et.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/fi.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/fr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/hr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/hu.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/it.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/lt.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/lv.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/mk.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/nb.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/nl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/pl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ro.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/ru.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sl.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/sv.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/tr.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/uk.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/vi.json +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer16.json +1 -0
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer24.json +1 -0
- package/dist/collection/components/icon/assets/icon/tiledImageryLayer32.json +1 -0
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/link/link.js +5 -19
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -0
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/popover/popover.css +5 -0
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover-manager/popover-manager.css +1 -0
- package/dist/collection/components/slider/slider.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 +2 -2
- package/dist/collection/components/time-picker/resources.js +2 -1
- package/dist/collection/components/time-picker/time-picker.css +3 -0
- package/dist/collection/components/time-picker/time-picker.js +17 -2
- package/dist/collection/components/tooltip/tooltip.css +5 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip-manager/tooltip-manager.css +1 -0
- package/dist/collection/components/tree/tree.js +6 -4
- package/dist/collection/components/tree-item/tree-item.js +3 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/utils/time.js +13 -0
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/action.js +2 -1
- package/dist/components/button.js +6 -13
- package/dist/components/calcite-accordion-item.js +13 -3
- package/dist/components/calcite-accordion.js +3 -2
- package/dist/components/calcite-block-section.js +10 -5
- package/dist/components/calcite-block.js +7 -2
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-popover-manager.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +3 -1
- package/dist/components/calcite-tree.js +4 -2
- package/dist/components/input.js +2 -2
- package/dist/components/link.js +4 -15
- package/dist/components/loader.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/shared-list-render.js +1 -0
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/time-picker.js +32 -3
- package/dist/components/tooltip-manager.js +1 -1
- package/dist/custom-elements/index.js +94 -57
- package/dist/esm/{ExpandToggle-66a802f1.js → ExpandToggle-ed0ae55a.js} +2 -2
- package/dist/esm/{Heading-0793af93.js → Heading-8289fa96.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +17 -7
- package/dist/esm/calcite-action-bar.entry.js +3 -3
- package/dist/esm/calcite-action-group.entry.js +2 -2
- package/dist/esm/calcite-action-menu.entry.js +2 -2
- package/dist/esm/calcite-action-pad.entry.js +3 -3
- package/dist/esm/calcite-action.entry.js +3 -2
- package/dist/esm/calcite-alert.entry.js +1 -1
- package/dist/esm/calcite-avatar.entry.js +1 -1
- package/dist/esm/calcite-block_2.entry.js +18 -10
- package/dist/esm/calcite-button.entry.js +7 -13
- package/dist/esm/calcite-card.entry.js +2 -2
- package/dist/esm/calcite-checkbox.entry.js +2 -2
- package/dist/esm/calcite-chip.entry.js +2 -2
- package/dist/esm/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +4 -4
- package/dist/esm/calcite-date-picker_4.entry.js +3 -3
- package/dist/esm/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm/calcite-fab.entry.js +1 -1
- package/dist/esm/calcite-filter.entry.js +1 -1
- package/dist/esm/calcite-flow.entry.js +1 -1
- package/dist/esm/calcite-graph_2.entry.js +2 -2
- package/dist/esm/calcite-handle.entry.js +1 -1
- package/dist/esm/calcite-icon.entry.js +1 -1
- package/dist/esm/calcite-inline-editable.entry.js +1 -1
- package/dist/esm/calcite-input-date-picker.entry.js +3 -3
- package/dist/esm/calcite-input-message.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +34 -5
- package/dist/esm/calcite-input.entry.js +4 -4
- package/dist/esm/calcite-label.entry.js +1 -1
- package/dist/esm/calcite-link.entry.js +5 -15
- package/dist/esm/calcite-list_3.entry.js +3 -3
- package/dist/esm/calcite-loader.entry.js +2 -2
- package/dist/esm/calcite-modal.entry.js +2 -2
- package/dist/esm/calcite-notice.entry.js +2 -2
- package/dist/esm/calcite-option_3.entry.js +2 -2
- package/dist/esm/calcite-pagination.entry.js +1 -1
- package/dist/esm/calcite-panel.entry.js +3 -3
- package/dist/esm/calcite-pick-list_3.entry.js +4 -4
- package/dist/esm/calcite-popover_2.entry.js +4 -4
- package/dist/esm/calcite-progress.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm/calcite-radio-button.entry.js +2 -2
- package/dist/esm/calcite-radio-group_2.entry.js +2 -2
- package/dist/esm/calcite-rating.entry.js +2 -2
- package/dist/esm/calcite-scrim.entry.js +1 -1
- package/dist/esm/calcite-shell_3.entry.js +2 -2
- package/dist/esm/calcite-sortable-list.entry.js +1 -1
- package/dist/esm/calcite-split-button.entry.js +1 -1
- package/dist/esm/calcite-stepper_2.entry.js +1 -1
- package/dist/esm/calcite-switch.entry.js +2 -2
- package/dist/esm/calcite-tab_4.entry.js +3 -3
- package/dist/esm/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm/calcite-tile.entry.js +2 -2
- package/dist/esm/calcite-tip_3.entry.js +3 -3
- package/dist/esm/calcite-tooltip_2.entry.js +3 -3
- package/dist/esm/calcite-tree_2.entry.js +9 -5
- package/dist/esm/calcite-value-list_2.entry.js +3 -3
- package/dist/esm/calcite.js +3 -3
- package/dist/esm/{conditionalSlot-9e7d8609.js → conditionalSlot-c4b6c8b1.js} +1 -1
- package/dist/esm/{form-f90706b4.js → form-d07b2414.js} +1 -1
- package/dist/esm/{index-9de00868.js → index-0fefddd1.js} +23 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{resources-d6b3fa76.js → resources-431fa051.js} +1 -1
- package/dist/esm/{resources-e171d56b.js → resources-966bb21a.js} +2 -1
- package/dist/esm-es5/{ExpandToggle-66a802f1.js → ExpandToggle-ed0ae55a.js} +1 -1
- package/dist/esm-es5/{Heading-0793af93.js → Heading-8289fa96.js} +1 -1
- package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
- package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
- package/dist/esm-es5/calcite-action.entry.js +1 -1
- package/dist/esm-es5/calcite-alert.entry.js +1 -1
- package/dist/esm-es5/calcite-avatar.entry.js +1 -1
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-button.entry.js +1 -1
- package/dist/esm-es5/calcite-card.entry.js +1 -1
- package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- 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 +1 -1
- package/dist/esm-es5/calcite-fab.entry.js +1 -1
- package/dist/esm-es5/calcite-filter.entry.js +1 -1
- package/dist/esm-es5/calcite-flow.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
- package/dist/esm-es5/calcite-handle.entry.js +1 -1
- package/dist/esm-es5/calcite-icon.entry.js +1 -1
- package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
- package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm-es5/calcite-input-message.entry.js +1 -1
- package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.entry.js +2 -2
- package/dist/esm-es5/calcite-label.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-loader.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +1 -1
- package/dist/esm-es5/calcite-option_3.entry.js +1 -1
- package/dist/esm-es5/calcite-pagination.entry.js +1 -1
- package/dist/esm-es5/calcite-panel.entry.js +1 -1
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
- package/dist/esm-es5/calcite-progress.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
- package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
- package/dist/esm-es5/calcite-rating.entry.js +1 -1
- package/dist/esm-es5/calcite-scrim.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
- package/dist/esm-es5/calcite-split-button.entry.js +1 -1
- package/dist/esm-es5/calcite-stepper_2.entry.js +2 -2
- package/dist/esm-es5/calcite-switch.entry.js +1 -1
- package/dist/esm-es5/calcite-tab_4.entry.js +2 -2
- package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
- package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/{conditionalSlot-9e7d8609.js → conditionalSlot-c4b6c8b1.js} +1 -1
- package/dist/esm-es5/dom-e7fa77b9.js +2 -2
- package/dist/esm-es5/{form-f90706b4.js → form-d07b2414.js} +1 -1
- package/dist/esm-es5/index-0fefddd1.js +5 -0
- package/dist/esm-es5/label-2bffc9f4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/popper-ae231554.js +1 -1
- package/dist/esm-es5/resources-431fa051.js +5 -0
- package/dist/esm-es5/{resources-e171d56b.js → resources-966bb21a.js} +1 -1
- package/dist/esm-es5/utils-e84055a3.js +1 -1
- package/dist/extras/docs-json.json +18 -18
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/block/block.d.ts +1 -0
- package/dist/types/components/block-section/block-section.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +0 -3
- package/dist/types/components/link/link.d.ts +0 -4
- package/dist/types/components/time-picker/resources.d.ts +1 -0
- package/dist/types/components/time-picker/time-picker.d.ts +2 -0
- package/dist/types/components.d.ts +24 -24
- package/dist/types/utils/time.d.ts +1 -0
- package/hydrate/index.js +106 -59
- package/package.json +20 -20
- package/readme.md +2 -2
- package/dist/calcite/p-0db51b2f.entry.js +0 -5
- package/dist/calcite/p-13cbacc6.system.entry.js +0 -5
- package/dist/calcite/p-1a1dd9b6.system.entry.js +0 -5
- package/dist/calcite/p-2218fef5.entry.js +0 -5
- package/dist/calcite/p-26aea1cb.system.js +0 -5
- package/dist/calcite/p-288bc438.system.js +0 -5
- package/dist/calcite/p-301ee662.system.entry.js +0 -5
- package/dist/calcite/p-3970879d.system.entry.js +0 -5
- package/dist/calcite/p-44aa1db4.system.js +0 -5
- package/dist/calcite/p-5a77fd17.entry.js +0 -5
- package/dist/calcite/p-655c4dfd.entry.js +0 -5
- package/dist/calcite/p-65c30ccd.entry.js +0 -5
- package/dist/calcite/p-6a2ac09a.system.entry.js +0 -5
- package/dist/calcite/p-6a9e2249.system.entry.js +0 -5
- package/dist/calcite/p-6eb1302b.entry.js +0 -5
- package/dist/calcite/p-7415264e.system.entry.js +0 -5
- package/dist/calcite/p-89cb9df8.system.entry.js +0 -5
- package/dist/calcite/p-916a0f28.system.js +0 -5
- package/dist/calcite/p-9aaeb1df.entry.js +0 -5
- package/dist/calcite/p-a85634a1.system.entry.js +0 -5
- package/dist/calcite/p-be265e63.entry.js +0 -5
- package/dist/calcite/p-c27e520c.entry.js +0 -5
- package/dist/calcite/p-cb33659b.system.entry.js +0 -5
- package/dist/calcite/p-cb3a8861.entry.js +0 -5
- package/dist/calcite/p-e5e29b32.system.entry.js +0 -5
- package/dist/calcite/p-e66c335c.entry.js +0 -5
- package/dist/calcite/p-e7779d97.js +0 -5
- package/dist/calcite/p-e83a5fe4.system.entry.js +0 -5
- package/dist/calcite/p-e8e0f3b7.js +0 -5
- package/dist/calcite/p-ea510477.js +0 -5
- package/dist/calcite/p-ee124c9a.system.entry.js +0 -5
- package/dist/calcite/p-f6b0747a.system.entry.js +0 -5
- package/dist/calcite/p-fb948ef5.system.entry.js +0 -5
- package/dist/calcite/p-fdd3ea5e.entry.js +0 -5
- package/dist/calcite/p-fee9511c.system.entry.js +0 -5
- package/dist/esm-es5/index-9de00868.js +0 -5
- package/dist/esm-es5/resources-d6b3fa76.js +0 -5
|
@@ -42,8 +42,10 @@ export class Tree {
|
|
|
42
42
|
this.child = !!parent;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { "aria-multiselectable":
|
|
46
|
-
|
|
45
|
+
return (h(Host, { "aria-multiselectable": this.child
|
|
46
|
+
? undefined
|
|
47
|
+
: (this.selectionMode === TreeSelectionMode.Multi ||
|
|
48
|
+
this.selectionMode === TreeSelectionMode.MultiChildren).toString(), role: !this.child ? "tree" : undefined, tabIndex: this.getRootTabIndex() },
|
|
47
49
|
h("slot", null)));
|
|
48
50
|
}
|
|
49
51
|
//--------------------------------------------------------------------------
|
|
@@ -298,7 +300,7 @@ export class Tree {
|
|
|
298
300
|
"text": "\"single\""
|
|
299
301
|
}, {
|
|
300
302
|
"name": "see",
|
|
301
|
-
"text": "
|
|
303
|
+
"text": "[TreeSelectionMode](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L5)"
|
|
302
304
|
}],
|
|
303
305
|
"text": "Customize how tree selection works (single, multi, children, multi-children, ancestors)"
|
|
304
306
|
},
|
|
@@ -316,7 +318,7 @@ export class Tree {
|
|
|
316
318
|
"docs": {
|
|
317
319
|
"tags": [{
|
|
318
320
|
"name": "see",
|
|
319
|
-
"text": "
|
|
321
|
+
"text": "[TreeSelectDetail](https://github.com/Esri/calcite-components/blob/master/src/components/tree/interfaces.ts#L1)"
|
|
320
322
|
}],
|
|
321
323
|
"text": "Emitted when user selects/deselects tree items. An object including an array of selected items will be passed in the event's `detail` property."
|
|
322
324
|
},
|
|
@@ -172,6 +172,7 @@ export class TreeItem {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
keyDownHandler(e) {
|
|
175
|
+
var _a;
|
|
175
176
|
let root;
|
|
176
177
|
switch (e.key) {
|
|
177
178
|
case " ":
|
|
@@ -226,7 +227,8 @@ export class TreeItem {
|
|
|
226
227
|
}
|
|
227
228
|
// When focus is on a open node, moves focus to the first child node.
|
|
228
229
|
if (this.hasChildren && this.expanded) {
|
|
229
|
-
this.el.querySelector("calcite-tree-item").focus();
|
|
230
|
+
(_a = this.el.querySelector("calcite-tree-item")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
231
|
+
e.stopPropagation();
|
|
230
232
|
break;
|
|
231
233
|
}
|
|
232
234
|
// When focus is on an end node, does nothing.
|
|
@@ -251,7 +251,7 @@ export class ValueListItem {
|
|
|
251
251
|
"docs": {
|
|
252
252
|
"tags": [{
|
|
253
253
|
"name": "see",
|
|
254
|
-
"text": "
|
|
254
|
+
"text": "[ICON_TYPES](https://github.com/Esri/calcite-components/blob/master/src/components/pick-list/resources.ts#L5)"
|
|
255
255
|
}],
|
|
256
256
|
"text": "Determines the icon SVG symbol that will be shown. Options are circle, square, grip or null."
|
|
257
257
|
},
|
|
@@ -150,6 +150,19 @@ export function localizeTimeStringToParts(value, locale = "en") {
|
|
|
150
150
|
}
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
153
|
+
export function getTimeParts(value, locale = "en") {
|
|
154
|
+
if (!isValidTime(value)) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
const { hour, minute, second = "0" } = parseTimeString(value);
|
|
158
|
+
const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
|
|
159
|
+
if (dateFromTimeString) {
|
|
160
|
+
const formatter = createLocaleDateTimeFormatter(locale);
|
|
161
|
+
const parts = formatter.formatToParts(dateFromTimeString);
|
|
162
|
+
return parts;
|
|
163
|
+
}
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
153
166
|
export function parseTimeString(value) {
|
|
154
167
|
if (isValidTime(value)) {
|
|
155
168
|
const [hour, minute, second] = value.split(":");
|
|
@@ -63,7 +63,7 @@ function toggleChildActionText({ parent, expanded }) {
|
|
|
63
63
|
}
|
|
64
64
|
const setTooltipReference = ({ tooltip, referenceElement, expanded, ref }) => {
|
|
65
65
|
if (tooltip) {
|
|
66
|
-
tooltip.referenceElement = !expanded && referenceElement;
|
|
66
|
+
tooltip.referenceElement = !expanded && referenceElement ? referenceElement : null;
|
|
67
67
|
}
|
|
68
68
|
if (ref) {
|
|
69
69
|
ref(referenceElement);
|
|
@@ -119,7 +119,8 @@ let Action = class extends HTMLElement {
|
|
|
119
119
|
var _a;
|
|
120
120
|
const { loading, icon, scale, el, intlLoading } = this;
|
|
121
121
|
const iconScale = scale === "l" ? "m" : "s";
|
|
122
|
-
const
|
|
122
|
+
const loaderScale = scale === "l" ? "l" : "m";
|
|
123
|
+
const calciteLoaderNode = loading ? (h("calcite-loader", { active: true, inline: true, label: intlLoading, scale: loaderScale })) : null;
|
|
123
124
|
const calciteIconNode = icon ? h("calcite-icon", { icon: icon, scale: iconScale }) : null;
|
|
124
125
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
125
126
|
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
@@ -89,17 +89,15 @@ let Button = class extends HTMLElement$1 {
|
|
|
89
89
|
this.width = "auto";
|
|
90
90
|
/** watches for changing text content **/
|
|
91
91
|
this.mutationObserver = createObserver("mutation", () => this.updateHasContent());
|
|
92
|
-
/** the node type of the rendered child element */
|
|
93
|
-
this.childElType = "button";
|
|
94
92
|
/** determine if there is slotted content for styling purposes */
|
|
95
93
|
this.hasContent = false;
|
|
96
94
|
/** determine if loader present for styling purposes */
|
|
97
95
|
this.hasLoader = false;
|
|
98
96
|
// act on a requested or nearby form based on type
|
|
99
97
|
this.handleClick = () => {
|
|
100
|
-
const {
|
|
98
|
+
const { formEl, type } = this;
|
|
101
99
|
// this.type refers to type attribute, not child element type
|
|
102
|
-
if (
|
|
100
|
+
if (!this.href && type !== "button") {
|
|
103
101
|
if (type === "submit") {
|
|
104
102
|
formEl === null || formEl === void 0 ? void 0 : formEl.requestSubmit();
|
|
105
103
|
}
|
|
@@ -109,9 +107,6 @@ let Button = class extends HTMLElement$1 {
|
|
|
109
107
|
}
|
|
110
108
|
};
|
|
111
109
|
}
|
|
112
|
-
hrefHandler(href) {
|
|
113
|
-
this.childElType = href ? "a" : "button";
|
|
114
|
-
}
|
|
115
110
|
loadingChanged(newValue, oldValue) {
|
|
116
111
|
if (!!newValue && !oldValue) {
|
|
117
112
|
this.hasLoader = true;
|
|
@@ -128,7 +123,6 @@ let Button = class extends HTMLElement$1 {
|
|
|
128
123
|
//
|
|
129
124
|
//--------------------------------------------------------------------------
|
|
130
125
|
connectedCallback() {
|
|
131
|
-
this.childElType = this.href ? "a" : "button";
|
|
132
126
|
this.hasLoader = this.loading;
|
|
133
127
|
this.setupTextContentObserver();
|
|
134
128
|
connectLabel(this);
|
|
@@ -143,13 +137,14 @@ let Button = class extends HTMLElement$1 {
|
|
|
143
137
|
componentWillLoad() {
|
|
144
138
|
if (Build.isBrowser) {
|
|
145
139
|
this.updateHasContent();
|
|
146
|
-
if (this.
|
|
140
|
+
if (!this.href && !this.type) {
|
|
147
141
|
this.type = "submit";
|
|
148
142
|
}
|
|
149
143
|
}
|
|
150
144
|
}
|
|
151
145
|
render() {
|
|
152
|
-
const
|
|
146
|
+
const childElType = this.href ? "a" : "button";
|
|
147
|
+
const Tag = childElType;
|
|
153
148
|
const loaderNode = this.hasLoader ? (h("div", { class: CSS.buttonLoader }, h("calcite-loader", { active: true, class: this.loading ? CSS.loadingIn : CSS.loadingOut, inline: true, label: this.intlLoading, scale: "m" }))) : null;
|
|
154
149
|
const iconStartEl = (h("calcite-icon", { class: { [CSS.icon]: true, [CSS.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
155
150
|
const iconEndEl = (h("calcite-icon", { class: { [CSS.icon]: true, [CSS.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
@@ -158,7 +153,7 @@ let Button = class extends HTMLElement$1 {
|
|
|
158
153
|
[CSS.contentSlotted]: this.hasContent,
|
|
159
154
|
[CSS.iconStartEmpty]: !this.iconStart,
|
|
160
155
|
[CSS.iconEndEmpty]: !this.iconEnd
|
|
161
|
-
}, disabled: this.disabled || this.loading, href:
|
|
156
|
+
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: (el) => (this.childEl = el), rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, type: childElType === "button" && this.type }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
162
157
|
}
|
|
163
158
|
//--------------------------------------------------------------------------
|
|
164
159
|
//
|
|
@@ -192,7 +187,6 @@ let Button = class extends HTMLElement$1 {
|
|
|
192
187
|
}
|
|
193
188
|
get el() { return this; }
|
|
194
189
|
static get watchers() { return {
|
|
195
|
-
"href": ["hrefHandler"],
|
|
196
190
|
"loading": ["loadingChanged"]
|
|
197
191
|
}; }
|
|
198
192
|
static get style() { return buttonCss; }
|
|
@@ -218,7 +212,6 @@ Button = /*@__PURE__*/ proxyCustomElement(Button, [1, "calcite-button", {
|
|
|
218
212
|
"target": [1],
|
|
219
213
|
"type": [1025],
|
|
220
214
|
"width": [513],
|
|
221
|
-
"childElType": [32],
|
|
222
215
|
"hasContent": [32],
|
|
223
216
|
"hasLoader": [32],
|
|
224
217
|
"setFocus": [64]
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
|
|
7
|
+
import { g as guid } from './guid.js';
|
|
7
8
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
8
9
|
|
|
9
10
|
const accordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
|
|
@@ -24,6 +25,12 @@ let AccordionItem = class extends HTMLElement {
|
|
|
24
25
|
//--------------------------------------------------------------------------
|
|
25
26
|
/** Indicates whether the item is active. */
|
|
26
27
|
this.active = false;
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
//
|
|
30
|
+
// Private State/Props
|
|
31
|
+
//
|
|
32
|
+
//--------------------------------------------------------------------------
|
|
33
|
+
this.guid = guid();
|
|
27
34
|
/** what icon position does the parent accordion specify */
|
|
28
35
|
this.iconPosition = "end";
|
|
29
36
|
/** handle clicks on item header */
|
|
@@ -50,16 +57,19 @@ let AccordionItem = class extends HTMLElement {
|
|
|
50
57
|
render() {
|
|
51
58
|
const dir = getElementDir(this.el);
|
|
52
59
|
const iconEl = h("calcite-icon", { class: "accordion-item-icon", icon: this.icon, scale: "s" });
|
|
53
|
-
|
|
60
|
+
const { guid } = this;
|
|
61
|
+
const regionId = `${guid}-region`;
|
|
62
|
+
const buttonId = `${guid}-button`;
|
|
63
|
+
return (h(Host, { tabindex: "0" }, h("div", { class: {
|
|
54
64
|
[`icon-position--${this.iconPosition}`]: true,
|
|
55
65
|
[`icon-type--${this.iconType}`]: true
|
|
56
|
-
} }, h("div", { class: { "accordion-item-header": true, [CSS_UTILITY.rtl]: dir === "rtl" }, onClick: this.itemHeaderClickHandler }, this.icon ? iconEl : null, h("div", { class: "accordion-item-header-text" }, h("span", { class: "accordion-item-title" }, this.itemTitle), this.itemSubtitle ? (h("span", { class: "accordion-item-subtitle" }, this.itemSubtitle)) : null), h("calcite-icon", { class: "accordion-item-expand-icon", icon: this.iconType === "chevron"
|
|
66
|
+
} }, h("div", { "aria-controls": regionId, class: { "accordion-item-header": true, [CSS_UTILITY.rtl]: dir === "rtl" }, id: buttonId, onClick: this.itemHeaderClickHandler, role: "button" }, this.icon ? iconEl : null, h("div", { class: "accordion-item-header-text" }, h("span", { class: "accordion-item-title" }, this.itemTitle), this.itemSubtitle ? (h("span", { class: "accordion-item-subtitle" }, this.itemSubtitle)) : null), h("calcite-icon", { class: "accordion-item-expand-icon", icon: this.iconType === "chevron"
|
|
57
67
|
? "chevronDown"
|
|
58
68
|
: this.iconType === "caret"
|
|
59
69
|
? "caretDown"
|
|
60
70
|
: this.active
|
|
61
71
|
? "minus"
|
|
62
|
-
: "plus", scale: "s" })), h("div", { class: "accordion-item-content" }, h("slot", null)))));
|
|
72
|
+
: "plus", scale: "s" })), h("div", { "aria-expanded": this.active.toString(), "aria-labelledby": buttonId, class: "accordion-item-content", id: regionId, role: "region" }, h("slot", null)))));
|
|
63
73
|
}
|
|
64
74
|
//--------------------------------------------------------------------------
|
|
65
75
|
//
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
|
|
7
|
-
const accordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;
|
|
7
|
+
const accordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}.accordion{border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2)}";
|
|
8
8
|
|
|
9
9
|
let Accordion = class extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
@@ -53,7 +53,8 @@ let Accordion = class extends HTMLElement {
|
|
|
53
53
|
render() {
|
|
54
54
|
return (h("div", { class: {
|
|
55
55
|
"accordion--transparent": this.appearance === "transparent",
|
|
56
|
-
"accordion--minimal": this.appearance === "minimal"
|
|
56
|
+
"accordion--minimal": this.appearance === "minimal",
|
|
57
|
+
accordion: this.appearance === "default"
|
|
57
58
|
} }, h("slot", null)));
|
|
58
59
|
}
|
|
59
60
|
//--------------------------------------------------------------------------
|
|
@@ -2,8 +2,9 @@
|
|
|
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
4
|
*/
|
|
5
|
-
import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
|
|
5
|
+
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { a as getElementDir } from './dom.js';
|
|
7
|
+
import { g as guid } from './guid.js';
|
|
7
8
|
import { d as defineCustomElement$3 } from './icon.js';
|
|
8
9
|
import { d as defineCustomElement$2 } from './switch.js';
|
|
9
10
|
|
|
@@ -49,6 +50,7 @@ let BlockSection = class extends HTMLElement {
|
|
|
49
50
|
* If the value is "button", a clickable header is displayed.
|
|
50
51
|
*/
|
|
51
52
|
this.toggleDisplay = "button";
|
|
53
|
+
this.guid = guid();
|
|
52
54
|
// --------------------------------------------------------------------------
|
|
53
55
|
//
|
|
54
56
|
// Private Methods
|
|
@@ -91,14 +93,17 @@ let BlockSection = class extends HTMLElement {
|
|
|
91
93
|
? ICONS.menuClosedLeft
|
|
92
94
|
: ICONS.menuClosedRight;
|
|
93
95
|
const toggleLabel = open ? intlCollapse || TEXT.collapse : intlExpand || TEXT.expand;
|
|
94
|
-
const
|
|
96
|
+
const { guid } = this;
|
|
97
|
+
const regionId = `${guid}-region`;
|
|
98
|
+
const buttonId = `${guid}-button`;
|
|
99
|
+
const headerNode = toggleDisplay === "switch" ? (h("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
95
100
|
[CSS.toggle]: true,
|
|
96
101
|
[CSS.toggleSwitch]: true
|
|
97
|
-
}, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS.toggleSwitchContent }, h("span", { class: CSS.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-label": toggleLabel, class: {
|
|
102
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, h("div", { class: CSS.toggleSwitchContent }, h("span", { class: CSS.toggleSwitchText }, text)), h("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (h("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
98
103
|
[CSS.sectionHeader]: true,
|
|
99
104
|
[CSS.toggle]: true
|
|
100
|
-
}, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
101
|
-
return (h("section", { "aria-expanded": open.toString()
|
|
105
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, h("calcite-icon", { icon: arrowIcon, scale: "s" }), h("span", { class: CSS.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
106
|
+
return (h(Host, null, headerNode, h("section", { "aria-expanded": open.toString(), "aria-labelledby": buttonId, class: CSS.content, hidden: !open, id: regionId }, h("slot", null))));
|
|
102
107
|
}
|
|
103
108
|
get el() { return this; }
|
|
104
109
|
static get style() { return blockSectionCss; }
|
|
@@ -6,6 +6,7 @@ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/
|
|
|
6
6
|
import { b as getSlotted } from './dom.js';
|
|
7
7
|
import { H as Heading } from './Heading.js';
|
|
8
8
|
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
9
|
+
import { g as guid } from './guid.js';
|
|
9
10
|
import { d as defineCustomElement$9 } from './action.js';
|
|
10
11
|
import { d as defineCustomElement$8 } from './action-menu.js';
|
|
11
12
|
import { d as defineCustomElement$7 } from './handle.js';
|
|
@@ -94,6 +95,7 @@ let Block = class extends HTMLElement {
|
|
|
94
95
|
* When true, the block's content will be displayed.
|
|
95
96
|
*/
|
|
96
97
|
this.open = false;
|
|
98
|
+
this.guid = guid();
|
|
97
99
|
// --------------------------------------------------------------------------
|
|
98
100
|
//
|
|
99
101
|
// Private Methods
|
|
@@ -149,10 +151,13 @@ let Block = class extends HTMLElement {
|
|
|
149
151
|
const hasControl = !!getSlotted(el, SLOTS.control);
|
|
150
152
|
const hasMenuActions = !!getSlotted(el, SLOTS.headerMenuActions);
|
|
151
153
|
const collapseIcon = open ? ICONS.opened : ICONS.closed;
|
|
152
|
-
const
|
|
154
|
+
const { guid } = this;
|
|
155
|
+
const regionId = `${guid}-region`;
|
|
156
|
+
const buttonId = `${guid}-button`;
|
|
157
|
+
const headerNode = (h("div", { class: CSS.headerContainer }, this.dragHandle ? h("calcite-handle", null) : null, collapsible ? (h("button", { "aria-controls": regionId, "aria-expanded": collapsible ? open.toString() : null, "aria-label": toggleLabel, class: CSS.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (h("calcite-icon", { "aria-hidden": "true", class: CSS.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), loading ? (h("calcite-loader", { inline: true, "is-active": true, label: intlLoading })) : hasControl ? (h("div", { class: CSS.controlContainer }, h("slot", { name: SLOTS.control }))) : null, hasMenuActions ? (h("calcite-action-menu", { label: this.intlOptions || TEXT.options }, h("slot", { name: SLOTS.headerMenuActions }))) : null));
|
|
153
158
|
return (h(Host, { tabIndex: disabled ? -1 : null }, h("article", { "aria-busy": loading.toString(), class: {
|
|
154
159
|
[CSS.article]: true
|
|
155
|
-
} }, headerNode, h("
|
|
160
|
+
} }, headerNode, h("section", { "aria-expanded": this.open.toString(), "aria-labelledby": buttonId, class: CSS.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
156
161
|
}
|
|
157
162
|
get el() { return this; }
|
|
158
163
|
static get style() { return blockCss; }
|
|
@@ -153,7 +153,7 @@ const filter = (data, value) => {
|
|
|
153
153
|
return result;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:
|
|
156
|
+
const comboboxCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);padding:calc(var(--calcite-combobox-item-spacing-unit-s) / 4) var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 0%;flex:1 1 0%;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.item{display:block}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
157
157
|
|
|
158
158
|
const isGroup = (el) => el.tagName === ComboboxItemGroup;
|
|
159
159
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -6,7 +6,7 @@ import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/clien
|
|
|
6
6
|
import { P as POPOVER_REFERENCE } from './resources.js';
|
|
7
7
|
import { q as queryElementRoots, j as queryElementsRoots } from './dom.js';
|
|
8
8
|
|
|
9
|
-
const popoverManagerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block}";
|
|
9
|
+
const popoverManagerCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;display:block}";
|
|
10
10
|
|
|
11
11
|
let PopoverManager = class extends HTMLElement {
|
|
12
12
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { g as guid } from './guid.js';
|
|
|
8
8
|
import { d as defaultOffsetDistance, u as updatePopper, c as createPopper, C as CSS } from './popper.js';
|
|
9
9
|
import { q as queryElementRoots } from './dom.js';
|
|
10
10
|
|
|
11
|
-
const tooltipCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px 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-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);overflow:hidden;max-width:20rem;max-height:20rem}.calcite-popper-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}";
|
|
11
|
+
const tooltipCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:block;position:absolute;z-index:999;-webkit-transform:scale(0);transform:scale(0)}.calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}:host([data-popper-placement^=bottom]) .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}:host([data-popper-placement^=top]) .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}:host([data-popper-placement^=left]) .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}:host([data-popper-placement^=right]) .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}:host([data-popper-placement]) .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([data-popper-placement][data-popper-escaped]),:host([data-popper-placement][data-popper-reference-hidden]){pointer-events:none;opacity:0}.arrow,.arrow::before{position:absolute;width:8px;height:8px;z-index:-1}.arrow::before{content:\"\";--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px 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-transform:rotate(45deg);transform:rotate(45deg);background:var(--calcite-ui-foreground-1)}:host([data-popper-placement^=top]) .arrow{bottom:-4px}:host([data-popper-placement^=bottom]) .arrow{top:-4px}:host([data-popper-placement^=left]) .arrow{right:-4px}:host([data-popper-placement^=right]) .arrow{left:-4px}.container{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:1rem;font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);overflow:hidden;max-width:20rem;max-height:20rem}.calcite-popper-anim{border-radius:0.25rem;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1)}.arrow::before{outline:1px solid var(--calcite-ui-border-3)}";
|
|
12
12
|
|
|
13
13
|
let Tooltip = class extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -185,6 +185,7 @@ let TreeItem = class extends HTMLElement {
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
keyDownHandler(e) {
|
|
188
|
+
var _a;
|
|
188
189
|
let root;
|
|
189
190
|
switch (e.key) {
|
|
190
191
|
case " ":
|
|
@@ -239,7 +240,8 @@ let TreeItem = class extends HTMLElement {
|
|
|
239
240
|
}
|
|
240
241
|
// When focus is on a open node, moves focus to the first child node.
|
|
241
242
|
if (this.hasChildren && this.expanded) {
|
|
242
|
-
this.el.querySelector("calcite-tree-item").focus();
|
|
243
|
+
(_a = this.el.querySelector("calcite-tree-item")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
244
|
+
e.stopPropagation();
|
|
243
245
|
break;
|
|
244
246
|
}
|
|
245
247
|
// When focus is on an end node, does nothing.
|
|
@@ -46,8 +46,10 @@ let Tree = class extends HTMLElement {
|
|
|
46
46
|
this.child = !!parent;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { "aria-multiselectable":
|
|
50
|
-
|
|
49
|
+
return (h(Host, { "aria-multiselectable": this.child
|
|
50
|
+
? undefined
|
|
51
|
+
: (this.selectionMode === TreeSelectionMode.Multi ||
|
|
52
|
+
this.selectionMode === TreeSelectionMode.MultiChildren).toString(), role: !this.child ? "tree" : undefined, tabIndex: this.getRootTabIndex() }, h("slot", null)));
|
|
51
53
|
}
|
|
52
54
|
//--------------------------------------------------------------------------
|
|
53
55
|
//
|
package/dist/components/input.js
CHANGED
|
@@ -323,7 +323,7 @@ let Input = class extends HTMLElement {
|
|
|
323
323
|
const newLocalizedValue = this.type === "number"
|
|
324
324
|
? localizeNumberString(newValue, this.locale, this.groupSeparator)
|
|
325
325
|
: "";
|
|
326
|
-
this.internalValueChange = origin === "internal";
|
|
326
|
+
this.internalValueChange = origin === "internal" && this.value !== newValue;
|
|
327
327
|
this.setPreviousValue(this.value);
|
|
328
328
|
this.value = newValue;
|
|
329
329
|
if (this.type === "number") {
|
|
@@ -368,7 +368,7 @@ let Input = class extends HTMLElement {
|
|
|
368
368
|
if (!this.internalValueChange) {
|
|
369
369
|
this.setValue({
|
|
370
370
|
origin: "external",
|
|
371
|
-
value: newValue == null
|
|
371
|
+
value: newValue == null || newValue == ""
|
|
372
372
|
? ""
|
|
373
373
|
: this.type === "number"
|
|
374
374
|
? isValidNumber(newValue)
|
package/dist/components/link.js
CHANGED
|
@@ -25,8 +25,6 @@ let Link = class extends HTMLElement {
|
|
|
25
25
|
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
|
|
26
26
|
*/
|
|
27
27
|
this.download = false;
|
|
28
|
-
/** the node type of the rendered child element */
|
|
29
|
-
this.childElType = "span";
|
|
30
28
|
//--------------------------------------------------------------------------
|
|
31
29
|
//
|
|
32
30
|
// Private Methods
|
|
@@ -36,25 +34,20 @@ let Link = class extends HTMLElement {
|
|
|
36
34
|
this.childEl = el;
|
|
37
35
|
};
|
|
38
36
|
}
|
|
39
|
-
hrefHandler(href) {
|
|
40
|
-
this.childElType = href ? "a" : "span";
|
|
41
|
-
}
|
|
42
37
|
//--------------------------------------------------------------------------
|
|
43
38
|
//
|
|
44
39
|
// Lifecycle
|
|
45
40
|
//
|
|
46
41
|
//--------------------------------------------------------------------------
|
|
47
|
-
connectedCallback() {
|
|
48
|
-
this.childElType = this.href ? "a" : "span";
|
|
49
|
-
}
|
|
50
42
|
render() {
|
|
51
43
|
const { download, el } = this;
|
|
52
44
|
const dir = getElementDir(el);
|
|
45
|
+
const childElType = this.href ? "a" : "span";
|
|
53
46
|
const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
|
|
54
47
|
const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
|
|
55
|
-
const Tag =
|
|
56
|
-
const role =
|
|
57
|
-
const tabIndex = this.disabled ? -1 :
|
|
48
|
+
const Tag = childElType;
|
|
49
|
+
const role = childElType === "span" ? "link" : null;
|
|
50
|
+
const tabIndex = this.disabled ? -1 : childElType === "span" ? 0 : null;
|
|
58
51
|
return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
|
|
59
52
|
/*
|
|
60
53
|
When the 'download' property of type 'boolean | string' is set to true, the value is "".
|
|
@@ -72,9 +65,6 @@ let Link = class extends HTMLElement {
|
|
|
72
65
|
focusElement(this.childEl);
|
|
73
66
|
}
|
|
74
67
|
get el() { return this; }
|
|
75
|
-
static get watchers() { return {
|
|
76
|
-
"href": ["hrefHandler"]
|
|
77
|
-
}; }
|
|
78
68
|
static get style() { return linkCss; }
|
|
79
69
|
};
|
|
80
70
|
Link = /*@__PURE__*/ proxyCustomElement(Link, [1, "calcite-link", {
|
|
@@ -86,7 +76,6 @@ Link = /*@__PURE__*/ proxyCustomElement(Link, [1, "calcite-link", {
|
|
|
86
76
|
"iconStart": [513, "icon-start"],
|
|
87
77
|
"rel": [1],
|
|
88
78
|
"target": [1],
|
|
89
|
-
"childElType": [32],
|
|
90
79
|
"setFocus": [64]
|
|
91
80
|
}]);
|
|
92
81
|
function defineCustomElement() {
|