@arcgis/common-components 6.0.0-next.32 → 6.0.0-next.34

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 (50) hide show
  1. package/dist/cdn/2K4XK5CC.js +2 -0
  2. package/dist/cdn/32JRESCI.js +2 -0
  3. package/dist/cdn/{7WN227WZ.js → 4L362IQJ.js} +24 -24
  4. package/dist/cdn/5TNOGXJJ.js +2 -0
  5. package/dist/cdn/D4JWM5PW.js +2 -0
  6. package/dist/cdn/E5VIZW6M.js +2 -0
  7. package/dist/cdn/{W7CWMG2O.js → HWVDNUPX.js} +1 -1
  8. package/dist/cdn/RYVWIAKZ.js +2 -0
  9. package/dist/cdn/UFSM3GRY.js +2 -0
  10. package/dist/cdn/WIOMW22N.js +2 -0
  11. package/dist/cdn/index.js +1 -1
  12. package/dist/chunks/intrinsic-sizing.js +18 -0
  13. package/dist/components/arcgis-ckeditor5/customElement.d.ts +0 -9
  14. package/dist/components/arcgis-ckeditor5/customElement.js +1207 -1207
  15. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +0 -6
  16. package/dist/components/arcgis-ckeditor5-popover/customElement.js +14 -17
  17. package/dist/components/arcgis-color-input/customElement.d.ts +0 -20
  18. package/dist/components/arcgis-color-input/customElement.js +18 -18
  19. package/dist/components/arcgis-field-info/customElement.d.ts +0 -3
  20. package/dist/components/arcgis-field-info/customElement.js +41 -41
  21. package/dist/components/arcgis-field-pick-list/customElement.d.ts +0 -28
  22. package/dist/components/arcgis-field-pick-list/customElement.js +114 -127
  23. package/dist/components/arcgis-slider-input/customElement.d.ts +0 -3
  24. package/dist/components/arcgis-slider-input/customElement.js +13 -13
  25. package/dist/components/arcgis-toolbar/customElement.d.ts +20 -0
  26. package/dist/components/arcgis-toolbar/customElement.js +40 -37
  27. package/dist/components/arcgis-toolbar-stack/customElement.d.ts +9 -2
  28. package/dist/components/arcgis-toolbar-stack/customElement.js +49 -51
  29. package/dist/docs/api.json +1 -1
  30. package/dist/docs/docs.json +1 -1
  31. package/dist/docs/vscode.html-custom-data.json +1 -1
  32. package/dist/docs/web-types.json +1 -1
  33. package/dist/index.d.ts +0 -20
  34. package/dist/loader.js +4 -4
  35. package/dist/types/lumina.d.ts +4 -30
  36. package/dist/types/preact.d.ts +4 -30
  37. package/dist/types/react.d.ts +4 -30
  38. package/dist/types/stencil.d.ts +4 -30
  39. package/dist/utils/types.d.ts +0 -12
  40. package/package.json +7 -7
  41. package/dist/cdn/2S4SSY4K.js +0 -2
  42. package/dist/cdn/3UAY23XT.js +0 -2
  43. package/dist/cdn/BMR5AH6W.js +0 -2
  44. package/dist/cdn/GZVXOCN5.js +0 -2
  45. package/dist/cdn/KEQPWVA6.js +0 -2
  46. package/dist/cdn/OUPGMHLD.js +0 -2
  47. package/dist/cdn/U6OGOB7D.js +0 -2
  48. package/dist/cdn/VNC7X43V.js +0 -2
  49. package/dist/chunks/toolbar.js +0 -9
  50. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
@@ -1,45 +1,47 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
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";
2
+ import { c as g } from "../../chunks/runtime.js";
3
+ import { ref as m } from "lit/directives/ref.js";
4
+ import { html as h } from "lit";
5
+ import { keyed as b } from "lit/directives/keyed.js";
6
+ import { LitElement as f, createEvent as v, safeStyleMap as c } from "@arcgis/lumina";
7
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";
8
+ import { s as _, a as $, b as R, c as z, r as B } from "../../chunks/intrinsic-sizing.js";
9
9
  import { a as l } from "../../chunks/utils.js";
