@esri/calcite-components 1.0.0-next.363 → 1.0.0-next.367
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-0b0ce9b2.system.entry.js → p-3280f0ac.system.entry.js} +1 -1
- 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-e6d14bc5.system.entry.js → p-4dcae709.system.entry.js} +1 -1
- 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-96808ed2.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-9f349c92.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-ba000c59.entry.js +5 -0
- package/dist/calcite/p-ba915998.entry.js +5 -0
- package/dist/calcite/p-cf2be87e.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-f4614b28.system.entry.js +5 -0
- package/dist/calcite/{p-8b145872.system.entry.js → p-f94619be.system.entry.js} +1 -1
- 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-alert.cjs.entry.js +15 -9
- 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-combobox_3.cjs.entry.js +22 -11
- package/dist/cjs/calcite-input.cjs.entry.js +3 -0
- package/dist/cjs/calcite-link.cjs.entry.js +13 -2
- 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/calcite.cjs.js +1 -1
- package/dist/cjs/conditionalSlot-e874fbb0.js +43 -0
- package/dist/cjs/loader.cjs.js +1 -1
- 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-alert/calcite-alert.js +15 -9
- 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-combobox/calcite-combobox.js +42 -13
- package/dist/collection/components/calcite-combobox/resources.js +3 -0
- package/dist/collection/components/calcite-input/calcite-input.js +3 -0
- package/dist/collection/components/calcite-link/calcite-link.js +31 -2
- 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-alert.js +15 -9
- package/dist/components/calcite-block.js +13 -1
- package/dist/components/calcite-chip2.js +13 -1
- package/dist/components/calcite-combobox.js +21 -12
- package/dist/components/calcite-input2.js +3 -0
- package/dist/components/calcite-link2.js +14 -2
- 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/components/utils2.js +4 -1
- package/dist/custom-elements/index.js +300 -110
- 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-alert.entry.js +15 -9
- package/dist/esm/calcite-block_2.entry.js +14 -1
- package/dist/esm/calcite-chip.entry.js +14 -1
- package/dist/esm/calcite-combobox_3.entry.js +22 -11
- package/dist/esm/calcite-input.entry.js +3 -0
- package/dist/esm/calcite-link.entry.js +13 -2
- 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/calcite.js +1 -1
- package/dist/esm/conditionalSlot-0c4ea23a.js +40 -0
- package/dist/esm/loader.js +1 -1
- 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-alert.entry.js +1 -1
- 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-combobox_3.entry.js +2 -2
- package/dist/esm-es5/calcite-input.entry.js +1 -1
- package/dist/esm-es5/calcite-link.entry.js +2 -2
- package/dist/esm-es5/calcite-list_3.entry.js +1 -1
- package/dist/esm-es5/calcite-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/calcite.js +1 -1
- package/dist/esm-es5/conditionalSlot-0c4ea23a.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/extras/docs-json.json +43 -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-alert/calcite-alert.d.ts +2 -0
- 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-combobox/calcite-combobox.d.ts +4 -0
- package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
- package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
- 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/dist/types/components.d.ts +18 -0
- package/hydrate/index.js +301 -109
- package/package.json +1 -2
- package/dist/calcite/p-0af820bf.entry.js +0 -5
- package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
- package/dist/calcite/p-1a5dae4a.entry.js +0 -5
- package/dist/calcite/p-1b3a66ec.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-28adfebc.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-57558d4b.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-85fb7bc0.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
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { b as getSlotted } from './dom.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
7
8
|
|
|
8
9
|
const CSS = {
|
|
9
10
|
main: "main",
|
|
@@ -39,12 +40,23 @@ let CalciteShell$1 = class extends HTMLElement {
|
|
|
39
40
|
}
|
|
40
41
|
// --------------------------------------------------------------------------
|
|
41
42
|
//
|
|
43
|
+
// Lifecycle
|
|
44
|
+
//
|
|
45
|
+
// --------------------------------------------------------------------------
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
connectConditionalSlotComponent(this);
|
|
48
|
+
}
|
|
49
|
+
disconnectedCallback() {
|
|
50
|
+
disconnectConditionalSlotComponent(this);
|
|
51
|
+
}
|
|
52
|
+
// --------------------------------------------------------------------------
|
|
53
|
+
//
|
|
42
54
|
// Render Methods
|
|
43
55
|
//
|
|
44
56
|
// --------------------------------------------------------------------------
|
|
45
57
|
renderHeader() {
|
|
46
58
|
const hasHeader = !!getSlotted(this.el, SLOTS.header);
|
|
47
|
-
return hasHeader ? h("slot", { name: SLOTS.header }) : null;
|
|
59
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
|
|
48
60
|
}
|
|
49
61
|
renderContent() {
|
|
50
62
|
const content = !!this.contentBehind
|
|
@@ -62,7 +74,7 @@ let CalciteShell$1 = class extends HTMLElement {
|
|
|
62
74
|
}
|
|
63
75
|
renderFooter() {
|
|
64
76
|
const hasFooter = !!getSlotted(this.el, SLOTS.footer);
|
|
65
|
-
return hasFooter ? (h("div", { class: CSS.footer }, h("slot", { name: SLOTS.footer }))) : null;
|
|
77
|
+
return hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("slot", { name: SLOTS.footer }))) : null;
|
|
66
78
|
}
|
|
67
79
|
renderMain() {
|
|
68
80
|
const primaryPanel = getSlotted(this.el, SLOTS.primaryPanel);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { b as getSlotted } from './dom.js';
|
|
7
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
7
8
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
8
9
|
import { d as defineCustomElement$1 } from './calcite-link2.js';
|
|
9
10
|
|
|
@@ -42,6 +43,17 @@ let CalciteTile = class extends HTMLElement {
|
|
|
42
43
|
}
|
|
43
44
|
// --------------------------------------------------------------------------
|
|
44
45
|
//
|
|
46
|
+
// Lifecycle
|
|
47
|
+
//
|
|
48
|
+
// --------------------------------------------------------------------------
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
connectConditionalSlotComponent(this);
|
|
51
|
+
}
|
|
52
|
+
disconnectedCallback() {
|
|
53
|
+
disconnectConditionalSlotComponent(this);
|
|
54
|
+
}
|
|
55
|
+
// --------------------------------------------------------------------------
|
|
56
|
+
//
|
|
45
57
|
// Render Methods
|
|
46
58
|
//
|
|
47
59
|
// --------------------------------------------------------------------------
|
|
@@ -6,6 +6,7 @@ import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@sten
|
|
|
6
6
|
import { H as HEADING_LEVEL$1 } from './resources4.js';
|
|
7
7
|
import { b as getSlotted } from './dom.js';
|
|
8
8
|
import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading.js';
|
|
9
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
9
10
|
import { d as defineCustomElement$4 } from './calcite-action2.js';
|
|
10
11
|
import { d as defineCustomElement$3 } from './calcite-icon2.js';
|
|
11
12
|
import { d as defineCustomElement$2 } from './calcite-loader2.js';
|
|
@@ -67,6 +68,17 @@ let CalciteTip$1 = class extends HTMLElement {
|
|
|
67
68
|
}
|
|
68
69
|
// --------------------------------------------------------------------------
|
|
69
70
|
//
|
|
71
|
+
// Lifecycle
|
|
72
|
+
//
|
|
73
|
+
// --------------------------------------------------------------------------
|
|
74
|
+
connectedCallback() {
|
|
75
|
+
connectConditionalSlotComponent(this);
|
|
76
|
+
}
|
|
77
|
+
disconnectedCallback() {
|
|
78
|
+
disconnectConditionalSlotComponent(this);
|
|
79
|
+
}
|
|
80
|
+
// --------------------------------------------------------------------------
|
|
81
|
+
//
|
|
70
82
|
// Render Methods
|
|
71
83
|
//
|
|
72
84
|
// --------------------------------------------------------------------------
|
|
@@ -85,7 +97,7 @@ let CalciteTip$1 = class extends HTMLElement {
|
|
|
85
97
|
}
|
|
86
98
|
renderImageFrame() {
|
|
87
99
|
const { el } = this;
|
|
88
|
-
return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
100
|
+
return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame, key: "thumbnail" }, h("slot", { name: SLOTS.thumbnail }))) : null;
|
|
89
101
|
}
|
|
90
102
|
renderInfoNode() {
|
|
91
103
|
return (h("div", { class: CSS.info }, h("slot", null)));
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
6
6
|
import { T as TreeSelectionMode } from './interfaces2.js';
|
|
7
7
|
import { b as getSlotted, a as getElementDir, C as CSS_UTILITY, e as filterDirectChildren, n as nodeListToArray } from './dom.js';
|
|
8
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
8
9
|
import { d as defineCustomElement$3 } from './calcite-checkbox2.js';
|
|
9
10
|
import { d as defineCustomElement$2 } from './calcite-icon2.js';
|
|
10
11
|
|
|
@@ -99,6 +100,10 @@ let CalciteTreeItem$1 = class extends HTMLElement {
|
|
|
99
100
|
const { expanded } = this.parentTreeItem;
|
|
100
101
|
this.updateParentIsExpanded(this.parentTreeItem, expanded);
|
|
101
102
|
}
|
|
103
|
+
connectConditionalSlotComponent(this);
|
|
104
|
+
}
|
|
105
|
+
disconnectedCallback() {
|
|
106
|
+
disconnectConditionalSlotComponent(this);
|
|
102
107
|
}
|
|
103
108
|
componentWillRender() {
|
|
104
109
|
this.hasChildren = !!this.el.querySelector("calcite-tree");
|
|
@@ -7,6 +7,7 @@ import { I as ICON_TYPES } from './resources3.js';
|
|
|
7
7
|
import { g as guid } from './guid.js';
|
|
8
8
|
import { S as SLOTS$1, a as CSS, d as defineCustomElement$2 } from './calcite-pick-list-item2.js';
|
|
9
9
|
import { b as getSlotted } from './dom.js';
|
|
10
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
|
|
10
11
|
import { d as defineCustomElement$5 } from './calcite-action2.js';
|
|
11
12
|
import { d as defineCustomElement$4 } from './calcite-icon2.js';
|
|
12
13
|
import { d as defineCustomElement$3 } from './calcite-loader2.js';
|
|
@@ -78,6 +79,17 @@ let CalciteValueListItem$1 = class extends HTMLElement {
|
|
|
78
79
|
}
|
|
79
80
|
// --------------------------------------------------------------------------
|
|
80
81
|
//
|
|
82
|
+
// Lifecycle
|
|
83
|
+
//
|
|
84
|
+
// --------------------------------------------------------------------------
|
|
85
|
+
connectedCallback() {
|
|
86
|
+
connectConditionalSlotComponent(this);
|
|
87
|
+
}
|
|
88
|
+
disconnectedCallback() {
|
|
89
|
+
disconnectConditionalSlotComponent(this);
|
|
90
|
+
}
|
|
91
|
+
// --------------------------------------------------------------------------
|
|
92
|
+
//
|
|
81
93
|
// Public Methods
|
|
82
94
|
//
|
|
83
95
|
// --------------------------------------------------------------------------
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
|
4
|
+
*/
|
|
5
|
+
import { forceUpdate } from '@stencil/core/internal/client';
|
|
6
|
+
import { c as createObserver } from './observers.js';
|
|
7
|
+
|
|
8
|
+
const observed = new Set();
|
|
9
|
+
let mutationObserver;
|
|
10
|
+
const observerOptions = { childList: true };
|
|
11
|
+
/**
|
|
12
|
+
* Helper to set up a conditional slot component on connectedCallback.
|
|
13
|
+
*/
|
|
14
|
+
function connectConditionalSlotComponent(component) {
|
|
15
|
+
if (!mutationObserver) {
|
|
16
|
+
mutationObserver = createObserver("mutation", processMutations);
|
|
17
|
+
}
|
|
18
|
+
mutationObserver.observe(component.el, observerOptions);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Helper to tear down a conditional slot component on disconnectedCallback.
|
|
22
|
+
*/
|
|
23
|
+
function disconnectConditionalSlotComponent(component) {
|
|
24
|
+
observed.delete(component.el);
|
|
25
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
26
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
27
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
28
|
+
processMutations(mutationObserver.takeRecords());
|
|
29
|
+
mutationObserver.disconnect();
|
|
30
|
+
for (const [element] of observed.entries()) {
|
|
31
|
+
mutationObserver.observe(element, observerOptions);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function processMutations(mutations) {
|
|
35
|
+
mutations.forEach(({ target }) => {
|
|
36
|
+
forceUpdate(target);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { connectConditionalSlotComponent as c, disconnectConditionalSlotComponent as d };
|
|
@@ -9,6 +9,9 @@ const ComboboxItem = "CALCITE-COMBOBOX-ITEM";
|
|
|
9
9
|
const ComboboxItemGroup = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
10
10
|
const ComboboxChildSelector = `${ComboboxItem}, ${ComboboxItemGroup}`;
|
|
11
11
|
const ComboboxDefaultPlacement = "bottom-leading";
|
|
12
|
+
const TEXT = {
|
|
13
|
+
removeTag: "Remove tag"
|
|
14
|
+
};
|
|
12
15
|
|
|
13
16
|
function getAncestors(element) {
|
|
14
17
|
var _a, _b;
|
|
@@ -35,4 +38,4 @@ function getDepth(element) {
|
|
|
35
38
|
return result.snapshotLength;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
export { ComboboxChildSelector as C, getItemChildren as a, ComboboxItem as b, ComboboxItemGroup as c, ComboboxDefaultPlacement as d, getAncestors as e, getDepth as f, getItemAncestors as g, hasActiveChildren as h };
|
|
41
|
+
export { ComboboxChildSelector as C, TEXT as T, getItemChildren as a, ComboboxItem as b, ComboboxItemGroup as c, ComboboxDefaultPlacement as d, getAncestors as e, getDepth as f, getItemAncestors as g, hasActiveChildren as h };
|