@esri/solutions-components 5.0.7 → 5.0.8

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 (93) hide show
  1. package/dist/cdn/{WFL6AMNM.js → 2HI74ZMX.js} +1 -1
  2. package/dist/cdn/{NG4ZFNHE.js → 2P7R733M.js} +1 -1
  3. package/dist/cdn/{YKT6FAYV.js → 2QHZ7T4C.js} +1 -1
  4. package/dist/cdn/{73QBDSXH.js → 2REGGKN2.js} +1 -1
  5. package/dist/cdn/{XBVKGREH.js → 3G4KZ2IA.js} +1 -1
  6. package/dist/cdn/{EBQJE5IR.js → 3STIL2IM.js} +1 -1
  7. package/dist/cdn/{S36FP6V3.js → 537ZK5JD.js} +1 -1
  8. package/dist/cdn/{74ZSZVS6.js → 53GMPJJD.js} +1 -1
  9. package/dist/cdn/{UQ7NCQ5J.js → 5INR6PU3.js} +1 -1
  10. package/dist/cdn/{22U34PQB.js → 5KYPC2KA.js} +1 -1
  11. package/dist/cdn/{FJ6NF35F.js → 5QHOAKHK.js} +1 -1
  12. package/dist/cdn/{IRTMH4CU.js → 63VJJMBM.js} +1 -1
  13. package/dist/cdn/{HYX7BODW.js → 6HDLHCDZ.js} +1 -1
  14. package/dist/cdn/{Y4ZKMRDR.js → 6IRVSTDR.js} +14 -14
  15. package/dist/cdn/{PNJZAUGF.js → 6MOORTG3.js} +1 -1
  16. package/dist/cdn/{JAP5VDRT.js → 6W5PMUWX.js} +1 -1
  17. package/dist/cdn/{ZW6PR32J.js → 725O6DYQ.js} +1 -1
  18. package/dist/cdn/{5KFPWHQK.js → 7XMTK5TM.js} +1 -1
  19. package/dist/cdn/{3RZXRWAP.js → AMDC5E4Y.js} +1 -1
  20. package/dist/cdn/{3YFIPADZ.js → ATSIHCZ3.js} +1 -1
  21. package/dist/cdn/B3NNLTZT.js +2 -0
  22. package/dist/cdn/{OM6BG2BU.js → B6ENTL6C.js} +1 -1
  23. package/dist/cdn/{OX5ZGUUP.js → B6NJBN7E.js} +1 -1
  24. package/dist/cdn/{QHBHKUDJ.js → BQVRRLZ3.js} +1 -1
  25. package/dist/cdn/{HNRSOVZ3.js → BXECXALW.js} +1 -1
  26. package/dist/cdn/{B2DK4LWH.js → BZDR6C2T.js} +1 -1
  27. package/dist/cdn/{BRG4WNOI.js → CCZOFJRN.js} +1 -1
  28. package/dist/cdn/{6ERK6VPZ.js → CMBHSCB2.js} +1 -1
  29. package/dist/cdn/{DTI2O2YX.js → DFTT2WZD.js} +1 -1
  30. package/dist/cdn/{RJEWER4Y.js → DX4ONK4F.js} +1 -1
  31. package/dist/cdn/{JVBVZ7SO.js → E4LES2LG.js} +1 -1
  32. package/dist/cdn/{QLZRRDLM.js → E7L2ZIUR.js} +1 -1
  33. package/dist/cdn/{SZGK2TKC.js → EAW5ST6M.js} +1 -1
  34. package/dist/cdn/{7ZBCFESJ.js → EGWS4GYF.js} +1 -1
  35. package/dist/cdn/{S2O7THHA.js → EJWCPGIH.js} +1 -1
  36. package/dist/cdn/{SL4JGIFV.js → EOWKSLFO.js} +1 -1
  37. package/dist/cdn/{Y6MSFH7B.js → ETMTS6I4.js} +1 -1
  38. package/dist/cdn/{675G5KQQ.js → F2WKOYG7.js} +1 -1
  39. package/dist/cdn/{UHIWQ5QU.js → FBNCYMRX.js} +1 -1
  40. package/dist/cdn/{MDAQ5K75.js → FDYDZOUP.js} +1 -1
  41. package/dist/cdn/{5D5V3CBT.js → FELPXPTW.js} +1 -1
  42. package/dist/cdn/{CEYUKUGR.js → FZOHHGYU.js} +1 -1
  43. package/dist/cdn/{C3QDGTJR.js → GXC3E3SH.js} +1 -1
  44. package/dist/cdn/{ICP6A2TW.js → IA2SH4RW.js} +1 -1
  45. package/dist/cdn/{XXUIQTGS.js → IDO6ZHOH.js} +1 -1
  46. package/dist/cdn/{ZWZFY2XW.js → IPERE3Z4.js} +1 -1
  47. package/dist/cdn/{4EPDGSS3.js → JBFE2U4Z.js} +1 -1
  48. package/dist/cdn/{RJJJCTWH.js → JE3Z5GG3.js} +1 -1
  49. package/dist/cdn/{XFYS4DBD.js → JVNXW5T4.js} +1 -1
  50. package/dist/cdn/{EYM3QUBY.js → KBLUMD22.js} +1 -1
  51. package/dist/cdn/{4MCRCBXP.js → KNWZPMDA.js} +1 -1
  52. package/dist/cdn/{5Z4JZB7T.js → KZEZJOS2.js} +1 -1
  53. package/dist/cdn/{SKRTPLGN.js → KZI5PULU.js} +1 -1
  54. package/dist/cdn/{ENQQNV7P.js → NE7FIULO.js} +1 -1
  55. package/dist/cdn/{7REPJ4XS.js → NI3SRHDI.js} +1 -1
  56. package/dist/cdn/{YTSRCWM5.js → NOHLH3AN.js} +1 -1
  57. package/dist/cdn/{6XUVGEDV.js → OCB7E3HS.js} +1 -1
  58. package/dist/cdn/{5U76VYOV.js → OLEU3WGL.js} +1 -1
  59. package/dist/cdn/{NFXWBAXX.js → OMLDJ7FK.js} +1 -1
  60. package/dist/cdn/{SA6VZSQH.js → OVPI4ARU.js} +1 -1
  61. package/dist/cdn/{PGDVHQVF.js → P44UBRPF.js} +1 -1
  62. package/dist/cdn/{KMVYKYBM.js → PEA7SRNE.js} +1 -1
  63. package/dist/cdn/{UZR3P2OU.js → PZG24TYR.js} +1 -1
  64. package/dist/cdn/{BNNZ2ZGX.js → Q3CEBE4I.js} +1 -1
  65. package/dist/cdn/{UKPIHN6B.js → QR5ACFQ5.js} +1 -1
  66. package/dist/cdn/{A26I5EAX.js → RH54HA4U.js} +1 -1
  67. package/dist/cdn/{4S6JHZXI.js → S6ES766Q.js} +1 -1
  68. package/dist/cdn/{43CYPIMQ.js → S6F2VK2M.js} +1 -1
  69. package/dist/cdn/{G7HBG2UF.js → SLRIVTKX.js} +1 -1
  70. package/dist/cdn/{43IA3DL4.js → T7GRP5RJ.js} +1 -1
  71. package/dist/cdn/{PTKWOS3W.js → TXP3XEWC.js} +1 -1
  72. package/dist/cdn/{LFAWVGKM.js → UPQV4RBF.js} +1 -1
  73. package/dist/cdn/V6QUIO2X.js +2 -0
  74. package/dist/cdn/{QMZKZWSS.js → VPI4IVRO.js} +1 -1
  75. package/dist/cdn/{NPR6G5AX.js → WJGGAXAB.js} +1 -1
  76. package/dist/cdn/{RBNSS2LC.js → WQKZR6PT.js} +1 -1
  77. package/dist/cdn/{ERCXFIQA.js → WV6Y6RVY.js} +1 -1
  78. package/dist/cdn/{7JYPKH72.js → Y3ABUVGD.js} +1 -1
  79. package/dist/cdn/{NWSKMX7S.js → Y4TJ47FY.js} +1 -1
  80. package/dist/cdn/{QJFN3RCP.js → YS5DCZLN.js} +1 -1
  81. package/dist/cdn/{KZHT2SRK.js → Z3YVFFFM.js} +1 -1
  82. package/dist/cdn/{RVY7I3GY.js → ZPRVKH64.js} +1 -1
  83. package/dist/cdn/{THFNJ23N.js → ZYEJZMY2.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/chunks/runtime.js +1 -1
  86. package/dist/components/solution-item-diagram/customElement.js +164 -160
  87. package/dist/docs/api.json +1 -1
  88. package/dist/docs/docs.json +1 -1
  89. package/dist/docs/web-types.json +1 -1
  90. package/dist/solutions-components_commit.txt +7 -7
  91. package/package.json +1 -1
  92. package/dist/cdn/DKFXHHUI.js +0 -2
  93. package/dist/cdn/EEGVKRAE.js +0 -2
@@ -7,11 +7,13 @@ import { createRef as k, ref as I } from "lit-html/directives/ref.js";
7
7
  import * as d from "gojs";
8
8
  import { g as A } from "../../chunks/getItemIcon.js";
9
9
  import "../solution-item-accordion/customElement.js";
10
- const P = C`#filter-bar{background-color:var(--calcite-color-foreground-1);position:absolute;top:16px;right:196px;z-index:100;box-shadow:var(--calcite-shadow-sm)}#filteredViewButtonDiv{padding:8px}#filteredViewButtonLabel{--calcite-label-margin-bottom: 0}#graph-navigation-bar{background-color:var(--calcite-color-foreground-1);position:absolute;top:16px;right:16px;z-index:100}#graph-navigation-controls{position:absolute;top:0;right:0;box-shadow:var(--calcite-shadow-sm)}.z-index-1{z-index:1}#diagram-panel{--calcite-panel-space: 0px}#diagram-shell-panel{--calcite-color-background: var(--calcite-color-foreground-1);padding:16px}`, _ = 15, V = 15, H = 10, u = new d.Size(220, 48), O = 1, G = 8, S = new d.Size(48, 48), M = new d.Size(16, 16), v = new d.Size(153, 17), R = '400 0.75rem "Avenir Next", Avenir, "Helvetica Neue", sans-serif', F = '500 0.75rem "Avenir Next", Avenir, "Helvetica Neue", sans-serif', K = "val(--calcite-color-background)", W = p("--calcite-color-border-1"), N = p("--calcite-color-foreground-1"), g = p("--calcite-color-text-1"), T = p("--calcite-color-border-input"), j = p("--calcite-color-foreground-1"), f = 1, b = 0.3, w = 1, x = 0.2, Z = 1;
11
- function q(o) {
10
+ const P = C`#filter-bar{background-color:var(--calcite-color-foreground-1);position:absolute;top:16px;right:196px;z-index:100;box-shadow:var(--calcite-shadow-sm)}#filteredViewButtonDiv{padding:8px}#filteredViewButtonLabel{--calcite-label-margin-bottom: 0}#graph-navigation-bar{background-color:var(--calcite-color-foreground-1);position:absolute;top:16px;right:16px;z-index:100}#graph-navigation-controls{position:absolute;top:0;right:0;box-shadow:var(--calcite-shadow-sm)}.z-index-1{z-index:1}#diagram-panel{--calcite-panel-space: 0px}#diagram-shell-panel{--calcite-color-background: var(--calcite-color-foreground-1);padding:16px}`, _ = 15, V = 15, H = 10, u = new d.Size(220, 48), O = 1, G = 8, S = new d.Size(48, 48), R = new d.Size(16, 16), v = new d.Size(153, 17), M = '400 0.75rem "Avenir Next", Avenir, "Helvetica Neue", sans-serif', F = '500 0.75rem "Avenir Next", Avenir, "Helvetica Neue", sans-serif', K = "val(--calcite-color-background)", W = p("--calcite-color-border-1"), N = p("--calcite-color-foreground-1"), g = p("--calcite-color-text-1"), T = p("--calcite-color-border-input"), j = p("--calcite-color-foreground-1"), f = 1, b = 0.3, w = 1, x = 0.2, Z = 1;
11
+ function q(n) {
12
12
  const t = document.createElement("div");
13
- t.style.width = "100%", t.style.height = "100%", o.appendChild(t);
14
- const e = new d.Diagram(
13
+ t.style.width = "100%", t.style.height = "100%";
14
+ const e = document.documentElement.dir === "rtl", a = e ? d.Spot.Right : d.Spot.Left, s = e ? "right" : "left";
15
+ n.appendChild(t);
16
+ const i = new d.Diagram(
15
17
  t,
16
18
  // create a Diagram for the HTML Div element
17
19
  {
@@ -38,7 +40,7 @@ function q(o) {
38
40
  // mouse wheel zooms instead of scrolls vertically
39
41
  }
40
42
  );
41
- e.nodeTemplate = new d.Node("Auto", {
43
+ i.nodeTemplate = new d.Node("Auto", {
42
44
  click: oe,
43
45
  movable: !1,
44
46
  opacity: f,
@@ -71,12 +73,12 @@ function q(o) {
71
73
  ).add(
72
74
  // Node content
73
75
  new d.Panel("Horizontal", {
74
- alignment: d.Spot.Left,
76
+ alignment: a,
75
77
  stretch: d.Stretch.Horizontal
76
78
  }).add(
77
79
  // Icon panel
78
80
  new d.Panel("Horizontal", {
79
- alignment: d.Spot.Left,
81
+ alignment: a,
80
82
  desiredSize: S,
81
83
  margin: 1
82
84
  }).add(
@@ -85,20 +87,21 @@ function q(o) {
85
87
  margin: 16
86
88
  }).add(
87
89
  new d.Picture({
88
- desiredSize: M
89
- }).bind("source", "", (i) => A(i.itemType, i.itemTypeKeywords))
90
+ desiredSize: R
91
+ }).bind("source", "", (c) => A(c.itemType, c.itemTypeKeywords))
90
92
  )
91
93
  ),
92
94
  // Label
93
95
  new d.Panel("Horizontal", {
94
- alignment: d.Spot.Right,
96
+ alignment: a,
95
97
  margin: new d.Margin(4, 8, 0, 8)
96
98
  // top, right, bottom, left
97
99
  }).add(
98
100
  new d.Panel("Vertical", {}).add(
99
101
  // First line
100
102
  new d.TextBlock({
101
- alignment: d.Spot.Left,
103
+ alignment: a,
104
+ textAlign: s,
102
105
  desiredSize: v,
103
106
  font: F,
104
107
  overflow: d.TextOverflow.Ellipsis,
@@ -107,9 +110,10 @@ function q(o) {
107
110
  }).bind("text", "title"),
108
111
  // Second line
109
112
  new d.TextBlock({
110
- alignment: d.Spot.Left,
113
+ alignment: a,
114
+ textAlign: s,
111
115
  desiredSize: v,
112
- font: R,
116
+ font: M,
113
117
  overflow: d.TextOverflow.Ellipsis,
114
118
  stroke: g,
115
119
  wrap: d.Wrap.None
@@ -117,12 +121,12 @@ function q(o) {
117
121
  )
118
122
  )
119
123
  )
120
- ), e.commandHandler.zoomFactor = 1.05, e.setDivBackground(K);
121
- const r = e.toolManager.clickSelectingTool;
122
- r.standardMouseSelect = function() {
124
+ ), i.commandHandler.zoomFactor = 1.05, i.setDivBackground(K);
125
+ const o = i.toolManager.clickSelectingTool;
126
+ o.standardMouseSelect = function() {
123
127
  };
124
- const s = e.toolManager.draggingTool;
125
- return s.isEnabled = !1, e.linkTemplate = new d.Link({
128
+ const r = i.toolManager.draggingTool;
129
+ return r.isEnabled = !1, i.linkTemplate = new d.Link({
126
130
  corner: 5,
127
131
  movable: !1,
128
132
  routing: d.Routing.Orthogonal,
@@ -140,226 +144,226 @@ function q(o) {
140
144
  stroke: null,
141
145
  toArrow: "Standard"
142
146
  })
143
- ), e;
147
+ ), i;
144
148
  }
145
- function m(o, t) {
146
- o.model = new d.GraphLinksModel(t.nodes, t.links, {
149
+ function m(n, t) {
150
+ n.model = new d.GraphLinksModel(t.nodes, t.links, {
147
151
  linkFromPortIdProperty: "fromPort",
148
152
  linkToPortIdProperty: "toPort"
149
153
  });
150
154
  }
151
- function Y(o, t, e, r = !0) {
152
- if (r) {
153
- const c = ne(o, e);
155
+ function Y(n, t, e, a = !0) {
156
+ if (a) {
157
+ const c = ne(n, e);
154
158
  c.addEventListener(
155
159
  "calciteSwitchChange",
156
160
  () => document.dispatchEvent(new CustomEvent("filteredViewChanged", { detail: c.checked }))
157
161
  );
158
162
  }
159
- const { resetButton: s, centerButton: i, zoomInButton: n, zoomOutButton: a } = ae(o, e);
160
- s.addEventListener("click", () => de(t)), i.addEventListener("click", () => t.zoomToFit()), n.addEventListener("click", () => t.commandHandler.increaseZoom()), a.addEventListener("click", () => t.commandHandler.decreaseZoom());
163
+ const { resetButton: s, centerButton: i, zoomInButton: o, zoomOutButton: r } = ae(n, e);
164
+ s.addEventListener("click", () => de(t)), i.addEventListener("click", () => t.zoomToFit()), o.addEventListener("click", () => t.commandHandler.increaseZoom()), r.addEventListener("click", () => t.commandHandler.decreaseZoom());
161
165
  }
162
- function J(o, t, e) {
163
- const r = q(o);
164
- return m(r, t), Y(o, r, e), r;
166
+ function J(n, t, e) {
167
+ const a = q(n);
168
+ return m(a, t), Y(n, a, e), a;
165
169
  }
166
- function E(o) {
170
+ function E(n) {
167
171
  const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
168
- function r(i) {
172
+ function a(i) {
169
173
  i.findLinksInto().each(
170
- (n) => {
171
- e.add(n);
172
- const a = n.fromNode;
173
- a && !t.has(a) && (t.add(a), r(a));
174
+ (o) => {
175
+ e.add(o);
176
+ const r = o.fromNode;
177
+ r && !t.has(r) && (t.add(r), a(r));
174
178
  }
175
179
  );
176
180
  }
177
- r(o);
181
+ a(n);
178
182
  function s(i) {
179
183
  i.findLinksOutOf().each(
180
- (n) => {
181
- e.add(n);
182
- const a = n.toNode;
183
- a && !t.has(a) && (t.add(a), s(a));
184
+ (o) => {
185
+ e.add(o);
186
+ const r = o.toNode;
187
+ r && !t.has(r) && (t.add(r), s(r));
184
188
  }
185
189
  );
186
190
  }
187
- return s(o), { connectedNodes: t, connectedLinks: e };
191
+ return s(n), { connectedNodes: t, connectedLinks: e };
188
192
  }
189
- function Q(o, t = !1, e) {
190
- const r = [], s = o.map((n) => {
191
- if (n.type !== "Group") {
192
- const a = ee(n);
193
- return X(n, a, t, e);
193
+ function Q(n, t = !1, e) {
194
+ const a = [], s = n.map((o) => {
195
+ if (o.type !== "Group") {
196
+ const r = ee(o);
197
+ return X(o, r, t, e);
194
198
  } else {
195
- r.push(n.id);
199
+ a.push(o.id);
196
200
  return;
197
201
  }
198
- }).filter((n) => n !== void 0), i = [];
199
- return s.forEach((n) => {
200
- (o.find((c) => c.id === n.itemId)?.dependencies || []).forEach((c) => {
202
+ }).filter((o) => o !== void 0), i = [];
203
+ return s.forEach((o) => {
204
+ (n.find((c) => c.id === o.itemId)?.dependencies || []).forEach((c) => {
201
205
  const h = s.find((l) => l?.itemId === c);
202
206
  h && i.push({
203
207
  from: h.key,
204
208
  fromSpot: d.Spot.AllSides,
205
- to: n.key,
209
+ to: o.key,
206
210
  toSpot: d.Spot.AllSides
207
211
  });
208
212
  });
209
- }), { nodes: s, links: i, groupPseudoNodes: r };
213
+ }), { nodes: s, links: i, groupPseudoNodes: a };
210
214
  }
211
- function U(o, t, e, r = !0) {
212
- const s = o.diagram;
215
+ function U(n, t, e, a = !0) {
216
+ const s = n.diagram;
213
217
  if (!s)
214
218
  return;
215
219
  const i = {};
216
- if (r) {
217
- for (const n of s.nodes)
218
- i[n.key] = n === o ? f : b;
219
- for (const n of s.links) {
220
- const a = `${n.fromNode?.key}-${n.toNode?.key}`;
221
- i[a] = x;
220
+ if (a) {
221
+ for (const o of s.nodes)
222
+ i[o.key] = o === n ? f : b;
223
+ for (const o of s.links) {
224
+ const r = `${o.fromNode?.key}-${o.toNode?.key}`;
225
+ i[r] = x;
222
226
  }
223
227
  {
224
- const { connectedNodes: n, connectedLinks: a } = E(o);
225
- for (const c of n)
228
+ const { connectedNodes: o, connectedLinks: r } = E(n);
229
+ for (const c of o)
226
230
  i[c.key] = f;
227
- for (const c of a) {
231
+ for (const c of r) {
228
232
  const h = `${c.fromNode?.key}-${c.toNode?.key}`;
229
233
  i[h] = Z;
230
234
  }
231
235
  }
232
236
  }
233
- if (e && (e.adornedObject = o), r) {
234
- const n = new d.Animation();
235
- n.duration = 1;
236
- for (const a of s.nodes)
237
- n.add(a, "opacity", a.opacity, i[a.key]);
238
- for (const a of s.links) {
239
- const c = `${a.fromNode?.key}-${a.toNode?.key}`;
240
- n.add(a, "opacity", a.opacity, i[c]);
237
+ if (e && (e.adornedObject = n), a) {
238
+ const o = new d.Animation();
239
+ o.duration = 1;
240
+ for (const r of s.nodes)
241
+ o.add(r, "opacity", r.opacity, i[r.key]);
242
+ for (const r of s.links) {
243
+ const c = `${r.fromNode?.key}-${r.toNode?.key}`;
244
+ o.add(r, "opacity", r.opacity, i[c]);
241
245
  }
242
- n.start();
246
+ o.start();
243
247
  }
244
248
  }
245
- function L(o, t, e, r, s = !0) {
246
- if (o.length === 0)
249
+ function L(n, t, e, a, s = !0) {
250
+ if (n.length === 0)
247
251
  return;
248
252
  const i = t[0].diagram;
249
253
  if (!i)
250
254
  return;
251
- const n = {};
255
+ const o = {};
252
256
  if (s) {
253
- for (const a of i.nodes) {
254
- const c = o.includes(a.key);
255
- n[a.key] = !e || c ? f : b;
257
+ for (const r of i.nodes) {
258
+ const c = n.includes(r.key);
259
+ o[r.key] = !e || c ? f : b;
256
260
  }
257
- for (const a of i.links) {
258
- const c = `${a.fromNode?.key}-${a.toNode?.key}`;
259
- n[c] = e ? x : w;
261
+ for (const r of i.links) {
262
+ const c = `${r.fromNode?.key}-${r.toNode?.key}`;
263
+ o[c] = e ? x : w;
260
264
  }
261
265
  }
262
- if (Object.keys(r).forEach((a) => {
263
- r[a].adornedObject = null;
266
+ if (Object.keys(a).forEach((r) => {
267
+ a[r].adornedObject = null;
264
268
  }), s) {
265
- const a = new d.Animation();
266
- a.duration = 1;
269
+ const r = new d.Animation();
270
+ r.duration = 1;
267
271
  for (const c of i.nodes)
268
- a.add(c, "opacity", c.opacity, n[c.key]);
272
+ r.add(c, "opacity", c.opacity, o[c.key]);
269
273
  for (const c of i.links) {
270
274
  const h = `${c.fromNode?.key}-${c.toNode?.key}`;
271
- a.add(c, "opacity", c.opacity, n[h]);
275
+ r.add(c, "opacity", c.opacity, o[h]);
272
276
  }
273
- a.start();
277
+ r.start();
274
278
  }
275
279
  }
276
- function X(o, t, e = !1, r) {
280
+ function X(n, t, e = !1, a) {
277
281
  return {
278
282
  key: t,
279
- title: o.title,
280
- itemId: o.id,
281
- itemType: o.type,
282
- itemTypeForDisplay: re(o.type, o.typeKeywords),
283
- itemTypeKeywords: o.typeKeywords,
284
- group: o.type,
285
- url: e ? `${r}?id=${o.id}` : void 0
283
+ title: n.title,
284
+ itemId: n.id,
285
+ itemType: n.type,
286
+ itemTypeForDisplay: re(n.type, n.typeKeywords),
287
+ itemTypeKeywords: n.typeKeywords,
288
+ group: n.type,
289
+ url: e ? `${a}?id=${n.id}` : void 0
286
290
  };
287
291
  }
288
- function ee(o) {
289
- return o.id;
292
+ function ee(n) {
293
+ return n.id;
290
294
  }
291
- function te(o, t, e, r = 0, s = !1) {
295
+ function te(n, t, e, a = 0, s = !1) {
292
296
  let i = "";
293
297
  s && (i += "F");
294
- const n = o - 2 * e, a = t - 2 * e;
295
- return i += " M0 0", i += ` h${n}`, i += ` a${e} ${e} 0 0 1 ${e} ${e}`, i += ` v${a}`, i += ` a${e} ${e} 0 0 1 ${-e} ${e}`, i += ` h${-n}`, i += ` a${e} ${e} 0 0 1 ${-e} ${-e}`, i += ` v${-a}`, i += ` a${e} ${e} 0 0 1 ${e} ${-e}`, r > 0 && (i += ` M${r - e} 0 v${t}`), i;
298
+ const o = n - 2 * e, r = t - 2 * e;
299
+ return i += " M0 0", i += ` h${o}`, i += ` a${e} ${e} 0 0 1 ${e} ${e}`, i += ` v${r}`, i += ` a${e} ${e} 0 0 1 ${-e} ${e}`, i += ` h${-o}`, i += ` a${e} ${e} 0 0 1 ${-e} ${-e}`, i += ` v${-r}`, i += ` a${e} ${e} 0 0 1 ${e} ${-e}`, a > 0 && (i += ` M${a - e} 0 v${t}`), i;
296
300
  }
297
301
  function ie() {
298
302
  document.dispatchEvent(new CustomEvent("clickInDiagram"));
299
303
  }
300
- function oe(o, t) {
304
+ function oe(n, t) {
301
305
  const e = t.part;
302
306
  e instanceof d.Node && (e.selectionAdorned = !1, document.dispatchEvent(new CustomEvent("clickOnNode", { detail: e })));
303
307
  }
304
- function ne(o, t) {
308
+ function ne(n, t) {
305
309
  const e = document.createElement("calcite-switch");
306
310
  e.id = "filteredViewButton", e.label = t.filteredView;
307
- const r = document.createElement("calcite-label");
308
- r.id = "filteredViewButtonLabel", r.setAttribute("layout", "inline"), r.innerHTML = t.filteredView, r.appendChild(e);
311
+ const a = document.createElement("calcite-label");
312
+ a.id = "filteredViewButtonLabel", a.setAttribute("layout", "inline"), a.innerHTML = t.filteredView, a.appendChild(e);
309
313
  const s = document.createElement("div");
310
- s.id = "filteredViewButtonDiv", s.appendChild(r);
314
+ s.id = "filteredViewButtonDiv", s.appendChild(a);
311
315
  const i = document.createElement("calcite-action-bar");
312
316
  i.id = "filter-bar-controls", i.layout = "horizontal", i.expandDisabled = !0, i.appendChild(s);
313
- const n = document.createElement("div");
314
- return n.id = "filter-bar", o.appendChild(n), n.appendChild(i), e;
317
+ const o = document.createElement("div");
318
+ return o.id = "filter-bar", n.appendChild(o), o.appendChild(i), e;
315
319
  }
316
- function ae(o, t) {
320
+ function ae(n, t) {
317
321
  const e = document.createElement("calcite-action");
318
322
  e.icon = "reset", e.id = "showHideGrayedOutButton";
319
- const r = document.createElement("calcite-tooltip");
320
- r.id = "resetButtonTooltip", r.innerHTML = t.reset, r.overlayPositioning = "fixed", r.placement = "bottom", r.referenceElement = e.id;
323
+ const a = document.createElement("calcite-tooltip");
324
+ a.id = "resetButtonTooltip", a.innerHTML = t.reset, a.overlayPositioning = "fixed", a.placement = "bottom", a.referenceElement = e.id;
321
325
  const s = document.createElement("calcite-action");
322
326
  s.icon = "zoom-to-object", s.id = "centerButton";
323
327
  const i = document.createElement("calcite-tooltip");
324
328
  i.id = "centerButtonTooltip", i.innerHTML = t.centerDiagram, i.overlayPositioning = "fixed", i.placement = "bottom", i.referenceElement = s.id;
325
- const n = document.createElement("calcite-action");
326
- n.icon = "plus", n.id = "zoomInButton";
327
- const a = document.createElement("calcite-tooltip");
328
- a.id = "zoomInButtonTooltip", a.innerHTML = t.zoomIn, a.overlayPositioning = "fixed", a.placement = "bottom", a.referenceElement = n.id;
329
+ const o = document.createElement("calcite-action");
330
+ o.icon = "plus", o.id = "zoomInButton";
331
+ const r = document.createElement("calcite-tooltip");
332
+ r.id = "zoomInButtonTooltip", r.innerHTML = t.zoomIn, r.overlayPositioning = "fixed", r.placement = "bottom", r.referenceElement = o.id;
329
333
  const c = document.createElement("calcite-action");
330
334
  c.appearance = "solid", c.icon = "minus", c.id = "zoomOutButton";
331
335
  const h = document.createElement("calcite-tooltip");
332
336
  h.id = "zoomOutButtonTooltip", h.innerHTML = t.zoomOut, h.overlayPositioning = "fixed", h.placement = "bottom", h.referenceElement = c.id;
333
337
  const l = document.createElement("calcite-action-bar");
334
- l.id = "graph-navigation-controls", l.layout = "horizontal", l.expandDisabled = !0, l.appendChild(e), l.appendChild(r), l.appendChild(s), l.appendChild(i), l.appendChild(n), l.appendChild(a), l.appendChild(c), l.appendChild(h);
338
+ l.id = "graph-navigation-controls", l.layout = "horizontal", l.expandDisabled = !0, l.appendChild(e), l.appendChild(a), l.appendChild(s), l.appendChild(i), l.appendChild(o), l.appendChild(r), l.appendChild(c), l.appendChild(h);
335
339
  const y = document.createElement("div");
336
- return y.id = "graph-navigation-bar", o.appendChild(y), y.appendChild(l), { resetButton: e, centerButton: s, zoomInButton: n, zoomOutButton: c };
340
+ return y.id = "graph-navigation-bar", n.appendChild(y), y.appendChild(l), { resetButton: e, centerButton: s, zoomInButton: o, zoomOutButton: c };
337
341
  }
338
- function re(o, t) {
339
- let e = o;
340
- if (o === "Feature Service") {
341
- const r = t.indexOf("View Service") > -1, s = t.indexOf("Table") > -1;
342
- e = r && s ? "Table (hosted, view)" : s ? "Table (hosted)" : r ? "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
342
+ function re(n, t) {
343
+ let e = n;
344
+ if (n === "Feature Service") {
345
+ const a = t.indexOf("View Service") > -1, s = t.indexOf("Table") > -1;
346
+ e = a && s ? "Table (hosted, view)" : s ? "Table (hosted)" : a ? "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
343
347
  }
344
- return o === "Web Mapping Application" && (e = t.indexOf("configurableApp") > -1 ? "Instant App" : e), e = o === "Geoprocessing Service" ? "Tool" : e, e = o === "Feed" ? "Feed (hosted)" : e, e = o === "Real Time Analytic" ? "Real Time Analytic (hosted)" : e, e = o === "Big Data Analytic" ? "Big Data Analytic (hosted)" : e, e = o === "Vector Tile Service" ? "Tile Layer" : e, e;
348
+ return n === "Web Mapping Application" && (e = t.indexOf("configurableApp") > -1 ? "Instant App" : e), e = n === "Geoprocessing Service" ? "Tool" : e, e = n === "Feed" ? "Feed (hosted)" : e, e = n === "Real Time Analytic" ? "Real Time Analytic (hosted)" : e, e = n === "Big Data Analytic" ? "Big Data Analytic (hosted)" : e, e = n === "Vector Tile Service" ? "Tile Layer" : e, e;
345
349
  }
346
- function de(o) {
347
- o.zoomToFit(), document.dispatchEvent(new CustomEvent("reset"));
350
+ function de(n) {
351
+ n.zoomToFit(), document.dispatchEvent(new CustomEvent("reset"));
348
352
  }
349
- function p(o) {
353
+ function p(n) {
350
354
  const t = document.body;
351
- return getComputedStyle(t).getPropertyValue(o).trim();
355
+ return getComputedStyle(t).getPropertyValue(n).trim();
352
356
  }
353
- function se(o, t) {
354
- if (o = o.replace(/^#/, ""), o.length === 3 && (o = o.split("").map((i) => i + i).join("")), o.length !== 6)
357
+ function se(n, t) {
358
+ if (n = n.replace(/^#/, ""), n.length === 3 && (n = n.split("").map((i) => i + i).join("")), n.length !== 6)
355
359
  throw new Error("Invalid hex color");
356
- const e = parseInt(o.slice(0, 2), 16), r = parseInt(o.slice(2, 4), 16), s = parseInt(o.slice(4, 6), 16);
357
- return `rgba(${e}, ${r}, ${s}, ${t})`;
360
+ const e = parseInt(n.slice(0, 2), 16), a = parseInt(n.slice(2, 4), 16), s = parseInt(n.slice(4, 6), 16);
361
+ return `rgba(${e}, ${a}, ${s}, ${t})`;
358
362
  }
359
363
  const ce = 8, le = 15, he = ue("--calcite-color-brand"), me = 4;
360
- function ue(o) {
364
+ function ue(n) {
361
365
  const t = document.documentElement;
362
- return getComputedStyle(t).getPropertyValue(o).trim();
366
+ return getComputedStyle(t).getPropertyValue(n).trim();
363
367
  }
364
368
  class pe {
365
369
  /**
@@ -374,21 +378,21 @@ class pe {
374
378
  * <calcite-panel id='diagramPanel' style='display:flex;'/>
375
379
  * </calcite-shell>
376
380
  */
377
- constructor(t, e, r, s) {
378
- this.indexPanel = t, this.diagramPanel = e, this.diagramTranslations = r, this.diagramKey = s, this.currentSelectedGroupId = "", this.currentSelectedItemId = "", this.diagramNeedsRedraw = !1, this.usefilteredView = !1, this.handle_clickInDiagram = (i) => {
381
+ constructor(t, e, a, s) {
382
+ this.indexPanel = t, this.diagramPanel = e, this.diagramTranslations = a, this.diagramKey = s, this.currentSelectedGroupId = "", this.currentSelectedItemId = "", this.diagramNeedsRedraw = !1, this.usefilteredView = !1, this.handle_clickInDiagram = (i) => {
379
383
  i.stopImmediatePropagation(), (this.currentSelectedGroupId || this.currentSelectedItemId) && (this.currentSelectedGroupId = "", this.currentSelectedItemId = "", this.diagramNeedsRedraw = this.usefilteredView, this.redraw());
380
384
  }, this.handle_clickOnNode = (i) => {
381
385
  i.stopImmediatePropagation();
382
- const n = i.detail.data.key;
383
- this.redraw(n, n === this.currentSelectedItemId);
386
+ const o = i.detail.data.key;
387
+ this.redraw(o, o === this.currentSelectedItemId);
384
388
  }, this.handle_filteredViewChanged = (i) => {
385
389
  this.usefilteredView = i.detail, this.diagramNeedsRedraw = !!this.currentSelectedGroupId || !!this.currentSelectedItemId, this.redraw(this.currentSelectedItemId || this.currentSelectedGroupId);
386
390
  }, this.handle_reset = (i) => {
387
391
  i.stopImmediatePropagation(), this.reset();
388
392
  }, this.handle_solutionItemSelect = (i) => {
389
393
  i.stopImmediatePropagation();
390
- const n = i.detail.itemId;
391
- this.redraw(n, n === this.currentSelectedItemId || n === this.currentSelectedGroupId, !1);
394
+ const o = i.detail.itemId;
395
+ this.redraw(o, o === this.currentSelectedItemId || o === this.currentSelectedGroupId, !1);
392
396
  }, d.Diagram.licenseKey === "" && (d.Diagram.licenseKey = s ?? "");
393
397
  }
394
398
  /**
@@ -421,8 +425,8 @@ class pe {
421
425
  */
422
426
  clearSelections(t = !0) {
423
427
  this.index.deselectAll(), t && this.index.collapseAll();
424
- const e = this.getNodesFromDiagram(this.diagram), r = e.map((s) => s.data.key);
425
- L(r, e, !1, this.diagramNodeHighlighterIndex);
428
+ const e = this.getNodesFromDiagram(this.diagram), a = e.map((s) => s.data.key);
429
+ L(a, e, !1, this.diagramNodeHighlighterIndex);
426
430
  }
427
431
  /**
428
432
  * Creates indicies into the diagram's nodes and node highlighters.
@@ -431,19 +435,19 @@ class pe {
431
435
  createNodeHighlighters() {
432
436
  this.diagramNodeIndex = {}, this.diagramNodeHighlighterIndex = {}, this.getNodesFromDiagram(this.diagram).forEach((e) => {
433
437
  this.diagramNodeIndex[e.data.key] = e;
434
- const r = new d.Adornment("Auto", {
438
+ const a = new d.Adornment("Auto", {
435
439
  background: "transparent",
436
440
  margin: 2
437
441
  });
438
- r.add(new d.Shape("RoundedRectangle", {
442
+ a.add(new d.Shape("RoundedRectangle", {
439
443
  fill: "transparent",
440
444
  parameter1: ce,
441
445
  parameter2: le,
442
446
  stroke: he,
443
447
  strokeWidth: me
444
- })), r.add(new d.Placeholder({
448
+ })), a.add(new d.Placeholder({
445
449
  margin: 1
446
- })), this.diagramNodeHighlighterIndex[e.data.key] = r;
450
+ })), this.diagramNodeHighlighterIndex[e.data.key] = a;
447
451
  });
448
452
  }
449
453
  /**
@@ -461,9 +465,9 @@ class pe {
461
465
  * @returns Array of nodes in the diagram
462
466
  */
463
467
  getNodesFromDiagram(t) {
464
- const e = [], r = t.nodes.iterator;
465
- for (; r.next(); )
466
- e.push(r.value);
468
+ const e = [], a = t.nodes.iterator;
469
+ for (; a.next(); )
470
+ e.push(a.value);
467
471
  return e;
468
472
  }
469
473
  /**
@@ -472,36 +476,36 @@ class pe {
472
476
  * @param toggleSelection Whether to toggle the selection state of the item
473
477
  * @param alsoCollapseAllAccordionItems Whether to collapse all accordion items in the index
474
478
  */
475
- redraw(t = "", e = !1, r = !0) {
479
+ redraw(t = "", e = !1, a = !0) {
476
480
  const s = this.allNodesAndLinks.groupPseudoNodes.includes(t);
477
481
  this.diagramNeedsRedraw && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters(), this.diagramNeedsRedraw = !1);
478
482
  let i = !1;
479
- if (this.clearSelections(r), !!t) {
483
+ if (this.clearSelections(a), !!t) {
480
484
  if (s) {
481
485
  if (this.currentSelectedItemId = "", this.currentSelectedGroupId !== t ? this.currentSelectedGroupId = t : e && (this.currentSelectedGroupId = this.currentSelectedGroupId ? "" : t, i = this.usefilteredView && !this.currentSelectedGroupId), this.currentSelectedGroupId) {
482
486
  this.usefilteredView && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters());
483
- const n = this.collection.filter((c) => c.id === t)[0], a = n.dependencies.map((c) => this.diagramNodeIndex[c]);
487
+ const o = this.collection.filter((c) => c.id === t)[0], r = o.dependencies.map((c) => this.diagramNodeIndex[c]);
484
488
  if (this.usefilteredView) {
485
- const c = a.map((h) => h.data);
489
+ const c = r.map((h) => h.data);
486
490
  m(this.diagram, { nodes: c, links: [] });
487
491
  } else
488
- L(n.dependencies, a, !0, this.diagramNodeHighlighterIndex);
492
+ L(o.dependencies, r, !0, this.diagramNodeHighlighterIndex);
489
493
  this.index.selectItem(this.currentSelectedGroupId);
490
494
  }
491
495
  } else {
492
496
  this.currentSelectedGroupId = "", this.currentSelectedItemId !== t ? this.currentSelectedItemId = t : e && (this.currentSelectedItemId = this.currentSelectedItemId ? "" : t, i = this.usefilteredView && !this.currentSelectedItemId);
493
- let n = this.getNodeById(t);
494
- if ((!n || this.usefilteredView) && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters(), n = this.getNodeById(t), !n))
497
+ let o = this.getNodeById(t);
498
+ if ((!o || this.usefilteredView) && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters(), o = this.getNodeById(t), !o))
495
499
  return;
496
500
  if (this.currentSelectedItemId) {
497
501
  if (this.usefilteredView) {
498
- const a = E(n);
499
- a.connectedNodes.add(n);
500
- const c = Array.from(a.connectedNodes).map((l) => l.data), h = Array.from(a.connectedLinks).map((l) => l.data);
501
- if (m(this.diagram, { nodes: c, links: h }), this.createNodeHighlighters(), n = this.getNodeById(t), !n)
502
+ const r = E(o);
503
+ r.connectedNodes.add(o);
504
+ const c = Array.from(r.connectedNodes).map((l) => l.data), h = Array.from(r.connectedLinks).map((l) => l.data);
505
+ if (m(this.diagram, { nodes: c, links: h }), this.createNodeHighlighters(), o = this.getNodeById(t), !o)
502
506
  return;
503
507
  }
504
- n && setTimeout(() => U(n, !0, this.diagramNodeHighlighterIndex[t]), 1), this.index.selectItem(this.currentSelectedItemId);
508
+ o && setTimeout(() => U(o, !0, this.diagramNodeHighlighterIndex[t]), 1), this.index.selectItem(this.currentSelectedItemId);
505
509
  }
506
510
  }
507
511
  i && this.reset();