@esri/calcite-components 1.0.0-next.686 → 1.0.0-next.688
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-e89c8d76.entry.js → p-03692eb4.entry.js} +2 -2
- package/dist/calcite/{p-e3a28f90.entry.js → p-03b4a90c.entry.js} +2 -2
- package/dist/calcite/p-05184915.entry.js +6 -0
- package/dist/calcite/p-082deb6e.entry.js +6 -0
- package/dist/calcite/{p-9c0603ed.js → p-088a36fc.js} +1 -1
- package/dist/calcite/{p-ec77737a.entry.js → p-0a44e1a0.entry.js} +2 -2
- package/dist/calcite/{p-da4c815d.entry.js → p-0e46f6c4.entry.js} +2 -2
- package/dist/calcite/p-0f3a7fea.entry.js +6 -0
- package/dist/calcite/{p-e2c6054a.js → p-14a9ff2d.js} +1 -1
- package/dist/calcite/p-170c416b.entry.js +6 -0
- package/dist/calcite/{p-0bf912c2.js → p-1beb4b96.js} +2 -2
- package/dist/calcite/{p-a4eb5631.js → p-1bf6de03.js} +2 -2
- package/dist/calcite/{p-db3efad1.js → p-1d439742.js} +1 -1
- package/dist/calcite/{p-84be75f4.entry.js → p-25207c45.entry.js} +2 -2
- package/dist/calcite/{p-dffa4b0a.entry.js → p-29af00d6.entry.js} +2 -2
- package/dist/calcite/{p-7824938d.js → p-30ef40e1.js} +2 -2
- package/dist/calcite/p-33707365.entry.js +6 -0
- package/dist/calcite/p-3564b9e0.js +6 -0
- package/dist/calcite/{p-8ed3ae17.js → p-36296a46.js} +1 -1
- package/dist/calcite/p-39065362.entry.js +6 -0
- package/dist/calcite/{p-bdf6eeda.entry.js → p-3b297d55.entry.js} +2 -2
- package/dist/calcite/{p-68d716fd.js → p-3c2cc334.js} +2 -2
- package/dist/calcite/{p-7f8f81d4.entry.js → p-3dd90e41.entry.js} +2 -2
- package/dist/calcite/p-3f5784de.entry.js +6 -0
- package/dist/calcite/{p-6824ca41.js → p-41a88ded.js} +1 -1
- package/dist/calcite/{p-28d5a917.entry.js → p-425fdd87.entry.js} +2 -2
- package/dist/calcite/{p-5e42938f.entry.js → p-4459ad18.entry.js} +2 -2
- package/dist/calcite/{p-1cb2d5b4.js → p-47708aa1.js} +2 -2
- package/dist/calcite/p-4e55e6b9.entry.js +6 -0
- package/dist/calcite/{p-f0bbc245.js → p-50c38192.js} +1 -1
- package/dist/calcite/{p-20091960.entry.js → p-520e91fe.entry.js} +2 -2
- package/dist/calcite/{p-6a629195.js → p-53957a1e.js} +1 -1
- package/dist/calcite/{p-b3aac60f.entry.js → p-57b1553f.entry.js} +2 -2
- package/dist/calcite/p-5f5ac1fb.entry.js +6 -0
- package/dist/calcite/{p-f463abfb.js → p-614ab3a0.js} +1 -1
- package/dist/calcite/{p-69840c6d.js → p-6a3a7ac1.js} +2 -2
- package/dist/calcite/p-6af4bd32.entry.js +6 -0
- package/dist/calcite/{p-33088377.entry.js → p-6b28f89f.entry.js} +2 -2
- package/dist/calcite/{p-b6fcce91.js → p-6bf81193.js} +2 -2
- package/dist/calcite/{p-913087ab.entry.js → p-6e54b6f1.entry.js} +2 -2
- package/dist/calcite/p-7178dcd3.entry.js +6 -0
- package/dist/calcite/p-7952623e.entry.js +6 -0
- package/dist/calcite/{p-c75f0b1e.js → p-79f57550.js} +2 -2
- package/dist/calcite/{p-164a3e2f.entry.js → p-7c004d7f.entry.js} +2 -2
- package/dist/calcite/p-7d764aa5.entry.js +6 -0
- package/dist/calcite/p-7e7db5e0.entry.js +6 -0
- package/dist/calcite/{p-586c7163.entry.js → p-7f8670b5.entry.js} +2 -2
- package/dist/calcite/p-83f60e26.entry.js +6 -0
- package/dist/calcite/p-868cc943.entry.js +6 -0
- package/dist/calcite/{p-d3ebc9c4.js → p-875c01df.js} +2 -2
- package/dist/calcite/p-87812497.entry.js +6 -0
- package/dist/calcite/{p-6ec640f5.entry.js → p-885d36fc.entry.js} +2 -2
- package/dist/calcite/{p-ede72305.js → p-8baf2174.js} +1 -1
- package/dist/calcite/{p-daa7ee0f.entry.js → p-8c22b4ba.entry.js} +2 -2
- package/dist/calcite/{p-6fcfc44c.entry.js → p-8c9948a1.entry.js} +2 -2
- package/dist/calcite/{p-a50e3ece.entry.js → p-90e490a8.entry.js} +2 -2
- package/dist/calcite/p-93c297c2.entry.js +6 -0
- package/dist/calcite/p-96eea750.entry.js +6 -0
- package/dist/calcite/p-98d52cdb.entry.js +6 -0
- package/dist/calcite/{p-319cf9bc.js → p-9c35ac3e.js} +1 -1
- package/dist/calcite/{p-21410fff.entry.js → p-9d604886.entry.js} +2 -2
- package/dist/calcite/{p-43679ce3.entry.js → p-9ddf235c.entry.js} +2 -2
- package/dist/calcite/{p-5984670c.entry.js → p-a3202e3b.entry.js} +2 -2
- package/dist/calcite/{p-e98fc94d.js → p-a7c33fba.js} +2 -2
- package/dist/calcite/p-b23ba5ee.entry.js +6 -0
- package/dist/calcite/{p-56890424.entry.js → p-b3f6da6b.entry.js} +2 -2
- package/dist/calcite/{p-edd3a715.entry.js → p-b717fef4.entry.js} +2 -2
- package/dist/calcite/{p-58e96a1a.entry.js → p-b8c6eef7.entry.js} +2 -2
- package/dist/calcite/{p-8a6441e0.entry.js → p-ba1b607b.entry.js} +2 -2
- package/dist/calcite/p-ba346b28.js +6 -0
- package/dist/calcite/{p-dcf59d52.entry.js → p-ba4c3232.entry.js} +2 -2
- package/dist/calcite/p-bbe40e60.entry.js +6 -0
- package/dist/calcite/{p-0529e8c1.entry.js → p-bddc071d.entry.js} +2 -2
- package/dist/calcite/{p-4c0443e2.entry.js → p-be647bb0.entry.js} +2 -2
- package/dist/calcite/{p-af1288b8.entry.js → p-c43e5fc1.entry.js} +2 -2
- package/dist/calcite/p-c58baaf1.entry.js +6 -0
- package/dist/calcite/p-c5dae9bd.entry.js +6 -0
- package/dist/calcite/p-c99a1393.js +6 -0
- package/dist/calcite/{p-0ae8a5d4.entry.js → p-ce3753b3.entry.js} +2 -2
- package/dist/calcite/{p-7dfe187f.js → p-ce88d255.js} +1 -1
- package/dist/calcite/{p-cafac5b3.js → p-d23f9a48.js} +2 -2
- package/dist/calcite/{p-99eb0e56.js → p-d2539202.js} +2 -2
- package/dist/calcite/{p-4f1a0bed.js → p-e110ef0c.js} +1 -1
- package/dist/calcite/{p-e5dcb599.js → p-e3a4daa5.js} +1 -1
- package/dist/calcite/p-e7becc39.js +6 -0
- package/dist/calcite/{p-71e1037d.entry.js → p-ed75cb7c.entry.js} +2 -2
- package/dist/calcite/{p-20a384f5.entry.js → p-ee7d445c.entry.js} +2 -2
- package/dist/calcite/{p-22bd55ca.js → p-f54d786c.js} +2 -2
- package/dist/calcite/{p-26604cdc.js → p-fa950085.js} +1 -1
- package/dist/calcite/{p-9deaa309.entry.js → p-fcf778e7.entry.js} +2 -2
- package/dist/calcite/{p-055ab9b3.entry.js → p-fd49ba77.entry.js} +2 -2
- package/dist/calcite/{p-198a7d55.js → p-ff3474f4.js} +1 -1
- package/dist/cjs/{ExpandToggle-45756a68.js → ExpandToggle-2f1975a8.js} +5 -5
- package/dist/cjs/{Heading-6b74fdc4.js → Heading-ab835192.js} +2 -2
- package/dist/cjs/{app-globals-6c97e8a2.js → app-globals-1e133316.js} +2 -2
- package/dist/cjs/{array-b496dbca.js → array-6a64003f.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +11 -9
- package/dist/cjs/calcite-action-bar.cjs.entry.js +17 -22
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -12
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +16 -21
- package/dist/cjs/calcite-action.cjs.entry.js +14 -13
- package/dist/cjs/calcite-alert.cjs.entry.js +15 -14
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +16 -17
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +52 -21
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +17 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +25 -23
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +13 -12
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +12 -11
- package/dist/cjs/calcite-filter.cjs.entry.js +15 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +17 -21
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +18 -17
- package/dist/cjs/calcite-input-message.cjs.entry.js +7 -6
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +16 -14
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -13
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -9
- package/dist/cjs/calcite-panel.cjs.entry.js +14 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +19 -18
- package/dist/cjs/calcite-popover.cjs.entry.js +15 -15
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -3
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +9 -9
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +7 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +12 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +7 -7
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +8 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +11 -10
- package/dist/cjs/calcite-tip_3.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +19 -18
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-50a96097.js → conditionalSlot-a53d134c.js} +3 -3
- package/dist/cjs/{debounce-f24e2e2f.js → debounce-693cccee.js} +1 -1
- package/dist/cjs/{dom-53afe91f.js → dom-2db5c855.js} +3 -3
- package/dist/cjs/{filter-0da1914f.js → filter-28153bb2.js} +2 -2
- package/dist/cjs/{floating-ui-e30dce0b.js → floating-ui-e70ae22d.js} +4 -4
- package/dist/cjs/{focusTrapComponent-370096c6.js → focusTrapComponent-c906f778.js} +2 -2
- package/dist/cjs/{form-6130c77e.js → form-132d25cc.js} +3 -3
- package/dist/cjs/{guid-9d815eba.js → guid-b1c57a9d.js} +1 -1
- package/dist/cjs/{index-d849f743.js → index-ca650359.js} +5 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-013cee30.js → interactive-63d6086f.js} +1 -1
- package/dist/cjs/{key-3ef28a50.js → key-daca21ec.js} +1 -1
- package/dist/cjs/{label-b113cdc7.js → label-53aedc4b.js} +2 -2
- package/dist/cjs/{loadable-ea8b063e.js → loadable-f17eb8de.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-f78f4a21.js → locale-635fc90b.js} +4 -4
- package/dist/cjs/{math-2b139bd1.js → math-06685661.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-90ba9262.js → nonChromiumPlatformUtils-9af29c60.js} +6 -6
- package/dist/cjs/{observers-acb48387.js → observers-1d66d5a8.js} +1 -1
- package/dist/cjs/{openCloseComponent-c6da7e66.js → openCloseComponent-9efefc2b.js} +2 -2
- package/dist/cjs/{resources-9f1b6663.js → resources-36d2967b.js} +1 -1
- package/dist/cjs/{resources-811c186c.js → resources-8087d6d8.js} +1 -1
- package/dist/cjs/{resources-4037854b.js → resources-82afd1a5.js} +5 -5
- package/dist/cjs/{resources-04373cab.js → resources-b73d9c4a.js} +1 -1
- package/dist/cjs/{resources-2af6490c.js → resources-e5ef5941.js} +1 -1
- package/dist/cjs/{resources-0f7ff7d4.js → resources-f90ea3f5.js} +1 -1
- package/dist/cjs/{sortable.esm-088fbcb3.js → sortable.esm-2928f84b.js} +1 -1
- package/dist/cjs/{t9n-c5ff0399.js → t9n-04ab4138.js} +3 -3
- package/dist/cjs/{utils-436492ba.js → utils-23374f68.js} +3 -3
- package/dist/cjs/{utils-9566b8bd.js → utils-f6c8c735.js} +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +27 -3
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +22 -3
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +7 -21
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +2 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +7 -21
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +23 -4
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +154 -198
- package/dist/collection/components/button/button.js +21 -36
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.css +132 -85
- package/dist/collection/components/chip/chip.js +56 -22
- package/dist/collection/components/chip/resources.js +5 -2
- package/dist/collection/components/color-picker/color-picker.js +5 -4
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +23 -4
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +22 -3
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +2 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +2 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +2 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +38 -16
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +3 -3
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +6 -10
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +3 -2
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-message/input-message.js +21 -2
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +3 -2
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +22 -3
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +2 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +22 -3
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +2 -1
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/radio-group-item/radio-group-item.js +1 -1
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +2 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.css +30 -36
- package/dist/collection/components/split-button/split-button.js +22 -15
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +21 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +22 -3
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +22 -3
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +2 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +22 -3
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +3 -2
- package/dist/components/action-menu.js +2 -2
- package/dist/components/action.js +5 -3
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +5 -7
- package/dist/components/calcite-accordion-item.js +7 -4
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +5 -10
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +5 -10
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +5 -3
- package/dist/components/calcite-avatar.js +2 -2
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +6 -5
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +5 -3
- package/dist/components/calcite-combobox.js +6 -4
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +3 -2
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +9 -7
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +7 -11
- package/dist/components/calcite-input-date-picker.js +4 -3
- package/dist/components/calcite-input-message.js +4 -2
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +4 -3
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +2 -2
- package/dist/components/calcite-notice.js +4 -2
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +3 -2
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +3 -2
- package/dist/components/calcite-radio-button.js +2 -2
- package/dist/components/calcite-radio-group-item.js +1 -1
- package/dist/components/calcite-radio-group.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.js +2 -2
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +3 -2
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +7 -6
- package/dist/components/calcite-stepper-item.js +4 -2
- package/dist/components/calcite-stepper.js +2 -2
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +5 -3
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +5 -3
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +48 -14
- package/dist/components/color-picker-hex-input.js +2 -2
- package/dist/components/color-picker-swatch.js +2 -2
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +3 -2
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +2 -2
- package/dist/components/dropdown.js +4 -3
- package/dist/components/filter.js +4 -4
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +2 -2
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +5 -3
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +2 -2
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +2 -2
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +6 -4
- package/dist/components/time-picker.js +3 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/esm/{ExpandToggle-0bb88d72.js → ExpandToggle-15065447.js} +5 -5
- package/dist/esm/{Heading-1a57f4fd.js → Heading-9b5fbace.js} +2 -2
- package/dist/esm/{app-globals-954fbe00.js → app-globals-04237413.js} +2 -2
- package/dist/esm/{array-ca991b39.js → array-5620c9b1.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +11 -9
- package/dist/esm/calcite-action-bar.entry.js +17 -22
- package/dist/esm/calcite-action-group.entry.js +13 -12
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +16 -21
- package/dist/esm/calcite-action.entry.js +14 -13
- package/dist/esm/calcite-alert.entry.js +15 -14
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +16 -17
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +52 -21
- package/dist/esm/calcite-color-picker_3.entry.js +17 -16
- package/dist/esm/calcite-combobox_3.entry.js +25 -23
- package/dist/esm/calcite-date-picker_4.entry.js +13 -12
- package/dist/esm/calcite-dropdown_3.entry.js +14 -12
- package/dist/esm/calcite-fab.entry.js +12 -11
- package/dist/esm/calcite-filter.entry.js +15 -14
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +14 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +17 -21
- package/dist/esm/calcite-input-date-picker.entry.js +18 -17
- package/dist/esm/calcite-input-message.entry.js +7 -6
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +13 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +16 -14
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-notice.entry.js +14 -13
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +10 -9
- package/dist/esm/calcite-panel.entry.js +14 -14
- package/dist/esm/calcite-pick-list_3.entry.js +19 -18
- package/dist/esm/calcite-popover.entry.js +15 -15
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +4 -3
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-radio-group_2.entry.js +9 -9
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +8 -8
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +7 -6
- package/dist/esm/calcite-stepper_2.entry.js +12 -11
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +7 -7
- package/dist/esm/calcite-tile-select_2.entry.js +8 -7
- package/dist/esm/calcite-tile.entry.js +11 -10
- package/dist/esm/calcite-tip_3.entry.js +8 -8
- package/dist/esm/calcite-tooltip.entry.js +8 -8
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +19 -18
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-1712a58c.js → conditionalSlot-6b3ef2f2.js} +3 -3
- package/dist/esm/{debounce-4298a315.js → debounce-b264a4e1.js} +1 -1
- package/dist/esm/{dom-285f7254.js → dom-de5aecd4.js} +3 -3
- package/dist/esm/{filter-0b175e02.js → filter-9ed111dd.js} +2 -2
- package/dist/esm/{floating-ui-af754833.js → floating-ui-f26fc166.js} +4 -4
- package/dist/esm/{focusTrapComponent-e98c4d67.js → focusTrapComponent-9000a762.js} +2 -2
- package/dist/esm/{form-a4fdb454.js → form-b78dc36a.js} +3 -3
- package/dist/esm/{guid-e4a64dcc.js → guid-8f7fe7c8.js} +1 -1
- package/dist/esm/{index-030b26cd.js → index-060a705f.js} +5 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-23c0ffb9.js → interactive-ae092e9c.js} +1 -1
- package/dist/esm/{key-f99c6711.js → key-5ec4c2bc.js} +1 -1
- package/dist/esm/{label-231b23ff.js → label-80f7ccf8.js} +2 -2
- package/dist/esm/{loadable-672fa2c5.js → loadable-750111ac.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-3fd5ccfe.js → locale-e208823a.js} +4 -4
- package/dist/esm/{math-a20c9503.js → math-777c49fc.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-90a9b8f0.js → nonChromiumPlatformUtils-fd8e55ff.js} +6 -6
- package/dist/esm/{observers-33f3ce83.js → observers-5c7edd4c.js} +1 -1
- package/dist/esm/{openCloseComponent-fee0a561.js → openCloseComponent-094d088c.js} +2 -2
- package/dist/esm/{resources-5f7b4bda.js → resources-367d3b9d.js} +1 -1
- package/dist/esm/{resources-946fa0a5.js → resources-3eaa39ad.js} +1 -1
- package/dist/esm/{resources-54fdcb42.js → resources-50606976.js} +1 -1
- package/dist/esm/{resources-3e7e475f.js → resources-75b6a96e.js} +1 -1
- package/dist/esm/{resources-59a7547d.js → resources-8414d284.js} +1 -1
- package/dist/esm/{resources-c02d2c2f.js → resources-ac2d82f7.js} +5 -5
- package/dist/esm/{sortable.esm-ed721727.js → sortable.esm-501b5d17.js} +1 -1
- package/dist/esm/{t9n-d57055a9.js → t9n-f24b458f.js} +3 -3
- package/dist/esm/{utils-661a3129.js → utils-499a2ba7.js} +1 -1
- package/dist/esm/{utils-27f32f99.js → utils-ed7335dc.js} +3 -3
- package/dist/extras/docs-json.json +401 -192
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/accordion-item/accordion-item.d.ts +3 -0
- package/dist/types/components/action/action.d.ts +2 -0
- package/dist/types/components/action-bar/action-bar.d.ts +1 -3
- package/dist/types/components/action-pad/action-pad.d.ts +1 -3
- package/dist/types/components/alert/alert.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +5 -11
- package/dist/types/components/button/interfaces.d.ts +0 -2
- package/dist/types/components/chip/chip.d.ts +13 -5
- package/dist/types/components/chip/resources.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +2 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +2 -0
- package/dist/types/components/fab/fab.d.ts +6 -5
- package/dist/types/components/input-message/input-message.d.ts +2 -0
- package/dist/types/components/interfaces.d.ts +2 -2
- package/dist/types/components/notice/notice.d.ts +2 -0
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +2 -0
- package/dist/types/components/split-button/split-button.d.ts +5 -5
- package/dist/types/components/stepper-item/stepper-item.d.ts +2 -0
- package/dist/types/components/tile/tile.d.ts +2 -0
- package/dist/types/components/tile-select/tile-select.d.ts +2 -0
- package/dist/types/components/value-list-item/value-list-item.d.ts +2 -0
- package/dist/types/components.d.ts +159 -56
- package/hydrate/index.js +165 -112
- package/package.json +1 -1
- package/dist/calcite/p-039fa17a.entry.js +0 -6
- package/dist/calcite/p-0b98a470.entry.js +0 -6
- package/dist/calcite/p-19b960b8.entry.js +0 -6
- package/dist/calcite/p-1dea13ec.entry.js +0 -6
- package/dist/calcite/p-2b3a9485.entry.js +0 -6
- package/dist/calcite/p-4e8d4e58.entry.js +0 -6
- package/dist/calcite/p-4f24d324.entry.js +0 -6
- package/dist/calcite/p-5616d5b9.entry.js +0 -6
- package/dist/calcite/p-5c8487bb.entry.js +0 -6
- package/dist/calcite/p-61e195c0.js +0 -6
- package/dist/calcite/p-72772692.entry.js +0 -6
- package/dist/calcite/p-72e7b7a4.entry.js +0 -6
- package/dist/calcite/p-78ddc1aa.entry.js +0 -6
- package/dist/calcite/p-7a985267.entry.js +0 -6
- package/dist/calcite/p-7f50fca0.entry.js +0 -6
- package/dist/calcite/p-81215b22.entry.js +0 -6
- package/dist/calcite/p-84640f88.entry.js +0 -6
- package/dist/calcite/p-8c12a8f0.entry.js +0 -6
- package/dist/calcite/p-8f4bb839.entry.js +0 -6
- package/dist/calcite/p-abffa97f.entry.js +0 -6
- package/dist/calcite/p-b9518a53.entry.js +0 -6
- package/dist/calcite/p-cae27dce.entry.js +0 -6
- package/dist/calcite/p-cd4cc051.entry.js +0 -6
- package/dist/calcite/p-f0454ff1.js +0 -6
- package/dist/calcite/p-f0e2bf7f.entry.js +0 -6
- package/dist/calcite/p-f778e1bd.js +0 -6
- package/dist/calcite/p-fc028034.js +0 -6
- package/dist/calcite/p-fd33542e.entry.js +0 -6
- package/dist/collection/components/chip/interfaces.js +0 -1
- package/dist/types/components/chip/interfaces.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
import "form-request-submit-polyfill/form-request-submit-polyfill";
|
|
7
7
|
import { h, Build } from "@stencil/core";
|
|
@@ -38,7 +38,7 @@ export class Button {
|
|
|
38
38
|
this.alignment = "center";
|
|
39
39
|
this.appearance = "solid";
|
|
40
40
|
this.label = undefined;
|
|
41
|
-
this.
|
|
41
|
+
this.kind = "brand";
|
|
42
42
|
this.disabled = false;
|
|
43
43
|
this.href = undefined;
|
|
44
44
|
this.iconEnd = undefined;
|
|
@@ -47,7 +47,6 @@ export class Button {
|
|
|
47
47
|
this.loading = false;
|
|
48
48
|
this.name = undefined;
|
|
49
49
|
this.rel = undefined;
|
|
50
|
-
this.form = undefined;
|
|
51
50
|
this.round = false;
|
|
52
51
|
this.scale = "m";
|
|
53
52
|
this.splitChild = false;
|
|
@@ -85,7 +84,7 @@ export class Button {
|
|
|
85
84
|
this.hasLoader = this.loading;
|
|
86
85
|
this.setupTextContentObserver();
|
|
87
86
|
connectLabel(this);
|
|
88
|
-
this.formEl = closestElementCrossShadowBoundary(this.el,
|
|
87
|
+
this.formEl = closestElementCrossShadowBoundary(this.el, "form");
|
|
89
88
|
}
|
|
90
89
|
disconnectedCallback() {
|
|
91
90
|
this.mutationObserver?.disconnect();
|
|
@@ -197,12 +196,15 @@ export class Button {
|
|
|
197
196
|
"type": "string",
|
|
198
197
|
"mutable": false,
|
|
199
198
|
"complexType": {
|
|
200
|
-
"original": "
|
|
201
|
-
"resolved": "\"
|
|
199
|
+
"original": "Extract<\n \"outline\" | \"outline-fill\" | \"solid\" | \"transparent\",\n Appearance\n >",
|
|
200
|
+
"resolved": "\"outline\" | \"outline-fill\" | \"solid\" | \"transparent\"",
|
|
202
201
|
"references": {
|
|
203
|
-
"
|
|
202
|
+
"Extract": {
|
|
203
|
+
"location": "global"
|
|
204
|
+
},
|
|
205
|
+
"Appearance": {
|
|
204
206
|
"location": "import",
|
|
205
|
-
"path": "
|
|
207
|
+
"path": "../interfaces"
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
},
|
|
@@ -233,16 +235,19 @@ export class Button {
|
|
|
233
235
|
"attribute": "label",
|
|
234
236
|
"reflect": false
|
|
235
237
|
},
|
|
236
|
-
"
|
|
238
|
+
"kind": {
|
|
237
239
|
"type": "string",
|
|
238
240
|
"mutable": false,
|
|
239
241
|
"complexType": {
|
|
240
|
-
"original": "
|
|
241
|
-
"resolved": "\"
|
|
242
|
+
"original": "Extract<\"brand\" | \"danger\" | \"inverse\" | \"neutral\", Kind>",
|
|
243
|
+
"resolved": "\"brand\" | \"danger\" | \"inverse\" | \"neutral\"",
|
|
242
244
|
"references": {
|
|
243
|
-
"
|
|
245
|
+
"Extract": {
|
|
246
|
+
"location": "global"
|
|
247
|
+
},
|
|
248
|
+
"Kind": {
|
|
244
249
|
"location": "import",
|
|
245
|
-
"path": "
|
|
250
|
+
"path": "../interfaces"
|
|
246
251
|
}
|
|
247
252
|
}
|
|
248
253
|
},
|
|
@@ -250,11 +255,11 @@ export class Button {
|
|
|
250
255
|
"optional": false,
|
|
251
256
|
"docs": {
|
|
252
257
|
"tags": [],
|
|
253
|
-
"text": "Specifies the
|
|
258
|
+
"text": "Specifies the kind of the component (will apply to border and background if applicable)."
|
|
254
259
|
},
|
|
255
|
-
"attribute": "
|
|
260
|
+
"attribute": "kind",
|
|
256
261
|
"reflect": true,
|
|
257
|
-
"defaultValue": "\"
|
|
262
|
+
"defaultValue": "\"brand\""
|
|
258
263
|
},
|
|
259
264
|
"disabled": {
|
|
260
265
|
"type": "boolean",
|
|
@@ -402,26 +407,6 @@ export class Button {
|
|
|
402
407
|
"attribute": "rel",
|
|
403
408
|
"reflect": true
|
|
404
409
|
},
|
|
405
|
-
"form": {
|
|
406
|
-
"type": "string",
|
|
407
|
-
"mutable": false,
|
|
408
|
-
"complexType": {
|
|
409
|
-
"original": "string",
|
|
410
|
-
"resolved": "string",
|
|
411
|
-
"references": {}
|
|
412
|
-
},
|
|
413
|
-
"required": false,
|
|
414
|
-
"optional": false,
|
|
415
|
-
"docs": {
|
|
416
|
-
"tags": [{
|
|
417
|
-
"name": "deprecated",
|
|
418
|
-
"text": "\u2013 The property is no longer needed if the component is placed inside a form."
|
|
419
|
-
}],
|
|
420
|
-
"text": "The form ID to associate with the component."
|
|
421
|
-
},
|
|
422
|
-
"attribute": "form",
|
|
423
|
-
"reflect": false
|
|
424
|
-
},
|
|
425
410
|
"round": {
|
|
426
411
|
"type": "boolean",
|
|
427
412
|
"mutable": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
buttonLoader: "calcite-button--loader",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
import { h } from "@stencil/core";
|
|
7
7
|
import { getSlotted, toAriaBoolean } from "../../utils/dom";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
container: "container",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
import { h, Host } from "@stencil/core";
|
|
7
7
|
import { guid } from "../../utils/guid";
|
|
@@ -93,13 +93,14 @@
|
|
|
93
93
|
:host([scale=s]) .image-container {
|
|
94
94
|
block-size: 1.25rem;
|
|
95
95
|
inline-size: 1.25rem;
|
|
96
|
+
padding-inline-start: 0.125rem;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
:host([scale=m]) {
|
|
99
100
|
block-size: 2rem;
|
|
100
101
|
font-size: var(--calcite-font-size--1);
|
|
101
102
|
--calcite-chip-spacing-unit-l: 0.75rem;
|
|
102
|
-
--calcite-chip-spacing-unit-s:
|
|
103
|
+
--calcite-chip-spacing-unit-s: calc(0.75rem / 2);
|
|
103
104
|
}
|
|
104
105
|
:host([scale=m]) .image-container {
|
|
105
106
|
block-size: 1.5rem;
|
|
@@ -116,7 +117,7 @@
|
|
|
116
117
|
:host([scale=l]) .image-container {
|
|
117
118
|
block-size: 2rem;
|
|
118
119
|
inline-size: 2rem;
|
|
119
|
-
padding-inline-start: 0.
|
|
120
|
+
padding-inline-start: 0.5rem;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
:host {
|
|
@@ -143,65 +144,120 @@
|
|
|
143
144
|
overflow: hidden;
|
|
144
145
|
text-overflow: ellipsis;
|
|
145
146
|
white-space: nowrap;
|
|
147
|
+
padding-block: 0;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
|
-
|
|
149
|
-
padding-block: 0;
|
|
150
|
+
.content--slotted .title {
|
|
150
151
|
padding-inline: var(--calcite-chip-spacing-unit-l);
|
|
151
152
|
}
|
|
152
153
|
|
|
153
|
-
:host([closable])
|
|
154
|
+
:host([closable][icon]) .container:not(.content--slotted) .title {
|
|
155
|
+
padding-inline: 0 var(--calcite-chip-spacing-unit-s);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host(:not([closable])) .container:not(.content--slotted) .chip-icon {
|
|
159
|
+
margin-inline: auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.container:not(.image--slotted) .image-container {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
:host([scale=s][closable]) .container:not(.content--slotted) .image-container {
|
|
167
|
+
margin-inline-end: 0.125rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host([scale=m][closable]) .container:not(.content--slotted) .image-container {
|
|
171
|
+
margin-inline-end: 0.25rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host([scale=l][closable]) .container:not(.content--slotted) .image-container {
|
|
175
|
+
margin-inline-end: 0.5rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([scale=s]:not([closable])) .container:not(.content--slotted) {
|
|
179
|
+
block-size: 1.5rem;
|
|
180
|
+
inline-size: 1.5rem;
|
|
181
|
+
}
|
|
182
|
+
:host([scale=s]:not([closable])) .container:not(.content--slotted) .image-container {
|
|
183
|
+
padding-inline: 0.125rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([scale=m]:not([closable])) .container:not(.content--slotted) {
|
|
187
|
+
block-size: 2rem;
|
|
188
|
+
inline-size: 2rem;
|
|
189
|
+
}
|
|
190
|
+
:host([scale=m]:not([closable])) .container:not(.content--slotted) .image-container {
|
|
191
|
+
padding-inline: 0.25rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host([scale=l]:not([closable])) .container:not(.content--slotted) {
|
|
195
|
+
block-size: 2.75rem;
|
|
196
|
+
inline-size: 2.75rem;
|
|
197
|
+
}
|
|
198
|
+
:host([scale=l]:not([closable])) .container:not(.content--slotted) .image-container {
|
|
199
|
+
padding-inline: calc(0.75rem / 2);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([closable]) .content--slotted .title {
|
|
154
203
|
padding-inline: var(--calcite-chip-spacing-unit-l) var(--calcite-chip-spacing-unit-s);
|
|
155
204
|
}
|
|
156
205
|
|
|
157
|
-
:host([
|
|
158
|
-
|
|
159
|
-
|
|
206
|
+
:host([scale=s]) button {
|
|
207
|
+
inline-size: 1rem;
|
|
208
|
+
block-size: 1rem;
|
|
209
|
+
margin-inline-end: 0.125rem;
|
|
160
210
|
}
|
|
161
211
|
|
|
162
|
-
:host button {
|
|
212
|
+
:host([scale=m]) button {
|
|
213
|
+
inline-size: 1.5rem;
|
|
214
|
+
block-size: 1.5rem;
|
|
215
|
+
margin-inline-end: 0.25rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:host([scale=l]) button {
|
|
219
|
+
inline-size: 2rem;
|
|
220
|
+
block-size: 2rem;
|
|
221
|
+
margin-inline-end: 0.5rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
button {
|
|
163
225
|
margin: 0px;
|
|
164
|
-
display: inline-flex;
|
|
165
|
-
max-block-size: 100%;
|
|
166
|
-
min-block-size: 100%;
|
|
167
226
|
cursor: pointer;
|
|
168
227
|
align-items: center;
|
|
169
|
-
align-self: stretch;
|
|
170
228
|
border-style: none;
|
|
171
229
|
background-color: transparent;
|
|
172
230
|
color: var(--calcite-ui-text-1);
|
|
173
231
|
outline-color: transparent;
|
|
174
232
|
transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;
|
|
175
233
|
-webkit-appearance: none;
|
|
176
|
-
|
|
177
|
-
border-
|
|
178
|
-
border-end-end-radius: 50px;
|
|
179
|
-
border-end-start-radius: 0;
|
|
180
|
-
padding-block: 0;
|
|
234
|
+
display: flex;
|
|
235
|
+
border-radius: 50%;
|
|
181
236
|
padding-inline: var(--calcite-chip-spacing-unit-s);
|
|
182
237
|
color: inherit;
|
|
238
|
+
align-content: center;
|
|
239
|
+
justify-content: center;
|
|
183
240
|
--calcite-chip-transparent-hover: var(--calcite-button-transparent-hover);
|
|
184
241
|
--calcite-chip-transparent-press: var(--calcite-button-transparent-press);
|
|
185
242
|
}
|
|
186
|
-
|
|
243
|
+
button:hover {
|
|
187
244
|
background-color: var(--calcite-chip-transparent-hover);
|
|
188
245
|
}
|
|
189
|
-
|
|
246
|
+
button:focus {
|
|
190
247
|
background-color: var(--calcite-chip-transparent-hover);
|
|
191
248
|
outline: 2px solid var(--calcite-ui-brand);
|
|
192
249
|
outline-offset: -2px;
|
|
193
250
|
}
|
|
194
|
-
|
|
251
|
+
button:active {
|
|
195
252
|
background-color: var(--calcite-chip-transparent-press);
|
|
196
253
|
}
|
|
197
254
|
|
|
198
255
|
.image-container {
|
|
199
256
|
display: inline-flex;
|
|
200
257
|
overflow: hidden;
|
|
201
|
-
border-radius: 50%;
|
|
202
258
|
}
|
|
203
259
|
|
|
204
|
-
|
|
260
|
+
slot[name=image]::slotted(*) {
|
|
205
261
|
display: flex;
|
|
206
262
|
block-size: 100%;
|
|
207
263
|
inline-size: 100%;
|
|
@@ -217,98 +273,89 @@
|
|
|
217
273
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
218
274
|
margin-inline-end: 0;
|
|
219
275
|
margin-inline-start: var(--calcite-chip-spacing-unit-l);
|
|
220
|
-
border-start-start-radius: 0;
|
|
221
|
-
border-start-end-radius: 50px;
|
|
222
|
-
border-end-end-radius: 50px;
|
|
223
|
-
border-end-start-radius: 0;
|
|
224
276
|
}
|
|
225
277
|
|
|
226
|
-
:host([
|
|
278
|
+
:host([kind=neutral]) {
|
|
227
279
|
border-color: transparent;
|
|
228
|
-
background-color: var(--calcite-ui-
|
|
229
|
-
color: var(--calcite-ui-text-
|
|
280
|
+
background-color: var(--calcite-ui-foreground-2);
|
|
281
|
+
color: var(--calcite-ui-text-1);
|
|
282
|
+
}
|
|
283
|
+
:host([kind=neutral]) button,
|
|
284
|
+
:host([kind=neutral]) .close-icon {
|
|
285
|
+
color: var(--calcite-ui-text-3);
|
|
286
|
+
}
|
|
287
|
+
:host([kind=neutral]) .chip-icon {
|
|
288
|
+
color: var(--calcite-ui-icon-color, var(--calcite-ui-text-3));
|
|
230
289
|
}
|
|
231
290
|
|
|
232
|
-
:host([
|
|
291
|
+
:host([kind=inverse]) {
|
|
233
292
|
border-color: transparent;
|
|
234
|
-
background-color: var(--calcite-ui-
|
|
293
|
+
background-color: var(--calcite-ui-inverse);
|
|
235
294
|
color: var(--calcite-ui-text-inverse);
|
|
236
295
|
}
|
|
237
|
-
|
|
238
|
-
:host([
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
296
|
+
:host([kind=inverse]) button,
|
|
297
|
+
:host([kind=inverse]) .close-icon {
|
|
298
|
+
color: var(--calcite-ui-text-inverse);
|
|
299
|
+
}
|
|
300
|
+
:host([kind=inverse]) .chip-icon {
|
|
301
|
+
color: var(--calcite-ui-icon-color, var(--calcite-ui-text-inverse));
|
|
242
302
|
}
|
|
243
303
|
|
|
244
|
-
:host([
|
|
304
|
+
:host([kind=brand]) {
|
|
245
305
|
border-color: transparent;
|
|
246
|
-
background-color: var(--calcite-ui-
|
|
247
|
-
color:
|
|
306
|
+
background-color: var(--calcite-ui-brand);
|
|
307
|
+
color: var(--calcite-ui-text-inverse);
|
|
308
|
+
}
|
|
309
|
+
:host([kind=brand]) button,
|
|
310
|
+
:host([kind=brand]) .close-icon {
|
|
311
|
+
color: var(--calcite-ui-text-inverse);
|
|
312
|
+
}
|
|
313
|
+
:host([kind=brand]) .chip-icon {
|
|
314
|
+
color: var(--calcite-ui-icon-color, var(--calcite-ui-text-inverse));
|
|
248
315
|
}
|
|
249
316
|
|
|
250
|
-
:host([
|
|
251
|
-
|
|
252
|
-
background-color: var(--calcite-ui-foreground-
|
|
317
|
+
:host([appearance=outline-fill]),
|
|
318
|
+
:host([appearance=outline]) {
|
|
319
|
+
background-color: var(--calcite-ui-foreground-1);
|
|
253
320
|
color: var(--calcite-ui-text-1);
|
|
254
321
|
}
|
|
255
|
-
:host([
|
|
256
|
-
:host([
|
|
322
|
+
:host([appearance=outline-fill]) button,
|
|
323
|
+
:host([appearance=outline-fill]) .close-icon,
|
|
324
|
+
:host([appearance=outline]) button,
|
|
325
|
+
:host([appearance=outline]) .close-icon {
|
|
257
326
|
color: var(--calcite-ui-text-3);
|
|
258
327
|
}
|
|
259
|
-
:host([
|
|
328
|
+
:host([appearance=outline-fill]) .chip-icon,
|
|
329
|
+
:host([appearance=outline]) .chip-icon {
|
|
260
330
|
color: var(--calcite-ui-icon-color, var(--calcite-ui-text-3));
|
|
261
331
|
}
|
|
262
332
|
|
|
263
|
-
:host([appearance=
|
|
264
|
-
:
|
|
265
|
-
background-color: transparent;
|
|
266
|
-
color: var(--calcite-ui-text-1);
|
|
333
|
+
:host([appearance=outline-fill]) {
|
|
334
|
+
background-color: var(--calcite-ui-foreground-1);
|
|
267
335
|
}
|
|
268
336
|
|
|
269
|
-
:host([
|
|
270
|
-
:
|
|
271
|
-
border-color: var(--calcite-ui-info);
|
|
272
|
-
}
|
|
273
|
-
:host([color=blue][appearance=clear]) .chip-icon,
|
|
274
|
-
:host([color=blue][appearance=transparent]) .chip-icon {
|
|
275
|
-
color: var(--calcite-ui-icon-color, var(--calcite-ui-info));
|
|
337
|
+
:host([appearance=outline]) {
|
|
338
|
+
background-color: transparent;
|
|
276
339
|
}
|
|
277
340
|
|
|
278
|
-
:host([
|
|
279
|
-
:host([
|
|
280
|
-
border-color: var(--calcite-ui-
|
|
281
|
-
}
|
|
282
|
-
:host([color=red][appearance=clear]) .chip-icon,
|
|
283
|
-
:host([color=red][appearance=transparent]) .chip-icon {
|
|
284
|
-
color: var(--calcite-ui-icon-color, var(--calcite-ui-danger));
|
|
341
|
+
:host([kind=neutral][appearance=outline-fill]),
|
|
342
|
+
:host([kind=neutral][appearance=outline]) {
|
|
343
|
+
border-color: var(--calcite-ui-border-1);
|
|
285
344
|
}
|
|
286
345
|
|
|
287
|
-
:host([
|
|
288
|
-
:host([
|
|
289
|
-
border-color: var(--calcite-ui-
|
|
290
|
-
}
|
|
291
|
-
:host([color=yellow][appearance=clear]) .chip-icon,
|
|
292
|
-
:host([color=yellow][appearance=transparent]) .chip-icon {
|
|
293
|
-
color: var(--calcite-ui-icon-color, var(--calcite-ui-warning));
|
|
346
|
+
:host([kind=inverse][appearance=outline-fill]),
|
|
347
|
+
:host([kind=inverse][appearance=outline]) {
|
|
348
|
+
border-color: var(--calcite-ui-border-inverse);
|
|
294
349
|
}
|
|
295
350
|
|
|
296
|
-
:host([
|
|
297
|
-
:host([
|
|
298
|
-
border-color: var(--calcite-ui-
|
|
299
|
-
}
|
|
300
|
-
:host([color=green][appearance=clear]) .chip-icon,
|
|
301
|
-
:host([color=green][appearance=transparent]) .chip-icon {
|
|
302
|
-
color: var(--calcite-ui-icon-color, var(--calcite-ui-success));
|
|
351
|
+
:host([kind=brand][appearance=outline-fill]),
|
|
352
|
+
:host([kind=brand][appearance=outline]) {
|
|
353
|
+
border-color: var(--calcite-ui-brand);
|
|
303
354
|
}
|
|
304
355
|
|
|
305
|
-
:host([
|
|
306
|
-
:host([
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
:host([color=grey][appearance=clear]) .chip-icon,
|
|
310
|
-
:host([color=grey][appearance=transparent]) .chip-icon {
|
|
311
|
-
color: var(--calcite-ui-icon-color, var(--calcite-ui-text-3));
|
|
356
|
+
:host([kind=brand][appearance=solid]) button,
|
|
357
|
+
:host([kind=inverse][appearance=solid]) button {
|
|
358
|
+
outline-color: var(--calcite-ui-text-inverse);
|
|
312
359
|
}
|
|
313
360
|
|
|
314
361
|
:host([closed]) {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
|
-
import { h } from "@stencil/core";
|
|
7
|
-
import { getSlotted } from "../../utils/dom";
|
|
6
|
+
import { h, Build } from "@stencil/core";
|
|
8
7
|
import { guid } from "../../utils/guid";
|
|
9
8
|
import { CSS, SLOTS, ICONS } from "./resources";
|
|
10
9
|
import { connectConditionalSlotComponent, disconnectConditionalSlotComponent } from "../../utils/conditionalSlot";
|
|
11
10
|
import { connectMessages, disconnectMessages, setUpMessages, updateMessages } from "../../utils/t9n";
|
|
12
11
|
import { connectLocalized, disconnectLocalized } from "../../utils/locale";
|
|
13
12
|
import { setUpLoadableComponent, setComponentLoaded, componentLoaded } from "../../utils/loadable";
|
|
13
|
+
import { createObserver } from "../../utils/observers";
|
|
14
|
+
import { slotChangeHasAssignedElement } from "../../utils/dom";
|
|
14
15
|
/**
|
|
15
16
|
* @slot - A slot for adding text.
|
|
16
17
|
* @slot image - A slot for adding an image.
|
|
@@ -27,9 +28,19 @@ export class Chip {
|
|
|
27
28
|
this.calciteChipClose.emit();
|
|
28
29
|
this.closed = true;
|
|
29
30
|
};
|
|
31
|
+
this.handleSlotImageChange = (event) => {
|
|
32
|
+
this.hasImage = slotChangeHasAssignedElement(event);
|
|
33
|
+
};
|
|
34
|
+
//--------------------------------------------------------------------------
|
|
35
|
+
//
|
|
36
|
+
// Private State/Props
|
|
37
|
+
//
|
|
38
|
+
//--------------------------------------------------------------------------
|
|
39
|
+
/** watches for changing text content */
|
|
40
|
+
this.mutationObserver = createObserver("mutation", () => this.updateHasContent());
|
|
30
41
|
this.guid = guid();
|
|
31
42
|
this.appearance = "solid";
|
|
32
|
-
this.
|
|
43
|
+
this.kind = "neutral";
|
|
33
44
|
this.closable = false;
|
|
34
45
|
this.icon = undefined;
|
|
35
46
|
this.iconFlipRtl = false;
|
|
@@ -40,6 +51,8 @@ export class Chip {
|
|
|
40
51
|
this.messages = undefined;
|
|
41
52
|
this.defaultMessages = undefined;
|
|
42
53
|
this.effectiveLocale = undefined;
|
|
54
|
+
this.hasContent = false;
|
|
55
|
+
this.hasImage = false;
|
|
43
56
|
}
|
|
44
57
|
onMessagesChange() {
|
|
45
58
|
/* wired up by t9n util */
|
|
@@ -56,6 +69,7 @@ export class Chip {
|
|
|
56
69
|
connectConditionalSlotComponent(this);
|
|
57
70
|
connectLocalized(this);
|
|
58
71
|
connectMessages(this);
|
|
72
|
+
this.setupTextContentObserver();
|
|
59
73
|
}
|
|
60
74
|
componentDidLoad() {
|
|
61
75
|
setComponentLoaded(this);
|
|
@@ -67,7 +81,10 @@ export class Chip {
|
|
|
67
81
|
}
|
|
68
82
|
async componentWillLoad() {
|
|
69
83
|
setUpLoadableComponent(this);
|
|
70
|
-
|
|
84
|
+
if (Build.isBrowser) {
|
|
85
|
+
await setUpMessages(this);
|
|
86
|
+
this.updateHasContent();
|
|
87
|
+
}
|
|
71
88
|
}
|
|
72
89
|
//--------------------------------------------------------------------------
|
|
73
90
|
//
|
|
@@ -79,20 +96,32 @@ export class Chip {
|
|
|
79
96
|
await componentLoaded(this);
|
|
80
97
|
this.closeButton?.focus();
|
|
81
98
|
}
|
|
99
|
+
updateHasContent() {
|
|
100
|
+
const slottedContent = this.el.textContent.trim().length > 0 || this.el.childNodes.length > 0;
|
|
101
|
+
this.hasContent =
|
|
102
|
+
this.el.childNodes.length > 0 && this.el.childNodes[0]?.nodeName === "#text"
|
|
103
|
+
? this.el.textContent?.trim().length > 0
|
|
104
|
+
: slottedContent;
|
|
105
|
+
}
|
|
106
|
+
setupTextContentObserver() {
|
|
107
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
108
|
+
}
|
|
82
109
|
//--------------------------------------------------------------------------
|
|
83
110
|
//
|
|
84
111
|
// Render Methods
|
|
85
112
|
//
|
|
86
113
|
//--------------------------------------------------------------------------
|
|
87
114
|
renderChipImage() {
|
|
88
|
-
|
|
89
|
-
const hasChipImage = getSlotted(el, SLOTS.image);
|
|
90
|
-
return hasChipImage ? (h("div", { class: CSS.imageContainer, key: "image" }, h("slot", { name: SLOTS.image }))) : null;
|
|
115
|
+
return (h("div", { class: CSS.imageContainer, key: "image" }, h("slot", { name: SLOTS.image, onSlotchange: this.handleSlotImageChange })));
|
|
91
116
|
}
|
|
92
117
|
render() {
|
|
93
|
-
const iconEl = (h("calcite-icon", { class: CSS.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
94
|
-
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.messages.dismissLabel, class: CSS.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS.closeIcon, icon: ICONS.close, scale: "s" })));
|
|
95
|
-
return (h("div", { class:
|
|
118
|
+
const iconEl = (h("calcite-icon", { class: CSS.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: this.scale === "l" ? "m" : "s" }));
|
|
119
|
+
const closeButton = (h("button", { "aria-describedby": this.guid, "aria-label": this.messages.dismissLabel, class: CSS.close, onClick: this.closeClickHandler, ref: (el) => (this.closeButton = el) }, h("calcite-icon", { class: CSS.closeIcon, icon: ICONS.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
120
|
+
return (h("div", { class: {
|
|
121
|
+
[CSS.container]: true,
|
|
122
|
+
[CSS.contentSlotted]: this.hasContent,
|
|
123
|
+
[CSS.imageSlotted]: this.hasImage
|
|
124
|
+
} }, this.renderChipImage(), this.icon ? iconEl : null, h("span", { class: CSS.title, id: this.guid }, h("slot", null)), this.closable ? closeButton : null));
|
|
96
125
|
}
|
|
97
126
|
static get is() { return "calcite-chip"; }
|
|
98
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -113,8 +142,8 @@ export class Chip {
|
|
|
113
142
|
"type": "string",
|
|
114
143
|
"mutable": false,
|
|
115
144
|
"complexType": {
|
|
116
|
-
"original": "Extract<\"
|
|
117
|
-
"resolved": "\"
|
|
145
|
+
"original": "Extract<\"outline\" | \"outline-fill\" | \"solid\", Appearance>",
|
|
146
|
+
"resolved": "\"outline\" | \"outline-fill\" | \"solid\"",
|
|
118
147
|
"references": {
|
|
119
148
|
"Extract": {
|
|
120
149
|
"location": "global"
|
|
@@ -135,16 +164,19 @@ export class Chip {
|
|
|
135
164
|
"reflect": true,
|
|
136
165
|
"defaultValue": "\"solid\""
|
|
137
166
|
},
|
|
138
|
-
"
|
|
167
|
+
"kind": {
|
|
139
168
|
"type": "string",
|
|
140
169
|
"mutable": false,
|
|
141
170
|
"complexType": {
|
|
142
|
-
"original": "
|
|
143
|
-
"resolved": "\"
|
|
171
|
+
"original": "Extract<\"brand\" | \"inverse\" | \"neutral\", Kind>",
|
|
172
|
+
"resolved": "\"brand\" | \"inverse\" | \"neutral\"",
|
|
144
173
|
"references": {
|
|
145
|
-
"
|
|
174
|
+
"Extract": {
|
|
175
|
+
"location": "global"
|
|
176
|
+
},
|
|
177
|
+
"Kind": {
|
|
146
178
|
"location": "import",
|
|
147
|
-
"path": "
|
|
179
|
+
"path": "../interfaces"
|
|
148
180
|
}
|
|
149
181
|
}
|
|
150
182
|
},
|
|
@@ -152,11 +184,11 @@ export class Chip {
|
|
|
152
184
|
"optional": false,
|
|
153
185
|
"docs": {
|
|
154
186
|
"tags": [],
|
|
155
|
-
"text": "Specifies the
|
|
187
|
+
"text": "Specifies the kind of the component (will apply to border and background if applicable)."
|
|
156
188
|
},
|
|
157
|
-
"attribute": "
|
|
189
|
+
"attribute": "kind",
|
|
158
190
|
"reflect": true,
|
|
159
|
-
"defaultValue": "\"
|
|
191
|
+
"defaultValue": "\"neutral\""
|
|
160
192
|
},
|
|
161
193
|
"closable": {
|
|
162
194
|
"type": "boolean",
|
|
@@ -320,7 +352,9 @@ export class Chip {
|
|
|
320
352
|
static get states() {
|
|
321
353
|
return {
|
|
322
354
|
"defaultMessages": {},
|
|
323
|
-
"effectiveLocale": {}
|
|
355
|
+
"effectiveLocale": {},
|
|
356
|
+
"hasContent": {},
|
|
357
|
+
"hasImage": {}
|
|
324
358
|
};
|
|
325
359
|
}
|
|
326
360
|
static get events() {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.688
|
|
5
5
|
*/
|
|
6
6
|
export const CSS = {
|
|
7
7
|
title: "title",
|
|
8
8
|
close: "close",
|
|
9
9
|
imageContainer: "image-container",
|
|
10
10
|
chipIcon: "chip-icon",
|
|
11
|
-
closeIcon: "close-icon"
|
|
11
|
+
closeIcon: "close-icon",
|
|
12
|
+
contentSlotted: "content--slotted",
|
|
13
|
+
container: "container",
|
|
14
|
+
imageSlotted: "image--slotted"
|
|
12
15
|
};
|
|
13
16
|
export const SLOTS = {
|
|
14
17
|
image: "image"
|