@esri/calcite-components 1.0.0-next.373 → 1.0.0-next.377
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/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/calcite/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/dist/calcite/assets/calcite-icon/clipboard16.json +1 -0
- package/dist/calcite/assets/calcite-icon/clipboard24.json +1 -0
- package/dist/calcite/assets/calcite-icon/clipboard32.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders16.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders24.json +1 -0
- package/dist/calcite/assets/calcite-icon/folders32.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative16.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative24.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiative32.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/dist/calcite/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables16.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables24.json +1 -0
- package/dist/calcite/assets/calcite-icon/multipleVariables32.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck16.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck24.json +1 -0
- package/dist/calcite/assets/calcite-icon/paletteCheck32.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon16.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon24.json +1 -0
- package/dist/calcite/assets/calcite-icon/pentagon32.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/dist/calcite/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/dist/calcite/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/dist/calcite/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey16.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey24.json +1 -0
- package/dist/calcite/assets/calcite-icon/survey32.json +1 -0
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/calcite.js +1 -1
- package/dist/calcite/p-03e12c6f.system.entry.js +5 -0
- package/dist/calcite/p-05ad8606.system.entry.js +5 -0
- package/dist/calcite/p-13cbacc6.system.entry.js +5 -0
- package/dist/calcite/{p-99d32fc3.system.js → p-26aea1cb.system.js} +1 -1
- package/dist/calcite/p-26e7351c.entry.js +5 -0
- package/dist/calcite/{p-af84fa29.system.entry.js → p-307c74d9.system.entry.js} +1 -1
- package/dist/calcite/p-374c3c70.entry.js +5 -0
- package/dist/calcite/p-3d8dcea3.system.entry.js +5 -0
- package/dist/calcite/{p-617c3f30.system.entry.js → p-3dd50bac.system.entry.js} +1 -1
- package/dist/calcite/p-3f1ef512.system.entry.js +5 -0
- package/dist/calcite/p-422a30ba.entry.js +5 -0
- package/dist/calcite/p-4553ae47.entry.js +5 -0
- package/dist/calcite/{p-2e324a56.system.entry.js → p-4fd1f88a.system.entry.js} +2 -2
- package/dist/calcite/p-541bf0b4.entry.js +5 -0
- package/dist/calcite/{p-8604c625.system.entry.js → p-59c0e4c7.system.entry.js} +1 -1
- package/dist/calcite/p-65c30ccd.entry.js +5 -0
- package/dist/calcite/{p-92d9b81d.system.entry.js → p-6a2ac09a.system.entry.js} +1 -1
- package/dist/calcite/{p-82491929.entry.js → p-6e37af80.entry.js} +1 -1
- package/dist/calcite/p-7409e609.system.js +5 -0
- package/dist/calcite/{p-ff04cfb1.system.entry.js → p-7b5207ea.system.entry.js} +2 -2
- package/dist/calcite/{p-f24ddc56.system.entry.js → p-80eb08b3.system.entry.js} +1 -1
- package/dist/calcite/{p-c39e7451.entry.js → p-81c462a4.entry.js} +1 -1
- package/dist/calcite/p-8a413063.js +5 -0
- package/dist/calcite/p-99b729f6.entry.js +5 -0
- package/dist/calcite/p-9aaeb1df.entry.js +5 -0
- package/dist/calcite/p-9e2001e9.entry.js +5 -0
- package/dist/calcite/{p-9e2c9752.entry.js → p-a0ad66cf.entry.js} +1 -1
- package/dist/calcite/p-a5660ba5.entry.js +5 -0
- package/dist/calcite/p-a85634a1.system.entry.js +5 -0
- package/dist/calcite/{p-7165e37e.entry.js → p-aa535833.entry.js} +1 -1
- package/dist/calcite/p-aceeb62f.entry.js +5 -0
- package/dist/calcite/p-b3da3b78.system.entry.js +5 -0
- package/dist/calcite/{p-e5526c34.entry.js → p-b4a23fdf.entry.js} +1 -1
- package/dist/calcite/p-b78f6de5.system.entry.js +5 -0
- package/dist/calcite/p-b826048a.system.entry.js +5 -0
- package/dist/calcite/{p-146d8510.entry.js → p-c264e4be.entry.js} +1 -1
- package/dist/calcite/{p-8709d314.system.entry.js → p-c93dbb93.system.entry.js} +1 -1
- package/dist/calcite/p-cb33659b.system.entry.js +5 -0
- package/dist/calcite/{p-baca86e3.entry.js → p-cb3a8861.entry.js} +1 -1
- package/dist/calcite/p-d2bcb3ae.entry.js +5 -0
- package/dist/calcite/p-d8e63faf.system.entry.js +5 -0
- package/dist/calcite/{p-06dbe76a.system.entry.js → p-da0bea7c.system.entry.js} +1 -1
- package/dist/calcite/p-dd8b6d4f.system.entry.js +5 -0
- package/dist/calcite/p-e2c4d6ad.system.entry.js +5 -0
- package/dist/calcite/{p-d14265f3.entry.js → p-e3e09c27.entry.js} +1 -1
- package/dist/calcite/p-e66c335c.entry.js +5 -0
- package/dist/calcite/{p-e4862fff.entry.js → p-f757cd6e.entry.js} +1 -1
- package/dist/calcite/{p-3cdf0ad5.system.entry.js → p-fd3c4738.system.entry.js} +1 -1
- package/dist/calcite/p-fe6e3ff9.entry.js +5 -0
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -4
- package/dist/cjs/calcite-action.cjs.entry.js +1 -1
- package/dist/cjs/calcite-alert.cjs.entry.js +5 -7
- package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-graph_2.cjs.entry.js +8 -4
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +38 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input.cjs.entry.js +11 -7
- package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
- package/dist/cjs/calcite-notice.cjs.entry.js +5 -7
- package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +13 -0
- package/dist/cjs/calcite-radio-button.cjs.entry.js +0 -4
- package/dist/cjs/calcite-rating.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/calcite-tree_2.cjs.entry.js +12 -6
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +1 -1
- package/dist/cjs/calcite.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{resources-11763017.js → resources-f70fb01b.js} +3 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/calcite-action/calcite-action.css +2 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +1 -4
- package/dist/collection/components/calcite-alert/calcite-alert.css +1 -0
- package/dist/collection/components/calcite-alert/calcite-alert.js +8 -7
- package/dist/collection/components/calcite-block/calcite-block.css +1 -0
- package/dist/collection/components/calcite-chip/calcite-chip.css +1 -0
- package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +1 -0
- package/dist/collection/components/calcite-combobox/calcite-combobox.css +1 -1
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-BR.json +31 -0
- package/dist/collection/components/calcite-date-picker/assets/calcite-date-picker/nls/pt-PT.json +3 -3
- package/dist/collection/components/calcite-date-picker/utils.js +3 -0
- package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +1 -0
- package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +1 -0
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -0
- package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +2 -2
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/clipboard32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/folders32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiative32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/initiativeTemplate32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/multipleVariables32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/paletteCheck32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/pentagon32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/puzzlePiece32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/ribbonRosette32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation32.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey16.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey24.json +1 -0
- package/dist/collection/components/calcite-icon/assets/calcite-icon/survey32.json +1 -0
- package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +39 -14
- package/dist/collection/components/calcite-input/calcite-input.js +12 -8
- package/dist/collection/components/calcite-modal/calcite-modal.js +1 -1
- package/dist/collection/components/calcite-notice/calcite-notice.css +1 -0
- package/dist/collection/components/calcite-notice/calcite-notice.js +4 -6
- package/dist/collection/components/calcite-panel/calcite-panel.css +1 -0
- package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +0 -4
- package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.js +13 -0
- package/dist/collection/components/calcite-rating/calcite-rating.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
- package/dist/collection/components/calcite-slider/calcite-slider.js +7 -3
- package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +1 -0
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +1 -1
- package/dist/collection/components/calcite-tooltip/calcite-tooltip.js +4 -4
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +5 -0
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +12 -4
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +1 -0
- package/dist/components/calcite-action-menu2.js +1 -4
- package/dist/components/calcite-action2.js +1 -1
- package/dist/components/calcite-alert.js +6 -8
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-chip2.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day2.js +1 -1
- package/dist/components/calcite-date-picker-month-header2.js +1 -1
- package/dist/components/calcite-date-picker2.js +3 -0
- package/dist/components/calcite-dropdown2.js +3 -3
- package/dist/components/calcite-inline-editable.js +39 -14
- package/dist/components/calcite-input2.js +12 -8
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-notice.js +5 -7
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-radio-button-group.js +13 -0
- package/dist/components/calcite-radio-button.js +0 -4
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-slider.js +8 -4
- package/dist/components/calcite-tab-nav2.js +1 -1
- package/dist/components/calcite-time-picker2.js +1 -1
- package/dist/components/calcite-tooltip.js +2 -2
- package/dist/components/calcite-tree-item.js +12 -6
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/custom-elements/index.js +110 -69
- package/dist/esm/calcite-action-menu.entry.js +1 -4
- package/dist/esm/calcite-action.entry.js +1 -1
- package/dist/esm/calcite-alert.entry.js +6 -8
- package/dist/esm/calcite-block_2.entry.js +1 -1
- package/dist/esm/calcite-chip.entry.js +1 -1
- package/dist/esm/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/calcite-date-picker_4.entry.js +3 -3
- package/dist/esm/calcite-dropdown_3.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +8 -4
- package/dist/esm/calcite-inline-editable.entry.js +39 -14
- package/dist/esm/calcite-input-date-picker.entry.js +1 -1
- package/dist/esm/calcite-input-time-picker_2.entry.js +1 -1
- package/dist/esm/calcite-input.entry.js +12 -8
- package/dist/esm/calcite-modal.entry.js +1 -1
- package/dist/esm/calcite-notice.entry.js +5 -7
- package/dist/esm/calcite-panel.entry.js +1 -1
- package/dist/esm/calcite-radio-button-group.entry.js +13 -0
- package/dist/esm/calcite-radio-button.entry.js +0 -4
- package/dist/esm/calcite-rating.entry.js +1 -1
- package/dist/esm/calcite-tab_4.entry.js +1 -1
- package/dist/esm/calcite-tooltip_2.entry.js +2 -2
- package/dist/esm/calcite-tree_2.entry.js +12 -6
- package/dist/esm/calcite-value-list_2.entry.js +1 -1
- package/dist/esm/calcite.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{resources-c768953c.js → resources-f02a1ab5.js} +3 -0
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- 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-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +1 -1
- package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
- package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
- package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/calcite-graph_2.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-time-picker_2.entry.js +1 -1
- package/dist/esm-es5/calcite-input.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-panel.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-rating.entry.js +2 -2
- package/dist/esm-es5/calcite-tab_4.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 +1 -1
- package/dist/esm-es5/resources-f02a1ab5.js +5 -0
- package/dist/extras/docs-json.json +4 -4
- package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -3
- package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +3 -1
- package/dist/types/components/calcite-input/calcite-input.d.ts +2 -4
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -3
- package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +2 -0
- package/dist/types/components/calcite-slider/calcite-slider.d.ts +1 -0
- package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +2 -2
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +4 -4
- package/hydrate/index.js +123 -70
- package/package.json +22 -18
- package/readme.md +0 -4
- package/dist/calcite/p-06fbc0f2.system.entry.js +0 -5
- package/dist/calcite/p-08be120f.entry.js +0 -5
- package/dist/calcite/p-0b552c00.system.entry.js +0 -5
- package/dist/calcite/p-14ca5cdf.system.entry.js +0 -5
- package/dist/calcite/p-32d61433.system.entry.js +0 -5
- package/dist/calcite/p-39d4d1b1.system.entry.js +0 -5
- package/dist/calcite/p-4d81b84b.system.entry.js +0 -5
- package/dist/calcite/p-500300b5.entry.js +0 -5
- package/dist/calcite/p-647d22ef.js +0 -5
- package/dist/calcite/p-64a5e88c.entry.js +0 -5
- package/dist/calcite/p-6969dabb.entry.js +0 -5
- package/dist/calcite/p-78725919.entry.js +0 -5
- package/dist/calcite/p-8ba8a357.system.js +0 -5
- package/dist/calcite/p-8e4aa7f7.entry.js +0 -5
- package/dist/calcite/p-97375cc0.entry.js +0 -5
- package/dist/calcite/p-99422223.system.entry.js +0 -5
- package/dist/calcite/p-9f49c4fe.system.entry.js +0 -5
- package/dist/calcite/p-a50e52f1.entry.js +0 -5
- package/dist/calcite/p-abe7730b.entry.js +0 -5
- package/dist/calcite/p-b7e90141.system.entry.js +0 -5
- package/dist/calcite/p-b9a47a94.system.entry.js +0 -5
- package/dist/calcite/p-bd576ae0.system.entry.js +0 -5
- package/dist/calcite/p-c5b3d90c.entry.js +0 -5
- package/dist/calcite/p-cd9d106b.system.entry.js +0 -5
- package/dist/calcite/p-dba7c714.system.entry.js +0 -5
- package/dist/calcite/p-e5c2a6eb.entry.js +0 -5
- package/dist/calcite/p-e63f0806.entry.js +0 -5
- package/dist/calcite/p-ee14736a.entry.js +0 -5
- package/dist/calcite/p-fe89be3d.entry.js +0 -5
- package/dist/esm-es5/resources-c768953c.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M14.284 6a.372.372 0 0 1-.359-.41c0-.164.137-.334.36-.597A2.388 2.388 0 0 0 15 3.405 2.408 2.408 0 0 0 12.595 1h-.19A2.408 2.408 0 0 0 10 3.405a2.388 2.388 0 0 0 .716 1.588c.222.263.359.433.359.598a.372.372 0 0 1-.36.409H4v6.716a1.37 1.37 0 0 0 1.409 1.358 1.947 1.947 0 0 0 1.25-.593c.31-.258.518-.481.896-.481a1.39 1.39 0 0 1 1.385 1.405v.19A1.39 1.39 0 0 1 7.555 16c-.378 0-.586-.223-.896-.481a1.947 1.947 0 0 0-1.25-.593A1.37 1.37 0 0 0 4 16.284V22h16V6zM19 21H5v-4.716a.372.372 0 0 1 .409-.358c.168 0 .341.137.61.361A2.246 2.246 0 0 0 7.555 17a2.39 2.39 0 0 0 2.385-2.405v-.19A2.39 2.39 0 0 0 7.555 12a2.246 2.246 0 0 0-1.536.713c-.269.224-.442.361-.61.361A.372.372 0 0 1 5 12.716V7h5.716a1.37 1.37 0 0 0 1.359-1.41 1.908 1.908 0 0 0-.596-1.242A1.47 1.47 0 0 1 11 3.405 1.407 1.407 0 0 1 12.405 2h.19A1.407 1.407 0 0 1 14 3.405a1.47 1.47 0 0 1-.479.943 1.908 1.908 0 0 0-.596 1.243A1.37 1.37 0 0 0 14.285 7H19z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M19.444 8a.722.722 0 0 1-.722-.749 1.967 1.967 0 0 1 .454-.988 3.66 3.66 0 0 0 .799-2.208c0-1.972-1.739-2.96-3.476-2.96-1.835 0-3.474 1.06-3.474 2.96a3.66 3.66 0 0 0 .799 2.208 1.967 1.967 0 0 1 .454.988.723.723 0 0 1-.722.749H4v8.53a1.733 1.733 0 0 0 .527 1.24 1.822 1.822 0 0 0 1.26.482 2.805 2.805 0 0 0 1.513-.627A2.705 2.705 0 0 1 8.945 17c1.378 0 2.005 1.282 2.005 2.473 0 1.193-.627 2.476-2.005 2.476a2.705 2.705 0 0 1-1.645-.625 2.805 2.805 0 0 0-1.513-.627 1.874 1.874 0 0 0-1.26.48A1.734 1.734 0 0 0 4 22.42V30h24V8zM27 29H5v-6.581a.729.729 0 0 1 .221-.521.704.704 0 0 1 .528-.2 1.957 1.957 0 0 1 .989.453 3.658 3.658 0 0 0 2.207.798c1.973 0 3.005-1.749 3.005-3.476 0-1.726-1.032-3.473-3.005-3.473a3.658 3.658 0 0 0-2.207.798 1.957 1.957 0 0 1-.99.454.673.673 0 0 1-.527-.201.727.727 0 0 1-.221-.52V9h8.556a1.724 1.724 0 0 0 1.721-1.786A2.804 2.804 0 0 0 14.65 5.7a2.706 2.706 0 0 1-.625-1.645c0-1.378 1.282-2.005 2.473-2.005 1.193 0 2.477.627 2.477 2.005A2.706 2.706 0 0 1 18.35 5.7a2.804 2.804 0 0 0-.627 1.514A1.723 1.723 0 0 0 19.444 9H27z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M8 3a5 5 0 1 0 5 5 5.006 5.006 0 0 0-5-5zm0 9a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4zm1.646-5.354l.707.707-2.852 2.853-1.61-1.602.706-.709.902.899zM15.18 8.33a.558.558 0 0 1 0-.66l.526-.736a1.57 1.57 0 0 0 .213-1.412 1.63 1.63 0 0 0-1.02-1.008l-.877-.3a.6.6 0 0 1-.423-.545l-.026-.893a1.593 1.593 0 0 0-.685-1.254 1.671 1.671 0 0 0-1.42-.235l-.894.253a.68.68 0 0 1-.707-.216L9.3.616a1.73 1.73 0 0 0-2.597 0l-.568.708a.674.674 0 0 1-.707.216l-.894-.253a1.668 1.668 0 0 0-1.419.235 1.593 1.593 0 0 0-.686 1.254l-.026.893a.6.6 0 0 1-.423.546l-.876.299A1.63 1.63 0 0 0 .082 5.523a1.571 1.571 0 0 0 .212 1.41l.527.737a.558.558 0 0 1 0 .66l-.526.736a1.57 1.57 0 0 0-.213 1.412 1.63 1.63 0 0 0 1.02 1.008l.877.3a.6.6 0 0 1 .423.545l.026.893a1.593 1.593 0 0 0 .685 1.254 1.676 1.676 0 0 0 1.42.235l.894-.253a.675.675 0 0 1 .707.216l.567.708a1.677 1.677 0 0 0 2.598 0l.567-.708a.68.68 0 0 1 .707-.216l.894.253a1.676 1.676 0 0 0 1.419-.235 1.593 1.593 0 0 0 .686-1.254l.026-.893a.6.6 0 0 1 .422-.546l.877-.299a1.63 1.63 0 0 0 1.021-1.009 1.571 1.571 0 0 0-.212-1.41zm-.208 1.827a.616.616 0 0 1-.395.383l-.878.299a1.611 1.611 0 0 0-1.1 1.463l-.026.893a.58.58 0 0 1-.258.462.692.692 0 0 1-.576.094l-.893-.252a1.663 1.663 0 0 0-1.758.551l-.568.708a.706.706 0 0 1-1.038 0l-.568-.707a1.65 1.65 0 0 0-1.293-.617 1.69 1.69 0 0 0-.465.065l-.893.252a.692.692 0 0 1-.577-.094.58.58 0 0 1-.257-.462l-.026-.893a1.611 1.611 0 0 0-1.1-1.463l-.88-.3a.616.616 0 0 1-.393-.381.561.561 0 0 1 .08-.51l.525-.735a1.566 1.566 0 0 0 0-1.825l-.527-.736a.561.561 0 0 1-.078-.509.616.616 0 0 1 .395-.383l.878-.299a1.611 1.611 0 0 0 1.1-1.463l.026-.893a.58.58 0 0 1 .258-.462.691.691 0 0 1 .576-.094l.893.252a1.658 1.658 0 0 0 1.758-.551l.57-.709a.705.705 0 0 1 1.036 0l.568.708a1.662 1.662 0 0 0 1.758.552l.893-.252a.694.694 0 0 1 .577.094.58.58 0 0 1 .257.462l.026.893a1.611 1.611 0 0 0 1.1 1.463l.88.3a.616.616 0 0 1 .393.381.561.561 0 0 1-.08.51l-.525.735a1.566 1.566 0 0 0 0 1.825l.527.736a.561.561 0 0 1 .078.509z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M12 5.216A6.784 6.784 0 1 0 18.784 12 6.792 6.792 0 0 0 12 5.216zm0 12.6A5.815 5.815 0 1 1 17.815 12 5.822 5.822 0 0 1 12 17.815zm2.646-8.17l.707.707-3.853 3.854-1.854-1.853.707-.707 1.147 1.146zm6.711 2.91a1.023 1.023 0 0 1 0-1.147l.697-1.015a2.013 2.013 0 0 0-.987-3.037l-1.16-.412a1.018 1.018 0 0 1-.673-.927l-.034-1.23a2.014 2.014 0 0 0-2.583-1.877l-1.18.348a1.016 1.016 0 0 1-1.09-.354l-.75-.976a2.095 2.095 0 0 0-3.194 0l-.75.976a1.021 1.021 0 0 1-1.09.354l-1.18-.348A2.014 2.014 0 0 0 4.8 4.787L4.766 6.02a1.018 1.018 0 0 1-.673.926l-1.16.412a2.013 2.013 0 0 0-.987 3.037l.697 1.015a1.023 1.023 0 0 1 0 1.146l-.697 1.016a2.012 2.012 0 0 0 .987 3.035l1.16.413a1.005 1.005 0 0 1 .673.927l.034 1.23a2.013 2.013 0 0 0 2.583 1.877l1.18-.348a1.02 1.02 0 0 1 1.09.354l.75.976a2.015 2.015 0 0 0 3.194 0l.75-.976a1.025 1.025 0 0 1 1.09-.354l1.18.348a2.014 2.014 0 0 0 2.583-1.876l.034-1.231a1.005 1.005 0 0 1 .673-.927l1.16-.413a2.012 2.012 0 0 0 .987-3.035zm0 2.466a1.02 1.02 0 0 1-.624.642l-1.16.412a2.025 2.025 0 0 0-1.339 1.843l-.034 1.23a1.013 1.013 0 0 1-1.3.945l-1.18-.348a2.028 2.028 0 0 0-2.166.704l-.75.975a1.055 1.055 0 0 1-1.608 0l-.75-.975a2.026 2.026 0 0 0-1.602-.785 1.99 1.99 0 0 0-.564.08l-1.18.35a1.013 1.013 0 0 1-1.3-.946l-.034-1.23a2.025 2.025 0 0 0-1.34-1.843l-1.16-.412a1.014 1.014 0 0 1-.495-1.528l.696-1.015a2.027 2.027 0 0 0 0-2.278L2.77 9.828A1.014 1.014 0 0 1 3.267 8.3l1.16-.412a2.025 2.025 0 0 0 1.339-1.843l.034-1.23a1.018 1.018 0 0 1 .417-.793A1.03 1.03 0 0 1 7.1 3.87l1.18.348a2.021 2.021 0 0 0 2.166-.703l.75-.976a1.055 1.055 0 0 1 1.608 0l.75.976a2.025 2.025 0 0 0 2.166.703l1.18-.348a1.013 1.013 0 0 1 1.3.944l.034 1.23a2.025 2.025 0 0 0 1.34 1.844l1.16.412a1.014 1.014 0 0 1 .495 1.528l-.696 1.015a2.027 2.027 0 0 0 0 2.278l.696 1.015a1.018 1.018 0 0 1 .128.886z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M16 7.212A8.788 8.788 0 1 0 24.788 16 8.798 8.798 0 0 0 16 7.212zm0 16.6A7.812 7.812 0 1 1 23.812 16 7.82 7.82 0 0 1 16 23.812zm3.645-11.17l.71.703-5.814 5.869-2.402-2.357.7-.714 1.692 1.66zm8.695 4.192a1.53 1.53 0 0 1 0-1.716l.928-1.354a2.518 2.518 0 0 0-1.234-3.797l-1.547-.55a1.526 1.526 0 0 1-1.008-1.389l-.045-1.64a2.518 2.518 0 0 0-3.23-2.347l-1.574.465a1.53 1.53 0 0 1-1.633-.53l-1-1.302a2.518 2.518 0 0 0-3.993 0l-1.001 1.301a1.53 1.53 0 0 1-1.633.53l-1.574-.464a2.518 2.518 0 0 0-3.23 2.347l-.045 1.64a1.526 1.526 0 0 1-1.008 1.39l-1.548.549a2.518 2.518 0 0 0-1.233 3.797l.928 1.354a1.53 1.53 0 0 1 0 1.716l-.928 1.354a2.518 2.518 0 0 0 1.234 3.797l1.547.55a1.526 1.526 0 0 1 1.008 1.389l.045 1.64a2.518 2.518 0 0 0 3.23 2.347l1.574-.465a1.53 1.53 0 0 1 1.633.531l1 1.301a2.518 2.518 0 0 0 3.993 0l1.001-1.3a1.53 1.53 0 0 1 1.633-.532l1.574.465a2.518 2.518 0 0 0 3.23-2.347l.045-1.64a1.526 1.526 0 0 1 1.008-1.39l1.548-.549a2.518 2.518 0 0 0 1.233-3.797zm.295 3.248a1.529 1.529 0 0 1-.935.961l-1.547.55a2.534 2.534 0 0 0-1.674 2.303l-.045 1.642a1.517 1.517 0 0 1-1.947 1.414l-1.574-.465a2.529 2.529 0 0 0-2.709.88l-1 1.302a1.58 1.58 0 0 1-2.407 0l-1.001-1.301a2.533 2.533 0 0 0-2.005-.982 2.486 2.486 0 0 0-.704.101l-1.574.465a1.517 1.517 0 0 1-1.947-1.415l-.045-1.64a2.534 2.534 0 0 0-1.674-2.305L4.3 21.043a1.519 1.519 0 0 1-.744-2.29l.927-1.353a2.53 2.53 0 0 0 0-2.848l-.927-1.354A1.519 1.519 0 0 1 4.3 10.91l1.547-.55A2.534 2.534 0 0 0 7.52 8.057l.045-1.641A1.517 1.517 0 0 1 9.513 5l1.574.465a2.533 2.533 0 0 0 2.709-.88l1-1.302a1.579 1.579 0 0 1 2.407 0l1.001 1.301a2.533 2.533 0 0 0 2.71.88L22.486 5a1.517 1.517 0 0 1 1.947 1.415l.045 1.64a2.534 2.534 0 0 0 1.674 2.305l1.546.55a1.519 1.519 0 0 1 .744 2.288l-.927 1.354a2.53 2.53 0 0 0 0 2.848l.927 1.354a1.525 1.525 0 0 1 .192 1.328z"
|
package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation16.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M4.025 15.988V11.96H3.5A2.622 2.622 0 0 1 1 9.237v-5.5a2.622 2.622 0 0 1 2.5-2.725h9.963A2.639 2.639 0 0 1 16 3.737v5.5a2.639 2.639 0 0 1-2.537 2.724H8.946zM3.5 1.96a1.677 1.677 0 0 0-1.55 1.776v5.5a1.677 1.677 0 0 0 1.55 1.775h1.475v2.974l3.633-2.974h4.855a1.692 1.692 0 0 0 1.588-1.775v-5.5a1.692 1.692 0 0 0-1.588-1.776zm6 6.015a1 1 0 0 0-2 0v.048a1 1 0 0 0 2 0zM9 3H8v3h1z"
|
package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation24.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M6 21.963V17h-.75A3.254 3.254 0 0 1 2 13.75v-8.5A3.254 3.254 0 0 1 5.25 2h14.5A3.254 3.254 0 0 1 23 5.25v8.5A3.254 3.254 0 0 1 19.75 17h-6.926zM5.25 3A2.253 2.253 0 0 0 3 5.25v8.5A2.253 2.253 0 0 0 5.25 16H7v4l5.5-4h7.25A2.253 2.253 0 0 0 22 13.75v-8.5A2.253 2.253 0 0 0 19.75 3zM12 10h1V4h-1zm1.5 2.5a1 1 0 1 0-1 1 1 1 0 0 0 1-1z"
|
package/dist/collection/components/calcite-icon/assets/calcite-icon/speechBubbleExclamation32.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M7 28.943V23h-.5A3.504 3.504 0 0 1 3 19.5v-12A3.504 3.504 0 0 1 6.5 4h20A3.504 3.504 0 0 1 30 7.5v11.94a3.458 3.458 0 0 1-.373 1.652A3.514 3.514 0 0 1 26.5 23H15.32zM6.5 5A2.503 2.503 0 0 0 4 7.5v12A2.503 2.503 0 0 0 6.5 22H8v5l7-5h11.5a2.53 2.53 0 0 0 2.246-1.38A2.496 2.496 0 0 0 29 19.44V7.5A2.503 2.503 0 0 0 26.5 5zm11 13a1 1 0 1 0-1 1 1 1 0 0 0 1-1zM16 15h1V7h-1z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M13 15H3V3h1v1h8V3h1l1-.999L12 2V1H9.723a1.984 1.984 0 0 0-3.446 0H4v1H2v14h12V7.899l-1 1zM5 2h2v-.318A.682.682 0 0 1 7.682 1h.636A.682.682 0 0 1 9 1.682V2h2v1H5zm9.646 1.646l.707.707L9.5 10.207 7.046 7.754l.707-.707L9.5 8.793z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M19 21H5V5h2v2h10V5h2v2.172l1-1V4h-3V3h-3a2 2 0 0 0-4 0H7v1H4v18h16V11.828l-1 1zM8 4h3V2.615A.615.615 0 0 1 11.614 2h.771a.615.615 0 0 1 .615.615V4h3v2H8zm14.646 1.646l.707.707-8.853 8.854-3.854-3.854.707-.707 3.147 3.147z"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"M26 28H7V6h3v2h13V6h3v3.172l1-1V5h-4V3h-4.05a2.5 2.5 0 0 0-4.9 0H10v2H6v24h21V13.828l-1 1zM11 4h4.092A1.483 1.483 0 0 1 15 3.5a1.5 1.5 0 0 1 3 0 1.483 1.483 0 0 1-.092.5H22v3H11zm18.646 3.646l.707.707L19.5 19.207l-4.854-4.854.707-.707 4.147 4.147z"
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Listen, Method, Prop, Watch } from "@stencil/core";
|
|
6
|
-
import { getElementProp } from "../../utils/dom";
|
|
6
|
+
import { getElementProp, getSlotted } from "../../utils/dom";
|
|
7
7
|
import { TEXT, CSS } from "./resources";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
|
+
import { createObserver } from "../../utils/observers";
|
|
9
10
|
/**
|
|
10
11
|
* @slot - A slot for adding a `calcite-input`.
|
|
11
12
|
*/
|
|
@@ -36,26 +37,31 @@ export class CalciteInlineEditable {
|
|
|
36
37
|
* @default "Save"
|
|
37
38
|
*/
|
|
38
39
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
40
|
+
this.mutationObserver = createObserver("mutation", () => this.mutationObserverCallback());
|
|
39
41
|
this.transitionEnd = () => {
|
|
40
42
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
41
43
|
this.calciteInlineEditableEditCancel.emit();
|
|
42
44
|
}
|
|
43
45
|
};
|
|
44
46
|
this.enableEditing = () => {
|
|
45
|
-
|
|
47
|
+
var _a, _b;
|
|
48
|
+
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
46
49
|
this.editingEnabled = true;
|
|
47
|
-
this.inputElement.setFocus();
|
|
50
|
+
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
48
51
|
this.calciteInlineEditableEnableEditingChange.emit();
|
|
49
52
|
};
|
|
50
53
|
this.disableEditing = () => {
|
|
51
54
|
this.editingEnabled = false;
|
|
52
55
|
};
|
|
53
56
|
this.cancelEditing = () => {
|
|
54
|
-
this.inputElement
|
|
57
|
+
if (this.inputElement) {
|
|
58
|
+
this.inputElement.value = this.valuePriorToEditing;
|
|
59
|
+
}
|
|
55
60
|
this.disableEditing();
|
|
56
61
|
this.enableEditingButton.setFocus();
|
|
57
62
|
};
|
|
58
63
|
this.escapeKeyHandler = async (e) => {
|
|
64
|
+
var _a;
|
|
59
65
|
if (e.key !== "Escape") {
|
|
60
66
|
if (e.key === "Tab" && this.shouldShowControls) {
|
|
61
67
|
if (!e.shiftKey && e.target === this.inputElement) {
|
|
@@ -65,7 +71,7 @@ export class CalciteInlineEditable {
|
|
|
65
71
|
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
66
72
|
e.preventDefault();
|
|
67
73
|
e.stopPropagation();
|
|
68
|
-
this.inputElement.setFocus();
|
|
74
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
return;
|
|
@@ -107,10 +113,14 @@ export class CalciteInlineEditable {
|
|
|
107
113
|
};
|
|
108
114
|
}
|
|
109
115
|
disabledWatcher(disabled) {
|
|
110
|
-
this.inputElement
|
|
116
|
+
if (this.inputElement) {
|
|
117
|
+
this.inputElement.disabled = disabled;
|
|
118
|
+
}
|
|
111
119
|
}
|
|
112
120
|
editingEnabledWatcher(newValue, oldValue) {
|
|
113
|
-
this.inputElement
|
|
121
|
+
if (this.inputElement) {
|
|
122
|
+
this.inputElement.editingEnabled = newValue;
|
|
123
|
+
}
|
|
114
124
|
if (!newValue && !!oldValue) {
|
|
115
125
|
this.shouldEmitCancel = true;
|
|
116
126
|
}
|
|
@@ -121,17 +131,15 @@ export class CalciteInlineEditable {
|
|
|
121
131
|
//
|
|
122
132
|
//--------------------------------------------------------------------------
|
|
123
133
|
connectedCallback() {
|
|
134
|
+
var _a;
|
|
124
135
|
connectLabel(this);
|
|
136
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
137
|
+
this.mutationObserverCallback();
|
|
125
138
|
}
|
|
126
139
|
disconnectedCallback() {
|
|
140
|
+
var _a;
|
|
127
141
|
disconnectLabel(this);
|
|
128
|
-
|
|
129
|
-
componentWillLoad() {
|
|
130
|
-
this.inputElement = this.el.querySelector("calcite-input");
|
|
131
|
-
this.inputElement.disabled = this.disabled;
|
|
132
|
-
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
133
|
-
this.scale =
|
|
134
|
-
this.scale || this.inputElement.scale || getElementProp(this.el, "scale", undefined);
|
|
142
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
135
143
|
}
|
|
136
144
|
render() {
|
|
137
145
|
return (h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd },
|
|
@@ -177,9 +185,26 @@ export class CalciteInlineEditable {
|
|
|
177
185
|
// Private Methods
|
|
178
186
|
//
|
|
179
187
|
//--------------------------------------------------------------------------
|
|
188
|
+
mutationObserverCallback() {
|
|
189
|
+
var _a;
|
|
190
|
+
this.updateSlottedInput();
|
|
191
|
+
this.scale =
|
|
192
|
+
this.scale || ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.scale) || getElementProp(this.el, "scale", undefined);
|
|
193
|
+
}
|
|
180
194
|
onLabelClick() {
|
|
181
195
|
this.setFocus();
|
|
182
196
|
}
|
|
197
|
+
updateSlottedInput() {
|
|
198
|
+
const inputElement = getSlotted(this.el, {
|
|
199
|
+
matches: "calcite-input"
|
|
200
|
+
});
|
|
201
|
+
this.inputElement = inputElement;
|
|
202
|
+
if (!inputElement) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
this.inputElement.disabled = this.disabled;
|
|
206
|
+
this.inputElement.label = this.inputElement.label || getLabelText(this);
|
|
207
|
+
}
|
|
183
208
|
get shouldShowControls() {
|
|
184
209
|
return this.editingEnabled && this.controls;
|
|
185
210
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
|
|
6
|
-
import { getElementDir, getElementProp, setRequestedIcon } from "../../utils/dom";
|
|
6
|
+
import { getElementDir, getElementProp, getSlotted, setRequestedIcon } from "../../utils/dom";
|
|
7
7
|
import { CSS, INPUT_TYPE_ICONS, SLOTS } from "./resources";
|
|
8
8
|
import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
|
|
9
9
|
import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
|
|
@@ -12,6 +12,7 @@ import { numberKeys } from "../../utils/key";
|
|
|
12
12
|
import { isValidNumber, parseNumberString, sanitizeNumberString } from "../../utils/number";
|
|
13
13
|
import { CSS_UTILITY, TEXT } from "../../utils/resources";
|
|
14
14
|
import { decimalPlaces } from "../../utils/math";
|
|
15
|
+
import { createObserver } from "../../utils/observers";
|
|
15
16
|
/**
|
|
16
17
|
* @slot action - A slot for positioning a button next to an input
|
|
17
18
|
*/
|
|
@@ -76,6 +77,7 @@ export class CalciteInput {
|
|
|
76
77
|
this.childElType = "input";
|
|
77
78
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
78
79
|
this.internalValueChange = false;
|
|
80
|
+
this.mutationObserver = createObserver("mutation", () => this.setDisabledAction());
|
|
79
81
|
//--------------------------------------------------------------------------
|
|
80
82
|
//
|
|
81
83
|
// Private Methods
|
|
@@ -114,7 +116,8 @@ export class CalciteInput {
|
|
|
114
116
|
}
|
|
115
117
|
};
|
|
116
118
|
this.inputFocusHandler = (event) => {
|
|
117
|
-
|
|
119
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
120
|
+
if (event.target !== slottedActionEl) {
|
|
118
121
|
this.setFocus();
|
|
119
122
|
}
|
|
120
123
|
this.calciteInputFocus.emit({
|
|
@@ -358,6 +361,7 @@ export class CalciteInput {
|
|
|
358
361
|
//
|
|
359
362
|
//--------------------------------------------------------------------------
|
|
360
363
|
connectedCallback() {
|
|
364
|
+
var _a;
|
|
361
365
|
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
362
366
|
this.status = getElementProp(this.el, "status", this.status);
|
|
363
367
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -374,10 +378,14 @@ export class CalciteInput {
|
|
|
374
378
|
}
|
|
375
379
|
connectLabel(this);
|
|
376
380
|
connectForm(this);
|
|
381
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
382
|
+
this.setDisabledAction();
|
|
377
383
|
}
|
|
378
384
|
disconnectedCallback() {
|
|
385
|
+
var _a;
|
|
379
386
|
disconnectLabel(this);
|
|
380
387
|
disconnectForm(this);
|
|
388
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
381
389
|
}
|
|
382
390
|
componentWillLoad() {
|
|
383
391
|
var _a, _b;
|
|
@@ -386,10 +394,6 @@ export class CalciteInput {
|
|
|
386
394
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
387
395
|
this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
388
396
|
}
|
|
389
|
-
componentDidLoad() {
|
|
390
|
-
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
391
|
-
this.setDisabledAction();
|
|
392
|
-
}
|
|
393
397
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
394
398
|
if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
|
|
395
399
|
this.setValue({
|
|
@@ -461,10 +465,10 @@ export class CalciteInput {
|
|
|
461
465
|
}
|
|
462
466
|
}
|
|
463
467
|
setDisabledAction() {
|
|
464
|
-
|
|
468
|
+
const slottedActionEl = getSlotted(this.el, "action");
|
|
469
|
+
if (!slottedActionEl) {
|
|
465
470
|
return;
|
|
466
471
|
}
|
|
467
|
-
const slottedActionEl = this.slottedActionEl;
|
|
468
472
|
this.disabled
|
|
469
473
|
? slottedActionEl.setAttribute("disabled", "")
|
|
470
474
|
: slottedActionEl.removeAttribute("disabled");
|
|
@@ -98,7 +98,7 @@ export class CalciteModal {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
this.updateFooterVisibility = () => {
|
|
101
|
-
this.hasFooter = !!this.el
|
|
101
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
//--------------------------------------------------------------------------
|
|
@@ -241,6 +241,7 @@
|
|
|
241
241
|
transition-timing-function: ease-in-out;
|
|
242
242
|
transition-delay: 0s;
|
|
243
243
|
padding: var(--calcite-notice-spacing-token-small) var(--calcite-notice-spacing-token-large);
|
|
244
|
+
flex: 0 0 auto;
|
|
244
245
|
display: flex;
|
|
245
246
|
min-width: 0px;
|
|
246
247
|
flex-direction: column;
|
|
@@ -66,9 +66,6 @@ export class CalciteNotice {
|
|
|
66
66
|
componentWillLoad() {
|
|
67
67
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
68
68
|
}
|
|
69
|
-
componentDidLoad() {
|
|
70
|
-
this.noticeLinkEl = this.el.querySelector("calcite-link");
|
|
71
|
-
}
|
|
72
69
|
render() {
|
|
73
70
|
const { el } = this;
|
|
74
71
|
const closeButton = (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) },
|
|
@@ -92,11 +89,12 @@ export class CalciteNotice {
|
|
|
92
89
|
//--------------------------------------------------------------------------
|
|
93
90
|
/** Sets focus on the component. */
|
|
94
91
|
async setFocus() {
|
|
95
|
-
|
|
92
|
+
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
93
|
+
if (!this.closeButton && !noticeLinkEl) {
|
|
96
94
|
return;
|
|
97
95
|
}
|
|
98
|
-
if (
|
|
99
|
-
|
|
96
|
+
if (noticeLinkEl) {
|
|
97
|
+
noticeLinkEl.setFocus();
|
|
100
98
|
}
|
|
101
99
|
else if (this.closeButton) {
|
|
102
100
|
this.closeButton.focus();
|
|
@@ -129,10 +129,6 @@ export class CalciteRadioButton {
|
|
|
129
129
|
}
|
|
130
130
|
nameChanged() {
|
|
131
131
|
this.checkLastRadioButton();
|
|
132
|
-
const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
|
|
133
|
-
if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
|
|
134
|
-
this.uncheckAllRadioButtonsInGroup();
|
|
135
|
-
}
|
|
136
132
|
}
|
|
137
133
|
//--------------------------------------------------------------------------
|
|
138
134
|
//
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
5
|
import { Component, Host, h, Element, Prop, Watch, Event, Listen } from "@stencil/core";
|
|
6
|
+
import { createObserver } from "../../utils/observers";
|
|
6
7
|
/**
|
|
7
8
|
* @slot - A slot for adding `calcite-radio-button`s.
|
|
8
9
|
*/
|
|
@@ -23,6 +24,12 @@ export class CalciteRadioButtonGroup {
|
|
|
23
24
|
this.required = false;
|
|
24
25
|
/** The scale (size) of the radio button group. */
|
|
25
26
|
this.scale = "m";
|
|
27
|
+
// --------------------------------------------------------------------------
|
|
28
|
+
//
|
|
29
|
+
// Private Properties
|
|
30
|
+
//
|
|
31
|
+
// --------------------------------------------------------------------------
|
|
32
|
+
this.mutationObserver = createObserver("mutation", () => this.passPropsToRadioButtons());
|
|
26
33
|
//--------------------------------------------------------------------------
|
|
27
34
|
//
|
|
28
35
|
// Private Methods
|
|
@@ -59,7 +66,13 @@ export class CalciteRadioButtonGroup {
|
|
|
59
66
|
//
|
|
60
67
|
//--------------------------------------------------------------------------
|
|
61
68
|
connectedCallback() {
|
|
69
|
+
var _a;
|
|
62
70
|
this.passPropsToRadioButtons();
|
|
71
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
72
|
+
}
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
var _a;
|
|
75
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
76
|
}
|
|
64
77
|
//--------------------------------------------------------------------------
|
|
65
78
|
//
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
cursor: pointer;
|
|
136
136
|
outline-offset: 0;
|
|
137
137
|
outline-color: transparent;
|
|
138
|
+
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
|
|
138
139
|
color: var(--calcite-ui-border-input);
|
|
139
140
|
transition: var(--calcite-animation-timing);
|
|
140
141
|
transform: scale(1);
|
|
@@ -192,6 +192,7 @@
|
|
|
192
192
|
background-color: var(--calcite-ui-foreground-1);
|
|
193
193
|
outline-offset: 0;
|
|
194
194
|
outline-color: transparent;
|
|
195
|
+
transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
|
|
195
196
|
height: var(--calcite-slider-handle-size);
|
|
196
197
|
width: var(--calcite-slider-handle-size);
|
|
197
198
|
box-shadow: 0 0 0 2px var(--calcite-ui-text-3) inset;
|
|
@@ -83,9 +83,7 @@ export class CalciteSlider {
|
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
this.dragEnd = (event) => {
|
|
86
|
-
|
|
87
|
-
document.removeEventListener("pointerup", this.dragEnd);
|
|
88
|
-
document.removeEventListener("pointercancel", this.dragEnd);
|
|
86
|
+
this.removeDragListeners();
|
|
89
87
|
this.focusActiveHandle(event.clientX);
|
|
90
88
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
91
89
|
this.emitChange();
|
|
@@ -120,6 +118,7 @@ export class CalciteSlider {
|
|
|
120
118
|
disconnectedCallback() {
|
|
121
119
|
disconnectLabel(this);
|
|
122
120
|
disconnectForm(this);
|
|
121
|
+
this.removeDragListeners();
|
|
123
122
|
}
|
|
124
123
|
componentWillLoad() {
|
|
125
124
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
@@ -515,6 +514,11 @@ export class CalciteSlider {
|
|
|
515
514
|
emitChange() {
|
|
516
515
|
this.calciteSliderChange.emit();
|
|
517
516
|
}
|
|
517
|
+
removeDragListeners() {
|
|
518
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
|
519
|
+
document.removeEventListener("pointerup", this.dragEnd);
|
|
520
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
|
521
|
+
}
|
|
518
522
|
/**
|
|
519
523
|
* Set the prop value if changed at the component level
|
|
520
524
|
* @param valueProp
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
height: 0.125rem;
|
|
124
124
|
background-color: var(--calcite-ui-brand);
|
|
125
125
|
transition-property: all;
|
|
126
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
126
127
|
transition-duration: 150ms;
|
|
127
128
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
128
129
|
}
|
|
@@ -524,7 +524,7 @@ export class CalciteTimePicker {
|
|
|
524
524
|
[CSS.showMeridiem]: showMeridiem,
|
|
525
525
|
[CSS.showSecond]: this.showSecond,
|
|
526
526
|
[CSS[`scale-${this.scale}`]]: true
|
|
527
|
-
} },
|
|
527
|
+
}, dir: "ltr" },
|
|
528
528
|
h("div", { class: CSS.column, role: "group" },
|
|
529
529
|
h("span", { "aria-label": this.intlHourUp, class: {
|
|
530
530
|
[CSS.button]: true,
|
|
@@ -13,12 +13,12 @@ import { queryElementRoots } from "../../utils/dom";
|
|
|
13
13
|
export class CalciteTooltip {
|
|
14
14
|
constructor() {
|
|
15
15
|
/**
|
|
16
|
-
* Offset the position of the
|
|
16
|
+
* Offset the position of the tooltip away from the reference element.
|
|
17
17
|
* @default 6
|
|
18
18
|
*/
|
|
19
19
|
this.offsetDistance = defaultOffsetDistance;
|
|
20
20
|
/**
|
|
21
|
-
* Offset the position of the
|
|
21
|
+
* Offset the position of the tooltip along the reference element.
|
|
22
22
|
*/
|
|
23
23
|
this.offsetSkidding = 0;
|
|
24
24
|
/**
|
|
@@ -227,7 +227,7 @@ export class CalciteTooltip {
|
|
|
227
227
|
"name": "default",
|
|
228
228
|
"text": "6"
|
|
229
229
|
}],
|
|
230
|
-
"text": "Offset the position of the
|
|
230
|
+
"text": "Offset the position of the tooltip away from the reference element."
|
|
231
231
|
},
|
|
232
232
|
"attribute": "offset-distance",
|
|
233
233
|
"reflect": true,
|
|
@@ -245,7 +245,7 @@ export class CalciteTooltip {
|
|
|
245
245
|
"optional": false,
|
|
246
246
|
"docs": {
|
|
247
247
|
"tags": [],
|
|
248
|
-
"text": "Offset the position of the
|
|
248
|
+
"text": "Offset the position of the tooltip along the reference element."
|
|
249
249
|
},
|
|
250
250
|
"attribute": "offset-skidding",
|
|
251
251
|
"reflect": true,
|
|
@@ -133,6 +133,11 @@
|
|
|
133
133
|
position: absolute;
|
|
134
134
|
top: 0px;
|
|
135
135
|
width: 1px;
|
|
136
|
+
transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
|
|
137
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
138
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
|
|
139
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
140
|
+
transition-duration: 150ms;
|
|
136
141
|
transition-property: all;
|
|
137
142
|
transition-duration: var(--calcite-animation-timing);
|
|
138
143
|
transition-timing-function: ease-in-out;
|
|
@@ -34,7 +34,7 @@ export class CalciteTreeItem {
|
|
|
34
34
|
this.expanded = !this.expanded;
|
|
35
35
|
if (this.selectionMode !== TreeSelectionMode.Ancestors) {
|
|
36
36
|
this.calciteTreeItemSelect.emit({
|
|
37
|
-
modifyCurrentSelection:
|
|
37
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
38
38
|
forceToggle: true
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -68,6 +68,11 @@ export class CalciteTreeItem {
|
|
|
68
68
|
expandedHandler(newValue) {
|
|
69
69
|
this.updateParentIsExpanded(this.el, newValue);
|
|
70
70
|
}
|
|
71
|
+
getselectionMode() {
|
|
72
|
+
this.isSelectionMultiLike =
|
|
73
|
+
this.selectionMode === TreeSelectionMode.Multi ||
|
|
74
|
+
this.selectionMode === TreeSelectionMode.MultiChildren;
|
|
75
|
+
}
|
|
71
76
|
//--------------------------------------------------------------------------
|
|
72
77
|
//
|
|
73
78
|
// Lifecycle
|
|
@@ -162,7 +167,7 @@ export class CalciteTreeItem {
|
|
|
162
167
|
window.open(link.href, target);
|
|
163
168
|
}
|
|
164
169
|
this.calciteTreeItemSelect.emit({
|
|
165
|
-
modifyCurrentSelection:
|
|
170
|
+
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
166
171
|
forceToggle: false
|
|
167
172
|
});
|
|
168
173
|
}
|
|
@@ -171,7 +176,7 @@ export class CalciteTreeItem {
|
|
|
171
176
|
switch (e.key) {
|
|
172
177
|
case " ":
|
|
173
178
|
this.calciteTreeItemSelect.emit({
|
|
174
|
-
modifyCurrentSelection:
|
|
179
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
175
180
|
forceToggle: false
|
|
176
181
|
});
|
|
177
182
|
e.preventDefault();
|
|
@@ -186,7 +191,7 @@ export class CalciteTreeItem {
|
|
|
186
191
|
}
|
|
187
192
|
else {
|
|
188
193
|
this.calciteTreeItemSelect.emit({
|
|
189
|
-
modifyCurrentSelection:
|
|
194
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
190
195
|
forceToggle: false
|
|
191
196
|
});
|
|
192
197
|
}
|
|
@@ -505,6 +510,9 @@ export class CalciteTreeItem {
|
|
|
505
510
|
static get watchers() { return [{
|
|
506
511
|
"propName": "expanded",
|
|
507
512
|
"methodName": "expandedHandler"
|
|
513
|
+
}, {
|
|
514
|
+
"propName": "selectionMode",
|
|
515
|
+
"methodName": "getselectionMode"
|
|
508
516
|
}]; }
|
|
509
517
|
static get listeners() { return [{
|
|
510
518
|
"name": "click",
|
|
@@ -144,10 +144,7 @@ let CalciteActionMenu = class extends HTMLElement {
|
|
|
144
144
|
};
|
|
145
145
|
this.getActions = () => {
|
|
146
146
|
const { el } = this;
|
|
147
|
-
const
|
|
148
|
-
const actionElements = assignedActions.length
|
|
149
|
-
? assignedActions
|
|
150
|
-
: Array.from(el.querySelectorAll("calcite-action:not([slot=trigger])"));
|
|
147
|
+
const actionElements = getSlotted(el, { all: true, matches: "calcite-action" });
|
|
151
148
|
this.updateActions(actionElements);
|
|
152
149
|
this.actionElements = actionElements;
|
|
153
150
|
this.connectMenuButtonEl();
|
|
@@ -21,7 +21,7 @@ const TEXT = {
|
|
|
21
21
|
loading: "Loading"
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);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;font-family:inherit;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-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-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
24
|
+
const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);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;font-family:inherit;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-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-transition-property:margin;transition-property:margin;-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-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([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
|
25
25
|
|
|
26
26
|
let CalciteAction = class extends HTMLElement {
|
|
27
27
|
constructor() {
|