@esri/calcite-components 1.0.0-next.372 → 1.0.0-next.376
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/calcite.esm.js +1 -1
- package/dist/calcite/p-05ad8606.system.entry.js +5 -0
- package/dist/calcite/{p-32d61433.system.entry.js → p-2f0d280a.system.entry.js} +1 -1
- package/dist/calcite/{p-617c3f30.system.entry.js → p-3dd50bac.system.entry.js} +1 -1
- package/dist/calcite/{p-f12c35de.system.entry.js → p-4d81b84b.system.entry.js} +2 -2
- package/dist/calcite/{p-7a6c932d.system.entry.js → p-4d88c604.system.entry.js} +1 -1
- package/dist/calcite/p-4e258f5c.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-6eb1302b.entry.js +5 -0
- package/dist/calcite/p-7409e609.system.js +5 -0
- package/dist/calcite/p-7415264e.system.entry.js +5 -0
- package/dist/calcite/p-76c53ab5.entry.js +5 -0
- package/dist/calcite/{p-f24ddc56.system.entry.js → p-80eb08b3.system.entry.js} +1 -1
- package/dist/calcite/p-8a413063.js +5 -0
- package/dist/calcite/{p-ee14736a.entry.js → p-8c126095.entry.js} +1 -1
- package/dist/calcite/{p-2e324a56.system.entry.js → p-92711575.system.entry.js} +2 -2
- package/dist/calcite/p-99b729f6.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-a49d1a11.system.entry.js +5 -0
- package/dist/calcite/p-a5660ba5.entry.js +5 -0
- package/dist/calcite/p-aceeb62f.entry.js +5 -0
- package/dist/calcite/p-b3e034cb.entry.js +5 -0
- package/dist/calcite/p-b78f6de5.system.entry.js +5 -0
- package/dist/calcite/p-bab0c984.entry.js +5 -0
- package/dist/calcite/{p-39d4d1b1.system.entry.js → p-bd6cbbbd.system.entry.js} +1 -1
- package/dist/calcite/p-c39e7451.entry.js +5 -0
- package/dist/calcite/{p-8709d314.system.entry.js → p-c93dbb93.system.entry.js} +1 -1
- 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-d6f6b6c1.entry.js +5 -0
- package/dist/calcite/p-dd8b6d4f.system.entry.js +5 -0
- package/dist/calcite/p-e05aa070.entry.js +5 -0
- package/dist/calcite/p-e66c335c.entry.js +5 -0
- package/dist/calcite/p-f3102bbb.system.entry.js +5 -0
- package/dist/calcite/p-f3a85d19.system.entry.js +5 -0
- 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-accordion_2.cjs.entry.js +6 -3
- package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -4
- package/dist/cjs/calcite-alert.cjs.entry.js +4 -6
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/calcite-graph_2.cjs.entry.js +7 -3
- 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 +4 -6
- package/dist/cjs/calcite-panel.cjs.entry.js +17 -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-shell_3.cjs.entry.js +7 -4
- package/dist/cjs/calcite-tree_2.cjs.entry.js +14 -7
- 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/components/calcite-accordion/calcite-accordion.css +5 -5
- package/dist/collection/components/calcite-accordion/calcite-accordion.js +5 -1
- package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +2 -16
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +1 -4
- package/dist/collection/components/calcite-alert/calcite-alert.js +8 -7
- 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-dropdown/calcite-dropdown.js +2 -2
- 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.js +4 -6
- package/dist/collection/components/calcite-panel/calcite-panel.js +41 -5
- 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-shell/calcite-shell.js +9 -7
- package/dist/collection/components/calcite-slider/calcite-slider.js +7 -3
- package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +1 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +16 -7
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +5 -2
- package/dist/components/calcite-action-menu2.js +1 -4
- package/dist/components/calcite-alert.js +5 -7
- package/dist/components/calcite-date-picker2.js +3 -0
- package/dist/components/calcite-dropdown2.js +2 -2
- 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 +4 -6
- package/dist/components/calcite-panel.js +19 -2
- package/dist/components/calcite-radio-button-group.js +13 -0
- package/dist/components/calcite-radio-button.js +0 -4
- package/dist/components/calcite-shell.js +7 -4
- package/dist/components/calcite-slider.js +7 -3
- package/dist/components/calcite-time-picker2.js +1 -1
- package/dist/components/calcite-tree-item.js +14 -7
- package/dist/custom-elements/index.js +125 -61
- package/dist/esm/calcite-accordion_2.entry.js +6 -3
- package/dist/esm/calcite-action-menu.entry.js +1 -4
- package/dist/esm/calcite-alert.entry.js +5 -7
- package/dist/esm/calcite-date-picker_4.entry.js +1 -1
- package/dist/esm/calcite-dropdown_3.entry.js +2 -2
- package/dist/esm/calcite-graph_2.entry.js +7 -3
- 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 +4 -6
- package/dist/esm/calcite-panel.entry.js +17 -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-shell_3.entry.js +7 -4
- package/dist/esm/calcite-tree_2.entry.js +14 -7
- 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-accordion_2.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-alert.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 +2 -2
- 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-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
- package/dist/esm-es5/calcite.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/resources-f02a1ab5.js +5 -0
- package/dist/extras/docs-json.json +12 -1
- 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-panel/calcite-panel.d.ts +12 -0
- 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-tree-item/calcite-tree-item.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/hydrate/index.js +124 -62
- package/package.json +6 -2
- package/readme.md +2 -6
- 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-20e3fc50.entry.js +0 -5
- package/dist/calcite/p-500300b5.entry.js +0 -5
- package/dist/calcite/p-5f5bfaa5.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-8ba8a357.system.js +0 -5
- package/dist/calcite/p-9716c57c.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-a50e52f1.entry.js +0 -5
- package/dist/calcite/p-abe7730b.entry.js +0 -5
- package/dist/calcite/p-b9adf89d.system.entry.js +0 -5
- package/dist/calcite/p-c5b3d90c.entry.js +0 -5
- package/dist/calcite/p-c6cb0aa2.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-fbd68dbf.system.entry.js +0 -5
- package/dist/esm-es5/resources-c768953c.js +0 -5
|
@@ -10,7 +10,7 @@ const index = require('./index-6b5d2de5.js');
|
|
|
10
10
|
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
require('./guid-b270f0db.js');
|
|
12
12
|
|
|
13
|
-
const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:
|
|
13
|
+
const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}.accordion--transparent{border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}.accordion--minimal{--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}";
|
|
14
14
|
|
|
15
15
|
let CalciteAccordion = class {
|
|
16
16
|
constructor(hostRef) {
|
|
@@ -55,7 +55,10 @@ let CalciteAccordion = class {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return index.h("
|
|
58
|
+
return (index.h("div", { class: {
|
|
59
|
+
"accordion--transparent": this.appearance === "transparent",
|
|
60
|
+
"accordion--minimal": this.appearance === "minimal"
|
|
61
|
+
} }, index.h("slot", null)));
|
|
59
62
|
}
|
|
60
63
|
//--------------------------------------------------------------------------
|
|
61
64
|
//
|
|
@@ -146,7 +149,7 @@ let CalciteAccordion = class {
|
|
|
146
149
|
};
|
|
147
150
|
CalciteAccordion.style = calciteAccordionCss;
|
|
148
151
|
|
|
149
|
-
const calciteAccordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{
|
|
152
|
+
const calciteAccordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}:host{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--calcite-ui-text-3);-webkit-text-decoration-line:none;text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{position:relative;margin:0px;display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;padding-top:0px;color:var(--calcite-ui-text-3);text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{margin-top:0px;margin-bottom:0px;-ms-flex-positive:1;flex-grow:1;-ms-flex-direction:column;flex-direction:column;padding-top:0px;padding-bottom:0px;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}:host .accordion-item-subtitle{margin-top:0.25rem;color:var(--calcite-ui-text-3)}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
|
|
150
153
|
|
|
151
154
|
let CalciteAccordionItem = class {
|
|
152
155
|
constructor(hostRef) {
|
|
@@ -130,10 +130,7 @@ let CalciteActionMenu = class {
|
|
|
130
130
|
};
|
|
131
131
|
this.getActions = () => {
|
|
132
132
|
const { el } = this;
|
|
133
|
-
const
|
|
134
|
-
const actionElements = assignedActions.length
|
|
135
|
-
? assignedActions
|
|
136
|
-
: Array.from(el.querySelectorAll("calcite-action:not([slot=trigger])"));
|
|
133
|
+
const actionElements = dom.getSlotted(el, { all: true, matches: "calcite-action" });
|
|
137
134
|
this.updateActions(actionElements);
|
|
138
135
|
this.actionElements = actionElements;
|
|
139
136
|
this.connectMenuButtonEl();
|
|
@@ -123,9 +123,6 @@ let CalciteAlert = class {
|
|
|
123
123
|
componentWillLoad() {
|
|
124
124
|
this.requestedIcon = dom.setRequestedIcon(interfaces.StatusIcons, this.icon, this.color);
|
|
125
125
|
}
|
|
126
|
-
componentDidLoad() {
|
|
127
|
-
this.alertLinkEl = this.el.querySelectorAll("calcite-link")[0];
|
|
128
|
-
}
|
|
129
126
|
disconnectedCallback() {
|
|
130
127
|
window.clearTimeout(this.autoDismissTimeoutId);
|
|
131
128
|
}
|
|
@@ -166,11 +163,12 @@ let CalciteAlert = class {
|
|
|
166
163
|
//--------------------------------------------------------------------------
|
|
167
164
|
/** Sets focus on the component. */
|
|
168
165
|
async setFocus() {
|
|
169
|
-
|
|
166
|
+
const alertLinkEl = dom.getSlotted(this.el, { selector: "calcite-link" });
|
|
167
|
+
if (!this.closeButton && !alertLinkEl) {
|
|
170
168
|
return;
|
|
171
169
|
}
|
|
172
|
-
else if (
|
|
173
|
-
|
|
170
|
+
else if (alertLinkEl) {
|
|
171
|
+
alertLinkEl.setFocus();
|
|
174
172
|
}
|
|
175
173
|
else if (this.closeButton) {
|
|
176
174
|
this.closeButton.focus();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
10
|
+
const resources = require('./resources-f70fb01b.js');
|
|
11
11
|
const dom = require('./dom-f3df220d.js');
|
|
12
12
|
const CalciteHeading = require('./CalciteHeading-112c19f9.js');
|
|
13
13
|
require('./locale-02462821.js');
|
|
@@ -79,7 +79,7 @@ let CalciteDropdown = class {
|
|
|
79
79
|
//--------------------------------------------------------------------------
|
|
80
80
|
this.updateItems = () => {
|
|
81
81
|
this.updateSelectedItems();
|
|
82
|
-
this.triggers =
|
|
82
|
+
this.triggers = dom.getSlotted(this.el, "dropdown-trigger", { all: true });
|
|
83
83
|
this.items = Array.from(this.el.querySelectorAll("calcite-dropdown-item"));
|
|
84
84
|
this.reposition();
|
|
85
85
|
};
|
|
@@ -283,9 +283,7 @@ let CalciteSlider = class {
|
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
this.dragEnd = (event) => {
|
|
286
|
-
|
|
287
|
-
document.removeEventListener("pointerup", this.dragEnd);
|
|
288
|
-
document.removeEventListener("pointercancel", this.dragEnd);
|
|
286
|
+
this.removeDragListeners();
|
|
289
287
|
this.focusActiveHandle(event.clientX);
|
|
290
288
|
if (this.lastDragPropValue != this[this.dragProp]) {
|
|
291
289
|
this.emitChange();
|
|
@@ -320,6 +318,7 @@ let CalciteSlider = class {
|
|
|
320
318
|
disconnectedCallback() {
|
|
321
319
|
label.disconnectLabel(this);
|
|
322
320
|
form.disconnectForm(this);
|
|
321
|
+
this.removeDragListeners();
|
|
323
322
|
}
|
|
324
323
|
componentWillLoad() {
|
|
325
324
|
this.isRange = !!(this.maxValue || this.maxValue === 0);
|
|
@@ -655,6 +654,11 @@ let CalciteSlider = class {
|
|
|
655
654
|
emitChange() {
|
|
656
655
|
this.calciteSliderChange.emit();
|
|
657
656
|
}
|
|
657
|
+
removeDragListeners() {
|
|
658
|
+
document.removeEventListener("pointermove", this.dragUpdate);
|
|
659
|
+
document.removeEventListener("pointerup", this.dragEnd);
|
|
660
|
+
document.removeEventListener("pointercancel", this.dragEnd);
|
|
661
|
+
}
|
|
658
662
|
/**
|
|
659
663
|
* Set the prop value if changed at the component level
|
|
660
664
|
* @param valueProp
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
10
|
const dom = require('./dom-f3df220d.js');
|
|
11
11
|
const label = require('./label-6b18ca08.js');
|
|
12
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
12
13
|
require('./guid-b270f0db.js');
|
|
13
14
|
|
|
14
15
|
const CSS = {
|
|
@@ -59,26 +60,31 @@ let CalciteInlineEditable = class {
|
|
|
59
60
|
* @default "Save"
|
|
60
61
|
*/
|
|
61
62
|
this.intlConfirmChanges = TEXT.intlConfirmChanges;
|
|
63
|
+
this.mutationObserver = observers.createObserver("mutation", () => this.mutationObserverCallback());
|
|
62
64
|
this.transitionEnd = () => {
|
|
63
65
|
if (!this.editingEnabled && !!this.shouldEmitCancel) {
|
|
64
66
|
this.calciteInlineEditableEditCancel.emit();
|
|
65
67
|
}
|
|
66
68
|
};
|
|
67
69
|
this.enableEditing = () => {
|
|
68
|
-
|
|
70
|
+
var _a, _b;
|
|
71
|
+
this.valuePriorToEditing = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value;
|
|
69
72
|
this.editingEnabled = true;
|
|
70
|
-
this.inputElement.setFocus();
|
|
73
|
+
(_b = this.inputElement) === null || _b === void 0 ? void 0 : _b.setFocus();
|
|
71
74
|
this.calciteInlineEditableEnableEditingChange.emit();
|
|
72
75
|
};
|
|
73
76
|
this.disableEditing = () => {
|
|
74
77
|
this.editingEnabled = false;
|
|
75
78
|
};
|
|
76
79
|
this.cancelEditing = () => {
|
|
77
|
-
this.inputElement
|
|
80
|
+
if (this.inputElement) {
|
|
81
|
+
this.inputElement.value = this.valuePriorToEditing;
|
|
82
|
+
}
|
|
78
83
|
this.disableEditing();
|
|
79
84
|
this.enableEditingButton.setFocus();
|
|
80
85
|
};
|
|
81
86
|
this.escapeKeyHandler = async (e) => {
|
|
87
|
+
var _a;
|
|
82
88
|
if (e.key !== "Escape") {
|
|
83
89
|
if (e.key === "Tab" && this.shouldShowControls) {
|
|
84
90
|
if (!e.shiftKey && e.target === this.inputElement) {
|
|
@@ -88,7 +94,7 @@ let CalciteInlineEditable = class {
|
|
|
88
94
|
if (!!e.shiftKey && e.target === this.cancelEditingButton) {
|
|
89
95
|
e.preventDefault();
|
|
90
96
|
e.stopPropagation();
|
|
91
|
-
this.inputElement.setFocus();
|
|
97
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
92
98
|
}
|
|
93
99
|
}
|
|
94
100
|
return;
|
|
@@ -130,10 +136,14 @@ let CalciteInlineEditable = class {
|
|
|
130
136
|
};
|
|
131
137
|
}
|
|
132
138
|
disabledWatcher(disabled) {
|
|
133
|
-
this.inputElement
|
|
139
|
+
if (this.inputElement) {
|
|
140
|
+
this.inputElement.disabled = disabled;
|
|
141
|
+
}
|
|
134
142
|
}
|
|
135
143
|
editingEnabledWatcher(newValue, oldValue) {
|
|
136
|
-
this.inputElement
|
|
144
|
+
if (this.inputElement) {
|
|
145
|
+
this.inputElement.editingEnabled = newValue;
|
|
146
|
+
}
|
|
137
147
|
if (!newValue && !!oldValue) {
|
|
138
148
|
this.shouldEmitCancel = true;
|
|
139
149
|
}
|
|
@@ -144,17 +154,15 @@ let CalciteInlineEditable = class {
|
|
|
144
154
|
//
|
|
145
155
|
//--------------------------------------------------------------------------
|
|
146
156
|
connectedCallback() {
|
|
157
|
+
var _a;
|
|
147
158
|
label.connectLabel(this);
|
|
159
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
160
|
+
this.mutationObserverCallback();
|
|
148
161
|
}
|
|
149
162
|
disconnectedCallback() {
|
|
163
|
+
var _a;
|
|
150
164
|
label.disconnectLabel(this);
|
|
151
|
-
|
|
152
|
-
componentWillLoad() {
|
|
153
|
-
this.inputElement = this.el.querySelector("calcite-input");
|
|
154
|
-
this.inputElement.disabled = this.disabled;
|
|
155
|
-
this.inputElement.label = this.inputElement.label || label.getLabelText(this);
|
|
156
|
-
this.scale =
|
|
157
|
-
this.scale || this.inputElement.scale || dom.getElementProp(this.el, "scale", undefined);
|
|
165
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
158
166
|
}
|
|
159
167
|
render() {
|
|
160
168
|
return (index.h("div", { class: CSS.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler, onTransitionEnd: this.transitionEnd }, index.h("div", { class: CSS.inputWrapper }, index.h("slot", null)), index.h("div", { class: CSS.controlsWrapper }, index.h("calcite-button", { appearance: "transparent", class: CSS.enableEditingButton, color: "neutral", disabled: this.disabled, iconStart: "pencil", label: this.intlEnableEditing, onClick: this.enableEditingHandler, ref: (el) => (this.enableEditingButton = el), scale: this.scale, style: {
|
|
@@ -194,9 +202,26 @@ let CalciteInlineEditable = class {
|
|
|
194
202
|
// Private Methods
|
|
195
203
|
//
|
|
196
204
|
//--------------------------------------------------------------------------
|
|
205
|
+
mutationObserverCallback() {
|
|
206
|
+
var _a;
|
|
207
|
+
this.updateSlottedInput();
|
|
208
|
+
this.scale =
|
|
209
|
+
this.scale || ((_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.scale) || dom.getElementProp(this.el, "scale", undefined);
|
|
210
|
+
}
|
|
197
211
|
onLabelClick() {
|
|
198
212
|
this.setFocus();
|
|
199
213
|
}
|
|
214
|
+
updateSlottedInput() {
|
|
215
|
+
const inputElement = dom.getSlotted(this.el, {
|
|
216
|
+
matches: "calcite-input"
|
|
217
|
+
});
|
|
218
|
+
this.inputElement = inputElement;
|
|
219
|
+
if (!inputElement) {
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
this.inputElement.disabled = this.disabled;
|
|
223
|
+
this.inputElement.label = this.inputElement.label || label.getLabelText(this);
|
|
224
|
+
}
|
|
200
225
|
get shouldShowControls() {
|
|
201
226
|
return this.editingEnabled && this.controls;
|
|
202
227
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
-
const resources = require('./resources-
|
|
10
|
+
const resources = require('./resources-f70fb01b.js');
|
|
11
11
|
const label = require('./label-6b18ca08.js');
|
|
12
12
|
const form = require('./form-237cf392.js');
|
|
13
13
|
const popper = require('./popper-13a2bb46.js');
|
|
@@ -940,7 +940,7 @@ let CalciteTimePicker = class {
|
|
|
940
940
|
[CSS.showMeridiem]: showMeridiem,
|
|
941
941
|
[CSS.showSecond]: this.showSecond,
|
|
942
942
|
[CSS[`scale-${this.scale}`]]: true
|
|
943
|
-
} }, index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlHourUp, class: {
|
|
943
|
+
}, dir: "ltr" }, index.h("div", { class: CSS.column, role: "group" }, index.h("span", { "aria-label": this.intlHourUp, class: {
|
|
944
944
|
[CSS.button]: true,
|
|
945
945
|
[CSS.buttonHourUp]: true,
|
|
946
946
|
[CSS.buttonTopLeft]: true
|
|
@@ -13,6 +13,7 @@ const form = require('./form-237cf392.js');
|
|
|
13
13
|
const locale = require('./locale-02462821.js');
|
|
14
14
|
const number = require('./number-e813e801.js');
|
|
15
15
|
const math = require('./math-145c80e2.js');
|
|
16
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
16
17
|
require('./guid-b270f0db.js');
|
|
17
18
|
|
|
18
19
|
const CSS = {
|
|
@@ -111,6 +112,7 @@ let CalciteInput = class {
|
|
|
111
112
|
this.childElType = "input";
|
|
112
113
|
/** whether the value of the input was changed as a result of user typing or not */
|
|
113
114
|
this.internalValueChange = false;
|
|
115
|
+
this.mutationObserver = observers.createObserver("mutation", () => this.setDisabledAction());
|
|
114
116
|
//--------------------------------------------------------------------------
|
|
115
117
|
//
|
|
116
118
|
// Private Methods
|
|
@@ -149,7 +151,8 @@ let CalciteInput = class {
|
|
|
149
151
|
}
|
|
150
152
|
};
|
|
151
153
|
this.inputFocusHandler = (event) => {
|
|
152
|
-
|
|
154
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
155
|
+
if (event.target !== slottedActionEl) {
|
|
153
156
|
this.setFocus();
|
|
154
157
|
}
|
|
155
158
|
this.calciteInputFocus.emit({
|
|
@@ -393,6 +396,7 @@ let CalciteInput = class {
|
|
|
393
396
|
//
|
|
394
397
|
//--------------------------------------------------------------------------
|
|
395
398
|
connectedCallback() {
|
|
399
|
+
var _a;
|
|
396
400
|
this.scale = dom.getElementProp(this.el, "scale", this.scale);
|
|
397
401
|
this.status = dom.getElementProp(this.el, "status", this.status);
|
|
398
402
|
this.inlineEditableEl = this.el.closest("calcite-inline-editable");
|
|
@@ -409,10 +413,14 @@ let CalciteInput = class {
|
|
|
409
413
|
}
|
|
410
414
|
label.connectLabel(this);
|
|
411
415
|
form.connectForm(this);
|
|
416
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true });
|
|
417
|
+
this.setDisabledAction();
|
|
412
418
|
}
|
|
413
419
|
disconnectedCallback() {
|
|
420
|
+
var _a;
|
|
414
421
|
label.disconnectLabel(this);
|
|
415
422
|
form.disconnectForm(this);
|
|
423
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
416
424
|
}
|
|
417
425
|
componentWillLoad() {
|
|
418
426
|
var _a, _b;
|
|
@@ -421,10 +429,6 @@ let CalciteInput = class {
|
|
|
421
429
|
this.minString = (_b = this.min) === null || _b === void 0 ? void 0 : _b.toString();
|
|
422
430
|
this.requestedIcon = dom.setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
|
|
423
431
|
}
|
|
424
|
-
componentDidLoad() {
|
|
425
|
-
this.slottedActionEl = this.el.querySelector("[slot=action]");
|
|
426
|
-
this.setDisabledAction();
|
|
427
|
-
}
|
|
428
432
|
componentShouldUpdate(newValue, oldValue, property) {
|
|
429
433
|
if (this.type === "number" && property === "value" && newValue && !number.isValidNumber(newValue)) {
|
|
430
434
|
this.setValue({
|
|
@@ -496,10 +500,10 @@ let CalciteInput = class {
|
|
|
496
500
|
}
|
|
497
501
|
}
|
|
498
502
|
setDisabledAction() {
|
|
499
|
-
|
|
503
|
+
const slottedActionEl = dom.getSlotted(this.el, "action");
|
|
504
|
+
if (!slottedActionEl) {
|
|
500
505
|
return;
|
|
501
506
|
}
|
|
502
|
-
const slottedActionEl = this.slottedActionEl;
|
|
503
507
|
this.disabled
|
|
504
508
|
? slottedActionEl.setAttribute("disabled", "")
|
|
505
509
|
: slottedActionEl.removeAttribute("disabled");
|
|
@@ -227,7 +227,7 @@ let CalciteModal = class {
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
this.updateFooterVisibility = () => {
|
|
230
|
-
this.hasFooter = !!this.el
|
|
230
|
+
this.hasFooter = !!dom.getSlotted(this.el, [SLOTS.back, SLOTS.primary, SLOTS.secondary]);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
//--------------------------------------------------------------------------
|
|
@@ -83,9 +83,6 @@ let CalciteNotice = class {
|
|
|
83
83
|
componentWillLoad() {
|
|
84
84
|
this.requestedIcon = dom.setRequestedIcon(interfaces.StatusIcons, this.icon, this.color);
|
|
85
85
|
}
|
|
86
|
-
componentDidLoad() {
|
|
87
|
-
this.noticeLinkEl = this.el.querySelector("calcite-link");
|
|
88
|
-
}
|
|
89
86
|
render() {
|
|
90
87
|
const { el } = this;
|
|
91
88
|
const closeButton = (index.h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButton = el) }, index.h("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
@@ -99,11 +96,12 @@ let CalciteNotice = class {
|
|
|
99
96
|
//--------------------------------------------------------------------------
|
|
100
97
|
/** Sets focus on the component. */
|
|
101
98
|
async setFocus() {
|
|
102
|
-
|
|
99
|
+
const noticeLinkEl = this.el.querySelector("calcite-link");
|
|
100
|
+
if (!this.closeButton && !noticeLinkEl) {
|
|
103
101
|
return;
|
|
104
102
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
103
|
+
if (noticeLinkEl) {
|
|
104
|
+
noticeLinkEl.setFocus();
|
|
107
105
|
}
|
|
108
106
|
else if (this.closeButton) {
|
|
109
107
|
this.closeButton.focus();
|
|
@@ -155,6 +155,20 @@ let CalcitePanel = class {
|
|
|
155
155
|
}
|
|
156
156
|
(_c = this.containerEl) === null || _c === void 0 ? void 0 : _c.focus();
|
|
157
157
|
}
|
|
158
|
+
/** Scrolls panel content to a particular set of coordinates.
|
|
159
|
+
*
|
|
160
|
+
* ```
|
|
161
|
+
* myCalcitePanel.scrollContentTo({
|
|
162
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
|
163
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
164
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
async scrollContentTo(options) {
|
|
169
|
+
var _a;
|
|
170
|
+
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
|
171
|
+
}
|
|
158
172
|
// --------------------------------------------------------------------------
|
|
159
173
|
//
|
|
160
174
|
// Render Methods
|
|
@@ -223,7 +237,9 @@ let CalcitePanel = class {
|
|
|
223
237
|
renderContent() {
|
|
224
238
|
const { el } = this;
|
|
225
239
|
const hasFab = dom.getSlotted(el, SLOTS.fab);
|
|
226
|
-
|
|
240
|
+
const defaultSlotNode = index.h("slot", { key: "default-slot" });
|
|
241
|
+
const contentWrapperKey = "content-wrapper";
|
|
242
|
+
return hasFab ? (index.h("div", { class: { [CSS.contentWrapper]: true, [CSS.contentHeight]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, index.h("section", { class: CSS.contentContainer }, defaultSlotNode), this.renderFab())) : (index.h("section", { class: { [CSS.contentWrapper]: true, [CSS.contentContainer]: true }, key: contentWrapperKey, onScroll: this.panelScrollHandler, ref: (el) => (this.panelScrollEl = el), tabIndex: 0 }, defaultSlotNode));
|
|
227
243
|
}
|
|
228
244
|
renderFab() {
|
|
229
245
|
return (index.h("div", { class: CSS.fabContainer }, index.h("slot", { name: SLOTS.fab })));
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
8
|
|
|
9
9
|
const index = require('./index-6b5d2de5.js');
|
|
10
|
+
const observers = require('./observers-79bfb8bc.js');
|
|
10
11
|
|
|
11
12
|
const calciteRadioButtonGroupCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;max-width:100vw}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}:host([layout=horizontal][scale=s]){gap:1rem}:host([layout=horizontal][scale=m]){gap:1.25rem}:host([layout=horizontal][scale=l]){gap:1.5rem}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column}";
|
|
12
13
|
|
|
@@ -29,6 +30,12 @@ let CalciteRadioButtonGroup = class {
|
|
|
29
30
|
this.required = false;
|
|
30
31
|
/** The scale (size) of the radio button group. */
|
|
31
32
|
this.scale = "m";
|
|
33
|
+
// --------------------------------------------------------------------------
|
|
34
|
+
//
|
|
35
|
+
// Private Properties
|
|
36
|
+
//
|
|
37
|
+
// --------------------------------------------------------------------------
|
|
38
|
+
this.mutationObserver = observers.createObserver("mutation", () => this.passPropsToRadioButtons());
|
|
32
39
|
//--------------------------------------------------------------------------
|
|
33
40
|
//
|
|
34
41
|
// Private Methods
|
|
@@ -65,7 +72,13 @@ let CalciteRadioButtonGroup = class {
|
|
|
65
72
|
//
|
|
66
73
|
//--------------------------------------------------------------------------
|
|
67
74
|
connectedCallback() {
|
|
75
|
+
var _a;
|
|
68
76
|
this.passPropsToRadioButtons();
|
|
77
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() {
|
|
80
|
+
var _a;
|
|
81
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
69
82
|
}
|
|
70
83
|
//--------------------------------------------------------------------------
|
|
71
84
|
//
|
|
@@ -144,10 +144,6 @@ let CalciteRadioButton = class {
|
|
|
144
144
|
}
|
|
145
145
|
nameChanged() {
|
|
146
146
|
this.checkLastRadioButton();
|
|
147
|
-
const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
|
|
148
|
-
if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
|
|
149
|
-
this.uncheckAllRadioButtonsInGroup();
|
|
150
|
-
}
|
|
151
147
|
}
|
|
152
148
|
//--------------------------------------------------------------------------
|
|
153
149
|
//
|
|
@@ -64,16 +64,19 @@ let CalciteShell = class {
|
|
|
64
64
|
return hasHeader ? index.h("slot", { key: "header", name: SLOTS$2.header }) : null;
|
|
65
65
|
}
|
|
66
66
|
renderContent() {
|
|
67
|
+
const defaultSlotNode = index.h("slot", { key: "default-slot" });
|
|
68
|
+
const centerRowSlotNode = index.h("slot", { key: "center-row-slot", name: SLOTS$2.centerRow });
|
|
69
|
+
const contentContainerKey = "content-container";
|
|
67
70
|
const content = !!this.contentBehind
|
|
68
71
|
? [
|
|
69
72
|
index.h("div", { class: {
|
|
70
73
|
[CSS$2.content]: true,
|
|
71
|
-
[CSS$2.contentBehind]:
|
|
72
|
-
} },
|
|
73
|
-
|
|
74
|
+
[CSS$2.contentBehind]: true
|
|
75
|
+
}, key: contentContainerKey }, defaultSlotNode),
|
|
76
|
+
centerRowSlotNode
|
|
74
77
|
]
|
|
75
78
|
: [
|
|
76
|
-
index.h("div", { class: CSS$2.content
|
|
79
|
+
index.h("div", { class: CSS$2.content, key: contentContainerKey }, defaultSlotNode, centerRowSlotNode)
|
|
77
80
|
];
|
|
78
81
|
return content;
|
|
79
82
|
}
|
|
@@ -250,7 +250,7 @@ let CalciteTreeItem = class {
|
|
|
250
250
|
this.expanded = !this.expanded;
|
|
251
251
|
if (this.selectionMode !== TreeSelectionMode.Ancestors) {
|
|
252
252
|
this.calciteTreeItemSelect.emit({
|
|
253
|
-
modifyCurrentSelection:
|
|
253
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
254
254
|
forceToggle: true
|
|
255
255
|
});
|
|
256
256
|
}
|
|
@@ -284,6 +284,11 @@ let CalciteTreeItem = class {
|
|
|
284
284
|
expandedHandler(newValue) {
|
|
285
285
|
this.updateParentIsExpanded(this.el, newValue);
|
|
286
286
|
}
|
|
287
|
+
getselectionMode() {
|
|
288
|
+
this.isSelectionMultiLike =
|
|
289
|
+
this.selectionMode === TreeSelectionMode.Multi ||
|
|
290
|
+
this.selectionMode === TreeSelectionMode.MultiChildren;
|
|
291
|
+
}
|
|
287
292
|
//--------------------------------------------------------------------------
|
|
288
293
|
//
|
|
289
294
|
// Lifecycle
|
|
@@ -335,7 +340,8 @@ let CalciteTreeItem = class {
|
|
|
335
340
|
[CSS.chevron]: true,
|
|
336
341
|
[dom.CSS_UTILITY.rtl]: rtl
|
|
337
342
|
}, "data-test-id": "icon", icon: ICONS.chevronRight, onClick: this.iconClickHandler, scale: "s" })) : null;
|
|
338
|
-
const
|
|
343
|
+
const defaultSlotNode = index.h("slot", { key: "default-slot" });
|
|
344
|
+
const checkbox = this.selectionMode === TreeSelectionMode.Ancestors ? (index.h("label", { class: CSS.checkboxLabel, key: "checkbox-label" }, index.h("calcite-checkbox", { checked: this.selected, class: CSS.checkbox, "data-test-id": "checkbox", indeterminate: this.hasChildren && this.indeterminate, scale: this.scale, tabIndex: -1 }), defaultSlotNode)) : null;
|
|
339
345
|
const selectedIcon = showBulletPoint
|
|
340
346
|
? ICONS.bulletPoint
|
|
341
347
|
: showCheckmark
|
|
@@ -350,7 +356,7 @@ let CalciteTreeItem = class {
|
|
|
350
356
|
return (index.h(index.Host, { "aria-expanded": this.hasChildren ? this.expanded.toString() : undefined, "aria-hidden": hidden.toString(), "aria-selected": this.selected ? "true" : showCheckmark ? "false" : undefined, "calcite-hydrated-hidden": hidden, role: "treeitem", tabindex: this.parentExpanded || this.depth === 1 ? "0" : "-1" }, index.h("div", { class: {
|
|
351
357
|
[CSS.nodeContainer]: true,
|
|
352
358
|
[dom.CSS_UTILITY.rtl]: rtl
|
|
353
|
-
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) }, chevron, bulletOrCheckIcon, checkbox ? checkbox :
|
|
359
|
+
}, "data-selection-mode": this.selectionMode, ref: (el) => (this.defaultSlotWrapper = el) }, chevron, bulletOrCheckIcon, checkbox ? checkbox : defaultSlotNode), index.h("div", { class: {
|
|
354
360
|
[CSS.childrenContainer]: true,
|
|
355
361
|
[dom.CSS_UTILITY.rtl]: rtl
|
|
356
362
|
}, "data-test-id": "calcite-tree-children", onClick: this.childrenClickHandler, ref: (el) => (this.childrenSlotWrapper = el), role: this.hasChildren ? "group" : undefined }, index.h("slot", { name: SLOTS.children }))));
|
|
@@ -369,7 +375,7 @@ let CalciteTreeItem = class {
|
|
|
369
375
|
window.open(link.href, target);
|
|
370
376
|
}
|
|
371
377
|
this.calciteTreeItemSelect.emit({
|
|
372
|
-
modifyCurrentSelection:
|
|
378
|
+
modifyCurrentSelection: this.selectionMode === TreeSelectionMode.Ancestors || this.isSelectionMultiLike,
|
|
373
379
|
forceToggle: false
|
|
374
380
|
});
|
|
375
381
|
}
|
|
@@ -378,7 +384,7 @@ let CalciteTreeItem = class {
|
|
|
378
384
|
switch (e.key) {
|
|
379
385
|
case " ":
|
|
380
386
|
this.calciteTreeItemSelect.emit({
|
|
381
|
-
modifyCurrentSelection:
|
|
387
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
382
388
|
forceToggle: false
|
|
383
389
|
});
|
|
384
390
|
e.preventDefault();
|
|
@@ -393,7 +399,7 @@ let CalciteTreeItem = class {
|
|
|
393
399
|
}
|
|
394
400
|
else {
|
|
395
401
|
this.calciteTreeItemSelect.emit({
|
|
396
|
-
modifyCurrentSelection:
|
|
402
|
+
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
397
403
|
forceToggle: false
|
|
398
404
|
});
|
|
399
405
|
}
|
|
@@ -464,7 +470,8 @@ let CalciteTreeItem = class {
|
|
|
464
470
|
}
|
|
465
471
|
get el() { return index.getElement(this); }
|
|
466
472
|
static get watchers() { return {
|
|
467
|
-
"expanded": ["expandedHandler"]
|
|
473
|
+
"expanded": ["expandedHandler"],
|
|
474
|
+
"selectionMode": ["getselectionMode"]
|
|
468
475
|
}; }
|
|
469
476
|
};
|
|
470
477
|
CalciteTreeItem.style = calciteTreeItemCss;
|