@arcgis/common-components 6.0.0-next.20 → 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 (57) hide show
  1. package/dist/cdn/2S4SSY4K.js +2 -0
  2. package/dist/cdn/{DJSPDBWO.js → 3UAY23XT.js} +1 -1
  3. package/dist/cdn/{LE34WS2E.js → 3ZTHRAIZ.js} +1 -1
  4. package/dist/cdn/{JMTBKMVF.js → 4D35RDOE.js} +1 -1
  5. package/dist/cdn/{WQHAEQUK.js → 4H4SDFQK.js} +1 -1
  6. package/dist/cdn/{A5VZ22LK.js → 4IMLX5B4.js} +2 -2
  7. package/dist/cdn/{GWWTMM5J.js → 6LZNNXUL.js} +1 -1
  8. package/dist/cdn/{MEMAD5D4.js → 74TVQE6W.js} +1 -1
  9. package/dist/cdn/{5STQ23EC.js → ANK7TFWV.js} +1 -1
  10. package/dist/cdn/{JXWME7J2.js → BAALW3SQ.js} +1 -1
  11. package/dist/cdn/{K6VKF5UM.js → BDIGRQ2U.js} +1 -1
  12. package/dist/cdn/BMR5AH6W.js +2 -0
  13. package/dist/cdn/{22ZJC66J.js → DMEXDZ2R.js} +1 -1
  14. package/dist/cdn/{2STNPR2K.js → FESNPMRM.js} +1 -1
  15. package/dist/cdn/{MAEWWG5A.js → FVFYAK24.js} +1 -1
  16. package/dist/cdn/{NU4RWRS7.js → IOAVVVNO.js} +1 -1
  17. package/dist/cdn/{PWLYBU5B.js → IZD4AM2W.js} +1 -1
  18. package/dist/cdn/{YEG4ZKJV.js → J4AV4EAC.js} +1 -1
  19. package/dist/cdn/{C65ROMJK.js → JYWWX277.js} +1 -1
  20. package/dist/cdn/{AK25UPRZ.js → LLLQXE2U.js} +1 -1
  21. package/dist/cdn/{ZCI3WQ2I.js → M7F7EBFY.js} +1 -1
  22. package/dist/cdn/OUPGMHLD.js +2 -0
  23. package/dist/cdn/{6CP2VGMT.js → OZIHA5AQ.js} +1 -1
  24. package/dist/cdn/{K4BKCMJ7.js → PIXY2HTI.js} +1 -1
  25. package/dist/cdn/{3AMC2MYL.js → PJGWH4LW.js} +1 -1
  26. package/dist/cdn/{4YTPZVS3.js → RQGPWDYU.js} +1 -1
  27. package/dist/cdn/{DPWHB7KO.js → SIB7LGF5.js} +1 -1
  28. package/dist/cdn/{GHI6WOGS.js → SRO2CZ77.js} +1 -1
  29. package/dist/cdn/{CT5YQHEK.js → T57JKNGO.js} +1 -1
  30. package/dist/cdn/{XZBAXCY4.js → TE77L77R.js} +1 -1
  31. package/dist/cdn/{EC4D5ASN.js → TWPYXZ2O.js} +1 -1
  32. package/dist/cdn/{RLH5OKTL.js → U6OGOB7D.js} +1 -1
  33. package/dist/cdn/{YPJIALGM.js → V5FMQXMU.js} +1 -1
  34. package/dist/cdn/{NLURLVXP.js → VNC7X43V.js} +1 -1
  35. package/dist/cdn/W2W34T5K.js +2 -0
  36. package/dist/cdn/{4X3PGY53.js → W7CWMG2O.js} +1 -1
  37. package/dist/cdn/{XIZVB6UV.js → XAWHSQBN.js} +1 -1
  38. package/dist/cdn/{U4Z5MFI5.js → XQ65BGER.js} +1 -1
  39. package/dist/cdn/{5AYF7ZV7.js → YXN6CFSE.js} +1 -1
  40. package/dist/cdn/{U4PTVQN7.js → ZLVMV6TP.js} +1 -1
  41. package/dist/cdn/{SBWYOBOD.js → ZMYTELNC.js} +1 -1
  42. package/dist/cdn/index.js +1 -1
  43. package/dist/chunks/toolbar.js +3 -3
  44. package/dist/components/arcgis-toolbar/customElement.d.ts +6 -3
  45. package/dist/components/arcgis-toolbar/customElement.js +30 -29
  46. package/dist/components/arcgis-toolbar/types.d.ts +1 -0
  47. package/dist/components/arcgis-toolbar-group/customElement.js +7 -7
  48. package/dist/components/arcgis-toolbar-stack/customElement.js +37 -36
  49. package/dist/docs/api.json +1 -1
  50. package/dist/docs/docs.json +1 -1
  51. package/dist/docs/vscode.html-custom-data.json +1 -1
  52. package/dist/docs/web-types.json +1 -1
  53. package/package.json +5 -5
  54. package/dist/cdn/OOQF2DBR.js +0 -2
  55. package/dist/cdn/PMXKCVOF.js +0 -2
  56. package/dist/cdn/SISTGQAE.js +0 -2
  57. package/dist/cdn/WF4C6JB4.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
  };
