@arcgis/common-components 5.2.0-next.140 → 5.2.0-next.142

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 (108) hide show
  1. package/dist/cdn/{YEFEVEP6.js → 2E2QBY2J.js} +2 -2
  2. package/dist/cdn/{BZFAYVKR.js → 2IDDI3CL.js} +2 -2
  3. package/dist/cdn/{UIBTY5FF.js → 4LQHU5XS.js} +2 -2
  4. package/dist/cdn/{SANPZYEG.js → 4TZVXSQZ.js} +2 -2
  5. package/dist/cdn/{CKGWDI7B.js → 5DN7BGGJ.js} +2 -2
  6. package/dist/cdn/{LLATF73T.js → 5ESJPPJ3.js} +2 -2
  7. package/dist/cdn/{3TY4GT5J.js → 5IM4X2GT.js} +1 -1
  8. package/dist/cdn/{DR2THZQU.js → 6HVKL3BT.js} +2 -2
  9. package/dist/cdn/{QCUF7B3I.js → 6KPYL34Q.js} +2 -2
  10. package/dist/cdn/{KDCSDIUQ.js → 7YKS2UHU.js} +2 -2
  11. package/dist/cdn/{3AFEXHZ5.js → A72IJUIB.js} +2 -2
  12. package/dist/cdn/{ZCVP2N2O.js → DBBRUMRI.js} +2 -2
  13. package/dist/cdn/{OIGA7XBZ.js → DE72K2VB.js} +2 -2
  14. package/dist/cdn/{HYFFUYAU.js → EPTIOSEA.js} +2 -2
  15. package/dist/cdn/{OMROUY3L.js → FVQ64IB5.js} +2 -2
  16. package/dist/cdn/{XX2ZCFWI.js → H4Q2JVNO.js} +1 -1
  17. package/dist/cdn/{ATLXGXTH.js → HCF255AI.js} +2 -2
  18. package/dist/cdn/{BCN6LPOG.js → HS7W72ER.js} +2 -2
  19. package/dist/cdn/HX33VLI3.js +2 -0
  20. package/dist/cdn/{5EA7SGHX.js → IFXBIZ77.js} +2 -2
  21. package/dist/cdn/{M3SFEFPX.js → J352X4QU.js} +2 -2
  22. package/dist/cdn/{JTQN5KMG.js → JWK6KCSN.js} +2 -2
  23. package/dist/cdn/{735FTIBP.js → KQS6BKLU.js} +2 -2
  24. package/dist/cdn/{S4XOD4YS.js → KWLXXTWN.js} +2 -2
  25. package/dist/cdn/{OTWADB4M.js → KWZ7LGK2.js} +2 -2
  26. package/dist/cdn/{DPJGC3YQ.js → L7XGWJZF.js} +2 -2
  27. package/dist/cdn/{M2J3GPM4.js → LON5GSEV.js} +2 -2
  28. package/dist/cdn/{IECXEZNI.js → LZ4RIDXD.js} +2 -2
  29. package/dist/cdn/{LNXO5YIS.js → M3SD6ANM.js} +2 -2
  30. package/dist/cdn/{XUPA27AW.js → MXGA3EHW.js} +2 -2
  31. package/dist/cdn/{34AP2EEB.js → N25TUHM4.js} +2 -2
  32. package/dist/cdn/{HJ3EJZFF.js → NCKLLNHD.js} +2 -2
  33. package/dist/cdn/{TXQKK4DJ.js → NPVQBA5D.js} +2 -2
  34. package/dist/cdn/{X6DNIKWY.js → NZEZVGEW.js} +2 -2
  35. package/dist/cdn/{32MHBJSZ.js → O4H2JR53.js} +1 -1
  36. package/dist/cdn/{5KBPWYPL.js → PMV2N3L3.js} +1 -1
  37. package/dist/cdn/{EM4OQXFS.js → RMIP56UK.js} +2 -2
  38. package/dist/cdn/{EB5MDEWF.js → SQZNAETL.js} +2 -2
  39. package/dist/cdn/{I7YBGXB2.js → UGWLCTVM.js} +1 -1
  40. package/dist/cdn/{GDRW3MIZ.js → WJQZVHBV.js} +2 -2
  41. package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
  42. package/dist/cdn/{ZGYD3GAS.js → XMT7CNQG.js} +2 -2
  43. package/dist/cdn/{D4UHHQ35.js → XVHY4R5V.js} +2 -2
  44. package/dist/cdn/Y2G4R4SG.js +2 -0
  45. package/dist/cdn/{CFEMTMZX.js → Y5Y7IXOV.js} +1 -1
  46. package/dist/cdn/{MFGUTQRR.js → YNJHUBFL.js} +2 -2
  47. package/dist/cdn/{TTFTN2LD.js → Z5QBBHLD.js} +1 -1
  48. package/dist/cdn/{5XRYXPOX.js → ZYTTDRIG.js} +2 -2
  49. package/dist/cdn/index.js +2 -2
  50. package/dist/chunks/element-reference-controller.js +1 -1
  51. package/dist/chunks/general.js +1 -1
  52. package/dist/chunks/internal-types.js +1 -1
  53. package/dist/chunks/layer-utils.js +1 -1
  54. package/dist/chunks/locale.js +1 -1
  55. package/dist/chunks/resources.js +1 -1
  56. package/dist/chunks/runtime.js +2 -2
  57. package/dist/chunks/strategies.js +1 -1
  58. package/dist/chunks/toolbar.js +1 -1
  59. package/dist/chunks/types.js +1 -1
  60. package/dist/chunks/useT9n.js +1 -1
  61. package/dist/chunks/utils.js +1 -1
  62. package/dist/chunks/utils2.js +1 -1
  63. package/dist/chunks/utils3.js +1 -1
  64. package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
  65. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  66. package/dist/components/arcgis-color-input/customElement.js +1 -1
  67. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  68. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +1 -1
  69. package/dist/components/arcgis-field-info/customElement.js +1 -1
  70. package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
  71. package/dist/components/arcgis-histogram/customElement.d.ts +8 -0
  72. package/dist/components/arcgis-histogram/customElement.js +104 -99
  73. package/dist/components/arcgis-label-input/customElement.js +1 -1
  74. package/dist/components/arcgis-picker-input/customElement.js +1 -1
  75. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  76. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  77. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  78. package/dist/components/arcgis-slider/customElement.js +1 -1
  79. package/dist/components/arcgis-slider-field/customElement.js +1 -1
  80. package/dist/components/arcgis-slider-histogram-range/customElement.js +1 -1
  81. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  82. package/dist/components/arcgis-ticks/customElement.js +1 -1
  83. package/dist/components/arcgis-toolbar/customElement.js +1 -1
  84. package/dist/components/arcgis-toolbar-action/customElement.js +1 -1
  85. package/dist/components/arcgis-toolbar-group/customElement.js +1 -1
  86. package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
  87. package/dist/components/arcgis-toolbar-more-button/customElement.js +1 -1
  88. package/dist/components/arcgis-toolbar-split-button/customElement.js +1 -1
  89. package/dist/components/arcgis-toolbar-stack/customElement.js +1 -1
  90. package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
  91. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  92. package/dist/components/arcgis-value-picker-collection/customElement.js +1 -1
  93. package/dist/components/arcgis-value-picker-combobox/customElement.js +1 -1
  94. package/dist/components/arcgis-value-picker-label/customElement.js +1 -1
  95. package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
  96. package/dist/docs/api.json +1 -1
  97. package/dist/docs/docs.json +1 -1
  98. package/dist/docs/vscode.html-custom-data.json +1 -1
  99. package/dist/docs/web-types.json +1 -1
  100. package/dist/index.js +1 -1
  101. package/dist/loader.js +2 -2
  102. package/dist/types/lumina.d.ts +1 -1
  103. package/dist/types/preact.d.ts +1 -1
  104. package/dist/types/react.d.ts +1 -1
  105. package/dist/types/stencil.d.ts +1 -1
  106. package/package.json +5 -5
  107. package/dist/cdn/7TCQ52FG.js +0 -2
  108. package/dist/cdn/TO3YFXVJ.js +0 -2