10
- import { i as C } from "../../chunks/types.js";
11
- class w extends b {
10
+ import { i as L } from "../../chunks/types.js";
11
+ class w extends f {
12
12
  constructor() {
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) => {
13
+ super(), this.#t = new ResizeObserver((t) => this._updateMeasurement(t)), this.#e = new MutationObserver(() => this._syncGroups()), this.#i = 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 = _(), this.listen("arcgisInternalLayoutUpdate", (t) => {
17
+ }, this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.arcgisInternalLayoutUpdate = v(), 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
  }
21
21
  static {
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 };
22
+ this.properties = { _observedSize: 16, _availableLength: 16, _groups: 16, _renderedBar: 16, _hydratedRenderedBar: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3, allocatedLength: 11, barElement: 32, effectiveRelativeDirection: 16 };
23
23
  }
24
24
  static {
25
- this.styles = [v, $, R, B];
25
+ this.styles = [_, $, R, z];
26
26
  }
27
27
  #t;
28
+ #e;
28
29
  #r;
29
30
  #i;
30
- #s;
31
- #e;
31
+ get _availableLength() {
32
+ return this.allocatedLength ?? (this.layout === "horizontal" ? this._observedSize?.width : this._observedSize?.height) ?? 0;
33
+ }
32
34
  get layout() {
33
35
  return this._layout;
34
36
  }
35
37
  set layout(t) {
36
- t !== this._layout && (this._layout = t, this._updateMeasurement());
38
+ t !== this._layout && (this._layout = t);
37
39
  }
38
40
  get barElement() {
39
41
  return this._hydratedRenderedBar;
40
42
  }
