@esri/solutions-components 5.1.0-next.109 → 5.1.0-next.110
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/{ZVHRGKDC.js → 25VAC27I.js} +1 -1
- package/dist/cdn/{PMASTSAY.js → 35JHUNE2.js} +1 -1
- package/dist/cdn/{FIHH22PH.js → 3CDGBSG2.js} +1 -1
- package/dist/cdn/{BBVI22DX.js → 3JVQG3QA.js} +1 -1
- package/dist/cdn/42SCVEP5.js +2 -0
- package/dist/cdn/{WPB3VJUM.js → 4DNXJC4H.js} +1 -1
- package/dist/cdn/{ZTU7ACFT.js → 4LXJECAT.js} +1 -1
- package/dist/cdn/{MVD3VVPZ.js → 4SU2ROO4.js} +1 -1
- package/dist/cdn/{ZGX5BDIO.js → 5TJMXQ6I.js} +1 -1
- package/dist/cdn/{T3NHBHAI.js → 5X73H45I.js} +1 -1
- package/dist/cdn/{6OCDWG7P.js → 74KPJ6CS.js} +1 -1
- package/dist/cdn/{HIV2GYY7.js → 7K2BSAIP.js} +1 -1
- package/dist/cdn/{EZUDAXHT.js → A4RZESK7.js} +1 -1
- package/dist/cdn/{ON4MWXBI.js → A75GYZAK.js} +1 -1
- package/dist/cdn/{E4MLV2FE.js → AC4RMGO6.js} +1 -1
- package/dist/cdn/{XGXFBOJN.js → AN52NHQI.js} +1 -1
- package/dist/cdn/{M5OSUYVD.js → AVRGQSFV.js} +1 -1
- package/dist/cdn/BJDRTFKQ.js +2 -0
- package/dist/cdn/{LG67HAE5.js → BJR4LFTB.js} +1 -1
- package/dist/cdn/{UWOL7IKX.js → BKDURHMM.js} +1 -1
- package/dist/cdn/{GE57TEEE.js → BMF7MU4P.js} +1 -1
- package/dist/cdn/BTGIA7F4.js +2 -0
- package/dist/cdn/{FJAKNWL6.js → BXRB7X5V.js} +25 -25
- package/dist/cdn/{KUFPXZWQ.js → CCUDERJM.js} +1 -1
- package/dist/cdn/CYOAGVBU.js +2 -0
- package/dist/cdn/D4YPSPYU.js +2 -0
- package/dist/cdn/{F5IR4RHL.js → DGUS2OKW.js} +1 -1
- package/dist/cdn/{WVGQGW4R.js → DMAGF5NK.js} +1 -1
- package/dist/cdn/{UEITESQY.js → EKVVDMWB.js} +1 -1
- package/dist/cdn/{52KJS4OG.js → EMYFWPJ5.js} +1 -1
- package/dist/cdn/{PWTAOSL7.js → FJ7ETLF7.js} +1 -1
- package/dist/cdn/{CETY3FEP.js → FKA4WB46.js} +1 -1
- package/dist/cdn/{4H6WLS2C.js → FTVYIREU.js} +1 -1
- package/dist/cdn/{WOVQTNTH.js → G4RZYVWS.js} +1 -1
- package/dist/cdn/GQLCVOIO.js +2 -0
- package/dist/cdn/{N6HPF764.js → GWKYLTEJ.js} +1 -1
- package/dist/cdn/{DPIB437L.js → GWS7GDTT.js} +1 -1
- package/dist/cdn/{ALQ5DBK4.js → HG7ONXRZ.js} +1 -1
- package/dist/cdn/{RAVGZ37K.js → I4N2RPKJ.js} +1 -1
- package/dist/cdn/JDVRT3UI.js +2 -0
- package/dist/cdn/{KRFMW3F6.js → JHEOWKJP.js} +1 -1
- package/dist/cdn/{LGFATGO3.js → KLK6VI3Y.js} +1 -1
- package/dist/cdn/{EX2M356A.js → KRK3HJKJ.js} +1 -1
- package/dist/cdn/LES6DTSC.js +2 -0
- package/dist/cdn/{L3R23ENZ.js → LL62WUTX.js} +1 -1
- package/dist/cdn/LS5WOH7V.js +2 -0
- package/dist/cdn/{YBFRVRRL.js → LUPN4QGH.js} +1 -1
- package/dist/cdn/{MNCCEYE3.js → MBLK4P7W.js} +1 -1
- package/dist/cdn/NUVJH534.js +2 -0
- package/dist/cdn/OJ75PR7L.js +2 -0
- package/dist/cdn/{JCQ3GAY6.js → PD2CPL77.js} +1 -1
- package/dist/cdn/{RTENTU3I.js → PERCQYO6.js} +2 -2
- package/dist/cdn/{GXH52TKB.js → Q2I3FISB.js} +1 -1
- package/dist/cdn/{Y4QO5HTT.js → Q5XUSNQQ.js} +1 -1
- package/dist/cdn/{R6RHNEU5.js → QCXFCAG2.js} +1 -1
- package/dist/cdn/{EZXOFWRE.js → QGAFD25H.js} +1 -1
- package/dist/cdn/{54YUJSPE.js → QK5JWCPU.js} +1 -1
- package/dist/cdn/QOJ6NBZ7.js +2 -0
- package/dist/cdn/{CTGCWSCT.js → R5EBB32O.js} +112 -112
- package/dist/cdn/{AV2VGLDZ.js → RTEEGE26.js} +1 -1
- package/dist/cdn/{7OCLTZG6.js → RYM3WNKW.js} +1 -1
- package/dist/cdn/T5VGITRO.js +2 -0
- package/dist/cdn/{QETCNT3V.js → TCEWQ6AH.js} +1 -1
- package/dist/cdn/{RHYPLQ7P.js → TUB2CVLR.js} +3 -3
- package/dist/cdn/{UZ7C6CMQ.js → UQVDQ3RW.js} +1 -1
- package/dist/cdn/{Z5DIDVKZ.js → VEZDLO5O.js} +1 -1
- package/dist/cdn/{MMSWM6TE.js → VJCNI3S6.js} +1 -1
- package/dist/cdn/{JXLUOBPY.js → VLTIETO7.js} +1 -1
- package/dist/cdn/{CFD3KIYJ.js → VMSV2EDE.js} +1 -1
- package/dist/cdn/WCS5ISFW.js +2 -0
- package/dist/cdn/{AO6CNZVY.js → WNZGZMLN.js} +1 -1
- package/dist/cdn/{2M47YJSF.js → X3AFBSXC.js} +1 -1
- package/dist/cdn/{MEETZUH6.js → XFSGLLBP.js} +1 -1
- package/dist/cdn/YOO4OQMD.js +2 -0
- package/dist/cdn/Z7UB6Y73.js +2 -0
- package/dist/cdn/{DNTFTT5U.js → ZGAP3FGE.js} +1 -1
- package/dist/cdn/ZHIIV7VJ.js +2 -0
- package/dist/cdn/{REGMSP2R.js → ZKWM223Q.js} +1 -1
- package/dist/cdn/assets/buffer-tools/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/buffer-tools/t9n/messages.json +1 -1
- package/dist/cdn/assets/card-manager/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/card-manager/t9n/messages.json +1 -1
- package/dist/cdn/assets/create-related-feature/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/create-related-feature/t9n/messages.json +1 -1
- package/dist/cdn/assets/crowdsource-manager/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/crowdsource-manager/t9n/messages.json +1 -1
- package/dist/cdn/assets/crowdsource-reporter/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/crowdsource-reporter/t9n/messages.json +1 -1
- package/dist/cdn/assets/edit-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/edit-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/info-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/info-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/map-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/map-picker/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/solution-deploy-dialog.js +2 -2
- package/dist/chunks/solutions-deploy-app-nav.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +5312 -5307
- package/dist/components/buffer-tools/customElement.d.ts +2 -0
- package/dist/components/buffer-tools/customElement.js +5 -5
- package/dist/components/card-manager/customElement.d.ts +2 -0
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +9 -9
- package/dist/components/create-related-feature/customElement.d.ts +7 -1
- package/dist/components/create-related-feature/customElement.js +6 -6
- package/dist/components/crowdsource-manager/customElement.d.ts +2 -0
- package/dist/components/crowdsource-manager/customElement.js +5 -5
- package/dist/components/crowdsource-reporter/customElement.d.ts +8 -0
- package/dist/components/crowdsource-reporter/customElement.js +7 -7
- package/dist/components/deduct-calculator/customElement.js +5 -5
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/edit-card/customElement.d.ts +7 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +2 -2
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +75 -67
- package/dist/components/info-card/customElement.d.ts +2 -0
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +8 -8
- package/dist/components/map-picker/customElement.d.ts +7 -1
- package/dist/components/map-picker/customElement.js +2 -2
- package/dist/components/map-select-tools/customElement.js +3 -3
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +5 -5
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +3 -3
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/solution-builder-assistant/customElement.js +56 -56
- package/dist/components/solution-builder-assistant/index.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +9 -9
- package/dist/components/solution-deploying-dialog/customElement.js +8 -8
- package/dist/components/solution-details-card/customElement.js +5 -5
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +113 -113
- package/dist/components/solution-item-icon/customElement.js +3 -3
- package/dist/components/solution-resource-card/customElement.js +3 -3
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +11 -11
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.d.ts +2 -0
- package/dist/components/solutions-all-shell/customElement.js +5 -5
- package/dist/components/solutions-deployed-list/customElement.d.ts +7 -1
- package/dist/components/solutions-deployed-list/customElement.js +25 -22
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.d.ts +2 -0
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-resources-section/customElement.js +10 -9
- package/dist/components/solutions-resources-shell/customElement.js +3 -3
- package/dist/components/solutions-searchsort-toolbar/customElement.js +11 -11
- 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/5Q6CJZ7M.js +0 -2
- package/dist/cdn/7O7OFAXY.js +0 -2
- package/dist/cdn/A77WR5MD.js +0 -2
- package/dist/cdn/AKEEHAGV.js +0 -2
- package/dist/cdn/BX4LWPBE.js +0 -2
- package/dist/cdn/F7GWD5GZ.js +0 -2
- package/dist/cdn/I5STLCQ7.js +0 -2
- package/dist/cdn/KXU6CODF.js +0 -2
- package/dist/cdn/MRTCK3MT.js +0 -2
- package/dist/cdn/NGWZKWTA.js +0 -2
- package/dist/cdn/OZGADKJE.js +0 -2
- package/dist/cdn/SE4ZDMV4.js +0 -2
- package/dist/cdn/SHXJ4Z2A.js +0 -2
- package/dist/cdn/TJ7VHVTC.js +0 -2
- package/dist/cdn/WHXJW7ZE.js +0 -2
- package/dist/cdn/Z3NAMBE6.js +0 -2
- package/dist/cdn/ZTVWTQFN.js +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as B, html as C } from "lit";
|
|
4
4
|
import { u as z } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as $ } from "@arcgis/lumina";
|
|
6
6
|
import { createRef as k, ref as I } from "lit-html/directives/ref.js";
|
|
7
7
|
import * as d from "gojs";
|
|
8
8
|
import { a as A } from "../../chunks/getItemIcon.js";
|
|
9
9
|
import "../solution-item-accordion/customElement.js";
|
|
10
|
-
const P =
|
|
11
|
-
function q(
|
|
10
|
+
const P = B`#filter-bar{background-color:var(--calcite-color-surface-2);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-surface-2);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-surface-1: var(--calcite-color-surface-2);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-surface-1)", W = p("--calcite-color-border-1"), N = p("--calcite-color-surface-2"), g = p("--calcite-color-text-1"), T = p("--calcite-color-border-input"), j = p("--calcite-color-surface-2"), f = 1, L = 0.3, w = 1, b = 0.2, Z = 1;
|
|
11
|
+
function q(n) {
|
|
12
12
|
const t = document.createElement("div");
|
|
13
13
|
t.style.width = "100%", t.style.height = "100%";
|
|
14
14
|
const e = document.documentElement.dir === "rtl", a = e ? d.Spot.Right : d.Spot.Left, s = e ? "right" : "left";
|
|
15
|
-
|
|
15
|
+
n.appendChild(t);
|
|
16
16
|
const i = new d.Diagram(
|
|
17
17
|
t,
|
|
18
18
|
// create a Diagram for the HTML Div element
|
|
@@ -41,7 +41,7 @@ function q(o) {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
i.nodeTemplate = new d.Node("Auto", {
|
|
44
|
-
click:
|
|
44
|
+
click: oe,
|
|
45
45
|
movable: !1,
|
|
46
46
|
opacity: f,
|
|
47
47
|
toolTip: new d.Adornment("Auto", {
|
|
@@ -122,8 +122,8 @@ function q(o) {
|
|
|
122
122
|
)
|
|
123
123
|
)
|
|
124
124
|
), i.commandHandler.zoomFactor = 1.05, i.setDivBackground(K);
|
|
125
|
-
const
|
|
126
|
-
|
|
125
|
+
const o = i.toolManager.clickSelectingTool;
|
|
126
|
+
o.standardMouseSelect = function() {
|
|
127
127
|
};
|
|
128
128
|
const r = i.toolManager.draggingTool;
|
|
129
129
|
return r.isEnabled = !1, i.linkTemplate = new d.Link({
|
|
@@ -146,87 +146,87 @@ function q(o) {
|
|
|
146
146
|
})
|
|
147
147
|
), i;
|
|
148
148
|
}
|
|
149
|
-
function m(
|
|
150
|
-
|
|
149
|
+
function m(n, t) {
|
|
150
|
+
n.model = new d.GraphLinksModel(t.nodes, t.links, {
|
|
151
151
|
linkFromPortIdProperty: "fromPort",
|
|
152
152
|
linkToPortIdProperty: "toPort"
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function Y(
|
|
155
|
+
function Y(n, t, e, a = !0) {
|
|
156
156
|
if (a) {
|
|
157
|
-
const c =
|
|
157
|
+
const c = ne(n, e);
|
|
158
158
|
c.addEventListener(
|
|
159
159
|
"calciteSwitchChange",
|
|
160
160
|
() => document.dispatchEvent(new CustomEvent("filteredViewChanged", { detail: c.checked }))
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
|
-
const { resetButton: s, centerButton: i, zoomInButton:
|
|
164
|
-
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());
|
|
165
165
|
}
|
|
166
|
-
function J(
|
|
167
|
-
const a = q(
|
|
168
|
-
return m(a, t), Y(
|
|
166
|
+
function J(n, t, e) {
|
|
167
|
+
const a = q(n);
|
|
168
|
+
return m(a, t), Y(n, a, e), a;
|
|
169
169
|
}
|
|
170
|
-
function E(
|
|
170
|
+
function E(n) {
|
|
171
171
|
const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
|
|
172
172
|
function a(i) {
|
|
173
173
|
i.findLinksInto().each(
|
|
174
|
-
(
|
|
175
|
-
e.add(
|
|
176
|
-
const r =
|
|
174
|
+
(o) => {
|
|
175
|
+
e.add(o);
|
|
176
|
+
const r = o.fromNode;
|
|
177
177
|
r && !t.has(r) && (t.add(r), a(r));
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
a(
|
|
181
|
+
a(n);
|
|
182
182
|
function s(i) {
|
|
183
183
|
i.findLinksOutOf().each(
|
|
184
|
-
(
|
|
185
|
-
e.add(
|
|
186
|
-
const r =
|
|
184
|
+
(o) => {
|
|
185
|
+
e.add(o);
|
|
186
|
+
const r = o.toNode;
|
|
187
187
|
r && !t.has(r) && (t.add(r), s(r));
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
|
-
return s(
|
|
191
|
+
return s(n), { connectedNodes: t, connectedLinks: e };
|
|
192
192
|
}
|
|
193
|
-
function Q(
|
|
194
|
-
const a = [], s =
|
|
195
|
-
if (
|
|
196
|
-
const r = ee(
|
|
197
|
-
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);
|
|
198
198
|
} else {
|
|
199
|
-
a.push(
|
|
199
|
+
a.push(o.id);
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
|
-
}).filter((
|
|
203
|
-
return s.forEach((
|
|
204
|
-
(
|
|
202
|
+
}).filter((o) => o !== void 0), i = [];
|
|
203
|
+
return s.forEach((o) => {
|
|
204
|
+
(n.find((c) => c.id === o.itemId)?.dependencies || []).forEach((c) => {
|
|
205
205
|
const h = s.find((l) => l?.itemId === c);
|
|
206
206
|
h && i.push({
|
|
207
207
|
from: h.key,
|
|
208
208
|
fromSpot: d.Spot.AllSides,
|
|
209
|
-
to:
|
|
209
|
+
to: o.key,
|
|
210
210
|
toSpot: d.Spot.AllSides
|
|
211
211
|
});
|
|
212
212
|
});
|
|
213
213
|
}), { nodes: s, links: i, groupPseudoNodes: a };
|
|
214
214
|
}
|
|
215
|
-
function U(
|
|
216
|
-
const s =
|
|
215
|
+
function U(n, t, e, a = !0) {
|
|
216
|
+
const s = n.diagram;
|
|
217
217
|
if (!s)
|
|
218
218
|
return;
|
|
219
219
|
const i = {};
|
|
220
220
|
if (a) {
|
|
221
|
-
for (const
|
|
222
|
-
i[
|
|
223
|
-
for (const
|
|
224
|
-
const r = `${
|
|
225
|
-
i[r] =
|
|
221
|
+
for (const o of s.nodes)
|
|
222
|
+
i[o.key] = o === n ? f : L;
|
|
223
|
+
for (const o of s.links) {
|
|
224
|
+
const r = `${o.fromNode?.key}-${o.toNode?.key}`;
|
|
225
|
+
i[r] = b;
|
|
226
226
|
}
|
|
227
227
|
{
|
|
228
|
-
const { connectedNodes:
|
|
229
|
-
for (const c of
|
|
228
|
+
const { connectedNodes: o, connectedLinks: r } = E(n);
|
|
229
|
+
for (const c of o)
|
|
230
230
|
i[c.key] = f;
|
|
231
231
|
for (const c of r) {
|
|
232
232
|
const h = `${c.fromNode?.key}-${c.toNode?.key}`;
|
|
@@ -234,33 +234,33 @@ function U(o, t, e, a = !0) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
if (e && (e.adornedObject =
|
|
238
|
-
const
|
|
239
|
-
|
|
237
|
+
if (e && (e.adornedObject = n), a) {
|
|
238
|
+
const o = new d.Animation();
|
|
239
|
+
o.duration = 1;
|
|
240
240
|
for (const r of s.nodes)
|
|
241
|
-
|
|
241
|
+
o.add(r, "opacity", r.opacity, i[r.key]);
|
|
242
242
|
for (const r of s.links) {
|
|
243
243
|
const c = `${r.fromNode?.key}-${r.toNode?.key}`;
|
|
244
|
-
|
|
244
|
+
o.add(r, "opacity", r.opacity, i[c]);
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
o.start();
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
if (
|
|
249
|
+
function x(n, t, e, a, s = !0) {
|
|
250
|
+
if (n.length === 0)
|
|
251
251
|
return;
|
|
252
252
|
const i = t[0].diagram;
|
|
253
253
|
if (!i)
|
|
254
254
|
return;
|
|
255
|
-
const
|
|
255
|
+
const o = {};
|
|
256
256
|
if (s) {
|
|
257
257
|
for (const r of i.nodes) {
|
|
258
|
-
const c =
|
|
259
|
-
|
|
258
|
+
const c = n.includes(r.key);
|
|
259
|
+
o[r.key] = !e || c ? f : L;
|
|
260
260
|
}
|
|
261
261
|
for (const r of i.links) {
|
|
262
262
|
const c = `${r.fromNode?.key}-${r.toNode?.key}`;
|
|
263
|
-
|
|
263
|
+
o[c] = e ? b : w;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
if (Object.keys(a).forEach((r) => {
|
|
@@ -269,43 +269,43 @@ function L(o, t, e, a, s = !0) {
|
|
|
269
269
|
const r = new d.Animation();
|
|
270
270
|
r.duration = 1;
|
|
271
271
|
for (const c of i.nodes)
|
|
272
|
-
r.add(c, "opacity", c.opacity,
|
|
272
|
+
r.add(c, "opacity", c.opacity, o[c.key]);
|
|
273
273
|
for (const c of i.links) {
|
|
274
274
|
const h = `${c.fromNode?.key}-${c.toNode?.key}`;
|
|
275
|
-
r.add(c, "opacity", c.opacity,
|
|
275
|
+
r.add(c, "opacity", c.opacity, o[h]);
|
|
276
276
|
}
|
|
277
277
|
r.start();
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
function X(
|
|
280
|
+
function X(n, t, e = !1, a) {
|
|
281
281
|
return {
|
|
282
282
|
key: t,
|
|
283
|
-
title:
|
|
284
|
-
itemId:
|
|
285
|
-
itemType:
|
|
286
|
-
itemTypeForDisplay: re(
|
|
287
|
-
itemTypeKeywords:
|
|
288
|
-
group:
|
|
289
|
-
url: e ? `${a}?id=${
|
|
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
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function ee(
|
|
293
|
-
return
|
|
292
|
+
function ee(n) {
|
|
293
|
+
return n.id;
|
|
294
294
|
}
|
|
295
|
-
function te(
|
|
295
|
+
function te(n, t, e, a = 0, s = !1) {
|
|
296
296
|
let i = "";
|
|
297
297
|
s && (i += "F");
|
|
298
|
-
const
|
|
299
|
-
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;
|
|
300
300
|
}
|
|
301
301
|
function ie() {
|
|
302
302
|
document.dispatchEvent(new CustomEvent("clickInDiagram"));
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function oe(n, t) {
|
|
305
305
|
const e = t.part;
|
|
306
306
|
e instanceof d.Node && (e.selectionAdorned = !1, document.dispatchEvent(new CustomEvent("clickOnNode", { detail: e })));
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function ne(n, t) {
|
|
309
309
|
const e = document.createElement("calcite-switch");
|
|
310
310
|
e.id = "filteredViewButton", e.label = t.filteredView;
|
|
311
311
|
const a = document.createElement("calcite-label");
|
|
@@ -314,56 +314,56 @@ function oe(o, t) {
|
|
|
314
314
|
s.id = "filteredViewButtonDiv", s.appendChild(a);
|
|
315
315
|
const i = document.createElement("calcite-action-bar");
|
|
316
316
|
i.id = "filter-bar-controls", i.layout = "horizontal", i.expandDisabled = !0, i.appendChild(s);
|
|
317
|
-
const
|
|
318
|
-
return
|
|
317
|
+
const o = document.createElement("div");
|
|
318
|
+
return o.id = "filter-bar", n.appendChild(o), o.appendChild(i), e;
|
|
319
319
|
}
|
|
320
|
-
function ae(
|
|
320
|
+
function ae(n, t) {
|
|
321
321
|
const e = document.createElement("calcite-action");
|
|
322
|
-
e.icon = "reset", e.id = "showHideGrayedOutButton";
|
|
322
|
+
e.icon = "reset", e.id = "showHideGrayedOutButton", e.text = t.reset;
|
|
323
323
|
const a = document.createElement("calcite-tooltip");
|
|
324
324
|
a.id = "resetButtonTooltip", a.innerHTML = t.reset, a.overlayPositioning = "fixed", a.placement = "bottom", a.referenceElement = e.id;
|
|
325
325
|
const s = document.createElement("calcite-action");
|
|
326
|
-
s.icon = "zoom-to-object", s.id = "centerButton";
|
|
326
|
+
s.icon = "zoom-to-object", s.id = "centerButton", s.text = t.centerDiagram;
|
|
327
327
|
const i = document.createElement("calcite-tooltip");
|
|
328
328
|
i.id = "centerButtonTooltip", i.innerHTML = t.centerDiagram, i.overlayPositioning = "fixed", i.placement = "bottom", i.referenceElement = s.id;
|
|
329
|
-
const
|
|
330
|
-
|
|
329
|
+
const o = document.createElement("calcite-action");
|
|
330
|
+
o.icon = "plus", o.id = "zoomInButton", o.text = t.zoomIn;
|
|
331
331
|
const r = document.createElement("calcite-tooltip");
|
|
332
|
-
r.id = "zoomInButtonTooltip", r.innerHTML = t.zoomIn, r.overlayPositioning = "fixed", r.placement = "bottom", r.referenceElement =
|
|
332
|
+
r.id = "zoomInButtonTooltip", r.innerHTML = t.zoomIn, r.overlayPositioning = "fixed", r.placement = "bottom", r.referenceElement = o.id;
|
|
333
333
|
const c = document.createElement("calcite-action");
|
|
334
|
-
c.appearance = "solid", c.icon = "minus", c.id = "zoomOutButton";
|
|
334
|
+
c.appearance = "solid", c.icon = "minus", c.id = "zoomOutButton", c.text = t.zoomOut;
|
|
335
335
|
const h = document.createElement("calcite-tooltip");
|
|
336
336
|
h.id = "zoomOutButtonTooltip", h.innerHTML = t.zoomOut, h.overlayPositioning = "fixed", h.placement = "bottom", h.referenceElement = c.id;
|
|
337
337
|
const l = document.createElement("calcite-action-bar");
|
|
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(
|
|
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);
|
|
339
339
|
const y = document.createElement("div");
|
|
340
|
-
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 };
|
|
341
341
|
}
|
|
342
|
-
function re(
|
|
343
|
-
let e =
|
|
344
|
-
if (
|
|
342
|
+
function re(n, t) {
|
|
343
|
+
let e = n;
|
|
344
|
+
if (n === "Feature Service") {
|
|
345
345
|
const a = t.indexOf("View Service") > -1, s = t.indexOf("Table") > -1;
|
|
346
346
|
e = a && s ? "Table (hosted, view)" : s ? "Table (hosted)" : a ? "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
|
|
347
347
|
}
|
|
348
|
-
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;
|
|
349
349
|
}
|
|
350
|
-
function de(
|
|
351
|
-
|
|
350
|
+
function de(n) {
|
|
351
|
+
n.zoomToFit(), document.dispatchEvent(new CustomEvent("reset"));
|
|
352
352
|
}
|
|
353
|
-
function p(
|
|
353
|
+
function p(n) {
|
|
354
354
|
const t = document.body;
|
|
355
|
-
return getComputedStyle(t).getPropertyValue(
|
|
355
|
+
return getComputedStyle(t).getPropertyValue(n).trim();
|
|
356
356
|
}
|
|
357
|
-
function se(
|
|
358
|
-
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)
|
|
359
359
|
throw new Error("Invalid hex color");
|
|
360
|
-
const e = parseInt(
|
|
360
|
+
const e = parseInt(n.slice(0, 2), 16), a = parseInt(n.slice(2, 4), 16), s = parseInt(n.slice(4, 6), 16);
|
|
361
361
|
return `rgba(${e}, ${a}, ${s}, ${t})`;
|
|
362
362
|
}
|
|
363
363
|
const ce = 8, le = 15, he = ue("--calcite-color-brand"), me = 4;
|
|
364
|
-
function ue(
|
|
364
|
+
function ue(n) {
|
|
365
365
|
const t = document.documentElement;
|
|
366
|
-
return getComputedStyle(t).getPropertyValue(
|
|
366
|
+
return getComputedStyle(t).getPropertyValue(n).trim();
|
|
367
367
|
}
|
|
368
368
|
class pe {
|
|
369
369
|
/**
|
|
@@ -383,16 +383,16 @@ class pe {
|
|
|
383
383
|
i.stopImmediatePropagation(), (this.currentSelectedGroupId || this.currentSelectedItemId) && (this.currentSelectedGroupId = "", this.currentSelectedItemId = "", this.diagramNeedsRedraw = this.usefilteredView, this.redraw());
|
|
384
384
|
}, this.handle_clickOnNode = (i) => {
|
|
385
385
|
i.stopImmediatePropagation();
|
|
386
|
-
const
|
|
387
|
-
this.redraw(
|
|
386
|
+
const o = i.detail.data.key;
|
|
387
|
+
this.redraw(o, o === this.currentSelectedItemId);
|
|
388
388
|
}, this.handle_filteredViewChanged = (i) => {
|
|
389
389
|
this.usefilteredView = i.detail, this.diagramNeedsRedraw = !!this.currentSelectedGroupId || !!this.currentSelectedItemId, this.redraw(this.currentSelectedItemId || this.currentSelectedGroupId);
|
|
390
390
|
}, this.handle_reset = (i) => {
|
|
391
391
|
i.stopImmediatePropagation(), this.reset();
|
|
392
392
|
}, this.handle_solutionItemSelect = (i) => {
|
|
393
393
|
i.stopImmediatePropagation();
|
|
394
|
-
const
|
|
395
|
-
this.redraw(
|
|
394
|
+
const o = i.detail.itemId;
|
|
395
|
+
this.redraw(o, o === this.currentSelectedItemId || o === this.currentSelectedGroupId, !1);
|
|
396
396
|
}, d.Diagram.licenseKey === "" && (d.Diagram.licenseKey = s ?? "");
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
@@ -426,7 +426,7 @@ class pe {
|
|
|
426
426
|
clearSelections(t = !0) {
|
|
427
427
|
this.index.deselectAll(), t && this.index.collapseAll();
|
|
428
428
|
const e = this.getNodesFromDiagram(this.diagram), a = e.map((s) => s.data.key);
|
|
429
|
-
|
|
429
|
+
x(a, e, !1, this.diagramNodeHighlighterIndex);
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
432
|
* Creates indicies into the diagram's nodes and node highlighters.
|
|
@@ -484,28 +484,28 @@ class pe {
|
|
|
484
484
|
if (s) {
|
|
485
485
|
if (this.currentSelectedItemId = "", this.currentSelectedGroupId !== t ? this.currentSelectedGroupId = t : e && (this.currentSelectedGroupId = this.currentSelectedGroupId ? "" : t, i = this.usefilteredView && !this.currentSelectedGroupId), this.currentSelectedGroupId) {
|
|
486
486
|
this.usefilteredView && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters());
|
|
487
|
-
const
|
|
487
|
+
const o = this.collection.filter((c) => c.id === t)[0], r = o.dependencies.map((c) => this.diagramNodeIndex[c]);
|
|
488
488
|
if (this.usefilteredView) {
|
|
489
489
|
const c = r.map((h) => h.data);
|
|
490
490
|
m(this.diagram, { nodes: c, links: [] });
|
|
491
491
|
} else
|
|
492
|
-
|
|
492
|
+
x(o.dependencies, r, !0, this.diagramNodeHighlighterIndex);
|
|
493
493
|
this.index.selectItem(this.currentSelectedGroupId);
|
|
494
494
|
}
|
|
495
495
|
} else {
|
|
496
496
|
this.currentSelectedGroupId = "", this.currentSelectedItemId !== t ? this.currentSelectedItemId = t : e && (this.currentSelectedItemId = this.currentSelectedItemId ? "" : t, i = this.usefilteredView && !this.currentSelectedItemId);
|
|
497
|
-
let
|
|
498
|
-
if ((!
|
|
497
|
+
let o = this.getNodeById(t);
|
|
498
|
+
if ((!o || this.usefilteredView) && (m(this.diagram, this.allNodesAndLinks), this.createNodeHighlighters(), o = this.getNodeById(t), !o))
|
|
499
499
|
return;
|
|
500
500
|
if (this.currentSelectedItemId) {
|
|
501
501
|
if (this.usefilteredView) {
|
|
502
|
-
const r = E(
|
|
503
|
-
r.connectedNodes.add(
|
|
502
|
+
const r = E(o);
|
|
503
|
+
r.connectedNodes.add(o);
|
|
504
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(),
|
|
505
|
+
if (m(this.diagram, { nodes: c, links: h }), this.createNodeHighlighters(), o = this.getNodeById(t), !o)
|
|
506
506
|
return;
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
o && setTimeout(() => U(o, !0, this.diagramNodeHighlighterIndex[t]), 1), this.index.selectItem(this.currentSelectedItemId);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
i && this.reset();
|
|
@@ -545,7 +545,7 @@ class ge extends $ {
|
|
|
545
545
|
super.disconnectedCallback(), this.solutionDisplay && (this.solutionDisplay.dispose(), this.solutionDisplay = void 0);
|
|
546
546
|
}
|
|
547
547
|
render() {
|
|
548
|
-
return
|
|
548
|
+
return C`<calcite-shell><calcite-shell-panel id=diagram-shell-panel slot=panel-start ${I(this._diagramShell)}></calcite-shell-panel><calcite-panel class="z-index-1" id=diagram-panel slot=panel-bottom ${I(this._diagramPanel)}></calcite-panel></calcite-shell>`;
|
|
549
549
|
}
|
|
550
550
|
_preventDiagramScrollbars() {
|
|
551
551
|
if (!this._diagramPanel.value)
|
|
@@ -557,7 +557,7 @@ class ge extends $ {
|
|
|
557
557
|
e instanceof HTMLElement && (e.style.overflow = "hidden");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
D("solution-item-diagram", ge);
|
|
561
561
|
export {
|
|
562
562
|
ge as SolutionItemDiagram
|
|
563
563
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as s } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as n, html as o } from "lit";
|
|
4
4
|
import { LitElement as r, nothing as t } from "@arcgis/lumina";
|
|
5
5
|
import { g as p, a as m } from "../../chunks/getItemIcon.js";
|
|
6
|
-
const l =
|
|
6
|
+
const l = n`.item-type-icon{@apply block h-4 pointer-events-none;margin-top:.15em!important;min-width:16px;fill:currentColor;transform:rotate(360deg)}.item-type-icon-margin{@apply m-inline-end-1.5;}`;
|
|
7
7
|
class c extends r {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments), this.isPortal = !1, this.type = "", this.typeKeywords = [], this.designType = "";
|
|
@@ -16,7 +16,7 @@ class c extends r {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const e = this.designType ? p(this.designType) : m(this.type, this.typeKeywords), i = this.designType || this.type;
|
|
19
|
-
return
|
|
19
|
+
return o`<div title=${i ?? t}><img alt aria-hidden=true class="item-type-icon item-type-icon-margin" height=16 src=${e ?? t} width=16></div>`;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
s("solution-item-icon", c);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as e } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as
|
|
3
|
+
import { css as r, svg as o, html as l } from "lit";
|
|
4
4
|
import { u as h } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as n, nothing as s } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as m } from "@arcgis/lumina/context";
|
|
7
7
|
import { c as z } from "../../chunks/deployAppContexts.js";
|
|
8
8
|
import { T as v } from "../../chunks/interfaces.js";
|
|
9
9
|
import { k as d } from "../../chunks/helpers.js";
|
|
10
|
-
const H =
|
|
10
|
+
const H = r`calcite-card{cursor:pointer;height:100%;padding-bottom:2px;border-inline-start:3px solid transparent}calcite-card:hover{outline:1px solid var(--calcite-color-brand);border-inline-start:3px solid var(--calcite-color-brand);box-sizing:border-box}.card-icon{margin-bottom:var(--calcite-spacing-md);display:flex;justify-content:flex-start}.card-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);margin:0 0 var(--calcite-spacing-sm) 0;color:var(--calcite-color-text-1)}.card-description{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2);margin:0}.meridian-icon{width:48px;height:48px;display:block;color:var(--calcite-color-text-3)}`, i = {
|
|
11
11
|
"arcmap-blog": "M34 28.9H10v-.8h24zm-24 5h20v-.8H10zm31.591-20.8l-.8.8H45.1v25.2H18.583l-9.817 4.245 1.823-4.245H3.9V13.9h22.665l.8-.8H3.1v26.8h6.274l-2.142 4.986L18.666 39.9H45.9V13.1zm-.953-5.141l.449 2.676L32.6 19.12l-.567-.565 8.195-8.196-.286-1.708L24.09 24.476a1.82 1.82 0 0 1-.689.431l-3.52 1.22 1.213-3.525a1.832 1.832 0 0 1 .431-.692L42.461.989l2.578 2.577zm3.268-4.394L42.461 2.12 22.09 22.475a1.036 1.036 0 0 0-.242.388l-.678 1.97 1.968-.682a1.018 1.018 0 0 0 .384-.24z",
|
|
12
12
|
"esri-community": "M24 47.896a3.897 3.897 0 0 1-1.563-.327L3.1 39.106V12.928a6.169 6.169 0 0 1 3.696-5.651L22.436.43a3.905 3.905 0 0 1 3.128 0L44.9 8.894v26.178a6.17 6.17 0 0 1-3.696 5.651l-15.64 6.846a3.897 3.897 0 0 1-1.564.327zM3.9 38.583l18.857 8.254a3.11 3.11 0 0 0 2.486 0l15.64-6.846a5.37 5.37 0 0 0 3.217-4.92V9.418L25.243 1.163a3.11 3.11 0 0 0-2.486 0L7.117 8.01A5.369 5.369 0 0 0 3.9 12.928zm21.364.344a14.156 14.156 0 0 1-14.17-14.111 13.678 13.678 0 0 1 16.893-13.26l.387.103-1.164 4.336-.389-.107a8.052 8.052 0 0 0-2.141-.282 8.907 8.907 0 0 0-8.74 8.838 9.303 9.303 0 0 0 15.277 7.075.809.809 0 0 1 1.104.062l2.451 2.57a.808.808 0 0 1-.047 1.161 14.213 14.213 0 0 1-9.461 3.615zm-.559-27a12.956 12.956 0 0 0-12.81 12.889 13.375 13.375 0 0 0 22.298 9.899L31.73 32.13a10.103 10.103 0 0 1-16.591-7.687 9.718 9.718 0 0 1 9.54-9.637 8.982 8.982 0 0 1 1.965.212l.748-2.787a11.953 11.953 0 0 0-2.687-.305zM36 26.9H24a3.905 3.905 0 0 1-3.9-3.9.901.901 0 0 1 .9-.9h10.84a7.77 7.77 0 0 0-1.875-4.15l-.131-.158 1.332-5.01.475.357a13.413 13.413 0 0 1 5.26 10.705V26a.901.901 0 0 1-.901.9zm-15-4a.1.1 0 0 0-.1.1 3.103 3.103 0 0 0 3.1 3.1h12a.1.1 0 0 0 .1-.1v-2.156a12.643 12.643 0 0 0-4.47-9.693l-.918 3.451a8.135 8.135 0 0 1 1.95 4.898v.4z",
|
|
13
13
|
faq: "M18.495 23.09a3.22 3.22 0 0 1 3.502 3.123 3.526 3.526 0 0 1-1.593 3.034 3.413 3.413 0 0 0-1.524 3.096V33h-.8v-.657a4.165 4.165 0 0 1 1.812-3.71 2.727 2.727 0 0 0 1.305-2.42 2.425 2.425 0 0 0-2.702-2.322c-1.716 0-2.498.99-2.498 1.912h-.8c0-1.348 1.133-2.712 3.298-2.712zm22.849-2.748l.843 4.81-3.579-1.014.218-.77 2.354.668-.721-4.111.246-.139c3.427-1.927 5.393-4.774 5.393-7.81 0-5.554-6.55-10.072-14.6-10.072s-14.6 4.518-14.6 10.072a8.111 8.111 0 0 0 2.73 5.856l.313.3C29.924 18.47 37.9 24.104 37.9 31c0 7.113-8.479 12.9-18.9 12.9-1.417 0-3.901-.295-4.433-.36l-9.71 3.627 2.062-6.238C2.58 38.47.1 34.867.1 31c0-7.064 8.364-12.813 18.686-12.893a8.769 8.769 0 0 1-2.688-6.131c0-5.995 6.908-10.872 15.4-10.872s15.4 4.877 15.4 10.872c0 3.258-2.02 6.295-5.554 8.366zM19 18.9C9.02 18.9.9 24.328.9 31c0 3.65 2.44 7.073 6.694 9.389l.293.16-1.746 5.285 8.33-3.112.097.012c.03.004 2.923.366 4.432.366 9.98 0 18.1-5.428 18.1-12.1S28.98 18.9 19 18.9zm.4 16.6a.9.9 0 1 1-.9-.9.901.901 0 0 1 .9.9zm-.8 0a.1.1 0 0 0-.2 0c0 .11.2.11.2 0zm12.9-25.025a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225zm6.975.225a1.025 1.025 0 1 1 1.025 1.025 1.026 1.026 0 0 1-1.025-1.025zm.8 0c0 .248.45.248.45 0a.225.225 0 0 0-.45 0zM23.5 10.475a1.025 1.025 0 1 1-1.025 1.025 1.026 1.026 0 0 1 1.025-1.025zm0 .8a.225.225 0 0 0-.225.225c0 .248.45.248.45 0a.225.225 0 0 0-.225-.225z",
|
|
@@ -37,7 +37,7 @@ class p extends n {
|
|
|
37
37
|
return this._configContextConsumer.value?.telemetrySession;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return l`<calcite-card @click=${() => this.url && this._handleCardClick(this.url)} @keydown=${(a) => d(a, () => this.url && this._handleCardClick(this.url))}>${this.meridianIcon && i[this.meridianIcon] && l`<div class="card-icon"><svg class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${
|
|
40
|
+
return l`<calcite-card @click=${() => this.url && this._handleCardClick(this.url)} @keydown=${(a) => d(a, () => this.url && this._handleCardClick(this.url))}>${this.meridianIcon && i[this.meridianIcon] && l`<div class="card-icon"><svg aria-hidden=true class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${o`<path fill=currentColor d=${i[this.meridianIcon] ?? s} />`}</svg></div>` || ""}${this.icon && l`<div class="card-icon"><calcite-icon aria-hidden=true .icon=${this.icon} scale=l></calcite-icon></div>` || ""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`;
|
|
41
41
|
}
|
|
42
42
|
_handleCardClick(a) {
|
|
43
43
|
const c = this.headingEn || this.heading, t = this.sectionHeadingEn || "";
|
|
@@ -37,7 +37,7 @@ class b extends l {
|
|
|
37
37
|
}
|
|
38
38
|
_getFooter() {
|
|
39
39
|
const t = this._screenshotNames.indexOf(this.screenshot?.name || ""), o = document.body.classList.contains("calcite-mode-dark") ? "calcite-mode-dark" : "";
|
|
40
|
-
return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${o}`}><calcite-label layout=inline><calcite-pagination class="padding-end-1" @calcitePaginationChange=${this._changeScreenshot} page-size=1 start-item=${t + 1} total-items=${this._screenshots.length ?? a} ${u(this._paginationControl)}></calcite-pagination><span tabindex=0>${this._displayText}</span></calcite-label></div>${this._getCards()}</div>`;
|
|
40
|
+
return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${o}`}><calcite-label layout=inline><calcite-pagination class="padding-end-1" @calcitePaginationChange=${this._changeScreenshot} page-size=1 start-item=${t + 1} total-items=${this._screenshots.length ?? a} ${u(this._paginationControl)}></calcite-pagination><span aria-live=polite tabindex=0>${this._displayText}</span></calcite-label></div>${this._getCards()}</div>`;
|
|
41
41
|
}
|
|
42
42
|
_changeScreenshot() {
|
|
43
43
|
this.screenshot = this._screenshots[this._paginationControl.value.startItem - 1];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as v, html as e, svg as
|
|
3
|
+
import { css as v, html as e, svg as u } from "lit";
|
|
4
4
|
import { u as g } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as m, nothing as h, safeStyleMap as l } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as b } from "@arcgis/lumina/context";
|
|
@@ -73,15 +73,15 @@ class P extends m {
|
|
|
73
73
|
}
|
|
74
74
|
_renderButton() {
|
|
75
75
|
const o = this.shareButtonScale != null ? this.shareButtonScale : this.scale;
|
|
76
|
-
return this.shareButtonType === "button" ? e`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} title=${this._translations.share?.label ?? h} ${r(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>` : e`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} text title=${this._translations.share?.label ?? h} ${r(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`;
|
|
76
|
+
return this.shareButtonType === "button" ? e`<calcite-button .appearance=${this.buttonAppearance} class=solutions-social-share__popover-button id=shareButton .kind=${this.shareButtonKind} .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} title=${this._translations.share?.label ?? h} ${r(this._popoverButtonRef)}>${this.shareButtonText}</calcite-button>` : e`<calcite-action alignment=center .appearance=${this.actionApperance} class=solutions-social-share__popover-button id=shareButton .label=${this._translations.share?.label} @click=${this._togglePopover.bind(this)} .scale=${o} text title=${this._translations.share?.label ?? h} ${r(this._popoverActionRef)}><div class=solutions-social-share__icon-container><calcite-icon aria-hidden=true icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div></calcite-action>`;
|
|
77
77
|
}
|
|
78
78
|
_renderSuccess() {
|
|
79
79
|
const o = this._translations.success;
|
|
80
|
-
return e`<div class=solutions-social-share__success><span class=solutions-social-share__success-header><span class=solutions-social-share__success-icon><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${o?.label}</span><span class=solutions-social-share__success-message>${this.successMessage || o?.url}</span></div>`;
|
|
80
|
+
return e`<div class=solutions-social-share__success><span class=solutions-social-share__success-header><span class=solutions-social-share__success-icon><calcite-icon aria-hidden=true icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${o?.label}</span><span class=solutions-social-share__success-message>${this.successMessage || o?.url}</span></div>`;
|
|
81
81
|
}
|
|
82
82
|
_renderOptions() {
|
|
83
83
|
const o = this._translations.options, s = document.dir === "rtl" ? " solutions-social-share__option-text--rtl" : "";
|
|
84
|
-
return e`<ul class=solutions-social-share__options role=menu ${r(this._shareListRef)}><li id=copyToClipboard @click=${this._handleShareItem.bind(this, "link")} @keydown=${this._handleOptionKeyDown("link")} role=menuitem tabindex=0><span class=solutions-social-share__icon><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`solutions-social-share__option-text${s}`}>${o?.link?.label}</span></li>${this.socialMedia ? [
|
|
84
|
+
return e`<ul class=solutions-social-share__options role=menu ${r(this._shareListRef)}><li id=copyToClipboard @click=${this._handleShareItem.bind(this, "link")} @keydown=${this._handleOptionKeyDown("link")} role=menuitem tabindex=0><span class=solutions-social-share__icon><calcite-icon aria-hidden=true icon=link .scale=${this.scale}></calcite-icon></span><span class=${`solutions-social-share__option-text${s}`}>${o?.link?.label}</span></li>${this.socialMedia ? [
|
|
85
85
|
e`<li @click=${this._handleShareItem.bind(this, "facebook")} @keydown=${this._handleOptionKeyDown("facebook")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderFacebookIcon()}</span><span class=${`solutions-social-share__option-text${s}`}>${o?.facebook?.label}</span></li>`,
|
|
86
86
|
e`<li @click=${this._handleShareItem.bind(this, "x")} @keydown=${this._handleOptionKeyDown("x")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderXIcon()}</span><span class=${`solutions-social-share__option-text${s}`}>\r\n X</span></li>`,
|
|
87
87
|
e`<li @click=${this._handleShareItem.bind(this, "linkedIn")} @keydown=${this._handleOptionKeyDown("linkedIn")} role=menuitem tabindex=0><span class=solutions-social-share__icon>${this._renderLinkedInIcon()}</span><span class=${`solutions-social-share__option-text${s}`}>${o?.linkedIn?.label}</span></li>`,
|
|
@@ -95,16 +95,16 @@ class P extends m {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
_renderFacebookIcon() {
|
|
98
|
-
return e`<svg height=100% style=${l({ fillRule: "evenodd", clipRule: "evenodd", strokeLinejoin: "round", strokeMiterlimit: "2" })} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${
|
|
98
|
+
return e`<svg aria-hidden=true height=100% style=${l({ fillRule: "evenodd", clipRule: "evenodd", strokeLinejoin: "round", strokeMiterlimit: "2" })} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${u`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${l({ fill: "#1877f2", fillRule: "nonzero" })} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${l({ fill: "#fff", fillRule: "nonzero" })} /></g>`}</svg>`;
|
|
99
99
|
}
|
|
100
100
|
_renderXIcon() {
|
|
101
|
-
return e`<svg height=100% width=100% class="solutions-social-share__x-logo" viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${
|
|
101
|
+
return e`<svg aria-hidden=true height=100% width=100% class="solutions-social-share__x-logo" viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${u`<rect height=400 style=${l({ fill: "none" })} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=currentColor />`}</svg>`;
|
|
102
102
|
}
|
|
103
103
|
_renderBlueSkyIcon() {
|
|
104
|
-
return e`<svg height=100% width=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${
|
|
104
|
+
return e`<svg aria-hidden=true height=100% width=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${u`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`;
|
|
105
105
|
}
|
|
106
106
|
_renderLinkedInIcon() {
|
|
107
|
-
return e`<svg height=100% style=${l({ fillRule: "evenodd", clipRule: "evenodd", strokeLinejoin: "round", strokeMiterlimit: "2" })} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${
|
|
107
|
+
return e`<svg aria-hidden=true height=100% style=${l({ fillRule: "evenodd", clipRule: "evenodd", strokeLinejoin: "round", strokeMiterlimit: "2" })} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${u`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${l({ fill: "#2867b2" })} /><g id=shapes><rect height=257.962 id=rect11 style=${l({ fill: "#fff" })} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${l({ fill: "#fff", fillRule: "nonzero" })} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${l({ fill: "#fff", fillRule: "nonzero" })} /></g></g>`}</svg>`;
|
|
108
108
|
}
|
|
109
109
|
_togglePopover(o) {
|
|
110
110
|
o.stopPropagation(), this._opened = !this._opened, this._popoverRef.value.open = this._opened;
|
|
@@ -138,10 +138,10 @@ class P extends m {
|
|
|
138
138
|
{
|
|
139
139
|
let a;
|
|
140
140
|
i && (a = window.open("", "_blank"), this.shortenShareUrl && (c = await this._shortenUrl(this.shareUrl) || c));
|
|
141
|
-
const
|
|
141
|
+
const p = {
|
|
142
142
|
url: encodeURI(c)
|
|
143
|
-
},
|
|
144
|
-
this.mode === "popover" && this._closePopover(), i && a ? (a.location =
|
|
143
|
+
}, _ = o === "x" ? { ...p, text: this.shareText } : p, d = $.substitute(S[o], _);
|
|
144
|
+
this.mode === "popover" && this._closePopover(), i && a ? (a.location = d, a.focus()) : window.open(encodeURI(d), "_blank");
|
|
145
145
|
}
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
@@ -156,7 +156,7 @@ class $ extends v {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
_getMeridianSearch() {
|
|
159
|
-
return d`<div><svg viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${C`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`;
|
|
159
|
+
return d`<div><svg aria-hidden=true viewBox="0 0 64 64" width=140 height=140 xmlns=http://www.w3.org/2000/svg fill=var(--calcite-color-text-3)>${C`<path d="M60.217 54.937l-15.77-15.77-1.414 1.415-3.801-3.8a19.94 19.94 0 1 0-2.451 2.45l3.802 3.802-1.413 1.415 15.767 15.767a1.739 1.739 0 0 0 2.459 0l2.82-2.821a1.742 1.742 0 0 0 0-2.458zM4.9 24A19.1 19.1 0 1 1 24 43.1 19.121 19.121 0 0 1 4.9 24zm32.474 14.693q.69-.63 1.32-1.32l3.774 3.775-1.32 1.32zM59.65 56.83l-2.82 2.82a.97.97 0 0 1-1.327 0L40.3 44.45l4.145-4.15L59.65 55.501a.939.939 0 0 1 0 1.328zM22.343 9.62l.097.795q-.31.038-.619.086a13.635 13.635 0 0 0-11.353 11.775l-.026.217-.795-.084.026-.228a14.44 14.44 0 0 1 12.022-12.47c.215-.034.431-.064.648-.09z" />`}</svg></div>`;
|
|
160
160
|
}
|
|
161
161
|
_textSearch(e) {
|
|
162
162
|
this._agoTerms = this._baseAgoTerms + ` ${e}`;
|
|
@@ -11,6 +11,7 @@ export abstract class SolutionsAllShell extends LitElement {
|
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
13
|
protected _translations: {
|
|
14
|
+
appliedFilters: string;
|
|
14
15
|
clearIndustryFilter: string;
|
|
15
16
|
chooseSortType: string;
|
|
16
17
|
numberOfSolutions: string;
|
|
@@ -20,6 +21,7 @@ export abstract class SolutionsAllShell extends LitElement {
|
|
|
20
21
|
sortByUpdated: string;
|
|
21
22
|
sortBySuggestedForYou: string;
|
|
22
23
|
} & T9nMeta<{
|
|
24
|
+
appliedFilters: string;
|
|
23
25
|
clearIndustryFilter: string;
|
|
24
26
|
chooseSortType: string;
|
|
25
27
|
numberOfSolutions: string;
|