@@ -1,202 +1,207 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as M } from "../../chunks/runtime.js";
3
- import { u as k } from "../../chunks/useT9n.js";
4
- import { substitute as E } from "@arcgis/core/intl.js";
5
- import { LitElement as F, nothing as h, safeStyleMap as x, safeClassMap as I } from "@arcgis/lumina";
6
- import { css as O, html as y, svg as d } from "lit";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as k } from "../../chunks/runtime.js";
3
+ import { u as E } from "../../chunks/useT9n.js";
4
+ import { substitute as F } from "@arcgis/core/intl.js";
5
+ import { LitElement as I, nothing as u, safeStyleMap as w, safeClassMap as z } from "@arcgis/lumina";
6
+ import { css as O, html as D, svg as d } from "lit";
7
7
  import { a as R } from "../../chunks/locale.js";
8
- const z = O`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;
9
- function S(t, i, n, e, r) {
10
- const [s, a] = r;
11
- if (!t || a === 0 || s === 0 || n == null || i == null)
8
+ const S = O`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;
9
+ function B(t, r, n, e, i, s) {
10
+ const [a, o] = i;
11
+ if (!t || o === 0 || a === 0 || n == null || r == null)
12
12
  return null;
13
- const o = n - i, l = (t.length > 1 ? t[t.length - 1].maxValue - t[0].minValue : 0) / o, [u, g] = e === "vertical" ? [a * l, s] : [a, s * l], p = t ? t.map((m) => m.count) : [], f = Math.max(...p);
13
+ const l = n - r, h = (t.length > 1 ? t[t.length - 1].maxValue - t[0].minValue : 0) / l, [g, p] = e === "vertical" ? [o * h, a] : [o, a * h], $ = t ? t.map((m) => m.count) : [], f = Math.max(...$);
14
14
  return t.map((m) => {
15
- const [b, v] = e === "vertical" ? [u / t.length, f !== 0 ? m.count / f * g : 0] : [f !== 0 ? m.count / f * u : 0, g / t.length], { maxValue: C } = m, $ = n - C, [L, _] = e === "vertical" ? [0, $ * (a / o)] : [s - v - $ * (s / o), a - b];
16
- return [L, _, v, b];
15
+ const [b, v] = e === "vertical" ? [g / t.length, f !== 0 ? m.count / f * p : 0] : [f !== 0 ? m.count / f * g : 0, p / t.length], { maxValue: _ } = m, y = n - _;
16
+ let [x, M] = e === "vertical" ? [0, y * (o / l)] : [a - v - y * (a / l), o - b];
17
+ return s && (x = a - x - v), [x, M, v, b];
17
18
  });
18
19
  }