41
43
  get effectiveRelativeDirection() {
42
- const [t, e] = this.relativePosition.split("-"), r = this.#s;
44
+ const [t, e] = this.relativePosition.split("-"), r = this.#i;
43
45
  switch (e) {
44
46
  case "left":
45
47
  case "right":
@@ -54,39 +56,36 @@ class w extends b {
54
56
  const e = this._groups;
55
57
  if (!e?.length)
56
58
  return [0];
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
+ const s = e.map((i) => i.measure(t)).reduce((i, a) => i.flatMap((o) => a.map((n) => o + n)), [0]).map((i) => l(e, t, i).reduce((a, { budget: o }) => a + o, 0));
60
+ return Array.from(new Set(s)).sort((i, a) => i - a);
61
+ }
62
+ measureIntrinsicSize(t) {
63
+ const e = this._groups ?? [], r = (s) => l(e, t, s).reduce((i, { budget: a }) => i + a, 0);
64
+ return { minimum: r(0), maximum: r(1 / 0) };
59
65
  }
60
66
  allocate(t, e) {
61
67
  const r = this._groups;
62
68
  return r?.length ? l(r, t, e) : [];
63
69
  }
64
- proxiedRender(t, e, r = this.toolbarKind, o = e) {
70
+ proxiedRender(t, e, r = this.toolbarKind, s = e) {
65
71
  if (!this._groups?.length)
66
72
  return;
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>`);
73
+ const a = this.allocate(t, e), [o, n] = t.relativePosition.split("-"), d = t.layout === "horizontal" ? { maxWidth: `${s}px` } : { maxHeight: `${s}px` };
74
+ return b(this, h`<div class=${`toolbar-grid-wrapper ${n} ${o}`} style=${c(d)}><div class="toolbar-shadow-wrapper" style=${c(d)}><calcite-action-bar expand-toggle-disabled .floating=${r === "floating"} .layout=${t.layout} overflow-mode=none .scale=${t.scale} ${m(this._setRenderedBar)}>${a.map(({ group: u, budget: p }) => u.proxiedRender(t, p))}</calcite-action-bar></div></div>`);
69
75
  }
70
76
  connectedCallback() {
71
- super.connectedCallback(), this._connectMeasurement(this.#e), this.#r.observe(this.el, { childList: !0 }), this._syncGroups();
77
+ super.connectedCallback(), this.el.parentElement?.localName !== "arcgis-toolbar-stack" && this.#t.observe(this.el), this.#e.observe(this.el, { childList: !0 }), this._syncGroups();
72
78
  }
73
79
  disconnectedCallback() {
74
- this.#t.disconnect(), this.#r.disconnect(), super.disconnectedCallback();
75
- }
76
- _setRulerEl(t) {
77
- this.#e !== t && (this.#e = t, this.isConnected && this._connectMeasurement(t));
78
- }
79
- _connectMeasurement(t) {
80
- this.#t.disconnect(), t && (this.#t.observe(t), this._updateMeasurement());
80
+ this.#t.disconnect(), this.#e.disconnect(), super.disconnectedCallback();
81
81
  }
82
82
  _updateMeasurement(t) {
83
- const e = t?.at(0)?.contentRect ?? this.#e?.getBoundingClientRect();
84
- e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
83
+ this._observedSize = t?.at(0)?.contentRect;
85
84
  }
86
85
  _syncGroups() {
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(() => {
86
+ this.#r?.abort();
87
+ const t = Array.from(this.el.children).filter(L), e = new AbortController();
88
+ this.#r = e, Promise.all(t.map((r) => r.componentOnReady())).then(() => {
90
89
  !this.isConnected || e.signal.aborted || (this._groups = t, this.arcgisInternalLayoutUpdate.emit());
91
90
  });
92
91
  }
@@ -99,11 +98,15 @@ class w extends b {
99
98
  scale: this.scale,
100
99
  tooltipAppearance: this.tooltipAppearance,
101
100
  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)}`;
101
+ }, r = this.allocate(e, this._availableLength).reduce((s, { budget: i }) => s + i, 0);
102
+ if (this.allocatedLength === void 0) {
103
+ const { minimum: s, maximum: i } = this.measureIntrinsicSize(e);
104
+ return h`<div class="intrinsic-sizing-container">${B(s, i, this.layout)}${this.proxiedRender(e, r, this.toolbarKind, this._availableLength)}</div>`;
105
+ }
106
+ return this.proxiedRender(e, r, this.toolbarKind, this._availableLength);
104
107
  }
105
108
  }
106
- m("arcgis-toolbar", w);
109
+ g("arcgis-toolbar", w);
107
110
  export {
108
111
  w as ArcgisToolbar
109
112
  };
@@ -7,8 +7,8 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
7
7
  * This is intended to be relatively simple; toolbars are 'stacked' vertically and horizontally
8
8
  * according to layout, docking behavior, and available space.
9
9
  *
10
- * A single ruler element is shared across toolbars to simplify the calculations and avoid
11
- * issues (e.g. if the toolbar is offset relative to another toolbar, that would affect the positioning of the ruler element).
10
+ * The stack observes its own content box or accepts an external allocation, so every
11
+ * toolbar receives the same available length regardless of its position within the stack.
12
12
  *
13
13
  * The general rule is the input order of the toolbar elements determines the semantic priority. Based on that priority,
14
14
  * higher priority elements are stuck to the outside, with smaller/lower priority elements flowing towards the center.
@@ -16,6 +16,13 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
16
16
  * @internal
17
17
  */
18
18
  export abstract class ArcgisToolbarStack extends LitElement {
19
+ /**
20
+ * Main-axis budget in pixels. Undefined (the default) enables intrinsic sizing:
21
+ * CSS determines the stack's size, and its observed content box supplies the budget.
22
+ * Specifying a value, including zero, disables intrinsic sizing and directly controls
23
+ * the budget used to arrange and collapse toolbars. CSS can still constrain the host.
24
+ */
25
+ accessor allocatedLength: number | undefined;
19
26
  /** Toolbar orientation */
20
27
  accessor layout: "horizontal" | "vertical";
21
28
  /**
@@ -1,30 +1,31 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as p } from "../../chunks/runtime.js";
3
- import { ref as v } from "lit/directives/ref.js";
2
+ import { c as v } from "../../chunks/runtime.js";
4
3
  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 {
4
+ import { LitElement as y, nothing as k } from "@arcgis/lumina";
5
+ import { useDirection as z } from "@arcgis/lumina/controllers";
6
+ import { s as _, a as L, b as C, c as $, r as x } from "../../chunks/intrinsic-sizing.js";
7
+ import { S as A, s as S } from "../../chunks/sharedCacheDirective.js";
8
+ 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%}:host(:not([allocated-length])){.toolbar-stack{grid-area:1 / 1;min-inline-size:0;min-block-size:0}.toolbar-grid-wrapper{flex:1 1 auto}}`, m = 8;
9
+ class P extends y {
11
10
  constructor() {
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());
11
+ super(), this.#i = new ResizeObserver((t) => this._updateMeasurement(t)), this.#o = new MutationObserver(() => this._syncToolbars()), this.#a = z(), this.#t = new A(), this._layout = "horizontal", this.scale = "m", this.tooltipAppearance = "native", this.relativePosition = "top-left", this.toolbarKind = "floating", this.listen("arcgisInternalLayoutUpdate", () => this.requestUpdate());
13
12
  }
14
13
  static {
15
- this.properties = { _availableLength: 16, _toolbars: 16, effectiveRelativeDirection: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3 };
14
+ this.properties = { _observedSize: 16, _availableLength: 16, _toolbars: 16, effectiveRelativeDirection: 16, layout: 3, scale: 3, tooltipAppearance: 1, relativePosition: 1, toolbarKind: 3, allocatedLength: 11 };
16
15
  }
17
16
  static {
18
- this.styles = [T, L, C, R, $];
17
+ this.styles = [T, _, L, C, $];
19
18
  }
20
- #t;
19
+ #i;
20
+ #o;
21
21
  #s;
22
22
  #a;
23
- #n;
24
- #e;
25
- #i;
23
+ #t;
24
+ get _availableLength() {
25
+ return this.allocatedLength ?? (this.layout === "horizontal" ? this._observedSize?.width : this._observedSize?.height) ?? 0;
26
+ }
26
27
  get effectiveRelativeDirection() {
27
- const [t, e] = this.relativePosition.split("-"), i = this.#n;
28
+ const [t, e] = this.relativePosition.split("-"), i = this.#a;
28
29
  switch (e) {
29
30
  case "left":
30
31
  case "right":
@@ -39,50 +40,47 @@ class M extends y {
39
40
  return this._layout;
40
41
  }
41
42
  set layout(t) {
42
- t !== this._layout && (this._layout = t, this._updateMeasurement());
43
+ t !== this._layout && (this._layout = t);
43
44
  }
44
45
  connectedCallback() {
45
- super.connectedCallback(), this._connectMeasurement(this.#i), this.#s.observe(this.el, { childList: !0 }), this._syncToolbars();
46
+ super.connectedCallback(), this.#i.observe(this.el), this.#o.observe(this.el, { childList: !0 }), this._syncToolbars();
46
47
  }
47
48
  disconnectedCallback() {
48
- this.#t.disconnect(), this.#s.disconnect(), super.disconnectedCallback();
49
- }
50
- _setRulerEl(t) {
51
- this.#i !== t && (this.#i = t, this.isConnected && this._connectMeasurement(t));
52
- }
53
- _connectMeasurement(t) {
54
- this.#t.disconnect(), t && (this.#t.observe(t), this._updateMeasurement());
49
+ this.#i.disconnect(), this.#o.disconnect(), super.disconnectedCallback();
55
50
  }
56
51
  _updateMeasurement(t) {
57
- const e = t?.at(0)?.contentRect ?? this.#i?.getBoundingClientRect();
58
- e && (this._availableLength = this.layout === "horizontal" ? e.width : e.height);
52
+ this._observedSize = t?.at(0)?.contentRect;
59
53
  }
60
54
  _syncToolbars() {
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(() => {
55
+ this.#s?.abort();
56
+ const t = Array.from(this.el.children).filter(R), e = new AbortController();
57
+ this.#s = e, Promise.all(t.map((i) => i.componentOnReady())).then(() => {
64
58
  !this.isConnected || e.signal.aborted || (this._toolbars = t);
65
59
  });
66
60
  }
67
61
  _arrangeToolbarLines(t, e) {
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);
62
+ const i = t.map((n) => {
63
+ const d = n.allocate(e, this._availableLength);
64
+ return { toolbar: n, budget: d.reduce((g, p) => g + p.budget, 0) };
65
+ }), a = [];
66
+ let o = [], s = 0;
67
+ for (const n of i) {
68
+ const d = s + (o.length === 0 ? 0 : m) + n.budget;
69
+ o.length > 0 && (this.toolbarKind === "docked" || d > this._availableLength) ? (a.push(o), o = [n], s = n.budget) : (o.push(n), s = d);
76
70
  }
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;
71
+ o.length > 0 && a.push(o);
72
+ const [c, h] = e.relativePosition.split("-"), r = e.layout === "vertical";
73
+ return (r ? h === "right" : c === "bottom") && a.reverse(), (r ? c === "bottom" : h === "right") && a.forEach((n) => n.reverse()), a;
74
+ }
75
+ #e;
76
+ _renderIntrinsicSizeContribution(t, e) {
77
+ const i = t.map((s) => s.measureIntrinsicSize(e)), a = this.toolbarKind === "docked" ? Math.max(...i.map(({ maximum: s }) => s)) : i.reduce((s, { maximum: c }) => s + c, 0) + m * (t.length - 1), o = Math.max(...i.map(({ minimum: s }) => s));
78
+ return x(o, a, this.layout);
80
79
  }
81
- #o;
82
80
  render() {
83
81
  const t = this._toolbars;
84
82
  if (!t?.length) {
85
- this.#o?.length && (this.#e.moveAllToCache(), this.#o = []);
83
+ this.#e?.length && (this.#t.moveAllToCache(), this.#e = []);
86
84
  return;
87
85
  }
88
86
  const e = {
@@ -92,18 +90,18 @@ class M extends y {
92
90
  tooltipAppearance: this.tooltipAppearance,
93
91
  toolbarKind: this.toolbarKind
94
92
  }, 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>`;
93
+ w(this.#e, i) || (this.#t.moveAllToCache(), this.#e = i.map((h) => h.map(({ toolbar: r }) => r)));
94
+ const [a, o] = e.relativePosition.split("-"), s = this.layout === "vertical" ? a : o, c = this.#t;
95
+ return b`<div class="stack intrinsic-sizing-container">${this.allocatedLength === void 0 && this._renderIntrinsicSizeContribution(t, e) || ""}<div class="toolbar-stack">${i.map((h) => b`<div class="line" data-alignment=${s ?? k}>${h.map(({ toolbar: r, budget: u }) => S(c, r, r.proxiedRender(e, u, this.toolbarKind, this._availableLength)))}</div>`)}</div></div>`;
98
96
  }
99
97
  }
100
- function w(l) {
98
+ function R(l) {
101
99
  return l.localName === "arcgis-toolbar";
102
100
  }
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]));
101
+ function w(l, t) {
102
+ return l?.length === t.length && t.every((e, i) => e.length === l[i].length && e.every(({ toolbar: a }, o) => a === l[i][o]));
105
103
  }
106
- p("arcgis-toolbar-stack", M);
104
+ v("arcgis-toolbar-stack", P);
107
105
  export {
108
- M as ArcgisToolbarStack
106
+ P as ArcgisToolbarStack
109
107
  };