@@ -1,25 +1,25 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as f } from "../../chunks/runtime.js";
2
+ import { c as p } from "../../chunks/runtime.js";
3
3
  import { ref as v } from "lit/directives/ref.js";
4
- import { css as y, html as m } from "lit";
5
- import { LitElement as k, nothing as b } from "@arcgis/lumina";
6
- import { useDirection as _ } from "@arcgis/lumina/controllers";
7
- import { s as z, a as L, b as x, c as w } from "../../chunks/toolbar.js";
8
- import { S as $, s as C } from "../../chunks/sharedCacheDirective.js";
9
- const R = y`: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}`, A = 8;
10
- class T extends k {
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 {
11
11
  constructor() {
12
- super(), this.#t = new ResizeObserver((t) => this._updateMeasurement(t)), this.#a = new MutationObserver(() => this._syncToolbars()), this.#n = _(), this.#e = new $(), 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());
13
13
  }
14
14
  static {
15
15
  this.properties = { _availableLength: 16, _toolbars: 16, effectiveRelativeDirection: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3 };
16
16
  }
17
17
  static {
18
- this.styles = [R, z, L, x, w];
18
+ this.styles = [T, L, C, R, $];
19
19
  }
20
20
  #t;
21
- #a;
22
21
  #s;
22
+ #a;
23
23
  #n;
24
24
  #e;
25
25
  #i;
@@ -42,10 +42,10 @@ class T extends k {
42
42
  t !== this._layout && (this._layout = t, this._updateMeasurement());
43
43
  }
44
44
  connectedCallback() {
45
- super.connectedCallback(), this._connectMeasurement(this.#i), this.#a.observe(this.el, { childList: !0 }), this._syncToolbars();
45
+ super.connectedCallback(), this._connectMeasurement(this.#i), this.#s.observe(this.el, { childList: !0 }), this._syncToolbars();
46
46
  }
47
47
  disconnectedCallback() {
48
- this.#t.disconnect(), this.#a.disconnect(), super.disconnectedCallback();
48
+ this.#t.disconnect(), this.#s.disconnect(), super.disconnectedCallback();
49
49
  }
50
50
  _setRulerEl(t) {
51
51
  this.#i !== t && (this.#i = t, this.isConnected && this._connectMeasurement(t));
@@ -58,25 +58,25 @@ class T extends k {
58
58
  e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
59
59
  }
60
60
  _syncToolbars() {
61
- this.#s?.abort();
62
- const t = Array.from(this.el.children).filter(P), e = new AbortController();
63
- this.#s = e, Promise.all(t.map((i) => i.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(() => {
64
64
  !this.isConnected || e.signal.aborted || (this._toolbars = t);
65
65
  });
66
66
  }
67
67
  _arrangeToolbarLines(t, e) {
68
- const i = t.map((s) => {
69
- const d = s.allocate(e, this._availableLength);
70
- return { toolbar: s, budget: d.reduce((g, p) => g + p.budget, 0) };
71
- }), a = [];
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
72
  let o = [], c = 0;
73
- for (const s of i) {
74
- const d = c + (o.length === 0 ? 0 : A) + s.budget;
75
- o.length > 0 && d > this._availableLength ? (a.push(o), o = [s], c = s.budget) : (o.push(s), c = d);
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);
76
76
  }
77
- o.length > 0 && a.push(o);
78
- const [h, l] = e.relativePosition.split("-"), n = e.layout === "vertical";
79
- return (n ? l === "right" : h === "bottom") && a.reverse(), (n ? h === "bottom" : l === "right") && a.forEach((s) => s.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;
80
80
  }
81
81
  #o;
82
82
  render() {
@@ -89,20 +89,21 @@ class T extends k {
89
89
  layout: this.layout,
90
90
  relativePosition: this.effectiveRelativeDirection,
91
91
  scale: this.scale,
92
- tooltipAppearance: this.tooltipAppearance
92
+ tooltipAppearance: this.tooltipAppearance,
93
+ toolbarKind: this.toolbarKind
93
94
  }, i = this._arrangeToolbarLines(t, e);
94
- M(this.#o, i) || (this.#e.moveAllToCache(), this.#o = i.map((l) => l.map(({ toolbar: n }) => n)));
95
- const [a, o] = e.relativePosition.split("-"), c = this.layout === "vertical" ? a : o, h = this.#e;
96
- return m`<div class="stack" data-horizontal-position=${o ?? b}><div class="ruler" ${v(this._setRulerEl)}></div><div class="toolbar-stack">${i.map((l) => m`<div class="line" data-alignment=${c ?? b}>${l.map(({ toolbar: n, budget: u }) => C(h, n, n.proxiedRender(e, u, this.toolbarKind)))}</div>`)}</div></div>`;
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>`;
97
98
  }
98
99
  }
99
- function P(r) {
100
- return r.localName === "arcgis-toolbar";
100
+ function w(l) {
101
+ return l.localName === "arcgis-toolbar";
101
102
  }
102
- function M(r, t) {
103
- return r?.length === t.length && t.every((e, i) => e.length === r[i].length && e.every(({ toolbar: a }, o) => a === r[i][o]));
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]));
104
105
  }
105
- f("arcgis-toolbar-stack", T);
106
+ p("arcgis-toolbar-stack", M);
106
107
  export {
107
- T as ArcgisToolbarStack
108
+ M as ArcgisToolbarStack
108
109
  };