@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.
- package/dist/cdn/{WFL6AMNM.js → 2HI74ZMX.js} +1 -1
- package/dist/cdn/{NG4ZFNHE.js → 2P7R733M.js} +1 -1
- package/dist/cdn/{YKT6FAYV.js → 2QHZ7T4C.js} +1 -1
- package/dist/cdn/{73QBDSXH.js → 2REGGKN2.js} +1 -1
- package/dist/cdn/{XBVKGREH.js → 3G4KZ2IA.js} +1 -1
- package/dist/cdn/{EBQJE5IR.js → 3STIL2IM.js} +1 -1
- package/dist/cdn/{S36FP6V3.js → 537ZK5JD.js} +1 -1
- package/dist/cdn/{74ZSZVS6.js → 53GMPJJD.js} +1 -1
- package/dist/cdn/{UQ7NCQ5J.js → 5INR6PU3.js} +1 -1
- package/dist/cdn/{22U34PQB.js → 5KYPC2KA.js} +1 -1
- package/dist/cdn/{FJ6NF35F.js → 5QHOAKHK.js} +1 -1
- package/dist/cdn/{IRTMH4CU.js → 63VJJMBM.js} +1 -1
- package/dist/cdn/{HYX7BODW.js → 6HDLHCDZ.js} +1 -1
- package/dist/cdn/{Y4ZKMRDR.js → 6IRVSTDR.js} +14 -14
- package/dist/cdn/{PNJZAUGF.js → 6MOORTG3.js} +1 -1
- package/dist/cdn/{JAP5VDRT.js → 6W5PMUWX.js} +1 -1
- package/dist/cdn/{ZW6PR32J.js → 725O6DYQ.js} +1 -1
- package/dist/cdn/{5KFPWHQK.js → 7XMTK5TM.js} +1 -1
- package/dist/cdn/{3RZXRWAP.js → AMDC5E4Y.js} +1 -1
- package/dist/cdn/{3YFIPADZ.js → ATSIHCZ3.js} +1 -1
- package/dist/cdn/B3NNLTZT.js +2 -0
- package/dist/cdn/{OM6BG2BU.js → B6ENTL6C.js} +1 -1
- package/dist/cdn/{OX5ZGUUP.js → B6NJBN7E.js} +1 -1
- package/dist/cdn/{QHBHKUDJ.js → BQVRRLZ3.js} +1 -1
- package/dist/cdn/{HNRSOVZ3.js → BXECXALW.js} +1 -1
- package/dist/cdn/{B2DK4LWH.js → BZDR6C2T.js} +1 -1
- package/dist/cdn/{BRG4WNOI.js → CCZOFJRN.js} +1 -1
- package/dist/cdn/{6ERK6VPZ.js → CMBHSCB2.js} +1 -1
- package/dist/cdn/{DTI2O2YX.js → DFTT2WZD.js} +1 -1
- package/dist/cdn/{RJEWER4Y.js → DX4ONK4F.js} +1 -1
- package/dist/cdn/{JVBVZ7SO.js → E4LES2LG.js} +1 -1
- package/dist/cdn/{QLZRRDLM.js → E7L2ZIUR.js} +1 -1
- package/dist/cdn/{SZGK2TKC.js → EAW5ST6M.js} +1 -1
- package/dist/cdn/{7ZBCFESJ.js → EGWS4GYF.js} +1 -1
- package/dist/cdn/{S2O7THHA.js → EJWCPGIH.js} +1 -1
- package/dist/cdn/{SL4JGIFV.js → EOWKSLFO.js} +1 -1
- package/dist/cdn/{Y6MSFH7B.js → ETMTS6I4.js} +1 -1
- package/dist/cdn/{675G5KQQ.js → F2WKOYG7.js} +1 -1
- package/dist/cdn/{UHIWQ5QU.js → FBNCYMRX.js} +1 -1
- package/dist/cdn/{MDAQ5K75.js → FDYDZOUP.js} +1 -1
- package/dist/cdn/{5D5V3CBT.js → FELPXPTW.js} +1 -1
- package/dist/cdn/{CEYUKUGR.js → FZOHHGYU.js} +1 -1
- package/dist/cdn/{C3QDGTJR.js → GXC3E3SH.js} +1 -1
- package/dist/cdn/{ICP6A2TW.js → IA2SH4RW.js} +1 -1
- package/dist/cdn/{XXUIQTGS.js → IDO6ZHOH.js} +1 -1
- package/dist/cdn/{ZWZFY2XW.js → IPERE3Z4.js} +1 -1
- package/dist/cdn/{4EPDGSS3.js → JBFE2U4Z.js} +1 -1
- package/dist/cdn/{RJJJCTWH.js → JE3Z5GG3.js} +1 -1
- package/dist/cdn/{XFYS4DBD.js → JVNXW5T4.js} +1 -1
- package/dist/cdn/{EYM3QUBY.js → KBLUMD22.js} +1 -1
- package/dist/cdn/{4MCRCBXP.js → KNWZPMDA.js} +1 -1
- package/dist/cdn/{5Z4JZB7T.js → KZEZJOS2.js} +1 -1
- package/dist/cdn/{SKRTPLGN.js → KZI5PULU.js} +1 -1
- package/dist/cdn/{ENQQNV7P.js → NE7FIULO.js} +1 -1
- package/dist/cdn/{7REPJ4XS.js → NI3SRHDI.js} +1 -1
- package/dist/cdn/{YTSRCWM5.js → NOHLH3AN.js} +1 -1
- package/dist/cdn/{6XUVGEDV.js → OCB7E3HS.js} +1 -1
- package/dist/cdn/{5U76VYOV.js → OLEU3WGL.js} +1 -1
- package/dist/cdn/{NFXWBAXX.js → OMLDJ7FK.js} +1 -1
- package/dist/cdn/{SA6VZSQH.js → OVPI4ARU.js} +1 -1
- package/dist/cdn/{PGDVHQVF.js → P44UBRPF.js} +1 -1
- package/dist/cdn/{KMVYKYBM.js → PEA7SRNE.js} +1 -1
- package/dist/cdn/{UZR3P2OU.js → PZG24TYR.js} +1 -1
- package/dist/cdn/{BNNZ2ZGX.js → Q3CEBE4I.js} +1 -1
- package/dist/cdn/{UKPIHN6B.js → QR5ACFQ5.js} +1 -1
- package/dist/cdn/{A26I5EAX.js → RH54HA4U.js} +1 -1
- package/dist/cdn/{4S6JHZXI.js → S6ES766Q.js} +1 -1
- package/dist/cdn/{43CYPIMQ.js → S6F2VK2M.js} +1 -1
- package/dist/cdn/{G7HBG2UF.js → SLRIVTKX.js} +1 -1
- package/dist/cdn/{43IA3DL4.js → T7GRP5RJ.js} +1 -1
- package/dist/cdn/{PTKWOS3W.js → TXP3XEWC.js} +1 -1
- package/dist/cdn/{LFAWVGKM.js → UPQV4RBF.js} +1 -1
- package/dist/cdn/V6QUIO2X.js +2 -0
- package/dist/cdn/{QMZKZWSS.js → VPI4IVRO.js} +1 -1
- package/dist/cdn/{NPR6G5AX.js → WJGGAXAB.js} +1 -1
- package/dist/cdn/{RBNSS2LC.js → WQKZR6PT.js} +1 -1
- package/dist/cdn/{ERCXFIQA.js → WV6Y6RVY.js} +1 -1
- package/dist/cdn/{7JYPKH72.js → Y3ABUVGD.js} +1 -1
- package/dist/cdn/{NWSKMX7S.js → Y4TJ47FY.js} +1 -1
- package/dist/cdn/{QJFN3RCP.js → YS5DCZLN.js} +1 -1
- package/dist/cdn/{KZHT2SRK.js → Z3YVFFFM.js} +1 -1
- package/dist/cdn/{RVY7I3GY.js → ZPRVKH64.js} +1 -1
- package/dist/cdn/{THFNJ23N.js → ZYEJZMY2.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +164 -160
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/package.json +1 -1
- package/dist/cdn/DKFXHHUI.js +0 -2
- 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),
|
|
11
|
-
function q(
|
|
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%"
|
|
14
|
-
const e =
|
|
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
|
-
|
|
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:
|
|
76
|
+
alignment: a,
|
|
75
77
|
stretch: d.Stretch.Horizontal
|
|
76
78
|
}).add(
|
|
77
79
|
// Icon panel
|
|
78
80
|
new d.Panel("Horizontal", {
|
|
79
|
-
alignment:
|
|
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:
|
|
89
|
-
}).bind("source", "", (
|
|
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:
|
|
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:
|
|
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:
|
|
113
|
+
alignment: a,
|
|
114
|
+
textAlign: s,
|
|
111
115
|
desiredSize: v,
|
|
112
|
-
font:
|
|
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
|
-
),
|
|
121
|
-
const
|
|
122
|
-
|
|
124
|
+
), i.commandHandler.zoomFactor = 1.05, i.setDivBackground(K);
|
|
125
|
+
const o = i.toolManager.clickSelectingTool;
|
|
126
|
+
o.standardMouseSelect = function() {
|
|
123
127
|
};
|
|
124
|
-
const
|
|
125
|
-
return
|
|
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
|
-
),
|
|
147
|
+
), i;
|
|
144
148
|
}
|
|
145
|
-
function m(
|
|
146
|
-
|
|
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(
|
|
152
|
-
if (
|
|
153
|
-
const c = ne(
|
|
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:
|
|
160
|
-
s.addEventListener("click", () => de(t)), i.addEventListener("click", () => t.zoomToFit()),
|
|
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(
|
|
163
|
-
const
|
|
164
|
-
return m(
|
|
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(
|
|
170
|
+
function E(n) {
|
|
167
171
|
const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
|
|
168
|
-
function
|
|
172
|
+
function a(i) {
|
|
169
173
|
i.findLinksInto().each(
|
|
170
|
-
(
|
|
171
|
-
e.add(
|
|
172
|
-
const
|
|
173
|
-
|
|
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
|
-
|
|
181
|
+
a(n);
|
|
178
182
|
function s(i) {
|
|
179
183
|
i.findLinksOutOf().each(
|
|
180
|
-
(
|
|
181
|
-
e.add(
|
|
182
|
-
const
|
|
183
|
-
|
|
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(
|
|
191
|
+
return s(n), { connectedNodes: t, connectedLinks: e };
|
|
188
192
|
}
|
|
189
|
-
function Q(
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
192
|
-
const
|
|
193
|
-
return X(
|
|
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
|
-
|
|
199
|
+
a.push(o.id);
|
|
196
200
|
return;
|
|
197
201
|
}
|
|
198
|
-
}).filter((
|
|
199
|
-
return s.forEach((
|
|
200
|
-
(
|
|
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:
|
|
209
|
+
to: o.key,
|
|
206
210
|
toSpot: d.Spot.AllSides
|
|
207
211
|
});
|
|
208
212
|
});
|
|
209
|
-
}), { nodes: s, links: i, groupPseudoNodes:
|
|
213
|
+
}), { nodes: s, links: i, groupPseudoNodes: a };
|
|
210
214
|
}
|
|
211
|
-
function U(
|
|
212
|
-
const s =
|
|
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 (
|
|
217
|
-
for (const
|
|
218
|
-
i[
|
|
219
|
-
for (const
|
|
220
|
-
const
|
|
221
|
-
i[
|
|
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:
|
|
225
|
-
for (const c of
|
|
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
|
|
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 =
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
for (const
|
|
237
|
-
|
|
238
|
-
for (const
|
|
239
|
-
const c = `${
|
|
240
|
-
|
|
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
|
-
|
|
246
|
+
o.start();
|
|
243
247
|
}
|
|
244
248
|
}
|
|
245
|
-
function L(
|
|
246
|
-
if (
|
|
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
|
|
255
|
+
const o = {};
|
|
252
256
|
if (s) {
|
|
253
|
-
for (const
|
|
254
|
-
const c =
|
|
255
|
-
|
|
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
|
|
258
|
-
const c = `${
|
|
259
|
-
|
|
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(
|
|
263
|
-
r
|
|
266
|
+
if (Object.keys(a).forEach((r) => {
|
|
267
|
+
a[r].adornedObject = null;
|
|
264
268
|
}), s) {
|
|
265
|
-
const
|
|
266
|
-
|
|
269
|
+
const r = new d.Animation();
|
|
270
|
+
r.duration = 1;
|
|
267
271
|
for (const c of i.nodes)
|
|
268
|
-
|
|
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
|
-
|
|
275
|
+
r.add(c, "opacity", c.opacity, o[h]);
|
|
272
276
|
}
|
|
273
|
-
|
|
277
|
+
r.start();
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
|
-
function X(
|
|
280
|
+
function X(n, t, e = !1, a) {
|
|
277
281
|
return {
|
|
278
282
|
key: t,
|
|
279
|
-
title:
|
|
280
|
-
itemId:
|
|
281
|
-
itemType:
|
|
282
|
-
itemTypeForDisplay: re(
|
|
283
|
-
itemTypeKeywords:
|
|
284
|
-
group:
|
|
285
|
-
url: e ? `${
|
|
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(
|
|
289
|
-
return
|
|
292
|
+
function ee(n) {
|
|
293
|
+
return n.id;
|
|
290
294
|
}
|
|
291
|
-
function te(
|
|
295
|
+
function te(n, t, e, a = 0, s = !1) {
|
|
292
296
|
let i = "";
|
|
293
297
|
s && (i += "F");
|
|
294
|
-
const
|
|
295
|
-
return i += " M0 0", i += ` h${
|
|
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(
|
|
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(
|
|
308
|
+
function ne(n, t) {
|
|
305
309
|
const e = document.createElement("calcite-switch");
|
|
306
310
|
e.id = "filteredViewButton", e.label = t.filteredView;
|
|
307
|
-
const
|
|
308
|
-
|
|
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(
|
|
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
|
|
314
|
-
return
|
|
317
|
+
const o = document.createElement("div");
|
|
318
|
+
return o.id = "filter-bar", n.appendChild(o), o.appendChild(i), e;
|
|
315
319
|
}
|
|
316
|
-
function ae(
|
|
320
|
+
function ae(n, t) {
|
|
317
321
|
const e = document.createElement("calcite-action");
|
|
318
322
|
e.icon = "reset", e.id = "showHideGrayedOutButton";
|
|
319
|
-
const
|
|
320
|
-
|
|
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
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
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(
|
|
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",
|
|
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(
|
|
339
|
-
let e =
|
|
340
|
-
if (
|
|
341
|
-
const
|
|
342
|
-
e =
|
|
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
|
|
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(
|
|
347
|
-
|
|
350
|
+
function de(n) {
|
|
351
|
+
n.zoomToFit(), document.dispatchEvent(new CustomEvent("reset"));
|
|
348
352
|
}
|
|
349
|
-
function p(
|
|
353
|
+
function p(n) {
|
|
350
354
|
const t = document.body;
|
|
351
|
-
return getComputedStyle(t).getPropertyValue(
|
|
355
|
+
return getComputedStyle(t).getPropertyValue(n).trim();
|
|
352
356
|
}
|
|
353
|
-
function se(
|
|
354
|
-
if (
|
|
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(
|
|
357
|
-
return `rgba(${e}, ${
|
|
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(
|
|
364
|
+
function ue(n) {
|
|
361
365
|
const t = document.documentElement;
|
|
362
|
-
return getComputedStyle(t).getPropertyValue(
|
|
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,
|
|
378
|
-
this.indexPanel = t, this.diagramPanel = e, this.diagramTranslations =
|
|
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
|
|
383
|
-
this.redraw(
|
|
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
|
|
391
|
-
this.redraw(
|
|
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),
|
|
425
|
-
L(
|
|
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
|
|
438
|
+
const a = new d.Adornment("Auto", {
|
|
435
439
|
background: "transparent",
|
|
436
440
|
margin: 2
|
|
437
441
|
});
|
|
438
|
-
|
|
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
|
-
})),
|
|
448
|
+
})), a.add(new d.Placeholder({
|
|
445
449
|
margin: 1
|
|
446
|
-
})), this.diagramNodeHighlighterIndex[e.data.key] =
|
|
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 = [],
|
|
465
|
-
for (;
|
|
466
|
-
e.push(
|
|
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,
|
|
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(
|
|
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
|
|
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 =
|
|
489
|
+
const c = r.map((h) => h.data);
|
|
486
490
|
m(this.diagram, { nodes: c, links: [] });
|
|
487
491
|
} else
|
|
488
|
-
L(
|
|
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
|
|
494
|
-
if ((!
|
|
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
|
|
499
|
-
|
|
500
|
-
const c = Array.from(
|
|
501
|
-
if (m(this.diagram, { nodes: c, links: h }), this.createNodeHighlighters(),
|
|
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
|
-
|
|
508
|
+
o && setTimeout(() => U(o, !0, this.diagramNodeHighlighterIndex[t]), 1), this.index.selectItem(this.currentSelectedItemId);
|
|
505
509
|
}
|
|
506
510
|
}
|
|
507
511
|
i && this.reset();
|