@arcgis/common-components 6.0.0-next.2 → 6.0.0-next.21

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.
Files changed (114) hide show
  1. package/dist/cdn/2S4SSY4K.js +2 -0
  2. package/dist/cdn/{YEFEVEP6.js → 3UAY23XT.js} +1 -1
  3. package/dist/cdn/{OTWADB4M.js → 3ZTHRAIZ.js} +1 -1
  4. package/dist/cdn/{TXQKK4DJ.js → 4D35RDOE.js} +1 -1
  5. package/dist/cdn/4H4SDFQK.js +2 -0
  6. package/dist/cdn/4IMLX5B4.js +4 -0
  7. package/dist/cdn/6LZNNXUL.js +2 -0
  8. package/dist/cdn/74TVQE6W.js +2 -0
  9. package/dist/cdn/ANK7TFWV.js +2 -0
  10. package/dist/cdn/{X6DNIKWY.js → BAALW3SQ.js} +1 -1
  11. package/dist/cdn/{LNXO5YIS.js → BDIGRQ2U.js} +1 -1
  12. package/dist/cdn/BMR5AH6W.js +2 -0
  13. package/dist/cdn/DAAON2UO.js +3 -0
  14. package/dist/cdn/DMEXDZ2R.js +2 -0
  15. package/dist/cdn/{OMROUY3L.js → FESNPMRM.js} +1 -1
  16. package/dist/cdn/{OIGA7XBZ.js → FVFYAK24.js} +1 -1
  17. package/dist/cdn/{D4UHHQ35.js → IOAVVVNO.js} +1 -1
  18. package/dist/cdn/IZD4AM2W.js +2 -0
  19. package/dist/cdn/{MFGUTQRR.js → J4AV4EAC.js} +1 -1
  20. package/dist/cdn/JYWWX277.js +2 -0
  21. package/dist/cdn/{TO3YFXVJ.js → LLLQXE2U.js} +1 -1
  22. package/dist/cdn/{KDCSDIUQ.js → M7F7EBFY.js} +1 -1
  23. package/dist/cdn/OUPGMHLD.js +2 -0
  24. package/dist/cdn/{IECXEZNI.js → OZIHA5AQ.js} +1 -1
  25. package/dist/cdn/{JTQN5KMG.js → PIXY2HTI.js} +1 -1
  26. package/dist/cdn/{BZFAYVKR.js → PJGWH4LW.js} +1 -1
  27. package/dist/cdn/RQGPWDYU.js +8207 -0
  28. package/dist/cdn/SIB7LGF5.js +2 -0
  29. package/dist/cdn/SRO2CZ77.js +2 -0
  30. package/dist/cdn/T57JKNGO.js +2 -0
  31. package/dist/cdn/{EB5MDEWF.js → TE77L77R.js} +1 -1
  32. package/dist/cdn/TWPYXZ2O.js +2 -0
  33. package/dist/cdn/{735FTIBP.js → U6OGOB7D.js} +1 -1
  34. package/dist/cdn/V5FMQXMU.js +2 -0
  35. package/dist/cdn/{HYFFUYAU.js → VNC7X43V.js} +1 -1
  36. package/dist/cdn/W2W34T5K.js +2 -0
  37. package/dist/cdn/W7CWMG2O.js +2 -0
  38. package/dist/cdn/XAWHSQBN.js +2 -0
  39. package/dist/cdn/XMMFL5H3.js +2 -0
  40. package/dist/cdn/XQ65BGER.js +2 -0
  41. package/dist/cdn/YXN6CFSE.js +2 -0
  42. package/dist/cdn/ZJMMAZFG.js +2 -0
  43. package/dist/cdn/ZLVMV6TP.js +2 -0
  44. package/dist/cdn/{34AP2EEB.js → ZMYTELNC.js} +1 -1
  45. package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
  46. package/dist/cdn/index.js +1 -1
  47. package/dist/cdn/main.css +1 -1
  48. package/dist/chunks/sharedCacheDirective.js +74 -0
  49. package/dist/chunks/toolbar.js +3 -3
  50. package/dist/components/arcgis-histogram/customElement.d.ts +8 -0
  51. package/dist/components/arcgis-histogram/customElement.js +103 -98
  52. package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
  53. package/dist/components/arcgis-html-content/customElement.js +71 -0
  54. package/dist/components/arcgis-html-content/index.d.ts +1 -0
  55. package/dist/components/arcgis-html-content/index.js +1 -0
  56. package/dist/components/arcgis-label-input/customElement.js +1 -1
  57. package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
  58. package/dist/components/arcgis-layer-replace/customElement.js +376 -0
  59. package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
  60. package/dist/components/arcgis-layer-replace/index.js +7 -0
  61. package/dist/components/arcgis-slider/customElement.js +522 -443
  62. package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
  63. package/dist/components/arcgis-slider-field/customElement.js +45 -39
  64. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
  65. package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
  66. package/dist/components/arcgis-ticks/customElement.js +8 -8
  67. package/dist/components/arcgis-toolbar/customElement.d.ts +6 -3
  68. package/dist/components/arcgis-toolbar/customElement.js +30 -29
  69. package/dist/components/arcgis-toolbar/types.d.ts +1 -0
  70. package/dist/components/arcgis-toolbar-group/customElement.js +7 -7
  71. package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
  72. package/dist/components/arcgis-toolbar-stack/customElement.js +51 -116
  73. package/dist/components/arcgis-value-picker/customElement.d.ts +8 -1
  74. package/dist/components/arcgis-value-picker/customElement.js +25 -21
  75. package/dist/components/arcgis-value-picker/index.js +1 -1
  76. package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
  77. package/dist/components/arcgis-value-picker-label/customElement.d.ts +6 -0
  78. package/dist/components/arcgis-value-picker-label/customElement.js +6 -6
  79. package/dist/components/arcgis-value-picker-slider/customElement.js +18 -18
  80. package/dist/docs/api.json +1 -1
  81. package/dist/docs/docs.json +1 -1
  82. package/dist/docs/vscode.css-custom-data.json +1 -1
  83. package/dist/docs/vscode.html-custom-data.json +1 -1
  84. package/dist/docs/web-types.json +1 -1
  85. package/dist/index.d.ts +15 -0
  86. package/dist/index.js +8 -5
  87. package/dist/loader.js +9 -7
  88. package/dist/types/lumina.d.ts +16 -5
  89. package/dist/types/preact.d.ts +18 -5
  90. package/dist/types/react.d.ts +20 -5
  91. package/dist/types/stencil.d.ts +16 -5
  92. package/dist/utils/sharedCacheDirective.d.ts +68 -0
  93. package/package.json +6 -6
  94. package/dist/cdn/3AFEXHZ5.js +0 -2
  95. package/dist/cdn/5EA7SGHX.js +0 -2
  96. package/dist/cdn/7TCQ52FG.js +0 -2
  97. package/dist/cdn/ATLXGXTH.js +0 -2
  98. package/dist/cdn/BCN6LPOG.js +0 -4
  99. package/dist/cdn/CKGWDI7B.js +0 -2
  100. package/dist/cdn/DR2THZQU.js +0 -8208
  101. package/dist/cdn/EM4OQXFS.js +0 -2
  102. package/dist/cdn/GDRW3MIZ.js +0 -2
  103. package/dist/cdn/HJ3EJZFF.js +0 -2
  104. package/dist/cdn/LLATF73T.js +0 -2
  105. package/dist/cdn/M2J3GPM4.js +0 -2
  106. package/dist/cdn/PJCRMKAM.js +0 -2
  107. package/dist/cdn/QCUF7B3I.js +0 -2
  108. package/dist/cdn/S4XOD4YS.js +0 -2
  109. package/dist/cdn/UIBTY5FF.js +0 -2
  110. package/dist/cdn/WQW7S2RI.js +0 -2
  111. package/dist/cdn/XUPA27AW.js +0 -2
  112. package/dist/cdn/XX2ZCFWI.js +0 -2
  113. package/dist/cdn/ZCVP2N2O.js +0 -2
  114. package/dist/cdn/ZZ4YJXPK.js +0 -2
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as d } from "../../chunks/runtime.js";
3
- import { ref as l } from "lit/directives/ref.js";
4
- import { html as c } from "lit";
5
- import { keyed as u } from "lit/directives/keyed.js";
6
- import { LitElement as p, createEvent as g } from "@arcgis/lumina";
7
- import { useDirection as m } from "@arcgis/lumina/controllers";
8
- import { s as f, a as b, b as _, c as v } from "../../chunks/toolbar.js";
9
- import { a as o } from "../../chunks/utils.js";
10
- import { i as y } from "../../chunks/types.js";
11
- class R extends p {
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { ref as c } from "lit/directives/ref.js";
4
+ import { html as d } from "lit";
5
+ import { keyed as f } from "lit/directives/keyed.js";
6
+ import { LitElement as b, createEvent as _, safeStyleMap as u } from "@arcgis/lumina";
7
+ import { useDirection as y } from "@arcgis/lumina/controllers";
8
+ import { s as v, a as $, b as R, c as B } from "../../chunks/toolbar.js";
9
+ import { a as l } from "../../chunks/utils.js";
10
+ import { i as C } from "../../chunks/types.js";
11
+ class w extends b {
12
12
  constructor() {
13
- super(), this.#t = new ResizeObserver((t) => this._updateMeasurement(t)), this.#r = new MutationObserver(() => this._syncGroups()), this.#i = m(), this._layout = "horizontal", this._setRenderedBar = (t) => {
13
+ super(), this.#t = new ResizeObserver((t) => this._updateMeasurement(t)), this.#r = new MutationObserver(() => this._syncGroups()), this.#s = y(), this._layout = "horizontal", this._setRenderedBar = (t) => {
14
14
  t == null && (this._renderedBar = void 0, this._hydratedRenderedBar = void 0), !(t === this._renderedBar || t === this._hydratedRenderedBar) && (this._renderedBar = t, this._hydratedRenderedBar = void 0, t && t.componentOnReady().then(() => {
15
15
  !this.isConnected || this._renderedBar !== t || (this._hydratedRenderedBar = t);
16
16
  }));
17
- }, this._availableLength = 0, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.arcgisInternalLayoutUpdate = g(), this.listen("arcgisInternalLayoutUpdate", (t) => {
17
+ }, this._availableLength = 0, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.arcgisInternalLayoutUpdate = _(), this.listen("arcgisInternalLayoutUpdate", (t) => {
18
18
  t.target !== this.el && this.requestUpdate(), this.el.parentElement?.localName !== "arcgis-toolbar-stack" && t.stopPropagation();
19
19
  });
20
20
  }
@@ -22,12 +22,12 @@ class R extends p {
22
22
  this.properties = { _availableLength: 16, _groups: 16, _renderedBar: 16, _hydratedRenderedBar: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3, barElement: 32, effectiveRelativeDirection: 16 };
23
23
  }
24
24
  static {
25
- this.styles = [f, b, _, v];
25
+ this.styles = [v, $, R, B];
26
26
  }
27
27
  #t;
28
28
  #r;
29
- #s;
30
29
  #i;
30
+ #s;
31
31
  #e;
32
32
  get layout() {
33
33
  return this._layout;
@@ -39,7 +39,7 @@ class R extends p {
39
39
  return this._hydratedRenderedBar;
40
40
  }
41
41
  get effectiveRelativeDirection() {
42
- const [t, e] = this.relativePosition.split("-"), r = this.#i;
42
+ const [t, e] = this.relativePosition.split("-"), r = this.#s;
43
43
  switch (e) {
44
44
  case "left":
45
45
  case "right":
@@ -54,18 +54,18 @@ class R extends p {
54
54
  const e = this._groups;
55
55
  if (!e?.length)
56
56
  return [0];
57
- const n = e.map((s) => s.measure(t)).reduce((s, i) => s.flatMap((a) => i.map((h) => a + h)), [0]).map((s) => o(e, t, s).reduce((i, { budget: a }) => i + a, 0));
58
- return Array.from(new Set(n)).sort((s, i) => s - i);
57
+ const o = e.map((i) => i.measure(t)).reduce((i, s) => i.flatMap((a) => s.map((n) => a + n)), [0]).map((i) => l(e, t, i).reduce((s, { budget: a }) => s + a, 0));
58
+ return Array.from(new Set(o)).sort((i, s) => i - s);
59
59
  }
60
60
  allocate(t, e) {
61
61
  const r = this._groups;
62
- return r?.length ? o(r, t, e) : [];
62
+ return r?.length ? l(r, t, e) : [];
63
63
  }
64
- proxiedRender(t, e, r = this.toolbarKind) {
64
+ proxiedRender(t, e, r = this.toolbarKind, o = e) {
65
65
  if (!this._groups?.length)
66
66
  return;
67
- const s = this.allocate(t, e);
68
- return u(this, c`<div class="toolbar-grid-wrapper"><div class="toolbar-shadow-wrapper"><calcite-action-bar expand-toggle-disabled .floating=${r === "floating"} .layout=${t.layout} overflow-mode=none .scale=${t.scale} ${l(this._setRenderedBar)}>${s.map(({ group: i, budget: a }) => i.proxiedRender(t, a))}</calcite-action-bar></div></div>`);
67
+ const s = this.allocate(t, e), [a, n] = t.relativePosition.split("-"), h = t.layout === "horizontal" ? { maxWidth: `${o}px` } : { maxHeight: `${o}px` };
68
+ return f(this, d`<div class=${`toolbar-grid-wrapper ${n} ${a}`} style=${u(h)}><div class="toolbar-shadow-wrapper" style=${u(h)}><calcite-action-bar expand-toggle-disabled .floating=${r === "floating"} .layout=${t.layout} overflow-mode=none .scale=${t.scale} ${c(this._setRenderedBar)}>${s.map(({ group: p, budget: g }) => p.proxiedRender(t, g))}</calcite-action-bar></div></div>`);
69
69
  }
70
70
  connectedCallback() {
71
71
  super.connectedCallback(), this._connectMeasurement(this.#e), this.#r.observe(this.el, { childList: !0 }), this._syncGroups();
@@ -84,9 +84,9 @@ class R extends p {
84
84
  e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
85
85
  }
86
86
  _syncGroups() {
87
- this.#s?.abort();
88
- const t = Array.from(this.el.children).filter(y), e = new AbortController();
89
- this.#s = e, Promise.all(t.map((r) => r.componentOnReady())).then(() => {
87
+ this.#i?.abort();
88
+ const t = Array.from(this.el.children).filter(C), e = new AbortController();
89
+ this.#i = e, Promise.all(t.map((r) => r.componentOnReady())).then(() => {
90
90
  !this.isConnected || e.signal.aborted || (this._groups = t, this.arcgisInternalLayoutUpdate.emit());
91
91
  });
92
92
  }
@@ -97,12 +97,13 @@ class R extends p {
97
97
  layout: this.layout,
98
98
  relativePosition: this.effectiveRelativeDirection,
99
99
  scale: this.scale,
100
- tooltipAppearance: this.tooltipAppearance
101
- }, [{ budget: r }] = o([this], e, this._availableLength);
102
- return c`<div class="ruler" ${l(this._setRulerEl)}></div>${this.proxiedRender(e, r)}`;
100
+ tooltipAppearance: this.tooltipAppearance,
101
+ toolbarKind: this.toolbarKind
102
+ }, [{ budget: r }] = l([this], e, this._availableLength);
103
+ return d`<div class="ruler" ${c(this._setRulerEl)}></div>${this.proxiedRender(e, r, this.toolbarKind, this._availableLength)}`;
103
104
  }
104
105
  }
105
- d("arcgis-toolbar", R);
106
+ m("arcgis-toolbar", w);
106
107
  export {
107
- R as ArcgisToolbar
108
+ w as ArcgisToolbar
108
109
  };
@@ -23,6 +23,7 @@ export type RenderContext = MeasurementContext
23
23
  & {
24
24
  relativePosition: "bottom-left" | "bottom-right" | "top-left" | "top-right";
25
25
  tooltipAppearance: "calcite-dark" | "calcite" | "native";
26
+ toolbarKind: "docked" | "floating";
26
27
  };
27
28
 
28
29
  /**
@@ -5,7 +5,7 @@ import { LitElement as u, nothing as h } from "@arcgis/lumina";
5
5
  import { W as i, a as m } from "../../chunks/utils.js";
6
6
  import { L as g, i as b } from "../../chunks/types.js";
7
7
  import { u as f } from "../../chunks/utils2.js";
8
- class C extends u {
8
+ class y extends u {
9
9
  constructor() {
10
10
  super(...arguments), this.#e = new MutationObserver(() => this.#t()), this.preferEndSlot = !1, this.priority = g.Default;
11
11
  }
@@ -18,15 +18,15 @@ class C extends u {
18
18
  const r = this._children;
19
19
  if (!r?.length)
20
20
  return [0];
21
- const o = i.groupSeparator + i.groupPadding[e.scale], n = r.map((t) => t.measure(e)).reduce((t, s) => t.flatMap((a) => s.map((c) => a + c)), [0]);
22
- return f(n.map((t) => o + t));
21
+ const o = i.groupSeparator + i.groupPadding[e.scale], s = r.map((t) => t.measure(e)).reduce((t, n) => t.flatMap((a) => n.map((c) => a + c)), [0]);
22
+ return f(s.map((t) => o + t));
23
23
  }
24
24
  proxiedRender(e, r) {
25
25
  const o = this._children;
26
26
  if (!o)
27
27
  return;
28
- const l = this.preferEndSlot ? "actions-end" : void 0, n = r - i.groupPadding[e.scale] - i.groupSeparator, t = m(o, e, n);
29
- return p`<calcite-action-group .scale=${e.scale} .layout=${e.layout} slot=${l ?? h}>${t.map(({ group: s, budget: a }) => s.proxiedRender(e, a))}</calcite-action-group>`;
28
+ const l = this.preferEndSlot && (e.toolbarKind === "docked" || e.layout === "vertical") ? "actions-end" : void 0, s = r - i.groupPadding[e.scale] - i.groupSeparator, t = m(o, e, s);
29
+ return p`<calcite-action-group .scale=${e.scale} .layout=${e.layout} slot=${l ?? h}>${t.map(({ group: n, budget: a }) => n.proxiedRender(e, a))}</calcite-action-group>`;
30
30
  }
31
31
  connectedCallback() {
32
32
  super.connectedCallback(), this.#e.observe(this.el, { childList: !0 }), this.#t();
@@ -42,7 +42,7 @@ class C extends u {
42
42
  });
43
43
  }
44
44
  }
45
- d("arcgis-toolbar-group", C);
45
+ d("arcgis-toolbar-group", y);
46
46
  export {
47
- C as ArcgisToolbarGroup
47
+ y as ArcgisToolbarGroup
48
48
  };
@@ -27,7 +27,7 @@ class C extends v {
27
27
  }
28
28
  proxiedRender(t, e, r) {
29
29
  const l = t.tooltipAppearance, a = this._elementReferenceController.element, d = l !== "native" && e === "collapsed-action", m = l === "native" && e === "collapsed-action", h = l === "calcite-dark" ? "calcite-mode-dark" : void 0, p = x(t), i = this.tooltipText || this.labelText;
30
- return e === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? c} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${i} @click=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${e === "expanded-action"} title=${(m ? i : void 0) ?? c} ${$(this._elementReferenceController.ref)}></calcite-action>${d && a ? n`<calcite-tooltip class=${b(h)} close-on-click overlay-positioning=fixed .placement=${p} .referenceElement=${a}><span>${i}</span></calcite-tooltip>` : void 0}`;
30
+ return e === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? c} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${i} @calciteDropdownItemSelect=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${e === "expanded-action"} title=${(m ? i : void 0) ?? c} ${$(this._elementReferenceController.ref)}></calcite-action>${d && a ? n`<calcite-tooltip class=${b(h)} close-on-click overlay-positioning=fixed .placement=${p} .referenceElement=${a}><span>${i}</span></calcite-tooltip>` : void 0}`;
31
31
  }
32
32
  _handleActionClick(t) {
33
33
  this.isConnected && (this.lastActivated = /* @__PURE__ */ new Date(), this.arcgisItemSelected?.emit({ element: t.currentTarget }));
@@ -1,104 +1,38 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as k } from "../../chunks/runtime.js";
3
- import { ref as _ } from "lit/directives/ref.js";
4
- import { css as C, render as w, nothing as P, html as p } from "lit";
5
- import { LitElement as z, nothing as v } from "@arcgis/lumina";
6
- import { useDirection as L } from "@arcgis/lumina/controllers";
7
- import { s as x, a as T, b as $, c as A } from "../../chunks/toolbar.js";
8
- import { AsyncDirective as R } from "lit/async-directive.js";
9
- import { directive as M, PartType as D } from "lit/directive.js";
10
- import { getCommittedValue as u, clearPart as E, insertPart as b, setCommittedValue as f } from "lit/directive-helpers.js";
11
- const V = C`:host{--calcite-internal-animation-timing-slow: 0}.toolbar-stack{align-items:stretch;display:flex;max-inline-size:min(100cqw,100vw);max-block-size:min(100cqh,100vh);min-inline-size:0;min-block-size:0;gap:8px}.stack{display:flex}.stack[data-horizontal-position=right]{justify-content:right}.stack[data-horizontal-position=left]{justify-content:left}.line{display:flex;flex:none;gap:8px}:host([layout="vertical"]) .line{flex-direction:column;max-height:min(100cqh - var(--arcgis-internal-attribution-space-top) - 2 * var(--calcite-space-lg),100vh - 2 * var(--calcite-space-lg))}:host([layout="horizontal"]) .line{flex-direction:row}.line[data-alignment=top]{justify-content:flex-start}.line[data-alignment=bottom]{justify-content:flex-end}.line[data-alignment=left]{justify-content:left}.line[data-alignment=right]{justify-content:right}:host([layout="vertical"]) .toolbar-stack{flex-direction:row}:host([layout="horizontal"]) .toolbar-stack{flex-direction:column}:host([toolbar-kind="docked"][layout="horizontal"]) .toolbar-stack{min-inline-size:100%;calcite-action-bar{min-width:auto}}:host([toolbar-kind="docked"][layout="vertical"]) .toolbar-stack{min-block-size:100%;calcite-action-bar{min-height:auto}}:host([toolbar-kind="floating"]) .toolbar-shadow-wrapper{box-shadow:var(--calcite-shadow-md);background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));min-inline-size:0;min-block-size:0}`;
12
- class j {
13
- constructor(t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Set()) {
14
- this.cachedParts = t, this.directives = e;
15
- }
16
- moveAllToCache() {
17
- for (const t of this.directives)
18
- t.moveToCache();
19
- }
20
- }
21
- class S extends R {
22
- #e;
23
- #i;
24
- #t;
25
- constructor(t) {
26
- if (super(t), t.type !== D.CHILD)
27
- throw new Error("sharedCache() can only be used in child expressions");
28
- }
29
- /**
30
- * @param _store Shared store backing this and other caching directives with the shared cache
31
- * @param _key Uniquely identifies the element being rendered
32
- * @param value The content to render
33
- */
34
- render(t, e, o) {
35
- return [o];
36
- }
37
- update(t, [e, o, a]) {
38
- this.#t !== e && (this.#t && this.#t.directives.delete(this), e.directives.add(this), this.#t = e), this.#e = t, this.#i = o;
39
- const i = e.cachedParts.get(o), s = i ? u(i).pop() : void 0;
40
- return s && (E(t), b(t, void 0, s), f(t, [s])), this.render(e, o, a);
41
- }
42
- /**
43
- * During the update phase, a toolbar may need to be pulled from the cache in a situation
44
- * where it was still on the page from the previous render.
45
- *
46
- * To work around this problem, during parent component render phase a pre-caching
47
- * step moves all cacheable elements into the cache. This is the method called by
48
- * that pre-caching step.
49
- *
50
- * @returns
51
- */
52
- moveToCache() {
53
- const t = this.#e, e = this.#t;
54
- if (!t || !e)
55
- return;
56
- const a = u(t).pop();
57
- if (!a)
58
- return;
59
- let i = e.cachedParts.get(this.#i);
60
- if (!i) {
61
- const c = document.createDocumentFragment();
62
- i = w(P, c), e.cachedParts.set(this.#i, i);
63
- }
64
- if (u(i).length > 0)
65
- throw new Error("sharedCache() keys must be unique");
66
- f(i, [a]), b(i, void 0, a);
67
- }
68
- disconnected() {
69
- this.#t?.directives.delete(this);
70
- }
71
- reconnected() {
72
- this.#t?.directives.add(this);
73
- }
74
- }
75
- const q = M(S), O = 8;
76
- class K extends z {
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import { ref as v } from "lit/directives/ref.js";
4
+ import { css as f, html as b } from "lit";
5
+ import { LitElement as y, nothing as _ } from "@arcgis/lumina";
6
+ import { useDirection as k } from "@arcgis/lumina/controllers";
7
+ import { s as L, a as C, b as R, c as $ } from "../../chunks/toolbar.js";
8
+ import { S as z, s as A } from "../../chunks/sharedCacheDirective.js";
9
+ const T = f`:host{--calcite-internal-animation-timing-slow: 0}.stack{block-size:100%}.toolbar-stack{display:flex;gap:8px}:host([toolbar-kind="docked"]) .toolbar-stack{gap:0}.line{display:flex;gap:8px}:host([layout="vertical"]) .line{block-size:100%;flex-direction:column}:host([layout="vertical"]) .line[data-alignment=bottom]{align-self:end}.line[data-alignment=left]{justify-content:left}.line[data-alignment=right]{justify-content:right}:host([layout="vertical"]) .toolbar-stack{block-size:100%}:host([layout="horizontal"]) .toolbar-stack{flex-direction:column}:host([toolbar-kind="docked"][layout="horizontal"]) .toolbar-stack{min-inline-size:100%}:host([toolbar-kind="docked"][layout="vertical"]) .toolbar-stack{min-block-size:100%}`, P = 8;
10
+ class M extends y {
77
11
  constructor() {
78
- super(), this.#e = new ResizeObserver((t) => this._updateMeasurement(t)), this.#i = new MutationObserver(() => this._syncToolbars()), this.#r = L(), this.#o = new j(), this._layout = "horizontal", this._availableLength = 0, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.listen("arcgisInternalLayoutUpdate", () => this.requestUpdate());
12
+ super(), this.#t = new ResizeObserver((t) => this._updateMeasurement(t)), this.#s = new MutationObserver(() => this._syncToolbars()), this.#n = k(), this.#e = new z(), this._layout = "horizontal", this._availableLength = 0, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.listen("arcgisInternalLayoutUpdate", () => this.requestUpdate());
79
13
  }
80
14
  static {
81
15
  this.properties = { _availableLength: 16, _toolbars: 16, effectiveRelativeDirection: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3 };
82
16
  }
83
17
  static {
84
- this.styles = [V, x, T, $, A];
18
+ this.styles = [T, L, C, R, $];
85
19
  }
86
- #e;
87
- #i;
88
20
  #t;
89
- #r;
90
- #o;
21
+ #s;
91
22
  #a;
23
+ #n;
24
+ #e;
25
+ #i;
92
26
  get effectiveRelativeDirection() {
93
- const [t, e] = this.relativePosition.split("-"), o = this.#r;
27
+ const [t, e] = this.relativePosition.split("-"), i = this.#n;
94
28
  switch (e) {
95
29
  case "left":
96
30
  case "right":
97
31
  return `${t}-${e}`;
98
32
  case "end":
99
- return `${t}-${o === "ltr" ? "right" : "left"}`;
33
+ return `${t}-${i === "ltr" ? "right" : "left"}`;
100
34
  case "start":
101
- return `${t}-${o === "ltr" ? "left" : "right"}`;
35
+ return `${t}-${i === "ltr" ? "left" : "right"}`;
102
36
  }
103
37
  }
104
38
  get layout() {
@@ -108,67 +42,68 @@ class K extends z {
108
42
  t !== this._layout && (this._layout = t, this._updateMeasurement());
109
43
  }
110
44
  connectedCallback() {
111
- super.connectedCallback(), this._connectMeasurement(this.#a), this.#i.observe(this.el, { childList: !0 }), this._syncToolbars();
45
+ super.connectedCallback(), this._connectMeasurement(this.#i), this.#s.observe(this.el, { childList: !0 }), this._syncToolbars();
112
46
  }
113
47
  disconnectedCallback() {
114
- this.#e.disconnect(), this.#i.disconnect(), super.disconnectedCallback();
48
+ this.#t.disconnect(), this.#s.disconnect(), super.disconnectedCallback();
115
49
  }
116
50
  _setRulerEl(t) {
117
- this.#a !== t && (this.#a = t, this.isConnected && this._connectMeasurement(t));
51
+ this.#i !== t && (this.#i = t, this.isConnected && this._connectMeasurement(t));
118
52
  }
119
53
  _connectMeasurement(t) {
120
- this.#e.disconnect(), t && (this.#e.observe(t), this._updateMeasurement());
54
+ this.#t.disconnect(), t && (this.#t.observe(t), this._updateMeasurement());
121
55
  }
122
56
  _updateMeasurement(t) {
123
- const e = t?.at(0)?.contentRect ?? this.#a?.getBoundingClientRect();
57
+ const e = t?.at(0)?.contentRect ?? this.#i?.getBoundingClientRect();
124
58
  e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
125
59
  }
126
60
  _syncToolbars() {
127
- this.#t?.abort();
128
- const t = Array.from(this.el.children).filter(W), e = new AbortController();
129
- this.#t = e, Promise.all(t.map((o) => o.componentOnReady())).then(() => {
61
+ this.#a?.abort();
62
+ const t = Array.from(this.el.children).filter(w), e = new AbortController();
63
+ this.#a = e, Promise.all(t.map((i) => i.componentOnReady())).then(() => {
130
64
  !this.isConnected || e.signal.aborted || (this._toolbars = t);
131
65
  });
132
66
  }
133
67
  _arrangeToolbarLines(t, e) {
134
- const o = t.map((r) => {
135
- const d = r.allocate(e, this._availableLength);
136
- return { toolbar: r, budget: d.reduce((g, y) => g + y.budget, 0) };
137
- }), a = [];
138
- let i = [], s = 0;
139
- for (const r of o) {
140
- const d = s + (i.length === 0 ? 0 : O) + r.budget;
141
- i.length > 0 && d > this._availableLength ? (a.push(i), i = [r], s = r.budget) : (i.push(r), s = d);
68
+ const i = t.map((a) => {
69
+ const d = a.allocate(e, this._availableLength);
70
+ return { toolbar: a, budget: d.reduce((m, g) => m + g.budget, 0) };
71
+ }), s = [];
72
+ let o = [], c = 0;
73
+ for (const a of i) {
74
+ const d = c + (o.length === 0 ? 0 : P) + a.budget;
75
+ o.length > 0 && (this.toolbarKind === "docked" || d > this._availableLength) ? (s.push(o), o = [a], c = a.budget) : (o.push(a), c = d);
142
76
  }
143
- i.length > 0 && a.push(i);
144
- const [c, h] = e.relativePosition.split("-"), l = e.layout === "vertical";
145
- return (l ? h === "right" : c === "bottom") && a.reverse(), (l ? c === "bottom" : h === "right") && a.forEach((r) => r.reverse()), a;
77
+ o.length > 0 && s.push(o);
78
+ const [h, r] = e.relativePosition.split("-"), n = e.layout === "vertical";
79
+ return (n ? r === "right" : h === "bottom") && s.reverse(), (n ? h === "bottom" : r === "right") && s.forEach((a) => a.reverse()), s;
146
80
  }
147
- #s;
81
+ #o;
148
82
  render() {
149
83
  const t = this._toolbars;
150
84
  if (!t?.length) {
151
- this.#s?.length && (this.#o.moveAllToCache(), this.#s = []);
85
+ this.#o?.length && (this.#e.moveAllToCache(), this.#o = []);
152
86
  return;
153
87
  }
154
88
  const e = {
155
89
  layout: this.layout,
156
90
  relativePosition: this.effectiveRelativeDirection,
157
91
  scale: this.scale,
158
- tooltipAppearance: this.tooltipAppearance
159
- }, o = this._arrangeToolbarLines(t, e);
160
- U(this.#s, o) || (this.#o.moveAllToCache(), this.#s = o.map((h) => h.map(({ toolbar: l }) => l)));
161
- const [a, i] = e.relativePosition.split("-"), s = this.layout === "vertical" ? a : i, c = this.#o;
162
- return p`<div class="stack" data-horizontal-position=${i ?? v}><div class="ruler" ${_(this._setRulerEl)}></div><div class="toolbar-stack">${o.map((h) => p`<div class="line" data-alignment=${s ?? v}>${h.map(({ toolbar: l, budget: m }) => q(c, l, l.proxiedRender(e, m, this.toolbarKind)))}</div>`)}</div></div>`;
92
+ tooltipAppearance: this.tooltipAppearance,
93
+ toolbarKind: this.toolbarKind
94
+ }, i = this._arrangeToolbarLines(t, e);
95
+ x(this.#o, i) || (this.#e.moveAllToCache(), this.#o = i.map((r) => r.map(({ toolbar: n }) => n)));
96
+ const [s, o] = e.relativePosition.split("-"), c = this.layout === "vertical" ? s : o, h = this.#e;
97
+ return b`<div class="stack"><div class="ruler" ${v(this._setRulerEl)}></div><div class="toolbar-stack">${i.map((r) => b`<div class="line" data-alignment=${c ?? _}>${r.map(({ toolbar: n, budget: u }) => A(h, n, n.proxiedRender(e, u, this.toolbarKind, this._availableLength)))}</div>`)}</div></div>`;
163
98
  }
164
99
  }
165
- function W(n) {
166
- return n.localName === "arcgis-toolbar";
100
+ function w(l) {
101
+ return l.localName === "arcgis-toolbar";
167
102
  }
168
- function U(n, t) {
169
- return n?.length === t.length && t.every((e, o) => e.length === n[o].length && e.every(({ toolbar: a }, i) => a === n[o][i]));
103
+ function x(l, t) {
104
+ return l?.length === t.length && t.every((e, i) => e.length === l[i].length && e.every(({ toolbar: s }, o) => s === l[i][o]));
170
105
  }
171
- k("arcgis-toolbar-stack", K);
106
+ p("arcgis-toolbar-stack", M);
172
107
  export {
173
- K as ArcgisToolbarStack
108
+ M as ArcgisToolbarStack
174
109
  };
@@ -12,7 +12,8 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
12
12
  * The [arcgis-value-picker-label](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-label/), [arcgis-value-picker-slider](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-slider/),
13
13
  * [arcgis-value-picker-combobox](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-combobox/), and [arcgis-value-picker-collection](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-collection/) components provide the user with a few different options
14
14
  * for placing their data into a Value Picker with minimal configuration. Value Picker handles the different shapes of these components automatically by asserting
15
- * that all slotted components will extend the [ArcgisValuePickerSubcomponent](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/types#ArcgisValuePickerSubcomponent)
15
+ * that all slotted components will extend the
16
+ * [ArcgisValuePickerSubcomponent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-value-picker/types/#ArcgisValuePickerSubcomponent)
16
17
  * interface, which allows Value picker to send and receive generic sets of instructions that are interpreted by the slotted component.
17
18
  *
18
19
  * ### Configuring Value Picker
@@ -216,6 +217,12 @@ export abstract class ArcgisValuePicker extends LitElement {
216
217
  * @default false
217
218
  */
218
219
  accessor disabled: boolean;
220
+ /**
221
+ * When set to `true`, the component will appear with rounded corners and a dropshadow.
222
+ *
223
+ * @default false
224
+ */
225
+ accessor floating: boolean;
219
226
  /**
220
227
  * When set to `true`, the next button is not displayed.
221
228
  *
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as o } from "../../chunks/runtime.js";
3
- import { LitElement as n, createEvent as i, nothing as l, safeClassMap as h } from "@arcgis/lumina";
4
- import { getSlotAssignedElements as r } from "@arcgis/toolkit/dom/slots";
5
- import { css as c, html as s } from "lit";
6
- import { u as d } from "../../chunks/useT9n.js";
7
- import { usePropertyChange as m } from "@arcgis/lumina/controllers";
8
- const p = c`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]) slot{min-inline-size:300px;min-block-size:48px}:host([layout="vertical"]) slot{min-inline-size:300px;min-block-size:144px}slot{display:flex}slot.empty{display:none}.container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.root{display:flex;flex-direction:row;align-items:stretch}calcite-action{width:var(--calcite-font-line-height-fixed-4xl);height:var(--calcite-font-line-height-fixed-4xl)}calcite-action-bar{--calcite-action-bar-items-space: var(--calcite-space-none);--calcite-spacing-sm: var(--calcite-space-none);background-color:var(--calcite-color-foreground-1)}.separator{border-inline-end:solid 1px var(--calcite-color-border-3);width:1px}`;
9
- class u extends n {
2
+ import { c } from "../../chunks/runtime.js";
3
+ import { LitElement as h, createEvent as i, nothing as n, safeClassMap as r } from "@arcgis/lumina";
4
+ import { getSlotAssignedElements as d } from "@arcgis/toolkit/dom/slots";
5
+ import { css as m, html as s } from "lit";
6
+ import { u } from "../../chunks/useT9n.js";
7
+ import { useDirection as p, usePropertyChange as y } from "@arcgis/lumina/controllers";
8
+ const g = m`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]){min-block-size:var(--calcite-size-xl)}:host([layout="vertical"]){min-inline-size:var(--calcite-size-xl);calcite-action-bar{min-block-size:min-content}}slot{display:flex;flex:1 1 auto;min-block-size:var(--calcite-size-xl);min-inline-size:0}slot.empty{display:none}.container{display:flex;flex-direction:column;block-size:100%;inline-size:100%;min-block-size:0;min-inline-size:0}.root{display:flex;flex-direction:row;align-items:stretch;flex:1;background-color:var(--calcite-color-foreground-1);min-block-size:0;min-inline-size:0}.root.vertical-slider{flex-direction:column}.root.vertical-slider slot{flex-direction:column}.root.vertical-slider .separator{border-inline-end:none;border-block-end:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}calcite-action-bar{flex-shrink:0}:host([floating]) .root{border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));box-shadow:var(--calcite-action-bar-shadow, var(--calcite-shadow-md));overflow:hidden}calcite-action{align-self:center}:host([layout="vertical"]) calcite-action{margin-block-start:auto}:host([layout="vertical"]) calcite-action:last-of-type{margin-block-end:auto}.separator{border-inline-end:solid var(--calcite-border-width-sm) var(--calcite-color-border-3)}`;
9
+ class _ extends h {
10
10
  constructor() {
11
- super(), this.messages = d({ blocking: !0 }), this._isPlaying = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.hideNextButton = !1, this.hidePlayButton = !1, this.hidePreviousButton = !1, this.icon = "list-rectangle", this.label = "", this.layout = "horizontal", this.loop = !1, this.playRate = 1e3, this.arcgisAnimate = i(), this.arcgisNext = i(), this.arcgisPause = i(), this.arcgisPlay = i(), this.arcgisPrevious = i(), this.arcgisPropertyChange = m()("layout", "loop", "playRate", "state"), this.arcgisSlottedElementChange = i(), this.listen("arcgisPropertyChange", () => this.requestUpdate());
11
+ super(), this._direction = p(), this.messages = u({ blocking: !0 }), this._isPlaying = !1, this.autoDestroyDisabled = !1, this.disabled = !1, this.floating = !1, this.hideNextButton = !1, this.hidePlayButton = !1, this.hidePreviousButton = !1, this.icon = "list-rectangle", this.label = "", this.layout = "horizontal", this.loop = !1, this.playRate = 1e3, this.arcgisAnimate = i(), this.arcgisNext = i(), this.arcgisPause = i(), this.arcgisPlay = i(), this.arcgisPrevious = i(), this.arcgisPropertyChange = y()("layout", "loop", "playRate", "state"), this.arcgisSlottedElementChange = i(), this.listen("arcgisPropertyChange", () => this.requestUpdate());
12
12
  }
13
13
  static {
14
- this.properties = { _isPlaying: 16, _slottedElement: 16, autoDestroyDisabled: 5, disabled: 5, hideNextButton: 5, hidePlayButton: 5, hidePreviousButton: 5, icon: 1, label: 1, layout: 3, loop: 5, playRate: 9, state: 32 };
14
+ this.properties = { _isPlaying: 16, _slottedElement: 16, autoDestroyDisabled: 5, disabled: 5, floating: 7, hideNextButton: 5, hidePlayButton: 5, hidePreviousButton: 5, icon: 1, label: 1, layout: 3, loop: 5, playRate: 9, state: 32 };
15
15
  }
16
16
  static {
17
- this.styles = p;
17
+ this.styles = g;
18
18
  }
19
19
  get state() {
20
20
  return this._isPlaying ? "playing" : "ready";
@@ -41,7 +41,7 @@ class u extends n {
41
41
  super.disconnectedCallback(), this._isPlaying && this.pause();
42
42
  }
43
43
  _handleSlotChange(t) {
44
- const [e] = r(t);
44
+ const [e] = d(t);
45
45
  this._slottedElement = e, this.arcgisSlottedElementChange.emit({ slottedElement: e }), !e && this._isPlaying && this.pause(), this._isElementWithLayout(e) && (e.layout = this.layout), this._isElementWithDisabled(e) && (e.disabled = this.disabled), this._isElementWithComponentOnReady(e) && e.componentOnReady().then(() => {
46
46
  this._slottedElement === e && this.requestUpdate();
47
47
  });
@@ -68,20 +68,24 @@ class u extends n {
68
68
  }
69
69
  }, this.playRate);
70
70
  }
71
- render() {
72
- const t = !!this._slottedElement && !this._slottedElement.hidden, e = this.state === "playing";
73
- return s`<div class="container"><div class="root"><calcite-action-bar expand-disabled .layout=${this.layout}>${!this.hidePlayButton && s`<calcite-action alignment=center .disabled=${this.disabled || this._slottedElement && !this._slottedElement.canPlay} .icon=${e ? "pause" : "play"} .text=${e ? this.messages.pause : this.messages.play} title=${(e ? this.messages.pause : this.messages.play) ?? l} @click=${() => {
71
+ _renderActions() {
72
+ const t = this.state === "playing", e = this.layout === "vertical" && this._slottedElement?.localName === "arcgis-value-picker-slider", l = !this.hidePlayButton && s`<calcite-action alignment=center .disabled=${this.disabled || this._slottedElement && !this._slottedElement.canPlay} .icon=${t ? "pause" : "play"} .text=${t ? this.messages.pause : this.messages.play} title=${(t ? this.messages.pause : this.messages.play) ?? n} @click=${() => {
74
73
  if (this._slottedElement && !this._slottedElement.canNext && !this.loop) {
75
74
  this._slottedElement.reset(), this.play();
76
75
  return;
77
76
  }
78
- e ? this.pause() : this.play();
79
- }}></calcite-action>` || ""}${!this.hidePreviousButton && s`<calcite-action alignment=center .disabled=${this.disabled || e || this._slottedElement && !this._slottedElement.canPrevious} .icon=${this.layout === "horizontal" ? "chevron-left" : "chevron-up"} .text=${this.messages.previous} title=${this.messages.previous ?? l} @click=${this.previous}></calcite-action>` || ""}${!this.hideNextButton && s`<calcite-action alignment=center .disabled=${this.disabled || e || this._slottedElement && !this._slottedElement.canNext} .icon=${this.layout === "horizontal" ? "chevron-right" : "chevron-down"} .text=${this.messages.next} title=${this.messages.next ?? l} @click=${this.next}></calcite-action>` || ""}</calcite-action-bar>${t && s`<div class="separator"></div>` || ""}<slot @slotchange=${({ currentTarget: a }) => {
80
- this._handleSlotChange(a);
81
- }} class=${h(t ? "component-slot" : "empty")}></slot></div></div>`;
77
+ t ? this.pause() : this.play();
78
+ }}></calcite-action>` || "", a = !this.hidePreviousButton && s`<calcite-action alignment=center .disabled=${this.disabled || t || this._slottedElement && !this._slottedElement.canPrevious} .icon=${this.layout === "horizontal" ? "chevron-left" : e ? "chevron-down" : "chevron-up"} .text=${this.messages.previous} title=${this.messages.previous ?? n} @click=${this.previous}></calcite-action>` || "", o = !this.hideNextButton && s`<calcite-action alignment=center .disabled=${this.disabled || t || this._slottedElement && !this._slottedElement.canNext} .icon=${this.layout === "horizontal" ? "chevron-right" : e ? "chevron-up" : "chevron-down"} .text=${this.messages.next} title=${this.messages.next ?? n} @click=${this.next}></calcite-action>` || "";
79
+ return (this._direction === "rtl" && this.layout === "horizontal" || e ? [l, o, a] : [l, a, o]).filter(Boolean);
80
+ }
81
+ render() {
82
+ const t = !!this._slottedElement && !this._slottedElement.hidden, e = this._renderActions(), l = e.length > 0 && t, a = this.layout === "vertical" && this._slottedElement?.localName === "arcgis-value-picker-slider";
83
+ return s`<div class="container"><div class=${r(a ? "root vertical-slider" : "root")}>${e.length > 0 && s`<calcite-action-bar expand-toggle-disabled .layout=${this.layout}>${e}</calcite-action-bar>` || ""}${l && s`<div class="separator"></div>` || ""}<slot @slotchange=${({ currentTarget: o }) => {
84
+ this._handleSlotChange(o);
85
+ }} class=${r(t ? "component-slot" : "empty")}></slot></div></div>`;
82
86
  }
83
87
  }
84
- o("arcgis-value-picker", u);
88
+ c("arcgis-value-picker", _);
85
89
  export {
86
- u as ArcgisValuePicker
90
+ _ as ArcgisValuePicker
87
91
  };
@@ -1,3 +1,3 @@
1
- import "@esri/calcite-components/components/calcite-action-bar";
2
1
  import "@esri/calcite-components/components/calcite-action";
2
+ import "@esri/calcite-components/components/calcite-action-bar";
3
3
  export * from "./customElement.js";
@@ -1,11 +1,11 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as l } from "../../chunks/runtime.js";
3
- import { LitElement as r } from "@arcgis/lumina";
4
- import { css as n, html as a } from "lit";
3
+ import { LitElement as n } from "@arcgis/lumina";
4
+ import { css as r, html as a } from "lit";
5
5
  import { usePropertyChange as o } from "@arcgis/lumina/controllers";
6
6
  import { u as h } from "../../chunks/useT9n.js";
7
- const u = n`:host{align-items:center;display:flex;flex:auto;min-width:300px;padding-inline:var(--calcite-space-sm);--calcite-color-border-input: var(--calcite-color-border-3)}calcite-combobox{flex:auto;width:var(--calcite-space-none)}`;
8
- class m extends r {
7
+ const u = r`:host{align-items:center;display:flex;flex:auto;inline-size:300px;min-inline-size:0;padding-inline:var(--calcite-space-sm);--calcite-color-border-input: var(--calcite-color-border-3)}calcite-combobox{flex:auto;width:var(--calcite-space-none)}`;
8
+ class m extends n {
9
9
  constructor() {
10
10
  super(...arguments), this.messages = h({ blocking: !0 }), this.autoDestroyDisabled = !1, this.disabled = !1, this.canNext = !1, this.canPlay = !1, this.canPrevious = !1, this.arcgisPropertyChange = o()("canNext", "canPlay", "canPrevious", "currentValue");
11
11
  }
@@ -69,6 +69,12 @@ export abstract class ArcgisValuePickerLabel extends LitElement {
69
69
  accessor canPrevious: boolean;
70
70
  /** The currently selected label item rendered by the component. */
71
71
  accessor currentValue: LabelItem | undefined;
72
+ /**
73
+ * When true, the component is visually withdrawn and cannot receive user interaction.
74
+ *
75
+ * @default false
76
+ */
77
+ accessor disabled: boolean;
72
78
  /** The array of label items that [arcgis-value-picker](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/) can iterate over. */
73
79
  accessor items: LabelItem[] | undefined;
74
80
  /** Permanently destroys the component. */
@@ -1,15 +1,15 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as a } from "../../chunks/runtime.js";
3
3
  import { LitElement as r } from "@arcgis/lumina";
4
- import { css as n, html as c } from "lit";
5
- import { usePropertyChange as l } from "@arcgis/lumina/controllers";
6
- const o = n`:host{display:flex;flex:auto;min-width:300px;padding:var(--calcite-space-sm)}.container{align-items:center;border:solid 1px var(--calcite-color-border-3);display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}.text{color:var(--calcite-color-text-1);flex:auto;font-family:inherit;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--calcite-space-none)}`;
4
+ import { css as n, html as l } from "lit";
5
+ import { usePropertyChange as c } from "@arcgis/lumina/controllers";
6
+ const o = n`:host{display:flex;flex:auto;inline-size:300px;min-inline-size:0;padding:var(--calcite-space-sm)}:host([disabled]){opacity:var(--calcite-opacity-disabled);pointer-events:none}.container{align-items:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-3);display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}.text{color:var(--calcite-color-text-1);flex:auto;font-family:inherit;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--calcite-space-none)}`;
7
7
  class h extends r {
8
8
  constructor() {
9
- super(...arguments), this.autoDestroyDisabled = !1, this.canNext = !1, this.canPlay = !1, this.canPrevious = !1, this.arcgisPropertyChange = l()("canNext", "canPlay", "canPrevious", "currentValue");
9
+ super(...arguments), this.autoDestroyDisabled = !1, this.disabled = !1, this.canNext = !1, this.canPlay = !1, this.canPrevious = !1, this.arcgisPropertyChange = c()("canNext", "canPlay", "canPrevious", "currentValue");
10
10
  }
11
11
  static {
12
- this.properties = { autoDestroyDisabled: 5, items: 0, currentValue: 0, canNext: 5, canPlay: 5, canPrevious: 5 };
12
+ this.properties = { autoDestroyDisabled: 5, disabled: 7, items: 0, currentValue: 0, canNext: 5, canPlay: 5, canPrevious: 5 };
13
13
  }
14
14
  static {
15
15
  this.styles = o;
@@ -42,7 +42,7 @@ class h extends r {
42
42
  this.canNext = e < this.items.length - 1, this.canPrevious = e > 0;
43
43
  }
44
44
  render() {
45
- return c`<div class="container"><div class="text">${this.currentValue?.label}</div></div>`;
45
+ return l`<div class="container"><div class="text">${this.currentValue?.label}</div></div>`;
46
46
  }
47
47
  }
48
48
  a("arcgis-value-picker-label", h);