@esri/calcite-components 1.0.0-next.365 → 1.0.0-next.366
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/calcite.esm.js +1 -1
- package/dist/calcite/p-0282fd8b.system.entry.js +5 -0
- package/dist/calcite/p-050ff462.entry.js +5 -0
- package/dist/calcite/p-05b03971.system.entry.js +5 -0
- package/dist/calcite/p-08847812.entry.js +5 -0
- package/dist/calcite/p-1bcce6c9.entry.js +5 -0
- package/dist/calcite/p-1ef9235e.system.entry.js +5 -0
- package/dist/calcite/p-25ed6059.entry.js +5 -0
- package/dist/calcite/p-40cbbd20.entry.js +5 -0
- package/dist/calcite/p-4347fde9.system.entry.js +5 -0
- package/dist/calcite/p-43cd4b9b.entry.js +5 -0
- package/dist/calcite/p-55e2658e.entry.js +5 -0
- package/dist/calcite/p-5682a918.entry.js +5 -0
- package/dist/calcite/p-597b782e.system.entry.js +5 -0
- package/dist/calcite/p-60e4f404.entry.js +5 -0
- package/dist/calcite/p-660c8077.js +5 -0
- package/dist/calcite/p-7279ccf9.entry.js +5 -0
- package/dist/calcite/p-832d7f68.system.entry.js +5 -0
- package/dist/calcite/p-888a152c.system.entry.js +5 -0
- package/dist/calcite/p-946c3bed.system.entry.js +5 -0
- package/dist/calcite/p-94717214.entry.js +5 -0
- package/dist/calcite/p-953259af.entry.js +5 -0
- package/dist/calcite/p-99d32fc3.system.js +1 -1
- package/dist/calcite/p-9b723fdd.system.entry.js +5 -0
- package/dist/calcite/p-9fe77a88.system.entry.js +5 -0
- package/dist/calcite/p-a52288cd.system.entry.js +5 -0
- package/dist/calcite/p-a71d17b4.entry.js +5 -0
- package/dist/calcite/p-aea7c650.system.entry.js +5 -0
- package/dist/calcite/p-af7ed41f.system.entry.js +5 -0
- package/dist/calcite/p-b14e0be5.system.entry.js +5 -0
- package/dist/calcite/p-b53b28e3.system.js +5 -0
- package/dist/calcite/p-b88d7391.entry.js +5 -0
- package/dist/calcite/p-ba915998.entry.js +5 -0
- package/dist/calcite/p-dd4457cd.entry.js +5 -0
- package/dist/calcite/p-eff2fb8c.system.entry.js +5 -0
- package/dist/calcite/p-fd57beb5.system.entry.js +5 -0
- package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -24
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -0
- package/dist/cjs/calcite-action-menu.cjs.entry.js +3 -0
- package/dist/cjs/calcite-action-pad.cjs.entry.js +8 -0
- package/dist/cjs/calcite-block_2.cjs.entry.js +14 -1
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -1
- package/dist/cjs/calcite-list_3.cjs.entry.js +13 -0
- package/dist/cjs/calcite-modal.cjs.entry.js +5 -2
- package/dist/cjs/calcite-notice.cjs.entry.js +8 -0
- package/dist/cjs/calcite-panel.cjs.entry.js +18 -12
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +23 -0
- package/dist/cjs/calcite-shell_3.cjs.entry.js +35 -7
- package/dist/cjs/calcite-tile.cjs.entry.js +13 -0
- package/dist/cjs/calcite-tip_3.cjs.entry.js +13 -1
- package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -0
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -0
- package/dist/cjs/conditionalSlot-e874fbb0.js +43 -0
- package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
- package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
- package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
- package/dist/collection/components/calcite-block/calcite-block.js +13 -1
- package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
- package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
- package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
- package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
- package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
- package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
- package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
- package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
- package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
- package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
- package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
- package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
- package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
- package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
- package/dist/collection/utils/conditionalSlot.js +22 -11
- package/dist/components/calcite-action-bar.js +2 -23
- package/dist/components/calcite-action-group2.js +12 -0
- package/dist/components/calcite-action-menu2.js +3 -0
- package/dist/components/calcite-action-pad.js +7 -0
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-list-item.js +12 -0
- package/dist/components/calcite-modal.js +5 -2
- package/dist/components/calcite-notice.js +7 -0
- package/dist/components/calcite-panel.js +17 -12
- package/dist/components/calcite-pick-list-group.js +12 -0
- package/dist/components/calcite-pick-list-item2.js +12 -0
- package/dist/components/calcite-shell-center-row.js +13 -1
- package/dist/components/calcite-shell-panel.js +9 -4
- package/dist/components/calcite-shell.js +14 -2
- package/dist/components/calcite-tile2.js +12 -0
- package/dist/components/calcite-tip.js +13 -1
- package/dist/components/calcite-tree-item.js +5 -0
- package/dist/components/calcite-value-list-item.js +12 -0
- package/dist/components/conditionalSlot.js +40 -0
- package/dist/custom-elements/index.js +194 -35
- package/dist/esm/calcite-action-bar.entry.js +2 -23
- package/dist/esm/calcite-action-group.entry.js +13 -0
- package/dist/esm/calcite-action-menu.entry.js +3 -0
- package/dist/esm/calcite-action-pad.entry.js +8 -0
- package/dist/esm/calcite-block_2.entry.js +14 -1
- package/dist/esm/calcite-chip.entry.js +14 -1
- package/dist/esm/calcite-list_3.entry.js +13 -0
- package/dist/esm/calcite-modal.entry.js +5 -2
- package/dist/esm/calcite-notice.entry.js +8 -0
- package/dist/esm/calcite-panel.entry.js +18 -12
- package/dist/esm/calcite-pick-list_3.entry.js +23 -0
- package/dist/esm/calcite-shell_3.entry.js +35 -7
- package/dist/esm/calcite-tile.entry.js +13 -0
- package/dist/esm/calcite-tip_3.entry.js +13 -1
- package/dist/esm/calcite-tree_2.entry.js +6 -0
- package/dist/esm/calcite-value-list_2.entry.js +12 -0
- package/dist/esm/conditionalSlot-0c4ea23a.js +40 -0
- package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
- package/dist/esm-es5/calcite-action-group.entry.js +1 -1
- package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
- package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
- package/dist/esm-es5/calcite-block_2.entry.js +1 -1
- package/dist/esm-es5/calcite-chip.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-modal.entry.js +1 -1
- package/dist/esm-es5/calcite-notice.entry.js +2 -2
- package/dist/esm-es5/calcite-panel.entry.js +2 -2
- package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
- package/dist/esm-es5/calcite-tile.entry.js +1 -1
- package/dist/esm-es5/calcite-tip_3.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/conditionalSlot-0c4ea23a.js +5 -0
- package/dist/extras/docs-json.json +1 -1
- package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
- package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
- package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
- package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
- package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
- package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
- package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
- package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
- package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
- package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
- package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
- package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
- package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
- package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
- package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
- package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
- package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
- package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
- package/hydrate/index.js +194 -35
- package/package.json +1 -1
- package/dist/calcite/p-0af820bf.entry.js +0 -5
- package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
- package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
- package/dist/calcite/p-253efee4.entry.js +0 -5
- package/dist/calcite/p-2618de8a.entry.js +0 -5
- package/dist/calcite/p-273cd5ab.entry.js +0 -5
- package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
- package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
- package/dist/calcite/p-37bddb73.system.entry.js +0 -5
- package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
- package/dist/calcite/p-3b73b785.system.entry.js +0 -5
- package/dist/calcite/p-4659df78.entry.js +0 -5
- package/dist/calcite/p-54e271c9.system.entry.js +0 -5
- package/dist/calcite/p-5df1936f.entry.js +0 -5
- package/dist/calcite/p-698167ac.entry.js +0 -5
- package/dist/calcite/p-7d355abe.system.entry.js +0 -5
- package/dist/calcite/p-8d36bc7c.entry.js +0 -5
- package/dist/calcite/p-9d81d229.entry.js +0 -5
- package/dist/calcite/p-a0043c61.entry.js +0 -5
- package/dist/calcite/p-a1f65f6e.entry.js +0 -5
- package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
- package/dist/calcite/p-a9c50960.system.entry.js +0 -5
- package/dist/calcite/p-aaed1677.entry.js +0 -5
- package/dist/calcite/p-ac778725.system.entry.js +0 -5
- package/dist/calcite/p-ac8cf248.entry.js +0 -5
- package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
- package/dist/calcite/p-c0ed9eff.entry.js +0 -5
- package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
- package/dist/calcite/p-d578e568.system.entry.js +0 -5
- package/dist/calcite/p-e564004a.system.entry.js +0 -5
- package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
- package/dist/calcite/p-f73124d0.entry.js +0 -5
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-48b6e955.js';
|
|
7
7
|
import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
|
|
8
8
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
9
10
|
import { d as debounce } from './debounce-79648d42.js';
|
|
10
11
|
import './resources-584acd9b.js';
|
|
11
12
|
import './resources-7c6029b6.js';
|
|
@@ -23,28 +24,6 @@ const TEXT = {
|
|
|
23
24
|
collapse: "Collapse"
|
|
24
25
|
};
|
|
25
26
|
|
|
26
|
-
const slotChangedMap = new WeakMap();
|
|
27
|
-
function onSlotChange() {
|
|
28
|
-
forceUpdate(this);
|
|
29
|
-
}
|
|
30
|
-
const eventType = "slotchange";
|
|
31
|
-
/**
|
|
32
|
-
* Helper to set up a conditional slot component on connectedCallback.
|
|
33
|
-
*/
|
|
34
|
-
function connectConditionalSlotComponent(component) {
|
|
35
|
-
const boundSlotChange = onSlotChange.bind(component);
|
|
36
|
-
component.el.shadowRoot.addEventListener(eventType, boundSlotChange);
|
|
37
|
-
slotChangedMap.set(component, boundSlotChange);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
41
|
-
*/
|
|
42
|
-
function disconnectConditionalSlotComponent(component) {
|
|
43
|
-
const boundSlotChange = slotChangedMap.get(component);
|
|
44
|
-
component.el.shadowRoot.removeEventListener(eventType, boundSlotChange);
|
|
45
|
-
slotChangedMap.delete(component);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
27
|
const calciteActionBarCss = "@-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{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
|
|
49
28
|
|
|
50
29
|
let CalciteActionBar = class {
|
|
@@ -6,7 +6,9 @@ import { r as registerInstance, h, F as Fragment, g as getElement } from './inde
|
|
|
6
6
|
import { S as SLOTS, I as ICONS, T as TEXT } from './resources-7c6029b6.js';
|
|
7
7
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-584acd9b.js';
|
|
9
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
9
10
|
import './guid-196bd5ea.js';
|
|
11
|
+
import './observers-8f0bc419.js';
|
|
10
12
|
|
|
11
13
|
const calciteActionGroupCss = "@-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;-ms-flex-direction:column;flex-direction:column;padding:0px;--calcite-action-group-columns:3}:host([columns=\"1\"]){--calcite-action-group-columns:1}:host([columns=\"2\"]){--calcite-action-group-columns:2}:host([columns=\"3\"]){--calcite-action-group-columns:3}:host([columns=\"4\"]){--calcite-action-group-columns:4}:host([columns=\"5\"]){--calcite-action-group-columns:5}:host([columns=\"6\"]){--calcite-action-group-columns:6}:host(:first-child){padding-top:0px}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}";
|
|
12
14
|
|
|
@@ -44,6 +46,17 @@ let CalciteActionGroup = class {
|
|
|
44
46
|
}
|
|
45
47
|
// --------------------------------------------------------------------------
|
|
46
48
|
//
|
|
49
|
+
// Lifecycle
|
|
50
|
+
//
|
|
51
|
+
// --------------------------------------------------------------------------
|
|
52
|
+
connectedCallback() {
|
|
53
|
+
connectConditionalSlotComponent(this);
|
|
54
|
+
}
|
|
55
|
+
disconnectedCallback() {
|
|
56
|
+
disconnectConditionalSlotComponent(this);
|
|
57
|
+
}
|
|
58
|
+
// --------------------------------------------------------------------------
|
|
59
|
+
//
|
|
47
60
|
// Component Methods
|
|
48
61
|
//
|
|
49
62
|
// --------------------------------------------------------------------------
|
|
@@ -8,6 +8,7 @@ import { g as getSlotted, f as focusElement } from './dom-037dc374.js';
|
|
|
8
8
|
import { g as getRoundRobinIndex } from './array-91a648e2.js';
|
|
9
9
|
import { g as guid } from './guid-196bd5ea.js';
|
|
10
10
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
11
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
11
12
|
|
|
12
13
|
const calciteActionMenuCss = "@-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{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:-ms-flexbox;display:flex;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}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";
|
|
13
14
|
|
|
@@ -219,11 +220,13 @@ let CalciteActionMenu = class {
|
|
|
219
220
|
var _a;
|
|
220
221
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
221
222
|
this.getActions();
|
|
223
|
+
connectConditionalSlotComponent(this);
|
|
222
224
|
}
|
|
223
225
|
disconnectedCallback() {
|
|
224
226
|
var _a;
|
|
225
227
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
226
228
|
this.disconnectMenuButtonEl();
|
|
229
|
+
disconnectConditionalSlotComponent(this);
|
|
227
230
|
}
|
|
228
231
|
expandedHandler() {
|
|
229
232
|
this.open = false;
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-48b6e955.js';
|
|
7
7
|
import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
8
9
|
import './resources-584acd9b.js';
|
|
9
10
|
import './resources-7c6029b6.js';
|
|
10
11
|
import './guid-196bd5ea.js';
|
|
12
|
+
import './observers-8f0bc419.js';
|
|
11
13
|
|
|
12
14
|
const CSS = {
|
|
13
15
|
actionGroupBottom: "action-group--bottom",
|
|
@@ -82,6 +84,12 @@ let CalciteActionPad = class {
|
|
|
82
84
|
// Lifecycle
|
|
83
85
|
//
|
|
84
86
|
// --------------------------------------------------------------------------
|
|
87
|
+
connectedCallback() {
|
|
88
|
+
connectConditionalSlotComponent(this);
|
|
89
|
+
}
|
|
90
|
+
disconnectedCallback() {
|
|
91
|
+
disconnectConditionalSlotComponent(this);
|
|
92
|
+
}
|
|
85
93
|
componentWillLoad() {
|
|
86
94
|
const { el, expandDisabled, expanded } = this;
|
|
87
95
|
if (!expandDisabled) {
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
|
|
7
7
|
import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
8
9
|
import './guid-196bd5ea.js';
|
|
10
|
+
import './observers-8f0bc419.js';
|
|
9
11
|
|
|
10
12
|
const CSS$1 = {
|
|
11
13
|
article: "article",
|
|
@@ -96,6 +98,17 @@ let CalciteBlock = class {
|
|
|
96
98
|
}
|
|
97
99
|
// --------------------------------------------------------------------------
|
|
98
100
|
//
|
|
101
|
+
// Lifecycle
|
|
102
|
+
//
|
|
103
|
+
// --------------------------------------------------------------------------
|
|
104
|
+
connectedCallback() {
|
|
105
|
+
connectConditionalSlotComponent(this);
|
|
106
|
+
}
|
|
107
|
+
disconnectedCallback() {
|
|
108
|
+
disconnectConditionalSlotComponent(this);
|
|
109
|
+
}
|
|
110
|
+
// --------------------------------------------------------------------------
|
|
111
|
+
//
|
|
99
112
|
// Render Methods
|
|
100
113
|
//
|
|
101
114
|
// --------------------------------------------------------------------------
|
|
@@ -109,7 +122,7 @@ let CalciteBlock = class {
|
|
|
109
122
|
const showingLoadingStatus = this.loading && !this.open;
|
|
110
123
|
const statusIcon = showingLoadingStatus ? ICONS$1.refresh : ICONS$1[status];
|
|
111
124
|
const hasIcon = getSlotted(el, SLOTS.icon) || statusIcon;
|
|
112
|
-
const iconEl = !statusIcon ? (h("slot", { name: SLOTS.icon })) : (h("calcite-icon", { class: {
|
|
125
|
+
const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS.icon })) : (h("calcite-icon", { class: {
|
|
113
126
|
[CSS$1.statusIcon]: true,
|
|
114
127
|
[CSS$1.valid]: status == "valid",
|
|
115
128
|
[CSS$1.invalid]: status == "invalid",
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
7
7
|
import { g as guid } from './guid-196bd5ea.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
9
|
+
import './observers-8f0bc419.js';
|
|
8
10
|
|
|
9
11
|
const CSS = {
|
|
10
12
|
title: "title",
|
|
@@ -58,6 +60,17 @@ let CalciteChip = class {
|
|
|
58
60
|
};
|
|
59
61
|
this.guid = guid();
|
|
60
62
|
}
|
|
63
|
+
// --------------------------------------------------------------------------
|
|
64
|
+
//
|
|
65
|
+
// Lifecycle
|
|
66
|
+
//
|
|
67
|
+
// --------------------------------------------------------------------------
|
|
68
|
+
connectedCallback() {
|
|
69
|
+
connectConditionalSlotComponent(this);
|
|
70
|
+
}
|
|
71
|
+
disconnectedCallback() {
|
|
72
|
+
disconnectConditionalSlotComponent(this);
|
|
73
|
+
}
|
|
61
74
|
//--------------------------------------------------------------------------
|
|
62
75
|
//
|
|
63
76
|
// Public Methods
|
|
@@ -76,7 +89,7 @@ let CalciteChip = class {
|
|
|
76
89
|
renderChipImage() {
|
|
77
90
|
const { el } = this;
|
|
78
91
|
const hasChipImage = getSlotted(el, SLOTS.image);
|
|
79
|
-
return hasChipImage ? (h("div", { class: CSS.chipImageContainer }, h("slot", { name: SLOTS.image }))) : null;
|
|
92
|
+
return hasChipImage ? (h("div", { class: CSS.chipImageContainer, key: "image" }, h("slot", { name: SLOTS.image }))) : null;
|
|
80
93
|
}
|
|
81
94
|
render() {
|
|
82
95
|
const iconEl = (h("calcite-icon", { class: CSS.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
7
8
|
import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading-1d6cd311.js';
|
|
8
9
|
import './guid-196bd5ea.js';
|
|
10
|
+
import './observers-8f0bc419.js';
|
|
9
11
|
|
|
10
12
|
const CSS$2 = {
|
|
11
13
|
container: "container"
|
|
@@ -80,6 +82,17 @@ let CalciteListItem = class {
|
|
|
80
82
|
}
|
|
81
83
|
// --------------------------------------------------------------------------
|
|
82
84
|
//
|
|
85
|
+
// Lifecycle
|
|
86
|
+
//
|
|
87
|
+
// --------------------------------------------------------------------------
|
|
88
|
+
connectedCallback() {
|
|
89
|
+
connectConditionalSlotComponent(this);
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
disconnectConditionalSlotComponent(this);
|
|
93
|
+
}
|
|
94
|
+
// --------------------------------------------------------------------------
|
|
95
|
+
//
|
|
83
96
|
// Public Methods
|
|
84
97
|
//
|
|
85
98
|
// --------------------------------------------------------------------------
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { f as focusElement, g as getSlotted, e as ensureId, i as isCalciteFocusable } from './dom-037dc374.js';
|
|
7
7
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
8
9
|
import './guid-196bd5ea.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -240,11 +241,13 @@ let CalciteModal = class {
|
|
|
240
241
|
var _a;
|
|
241
242
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
|
242
243
|
this.updateFooterVisibility();
|
|
244
|
+
connectConditionalSlotComponent(this);
|
|
243
245
|
}
|
|
244
246
|
disconnectedCallback() {
|
|
245
247
|
var _a;
|
|
246
248
|
this.removeOverflowHiddenClass();
|
|
247
249
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
250
|
+
disconnectConditionalSlotComponent(this);
|
|
248
251
|
}
|
|
249
252
|
render() {
|
|
250
253
|
return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS.header }, this.renderCloseButton(), h("header", { class: CSS.title }, h("slot", { name: CSS.header }))), h("div", { class: {
|
|
@@ -254,10 +257,10 @@ let CalciteModal = class {
|
|
|
254
257
|
}, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
|
|
255
258
|
}
|
|
256
259
|
renderFooter() {
|
|
257
|
-
return this.hasFooter ? (h("div", { class: CSS.footer }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
|
|
260
|
+
return this.hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
|
|
258
261
|
}
|
|
259
262
|
renderCloseButton() {
|
|
260
|
-
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
263
|
+
return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
261
264
|
}
|
|
262
265
|
renderStyle() {
|
|
263
266
|
const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { S as StatusIcons } from './interfaces-51dc4e1b.js';
|
|
7
7
|
import { s as setRequestedIcon, g as getSlotted } from './dom-037dc374.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
8
9
|
import './guid-196bd5ea.js';
|
|
10
|
+
import './observers-8f0bc419.js';
|
|
9
11
|
|
|
10
12
|
const TEXT = {
|
|
11
13
|
close: "Close"
|
|
@@ -68,6 +70,12 @@ let CalciteNotice = class {
|
|
|
68
70
|
// Lifecycle
|
|
69
71
|
//
|
|
70
72
|
//--------------------------------------------------------------------------
|
|
73
|
+
connectedCallback() {
|
|
74
|
+
connectConditionalSlotComponent(this);
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
disconnectConditionalSlotComponent(this);
|
|
78
|
+
}
|
|
71
79
|
componentWillLoad() {
|
|
72
80
|
this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
|
|
73
81
|
}
|
|
@@ -6,7 +6,9 @@ import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElem
|
|
|
6
6
|
import { a as getElementDir, g as getSlotted } from './dom-037dc374.js';
|
|
7
7
|
import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
|
|
8
8
|
import { S as SLOTS$1 } from './resources-584acd9b.js';
|
|
9
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
9
10
|
import './guid-196bd5ea.js';
|
|
11
|
+
import './observers-8f0bc419.js';
|
|
10
12
|
|
|
11
13
|
const CSS = {
|
|
12
14
|
backButton: "back-button",
|
|
@@ -122,6 +124,17 @@ let CalcitePanel = class {
|
|
|
122
124
|
}
|
|
123
125
|
// --------------------------------------------------------------------------
|
|
124
126
|
//
|
|
127
|
+
// Lifecycle
|
|
128
|
+
//
|
|
129
|
+
// --------------------------------------------------------------------------
|
|
130
|
+
connectedCallback() {
|
|
131
|
+
connectConditionalSlotComponent(this);
|
|
132
|
+
}
|
|
133
|
+
disconnectedCallback() {
|
|
134
|
+
disconnectConditionalSlotComponent(this);
|
|
135
|
+
}
|
|
136
|
+
// --------------------------------------------------------------------------
|
|
137
|
+
//
|
|
125
138
|
// Methods
|
|
126
139
|
//
|
|
127
140
|
// --------------------------------------------------------------------------
|
|
@@ -161,7 +174,7 @@ let CalcitePanel = class {
|
|
|
161
174
|
* Allows user to override the entire header-content node.
|
|
162
175
|
*/
|
|
163
176
|
renderHeaderSlottedContent() {
|
|
164
|
-
return (h("div", { class: CSS.headerContent, key: "header-content" }, h("slot", { name: SLOTS.headerContent })));
|
|
177
|
+
return (h("div", { class: CSS.headerContent, key: "slotted-header-content" }, h("slot", { name: SLOTS.headerContent })));
|
|
165
178
|
}
|
|
166
179
|
renderHeaderStartActions() {
|
|
167
180
|
const { el } = this;
|
|
@@ -179,7 +192,7 @@ let CalcitePanel = class {
|
|
|
179
192
|
renderMenu() {
|
|
180
193
|
const { el, intlOptions, menuOpen } = this;
|
|
181
194
|
const hasMenuItems = getSlotted(el, SLOTS.headerMenuActions);
|
|
182
|
-
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS.menu, slot: SLOTS$1.trigger, text: intlOptions || TEXT.options }), h("slot", { name: SLOTS.headerMenuActions }))) : null;
|
|
195
|
+
return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS.menu, slot: SLOTS$1.trigger, text: intlOptions || TEXT.options }), h("slot", { name: SLOTS.headerMenuActions }))) : null;
|
|
183
196
|
}
|
|
184
197
|
renderHeaderNode() {
|
|
185
198
|
const { el, showBackButton } = this;
|
|
@@ -197,18 +210,11 @@ let CalcitePanel = class {
|
|
|
197
210
|
headerMenuNode ||
|
|
198
211
|
showBackButton ? (h("header", { class: CSS.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
|
|
199
212
|
}
|
|
200
|
-
|
|
201
|
-
* Allows user to override the entire footer node.
|
|
202
|
-
*/
|
|
203
|
-
renderFooterSlottedContent() {
|
|
213
|
+
renderFooterNode() {
|
|
204
214
|
const { el } = this;
|
|
205
215
|
const hasFooterSlottedContent = getSlotted(el, SLOTS.footer);
|
|
206
|
-
return hasFooterSlottedContent ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footer }))) : null;
|
|
207
|
-
}
|
|
208
|
-
renderFooterActions() {
|
|
209
|
-
const { el } = this;
|
|
210
216
|
const hasFooterActions = getSlotted(el, SLOTS.footerActions);
|
|
211
|
-
return hasFooterActions ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footerActions }))) : null;
|
|
217
|
+
return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS.footer, key: "footer" }, hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS.footer }) : null, hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS.footerActions }) : null)) : null;
|
|
212
218
|
}
|
|
213
219
|
renderContent() {
|
|
214
220
|
const { el } = this;
|
|
@@ -220,7 +226,7 @@ let CalcitePanel = class {
|
|
|
220
226
|
}
|
|
221
227
|
render() {
|
|
222
228
|
const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
|
|
223
|
-
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.
|
|
229
|
+
const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
224
230
|
return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
225
231
|
}
|
|
226
232
|
get el() { return getElement(this); }
|
|
@@ -7,6 +7,7 @@ import { m as mutationObserverCallback, d as deselectRemovedItems, a as deselect
|
|
|
7
7
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
8
8
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
9
9
|
import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading-1d6cd311.js';
|
|
10
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
10
11
|
import './array-91a648e2.js';
|
|
11
12
|
import './debounce-79648d42.js';
|
|
12
13
|
import './guid-196bd5ea.js';
|
|
@@ -151,6 +152,17 @@ let CalcitePickListGroup = class {
|
|
|
151
152
|
}
|
|
152
153
|
// --------------------------------------------------------------------------
|
|
153
154
|
//
|
|
155
|
+
// Lifecycle
|
|
156
|
+
//
|
|
157
|
+
// --------------------------------------------------------------------------
|
|
158
|
+
connectedCallback() {
|
|
159
|
+
connectConditionalSlotComponent(this);
|
|
160
|
+
}
|
|
161
|
+
disconnectedCallback() {
|
|
162
|
+
disconnectConditionalSlotComponent(this);
|
|
163
|
+
}
|
|
164
|
+
// --------------------------------------------------------------------------
|
|
165
|
+
//
|
|
154
166
|
// Render Methods
|
|
155
167
|
//
|
|
156
168
|
// --------------------------------------------------------------------------
|
|
@@ -259,6 +271,17 @@ let CalcitePickListItem = class {
|
|
|
259
271
|
}
|
|
260
272
|
// --------------------------------------------------------------------------
|
|
261
273
|
//
|
|
274
|
+
// Lifecycle
|
|
275
|
+
//
|
|
276
|
+
// --------------------------------------------------------------------------
|
|
277
|
+
connectedCallback() {
|
|
278
|
+
connectConditionalSlotComponent(this);
|
|
279
|
+
}
|
|
280
|
+
disconnectedCallback() {
|
|
281
|
+
disconnectConditionalSlotComponent(this);
|
|
282
|
+
}
|
|
283
|
+
// --------------------------------------------------------------------------
|
|
284
|
+
//
|
|
262
285
|
// Public Methods
|
|
263
286
|
//
|
|
264
287
|
// --------------------------------------------------------------------------
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, F as Fragment, g as getElement, c as createEvent, f as forceUpdate } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
7
8
|
import { c as clamp } from './math-456207f5.js';
|
|
8
9
|
import './guid-196bd5ea.js';
|
|
10
|
+
import './observers-8f0bc419.js';
|
|
9
11
|
|
|
10
12
|
const CSS$2 = {
|
|
11
13
|
main: "main",
|
|
@@ -39,12 +41,23 @@ let CalciteShell = class {
|
|
|
39
41
|
}
|
|
40
42
|
// --------------------------------------------------------------------------
|
|
41
43
|
//
|
|
44
|
+
// Lifecycle
|
|
45
|
+
//
|
|
46
|
+
// --------------------------------------------------------------------------
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
connectConditionalSlotComponent(this);
|
|
49
|
+
}
|
|
50
|
+
disconnectedCallback() {
|
|
51
|
+
disconnectConditionalSlotComponent(this);
|
|
52
|
+
}
|
|
53
|
+
// --------------------------------------------------------------------------
|
|
54
|
+
//
|
|
42
55
|
// Render Methods
|
|
43
56
|
//
|
|
44
57
|
// --------------------------------------------------------------------------
|
|
45
58
|
renderHeader() {
|
|
46
59
|
const hasHeader = !!getSlotted(this.el, SLOTS$2.header);
|
|
47
|
-
return hasHeader ? h("slot", { name: SLOTS$2.header }) : null;
|
|
60
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS$2.header }) : null;
|
|
48
61
|
}
|
|
49
62
|
renderContent() {
|
|
50
63
|
const content = !!this.contentBehind
|
|
@@ -62,7 +75,7 @@ let CalciteShell = class {
|
|
|
62
75
|
}
|
|
63
76
|
renderFooter() {
|
|
64
77
|
const hasFooter = !!getSlotted(this.el, SLOTS$2.footer);
|
|
65
|
-
return hasFooter ? (h("div", { class: CSS$2.footer }, h("slot", { name: SLOTS$2.footer }))) : null;
|
|
78
|
+
return hasFooter ? (h("div", { class: CSS$2.footer, key: "footer" }, h("slot", { name: SLOTS$2.footer }))) : null;
|
|
66
79
|
}
|
|
67
80
|
renderMain() {
|
|
68
81
|
const primaryPanel = getSlotted(this.el, SLOTS$2.primaryPanel);
|
|
@@ -112,6 +125,17 @@ let CalciteShellCenterRow = class {
|
|
|
112
125
|
}
|
|
113
126
|
// --------------------------------------------------------------------------
|
|
114
127
|
//
|
|
128
|
+
// Lifecycle
|
|
129
|
+
//
|
|
130
|
+
// --------------------------------------------------------------------------
|
|
131
|
+
connectedCallback() {
|
|
132
|
+
connectConditionalSlotComponent(this);
|
|
133
|
+
}
|
|
134
|
+
disconnectedCallback() {
|
|
135
|
+
disconnectConditionalSlotComponent(this);
|
|
136
|
+
}
|
|
137
|
+
// --------------------------------------------------------------------------
|
|
138
|
+
//
|
|
115
139
|
// Render Methods
|
|
116
140
|
//
|
|
117
141
|
// --------------------------------------------------------------------------
|
|
@@ -119,7 +143,7 @@ let CalciteShellCenterRow = class {
|
|
|
119
143
|
const { el } = this;
|
|
120
144
|
const contentNode = (h("div", { class: CSS$1.content }, h("slot", null)));
|
|
121
145
|
const actionBar = getSlotted(el, SLOTS$1.actionBar);
|
|
122
|
-
const actionBarNode = actionBar ? (h("div", { class: CSS$1.actionBarContainer }, h("slot", { name: SLOTS$1.actionBar }))) : null;
|
|
146
|
+
const actionBarNode = actionBar ? (h("div", { class: CSS$1.actionBarContainer, key: "action-bar" }, h("slot", { name: SLOTS$1.actionBar }))) : null;
|
|
123
147
|
const children = [actionBarNode, contentNode];
|
|
124
148
|
if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
|
|
125
149
|
children.reverse();
|
|
@@ -291,7 +315,11 @@ let CalciteShellPanel = class {
|
|
|
291
315
|
// Lifecycle
|
|
292
316
|
//
|
|
293
317
|
//--------------------------------------------------------------------------
|
|
318
|
+
connectedCallback() {
|
|
319
|
+
connectConditionalSlotComponent(this);
|
|
320
|
+
}
|
|
294
321
|
disconnectedCallback() {
|
|
322
|
+
disconnectConditionalSlotComponent(this);
|
|
295
323
|
this.disconnectSeparator();
|
|
296
324
|
}
|
|
297
325
|
componentDidLoad() {
|
|
@@ -305,14 +333,14 @@ let CalciteShellPanel = class {
|
|
|
305
333
|
renderHeader() {
|
|
306
334
|
const { el } = this;
|
|
307
335
|
const hasHeader = getSlotted(el, SLOTS.header);
|
|
308
|
-
return hasHeader ? (h("div", { class: CSS.contentHeader }, h("slot", { name: SLOTS.header }))) : null;
|
|
336
|
+
return hasHeader ? (h("div", { class: CSS.contentHeader, key: "header" }, h("slot", { name: SLOTS.header }))) : null;
|
|
309
337
|
}
|
|
310
338
|
render() {
|
|
311
339
|
const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
|
|
312
340
|
const allowResizing = !detached && resizable;
|
|
313
|
-
const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS.contentBody }, h("slot", null))));
|
|
314
|
-
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
315
|
-
const actionBarNode = h("slot", { name: SLOTS.actionBar });
|
|
341
|
+
const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS.contentBody }, h("slot", null))));
|
|
342
|
+
const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
|
|
343
|
+
const actionBarNode = h("slot", { key: "action-bar", name: SLOTS.actionBar });
|
|
316
344
|
const mainNodes = [actionBarNode, contentNode, separatorNode];
|
|
317
345
|
if (position === "end") {
|
|
318
346
|
mainNodes.reverse();
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
7
8
|
import './guid-196bd5ea.js';
|
|
9
|
+
import './observers-8f0bc419.js';
|
|
8
10
|
|
|
9
11
|
const SLOTS = {
|
|
10
12
|
contentStart: "content-start",
|
|
@@ -39,6 +41,17 @@ let CalciteTile = class {
|
|
|
39
41
|
}
|
|
40
42
|
// --------------------------------------------------------------------------
|
|
41
43
|
//
|
|
44
|
+
// Lifecycle
|
|
45
|
+
//
|
|
46
|
+
// --------------------------------------------------------------------------
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
connectConditionalSlotComponent(this);
|
|
49
|
+
}
|
|
50
|
+
disconnectedCallback() {
|
|
51
|
+
disconnectConditionalSlotComponent(this);
|
|
52
|
+
}
|
|
53
|
+
// --------------------------------------------------------------------------
|
|
54
|
+
//
|
|
42
55
|
// Render Methods
|
|
43
56
|
//
|
|
44
57
|
// --------------------------------------------------------------------------
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
|
|
7
7
|
import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading-1d6cd311.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
8
9
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
9
10
|
import './guid-196bd5ea.js';
|
|
10
11
|
|
|
@@ -90,6 +91,17 @@ let CalciteTip = class {
|
|
|
90
91
|
}
|
|
91
92
|
// --------------------------------------------------------------------------
|
|
92
93
|
//
|
|
94
|
+
// Lifecycle
|
|
95
|
+
//
|
|
96
|
+
// --------------------------------------------------------------------------
|
|
97
|
+
connectedCallback() {
|
|
98
|
+
connectConditionalSlotComponent(this);
|
|
99
|
+
}
|
|
100
|
+
disconnectedCallback() {
|
|
101
|
+
disconnectConditionalSlotComponent(this);
|
|
102
|
+
}
|
|
103
|
+
// --------------------------------------------------------------------------
|
|
104
|
+
//
|
|
93
105
|
// Render Methods
|
|
94
106
|
//
|
|
95
107
|
// --------------------------------------------------------------------------
|
|
@@ -108,7 +120,7 @@ let CalciteTip = class {
|
|
|
108
120
|
}
|
|
109
121
|
renderImageFrame() {
|
|
110
122
|
const { el } = this;
|
|
111
|
-
return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
123
|
+
return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame, key: "thumbnail" }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
112
124
|
}
|
|
113
125
|
renderInfoNode() {
|
|
114
126
|
return (h("div", { class: CSS.info }, h("slot", null)));
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
|
|
6
6
|
import { f as focusElement, n as nodeListToArray, g as getSlotted, a as getElementDir, C as CSS_UTILITY, k as filterDirectChildren } from './dom-037dc374.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
7
8
|
import './guid-196bd5ea.js';
|
|
9
|
+
import './observers-8f0bc419.js';
|
|
8
10
|
|
|
9
11
|
var TreeSelectionMode;
|
|
10
12
|
(function (TreeSelectionMode) {
|
|
@@ -288,6 +290,10 @@ let CalciteTreeItem = class {
|
|
|
288
290
|
const { expanded } = this.parentTreeItem;
|
|
289
291
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
290
292
|
}
|
|
293
|
+
connectConditionalSlotComponent(this);
|
|
294
|
+
}
|
|
295
|
+
disconnectedCallback() {
|
|
296
|
+
disconnectConditionalSlotComponent(this);
|
|
291
297
|
}
|
|
292
298
|
componentWillRender() {
|
|
293
299
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -9,6 +9,7 @@ import { g as getRoundRobinIndex } from './array-91a648e2.js';
|
|
|
9
9
|
import { c as createObserver } from './observers-8f0bc419.js';
|
|
10
10
|
import { g as guid } from './guid-196bd5ea.js';
|
|
11
11
|
import { g as getSlotted } from './dom-037dc374.js';
|
|
12
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-0c4ea23a.js';
|
|
12
13
|
import './debounce-79648d42.js';
|
|
13
14
|
|
|
14
15
|
const CSS = {
|
|
@@ -277,6 +278,17 @@ let CalciteValueListItem = class {
|
|
|
277
278
|
}
|
|
278
279
|
// --------------------------------------------------------------------------
|
|
279
280
|
//
|
|
281
|
+
// Lifecycle
|
|
282
|
+
//
|
|
283
|
+
// --------------------------------------------------------------------------
|
|
284
|
+
connectedCallback() {
|
|
285
|
+
connectConditionalSlotComponent(this);
|
|
286
|
+
}
|
|
287
|
+
disconnectedCallback() {
|
|
288
|
+
disconnectConditionalSlotComponent(this);
|
|
289
|
+
}
|
|
290
|
+
// --------------------------------------------------------------------------
|
|
291
|
+
//
|
|
280
292
|
// Public Methods
|
|
281
293
|
//
|
|
282
294
|
// --------------------------------------------------------------------------
|