19
- function B(t, i, n, e, r, s) {
20
- if (e === void 0 || r === void 0)
20
+ function N(t, r, n, e, i, s) {
21
+ if (e === void 0 || i === void 0)
21
22
  return [];
22
23
  const a = [];
23
24
  return t != null && a.push({
24
25
  value: t,
25
26
  symbol: "x̄",
26
27
  lineClass: "average-data-line"
27
- }), i != null && e != null && r != null && a.push(
28
- ...G(e, r, i, n, t)
29
- ), s && a.push(...s), a.filter(({ value: o }) => o >= e && o <= r);
28
+ }), r != null && e != null && i != null && a.push(
29
+ ...Y(e, i, r, n, t)
30
+ ), s && a.push(...s), a.filter(({ value: o }) => o >= e && o <= i);
30
31
  }
31
- function N(t, i, n, e, r) {
32
+ function P(t, r, n, e, i, s) {
32
33
  if (n == null)
33
34
  return [0, 0, 0, 0];
34
- const s = Math.round((r - n) / e * 100) / 100, [a, o] = t;
35
- if (i === "vertical") {
36
- let l = o - s * o || 1;
37
- return l = Math.round(l) + 0.5, [0, "100%", l, l];
35
+ let a = Math.round((i - n) / e * 100) / 100;
36
+ s && r === "horizontal" && (a = 1 - a);
37
+ const [o, l] = t;
38
+ if (r === "vertical") {
39
+ let h = l - a * l || 1;
40
+ return h = Math.round(h) + 0.5, [0, "100%", h, h];
38
41
  }
39
- let c = s * a || 1;
42
+ let c = a * o || 1;
40
43
  return c = Math.round(c) + 0.5, [c, c, "100%", 0];
41
44
  }
42
- function P(t, i, n, e, r) {
45
+ function T(t, r, n, e, i, s) {
43
46
  if (n == null)
44
47
  return [0, 0];
45
- const s = Math.round((r - n) / e * 100) / 100, [a, o] = t;
46
- return i === "vertical" ? [a, o - s * o] : [0, s * a];
48
+ let a = Math.round((i - n) / e * 100) / 100;
49
+ s && r === "horizontal" && (a = 1 - a);
50
+ const [o, l] = t;
51
+ return s && r === "vertical" ? [0, l - a * l] : r === "vertical" ? [o, l - a * l] : [0, a * o];
47
52
  }
48
- function T(t, i, n) {
53
+ function A(t, r, n) {
49
54
  if (!t || t.length === 0)
50
55
  return null;
51
- if (V(t)) {
52
- const e = t.map((r) => ({
53
- ...r,
54
- color: w(r.color ?? n)
56
+ if (L(t)) {
57
+ const e = t.map((i) => ({
58
+ ...i,
59
+ color: V(i.color ?? n)
55
60
  }));
56
61
  return e.unshift({
57
- color: i,
62
+ color: r,
58
63
  minValue: Number.NEGATIVE_INFINITY,
59
64
  maxValue: e[0].minValue
60
65
  }), e.push({
61
- color: i,
66
+ color: r,
62
67
  minValue: e[e.length - 1].maxValue,
63
68
  maxValue: Number.POSITIVE_INFINITY
64
69
  }), e;
65
70
  } else
66
71
  return t.map((e) => ({
67
72
  ...e,
68
- color: w(e.color ?? n)
73
+ color: V(e.color ?? n)
69
74
  }));
70
75
  }
71
- function A(t, i, n, e) {
76
+ function H(t, r, n, e) {
72
77
  if (!t || t.length === 0)
73
78
  return n;
74
- if (V(t)) {
75
- const r = H(t, i);
76
- if (r.length === 0)
79
+ if (L(t)) {
80
+ const i = W(t, r);
81
+ if (i.length === 0)
77
82
  return n;
78
83
  if (e) {
79
- const { color: s = n, weight: a } = r[0], { color: o = n, weight: c } = r[1] ?? r[0], l = a + c;
80
- return `color-mix(in srgb, ${s} ${a / l * 100}%, ${o} ${c / l * 100}%)`;
84
+ const { color: s = n, weight: a } = i[0], { color: o = n, weight: l } = i[1] ?? i[0], c = a + l;
85
+ return `color-mix(in srgb, ${s} ${a / c * 100}%, ${o} ${l / c * 100}%)`;
81
86
  }
82
- return r[0].color ?? n;
87
+ return i[0].color ?? n;
83
88
  }
84
- return W(t, i);
89
+ return G(t, r);
85
90
  }
86
- function H(t, i) {
91
+ function W(t, r) {
87
92
  const n = [];
88
93
  for (const e of t) {
89
- const r = Math.max(0, Math.min(i.maxValue, e.maxValue) - Math.max(i.minValue, e.minValue));
90
- r > 0 && n.push({ color: e.color, weight: r });
94
+ const i = Math.max(0, Math.min(r.maxValue, e.maxValue) - Math.max(r.minValue, e.minValue));
95
+ i > 0 && n.push({ color: e.color, weight: i });
91
96
  }
92
- return n.sort((e, r) => r.weight - e.weight);
97
+ return n.sort((e, i) => i.weight - e.weight);
93
98
  }
94
- function W(t, i) {
95
- const n = (i.maxValue - i.minValue) / 2 + i.minValue;
99
+ function G(t, r) {
100
+ const n = (r.maxValue - r.minValue) / 2 + r.minValue;
96
101
  if (n > t[t.length - 1].value)
97
102
  return t[t.length - 1].color;
98
103
  for (let e = 0; e < t.length - 1; e++) {
99
- const r = t[e], s = t[e + 1];
100
- if (n <= r.value)
101
- return r.color;
104
+ const i = t[e], s = t[e + 1];
105
+ if (n <= i.value)
106
+ return i.color;
102
107
  if (n < s.value) {
103
- const a = (n - r.value) / (s.value - r.value) * 100;
104
- return `color-mix(in srgb, ${r.color}, ${s.color} ${a}%)`;
108
+ const a = (n - i.value) / (s.value - i.value) * 100;
109
+ return `color-mix(in srgb, ${i.color}, ${s.color} ${a}%)`;
105
110
  }
106
111
  }
107
112
  return t[t.length - 1].color;
108
113
  }
109
- function V(t) {
114
+ function L(t) {
110
115
  return t[0] != null && "minValue" in t[0];
111
116
  }
112
- function w(t) {
117
+ function V(t) {
113
118
  if (typeof t == "string")
114
119
  return t;
115
120
  if (Array.isArray(t))
116
121
  return `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3] ?? 1})`;
117
- const { r: i, g: n, b: e, a: r = 1 } = t;
118
- return `rgba(${i}, ${n}, ${e}, ${r})`;
122
+ const { r, g: n, b: e, a: i = 1 } = t;
123
+ return `rgba(${r}, ${n}, ${e}, ${i})`;
119
124
  }
120
- function G(t, i, n, e, r) {
121
- const s = 0.06 * (i - t);
122
- return Y(n, e, r).map((a, o, c) => {
123
- const l = c.length / 2, u = a > r ? "+" : "-", g = o >= l ? o - l + 1 : l - o;
125
+ function Y(t, r, n, e, i) {
126
+ const s = 0.06 * (r - t);
127
+ return U(n, e, i).map((a, o, l) => {
128
+ const c = l.length / 2, h = a > i ? "+" : "-", g = o >= c ? o - c + 1 : c - o;
124
129
  return {
125
- symbol: `${u}${g === 1 ? "" : g}σ`,
130
+ symbol: `${h}${g === 1 ? "" : g}σ`,
126
131
  value: a
127
132
  };
128
- }).filter(({ value: a }) => Math.abs(r - a) > s);
133
+ }).filter(({ value: a }) => Math.abs(i - a) > s);
129
134
  }
130
- function Y(t, i, n) {
135
+ function U(t, r, n) {
131
136
  if (n == null || t == null)
132
137
  return [];
133
- const e = i, r = [];
138
+ const e = r, i = [];
134
139
  for (let s = e * -1; s <= e; s++)
135
- s !== 0 && r.push(n + s * t);
136
- return r;
140
+ s !== 0 && i.push(n + s * t);
141
+ return i;
137
142
  }
138
- const D = "var(--arcgis-histogram-bar-color)", U = "var(--arcgis-histogram-stop-color)";
139
- class j extends F {
143
+ const C = "var(--arcgis-histogram-bar-color)", j = "var(--arcgis-histogram-stop-color)";
144
+ class q extends I {
140
145
  constructor() {
141
- super(...arguments), this._messages = k(), this._normalizedStops = null, this.#t = (i, n) => {
142
- const e = (r) => R(this._messages._lang, this._numberFormatterOptions).format(r);
143
- return this.labelFormatter?.(i, n, e) ?? e(i);
146
+ super(...arguments), this._messages = E(), this._normalizedStops = null, this.#t = (r, n) => {
147
+ const e = (i) => R(this._messages._lang, this._numberFormatterOptions).format(i);
148
+ return this.labelFormatter?.(r, n, e) ?? e(r);
144
149
  }, this._numberFormatterOptions = {
145
150
  maximumFractionDigits: 2
146
- }, this.containerDimensions = [0, 0], this.icon = "graph-histogram", this.layout = "horizontal", this.colorBlendingEnabled = !1, this.standardDeviationCount = 1;
151
+ }, this.containerDimensions = [0, 0], this.icon = "graph-histogram", this.layout = "horizontal", this.mirrored = !1, this.colorBlendingEnabled = !1, this.standardDeviationCount = 1;
147
152
  }
148
153
  static {
149
- this.properties = { containerDimensions: 16, colorStops: 0, icon: 3, labelFormatter: 0, average: 11, messageOverrides: 0, standardDeviation: 11, bins: 0, dataLines: 0, label: 1, layout: 3, max: 11, min: 11, colorBlendingEnabled: 5, standardDeviationCount: 9 };
154
+ this.properties = { containerDimensions: 16, colorStops: 0, icon: 3, labelFormatter: 0, average: 11, messageOverrides: 0, standardDeviation: 11, bins: 0, dataLines: 0, label: 1, layout: 3, max: 11, min: 11, mirrored: 7, colorBlendingEnabled: 5, standardDeviationCount: 9 };
150
155
  }
151
156
  static {
152
- this.styles = z;
157
+ this.styles = S;
153
158
  }
154
159
  #t;
155
160
  loaded() {
156
- const i = new ResizeObserver((r) => {
157
- for (const s of r) {
161
+ const r = new ResizeObserver((i) => {
162
+ for (const s of i) {
158
163
  const { width: a, height: o } = s.contentRect;
159
164
  this.containerDimensions = [a, o];
160
165
  }
161
166
  }), { width: n, height: e } = this.el.getBoundingClientRect();
162
- this.containerDimensions = [n, e], i.observe(this.el);
167
+ this.containerDimensions = [n, e], r.observe(this.el);
163
168
  }
164
- willUpdate(i) {
165
- i.has("colorStops") && (this._normalizedStops = T(this.colorStops, D, U));
169
+ willUpdate(r) {
170
+ r.has("colorStops") && (this._normalizedStops = A(this.colorStops, C, j));
166
171
  }
167
172
  render() {
168
- const { label: i } = this;
169
- return y`<div role=img .ariaLabel=${i ?? void 0} class="content">${this._renderContent()}</div>`;
173
+ const { label: r } = this;
174
+ return D`<div role=img .ariaLabel=${r ?? void 0} class="content">${this._renderContent()}</div>`;
170
175
  }
171
176
  _renderContent() {
172
- const { containerDimensions: [i, n] } = this, e = "bg-fill", r = i ? [
173
- d`<defs><clipPath id=${e}><rect height=${n ?? h} width=${i ?? h} x=0 y=0 /></clipPath></defs>`,
174
- d`<g style=${x({ clipPath: `url(#${e})` })}><g>${this._renderBars()}</g></g>`,
177
+ const { containerDimensions: [r, n] } = this, e = "bg-fill", i = r ? [
178
+ d`<defs><clipPath id=${e}><rect height=${n ?? u} width=${r ?? u} x=0 y=0 /></clipPath></defs>`,
179
+ d`<g style=${w({ clipPath: `url(#${e})` })}><g>${this._renderBars()}</g></g>`,
175
180
  d`<g>${this._renderLines()}</g>`
176
181
  ] : [];
177
- return y`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${r}</svg>`;
182
+ return D`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${i}</svg>`;
178
183
  }
179
184
  _renderBars() {
180
- const { bins: i, _messages: n } = this, e = S(this.bins, this.min, this.max, this.layout, this.containerDimensions);
181
- return !e || !i ? null : e.map((r, s) => {
182
- const [a, o, c, l] = r, u = i[s], g = n?.barLabel ? E(n.barLabel, u) : "";
183
- return d`<rect style=${x({
184
- fill: A(this._normalizedStops, u, D, this.colorBlendingEnabled)
185
- })} .ariaLabel=${g} data-index=${s ?? h} height=${l ?? h} role=img shape-rendering=crispEdges stroke-width=0 width=${c ?? h} x=${a ?? h} y=${o ?? h} />`;
185
+ const { bins: r, _messages: n } = this, e = B(this.bins, this.min, this.max, this.layout, this.containerDimensions, this.mirrored);
186
+ return !e || !r ? null : e.map((i, s) => {
187
+ const [a, o, l, c] = i, h = r[s], g = n?.barLabel ? F(n.barLabel, h) : "";
188
+ return d`<rect style=${w({
189
+ fill: H(this._normalizedStops, h, C, this.colorBlendingEnabled)
190
+ })} .ariaLabel=${g} data-index=${s ?? u} height=${c ?? u} role=img shape-rendering=crispEdges stroke-width=0 width=${l ?? u} x=${a ?? u} y=${o ?? u} />`;
186
191
  });
187
192
  }
188
193
  _renderLines() {
189
- return B(this.average, this.standardDeviation, this.standardDeviationCount, this.min, this.max, this.dataLines)?.map((n) => q({ dataLine: n, containerDimensions: this.containerDimensions, layout: this.layout, min: this.min, max: this.max, labelFormatter: this.#t }));
194
+ return N(this.average, this.standardDeviation, this.standardDeviationCount, this.min, this.max, this.dataLines)?.map((n) => J({ dataLine: n, containerDimensions: this.containerDimensions, layout: this.layout, min: this.min, max: this.max, labelFormatter: this.#t, mirrored: this.mirrored }));
190
195
  }
191
196
  }
192
- const q = (t) => {
193
- const { containerDimensions: i, layout: n, min: e, max: r, dataLine: s, labelFormatter: a } = t, o = r != null && e != null ? r - e : 0, [c, l, u, g] = N(i, n, e, o, s.value), [p, f] = P(i, n, e, o, s.value), m = "symbol" in s ? [
197
+ const J = (t) => {
198
+ const { containerDimensions: r, layout: n, min: e, max: i, dataLine: s, labelFormatter: a, mirrored: o } = t, l = i != null && e != null ? i - e : 0, [c, h, g, p] = P(r, n, e, l, s.value, o), [$, f] = T(r, n, e, l, s.value, o), m = "symbol" in s ? [
194
199
  d`<tspan class="data-line-symbol">${s.symbol}</tspan>`,
195
200
  d`<tspan>${a(s.value, s.lineClass === "average-data-line" ? "average" : "standard-deviation")}</tspan>`
196
201
  ] : s.label, b = "lineClass" in s && s.lineClass ? s.lineClass : "data-line";
197
- return d`<g><title>${s.value}</title><line class=${I(b)} shape-rendering=crispEdges x1=${c ?? h} x2=${l ?? h} y1=${u ?? h} y2=${g ?? h} /><text class="label" text-anchor=end transform=${(n === "horizontal" ? "rotate(270)" : void 0) ?? h} x=${p ?? h} y=${f - 2}>${m}</text></g>`;
202
+ return d`<g><title>${s.value}</title><line class=${z(b)} shape-rendering=crispEdges x1=${c ?? u} x2=${h ?? u} y1=${g ?? u} y2=${p ?? u} /><text class="label" text-anchor=${o && n === "vertical" ? "start" : "end"} transform=${(n === "horizontal" ? "rotate(270)" : void 0) ?? u} x=${$ ?? u} y=${f - 2}>${m}</text></g>`;
198
203
  };
199
- M("arcgis-histogram", j);
204
+ k("arcgis-histogram", q);
200
205
  export {
201
- j as ArcgisHistogram
206
+ q as ArcgisHistogram
202
207
  };
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as r } from "../../chunks/runtime.js";
3
3
  import { formatNumber as o } from "@arcgis/core/intl.js";
4
4
  import { LitElement as u, createEvent as c, safeClassMap as h } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as n } from "../../chunks/runtime.js";
3
3
  import { css as l, html as o } from "lit";
4
4
  import { LitElement as a, createEvent as i, safeStyleMap as r } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as f } from "../../chunks/runtime.js";
3
3
  import w from "@arcgis/core/Color.js";
4
4
  import { LitElement as x, nothing as u, safeClassMap as C } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as l } from "../../chunks/runtime.js";
3
3
  import { LitElement as m } from "@arcgis/lumina";
4
4
  import { css as p, html as c } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c } from "../../chunks/runtime.js";
3
3
  import t from "@arcgis/core/Color.js";
4
4
  import { LitElement as e } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as ee } from "../../chunks/runtime.js";
3
3
  import { keyed as te } from "lit/directives/keyed.js";
4
4
  import { LitElement as ae, createEvent as M, safeClassMap as T, safeStyleMap as F, nothing as E } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as m } from "../../chunks/runtime.js";
3
3
  import { LitElement as u, createEvent as n } from "@arcgis/lumina";
4
4
  import { css as g, html as c } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c } from "../../chunks/runtime.js";
3
3
  import { sqlName as p, sqlLiteral as b } from "@arcgis/core/core/sql.js";
4
4
  import { LitElement as v, createEvent as d, safeStyleMap as f } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
3
  import { css as m, html as o } from "lit";
4
4
  import { LitElement as b, createEvent as p } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as M } from "../../chunks/runtime.js";
3
3
  import { css as C, html as h } from "lit";
4
4
  import { LitElement as F, createEvent as L, safeClassMap as o, nothing as y, safeStyleMap as m } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
3
  import { ref as l } from "lit/directives/ref.js";
4
4
  import { html as c } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as p } from "../../chunks/runtime.js";
3
3
  import { ref as u } from "lit/directives/ref.js";
4
4
  import { css as g, html as o } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
3
  import { html as p } from "lit";
4
4
  import { LitElement as u, nothing as h } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as f } from "../../chunks/runtime.js";
3
3
  import { html as n } from "lit";
4
4
  import { ref as $ } from "lit/directives/ref.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as A } from "../../chunks/runtime.js";
3
3
  import { ref as u } from "lit/directives/ref.js";
4
4
  import { html as m } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as y } from "../../chunks/runtime.js";
3
3
  import { ref as $ } from "lit/directives/ref.js";
4
4
  import { html as d } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as k } from "../../chunks/runtime.js";
3
3
  import { ref as _ } from "lit/directives/ref.js";
4
4
  import { css as C, render as w, nothing as P, html as p } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as P } from "../../chunks/runtime.js";
3
3
  import { keyed as G } from "lit/directives/keyed.js";
4
4
  import { LitElement as J, createEvent as T } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as r } from "../../chunks/runtime.js";
3
3
  import { LitElement as c, createEvent as i, nothing as l, safeClassMap as h } from "@arcgis/lumina";
4
4
  import { getSlotAssignedElements as d } from "@arcgis/toolkit/dom/slots";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as s } from "../../chunks/runtime.js";
3
3
  import { LitElement as i } from "@arcgis/lumina";
4
4
  import { usePropertyChange as a } from "@arcgis/lumina/controllers";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as l } from "../../chunks/runtime.js";
3
3
  import { LitElement as r } from "@arcgis/lumina";
4
4
  import { css as n, html as a } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as a } from "../../chunks/runtime.js";
3
3
  import { LitElement as r } from "@arcgis/lumina";
4
4
  import { css as n, html as c } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as r } from "../../chunks/runtime.js";
3
3
  import { LitElement as c } from "@arcgis/lumina";
4
4
  import { css as l, html as s } from "lit";