@esri/solutions-components 5.0.2 → 5.0.3
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/{PNBTKFO6.js → 254AARKL.js} +1 -1
- package/dist/cdn/{VYTGCKEU.js → 2OL2CMZE.js} +1 -1
- package/dist/cdn/{5UEEUPL5.js → 3H5S6KGV.js} +1 -1
- package/dist/cdn/{XFEOA56B.js → 3NTCGBPK.js} +1 -1
- package/dist/cdn/{ASSNR5JI.js → 3QMNW3AL.js} +1 -1
- package/dist/cdn/{4CMHNL7Z.js → 3X5E5PEB.js} +1 -1
- package/dist/cdn/{TUGGGATS.js → 46N6WE5W.js} +1 -1
- package/dist/cdn/{W53A2CNH.js → 47EMI5L2.js} +1 -1
- package/dist/cdn/{RDWJHF5P.js → 4H3LGV2O.js} +1 -1
- package/dist/cdn/{2642PFUF.js → 4TZGWL7D.js} +1 -1
- package/dist/cdn/{FL74XITX.js → 5H3T3ZTG.js} +1 -1
- package/dist/cdn/{MMZXFDQZ.js → 632Z67I5.js} +1 -1
- package/dist/cdn/{BGO3JXY3.js → 65I7NFWN.js} +1 -1
- package/dist/cdn/{WZZG5H7Q.js → 6GMSPYN2.js} +1 -1
- package/dist/cdn/{LFIJXE3U.js → 6LLQFZGG.js} +1 -1
- package/dist/cdn/{Y4YYE2LG.js → 7G7GTCD2.js} +1 -1
- package/dist/cdn/{HAAFUV3J.js → 7QOFBIFO.js} +1 -1
- package/dist/cdn/{54WM76XB.js → A25PBMLE.js} +1 -1
- package/dist/cdn/{FUUWSZIZ.js → B5ARN6DC.js} +1 -1
- package/dist/cdn/{ZQJ2QLO5.js → B7LNGJY2.js} +1 -1
- package/dist/cdn/{CK7LURBK.js → BAVJY3AH.js} +1 -1
- package/dist/cdn/{YQECYE4M.js → BVBWBQGA.js} +1 -1
- package/dist/cdn/{FZ4NFB5R.js → DIG42YV7.js} +1 -1
- package/dist/cdn/{D2QNPQWY.js → E5GLDSJZ.js} +1 -1
- package/dist/cdn/{E4L5GTBZ.js → EG4OLFS7.js} +1 -1
- package/dist/cdn/F7CBQCHQ.js +2 -0
- package/dist/cdn/{LGUC7DRT.js → F7KPKXY6.js} +1 -1
- package/dist/cdn/{GJJOB4RR.js → FRM6WUOB.js} +1 -1
- package/dist/cdn/{USIESVTZ.js → GHL7S2IO.js} +1 -1
- package/dist/cdn/{M7OEPT52.js → GVHIJ3IB.js} +1 -1
- package/dist/cdn/{QXLM22NS.js → H2ZDTZJM.js} +1 -1
- package/dist/cdn/{HNRZHAOD.js → HLTPPQD5.js} +1 -1
- package/dist/cdn/{3M6AYSM7.js → IJBEMLYV.js} +1 -1
- package/dist/cdn/{VCH6XDEH.js → IKK4EKF4.js} +1 -1
- package/dist/cdn/{U75PDOJF.js → JMOT5FWT.js} +1 -1
- package/dist/cdn/{JHOXJY5O.js → JO4WX767.js} +1 -1
- package/dist/cdn/{C43NWBRR.js → KB2TRJ24.js} +1 -1
- package/dist/cdn/LI7AOAAS.js +2 -0
- package/dist/cdn/{4OZQG5MW.js → LT26PSOA.js} +1 -1
- package/dist/cdn/{OLDYKR5E.js → LYVD54Z4.js} +1 -1
- package/dist/cdn/{WDFQGUHD.js → MJM54ITG.js} +1 -1
- package/dist/cdn/{2J6ZHQEF.js → MKJGHHQA.js} +1 -1
- package/dist/cdn/{BHHQFUCH.js → MOQP5E5H.js} +1 -1
- package/dist/cdn/{N5YBX6NM.js → MQ3VVC37.js} +1 -1
- package/dist/cdn/{BFHVGXZN.js → O5B2N6WR.js} +1 -1
- package/dist/cdn/{DZUVI4S3.js → OELPVFFA.js} +1 -1
- package/dist/cdn/OWIJJGEY.js +2 -0
- package/dist/cdn/{B5SYTUTT.js → PHNGM56J.js} +1 -1
- package/dist/cdn/{ZYTKA3NP.js → PTCD4PWF.js} +1 -1
- package/dist/cdn/{5VP4DXWE.js → PUFV6POH.js} +1 -1
- package/dist/cdn/{KVR3XE7B.js → PXZF4QLN.js} +1 -1
- package/dist/cdn/{LQ3CLDU5.js → Q364IAYO.js} +1 -1
- package/dist/cdn/{ZRCMN3AQ.js → Q5CDQ25L.js} +1 -1
- package/dist/cdn/{UDTF5SYU.js → QDQVOSEM.js} +1 -1
- package/dist/cdn/{VDDTJAF2.js → QFQS5CRA.js} +1 -1
- package/dist/cdn/{N7RLYKQG.js → QKSDEEHH.js} +1 -1
- package/dist/cdn/{UR6OMPID.js → QO5AMX4U.js} +1 -1
- package/dist/cdn/{RTSKNY33.js → QRPBAR4V.js} +1 -1
- package/dist/cdn/{LTBO6VJF.js → RNEXKDUX.js} +1 -1
- package/dist/cdn/{BVWFZPY7.js → S23N6TCC.js} +1 -1
- package/dist/cdn/{6E6CKB2R.js → SHZO2XLE.js} +1 -1
- package/dist/cdn/{TAXUQXTN.js → SJEXGZK4.js} +1 -1
- package/dist/cdn/{5Z32YRHM.js → SVAPYMHV.js} +1 -1
- package/dist/cdn/{HLPUNGB5.js → TH6ZKLKN.js} +1 -1
- package/dist/cdn/{KKI72ISR.js → TZR3I4ZP.js} +1 -1
- package/dist/cdn/{AJRYDDC7.js → U2XTDZYY.js} +1 -1
- package/dist/cdn/{XUFPQNGT.js → UDOITPWM.js} +1 -1
- package/dist/cdn/{QKGOQ7EC.js → URNDQQPI.js} +1 -1
- package/dist/cdn/{UDPPJCXC.js → UW42HUTN.js} +1 -1
- package/dist/cdn/{JN4HYWSX.js → VNMG3E5D.js} +1 -1
- package/dist/cdn/{QJ4MQK3Y.js → VPNO4RA7.js} +1 -1
- package/dist/cdn/{Y3FTYVXY.js → WEWRDXGB.js} +1 -1
- package/dist/cdn/{NQF577F4.js → WUNWHJR5.js} +1 -1
- package/dist/cdn/{6EFUV7CH.js → WZGZCVBE.js} +1 -1
- package/dist/cdn/{6LPOLFT7.js → XWZ2LVEA.js} +1 -1
- package/dist/cdn/{V65IKENN.js → Y3CSVJBO.js} +1 -1
- package/dist/cdn/{KSKNVJAL.js → Y7H6OFT6.js} +1 -1
- package/dist/cdn/{55CA3AGN.js → YCKE3G3V.js} +1 -1
- package/dist/cdn/Z6D47FMI.js +2 -0
- package/dist/cdn/{NQXUGAR7.js → ZEFTAU6G.js} +1 -1
- package/dist/cdn/{BNQ63VOG.js → ZTRDNR6L.js} +1 -1
- package/dist/cdn/{JIPE2UQ3.js → ZV6LDJIX.js} +1 -1
- package/dist/cdn/{TBJLV2A3.js → ZWFXFJN5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +15 -14
- 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 +8 -5
- package/package.json +1 -1
- package/dist/cdn/C2MDLUTX.js +0 -2
- package/dist/cdn/NXG2TZQJ.js +0 -2
- package/dist/cdn/NZYAEBC7.js +0 -2
- package/dist/cdn/VU3OQQKP.js +0 -2
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { c as S } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as I } from "../../chunks/useT9n.js";
|
|
4
4
|
import { createRef as h, ref as p } from "lit-html/directives/ref.js";
|
|
5
|
-
import { LitElement as C, createEvent as
|
|
5
|
+
import { LitElement as C, createEvent as v, safeClassMap as u, nothing as y, safeStyleMap as D } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
7
|
-
import { E as m, V as
|
|
7
|
+
import { E as m, V as E, g as x, A as L, G as R, T as g, W as b, X as T, K as $, J as P, Y as A, Z as O, D as U } from "../../chunks/interfaces.js";
|
|
8
8
|
import { css as N, html as l } from "lit";
|
|
9
|
-
import { request as F, getWorkflowBaseURL as H, getWorkflowManagerAuthorized as V, sanitizeHTML as _, getItemDataAsJson as z, getItem as B, getPropWithDefault as M, getProp as
|
|
9
|
+
import { request as F, getWorkflowBaseURL as H, getWorkflowManagerAuthorized as V, sanitizeHTML as _, getItemDataAsJson as z, getItem as B, getPropWithDefault as M, getProp as f, setCreateProp as Y } from "@esri/solution-common";
|
|
10
10
|
import { _findExistingItem as G } from "@esri/solution-deployer";
|
|
11
11
|
import "../../chunks/solution-deploy-dialog.js";
|
|
12
12
|
import "../solution-snapshot-gallery/customElement.js";
|
|
@@ -18,7 +18,7 @@ async function K(n, e, t) {
|
|
|
18
18
|
"",
|
|
19
19
|
// the portal url
|
|
20
20
|
e
|
|
21
|
-
) && i.push(m.NOTEBOOK), await
|
|
21
|
+
) && i.push(m.NOTEBOOK), await E(e) ? t.push(m.VELOCITY) : n?.PortalUserPrivileges && [
|
|
22
22
|
x.VELOCITYFEEDS,
|
|
23
23
|
x.VELOCITYBIGDATA,
|
|
24
24
|
x.VELOCITYREALTIME
|
|
@@ -81,14 +81,14 @@ function ee(n) {
|
|
|
81
81
|
}
|
|
82
82
|
class te extends C {
|
|
83
83
|
constructor() {
|
|
84
|
-
super(), this._isDeployDisabled = !1, this._isLoaded = !1, this._showScreenshotsShowMore = !1, this._showYouMayAlsoLikeShowMore = !1, this.isMobile = !1, this._isScreenshotsRowExpanded = !1, this._isYouMayAlsoLikeRowExpanded = !1, this._screenshotsRowBaseHeight = 340, this._showLoader = !1, this._templates = [], this._translations = I({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
|
|
85
|
-
context:
|
|
84
|
+
super(), this._isDeployDisabled = !1, this._isLoaded = !1, this._itemFetched = !1, this._showScreenshotsShowMore = !1, this._showYouMayAlsoLikeShowMore = !1, this.isMobile = !1, this._isScreenshotsRowExpanded = !1, this._isYouMayAlsoLikeRowExpanded = !1, this._screenshotsRowBaseHeight = 340, this._showLoader = !1, this._templates = [], this._translations = I({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
|
|
85
|
+
context: L,
|
|
86
86
|
subscribe: !0
|
|
87
87
|
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = h(), this._deployingDialogRef = h(), this._isMobileContextConsumer = w({
|
|
88
88
|
context: R,
|
|
89
89
|
subscribe: !0,
|
|
90
90
|
callback: (e) => this.isMobile = e
|
|
91
|
-
}), this._overviewAccordionItemElement = h(), this._privilegePopoverRef = h(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = h(), this._relatedResourcesAccordionItemElement = h(), this._screenshotsAccordionItemElement = h(), this._screenshotsDialogRef = h(), this._screenshotsElement = h(), this._termsOfUseAccordionItemElement = h(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = h(), this._youMayAlsoLikeElement = h(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched =
|
|
91
|
+
}), this._overviewAccordionItemElement = h(), this._privilegePopoverRef = h(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = h(), this._relatedResourcesAccordionItemElement = h(), this._screenshotsAccordionItemElement = h(), this._screenshotsDialogRef = h(), this._screenshotsElement = h(), this._termsOfUseAccordionItemElement = h(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = h(), this._youMayAlsoLikeElement = h(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = v(), this.itemPropertiesFetched = v(), this.sortTypeChanged = v(), this.tokenRefreshed = v(), this._handleDeployCancelled = () => {
|
|
92
92
|
this._telemetry?.logEvent({
|
|
93
93
|
category: g.SOLUTION_DETAILS,
|
|
94
94
|
action: "Deploy Dialog Canceled",
|
|
@@ -142,7 +142,7 @@ class te extends C {
|
|
|
142
142
|
}, this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "allCardsFetched", this._allCardsFetched), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "deployedCardReady", this._handleDeployedCardReady), this.listenOn(window, "deploymentCompletedWithoutNav", this._handleDeploymentFallback);
|
|
143
143
|
}
|
|
144
144
|
static {
|
|
145
|
-
this.properties = { card: 0, _isDeployDisabled: 16, _isLoaded: 16, _showScreenshotsShowMore: 16, _showYouMayAlsoLikeShowMore: 16, isMobile: 16, _isScreenshotsRowExpanded: 16, _isYouMayAlsoLikeRowExpanded: 16, _itemProperties: 16, _missingPrivilegeMessages: 16, _screenshotsRowBaseHeight: 16, _showLoader: 16, _templates: 16, _translations: 16, _youMayAlsoLikeBaseHeight: 16 };
|
|
145
|
+
this.properties = { card: 0, _isDeployDisabled: 16, _isLoaded: 16, _itemFetched: 16, _showScreenshotsShowMore: 16, _showYouMayAlsoLikeShowMore: 16, isMobile: 16, _isScreenshotsRowExpanded: 16, _isYouMayAlsoLikeRowExpanded: 16, _itemProperties: 16, _missingPrivilegeMessages: 16, _screenshotsRowBaseHeight: 16, _showLoader: 16, _templates: 16, _translations: 16, _youMayAlsoLikeBaseHeight: 16 };
|
|
146
146
|
}
|
|
147
147
|
static {
|
|
148
148
|
this.styles = W;
|
|
@@ -219,7 +219,7 @@ class te extends C {
|
|
|
219
219
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
220
220
|
}
|
|
221
221
|
_getScreenshots() {
|
|
222
|
-
const e = this._itemProperties?.preview.filter((a) => a.format === "image") || [], t = this._configContextConsumer.value, i = this.
|
|
222
|
+
const e = this._itemProperties?.preview.filter((a) => a.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", s = this._itemFetched ? "display-none" : "";
|
|
223
223
|
return l`<calcite-loader class=${u(s)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((a, o) => {
|
|
224
224
|
const c = $(this.card?.id || "", o.name, t.authentication);
|
|
225
225
|
let d;
|
|
@@ -333,8 +333,9 @@ class te extends C {
|
|
|
333
333
|
this._overviewAccordionItemElement.value && (this._overviewAccordionItemElement.value.expanded = !0), this._releaseNotesAccordionItemElement.value && (this._releaseNotesAccordionItemElement.value.expanded = !0), this._relatedResourcesAccordionItemElement.value && (this._relatedResourcesAccordionItemElement.value.expanded = !0), this._screenshotsAccordionItemElement.value && (this._screenshotsAccordionItemElement.value.expanded = !0), this._termsOfUseAccordionItemElement.value && (this._termsOfUseAccordionItemElement.value.expanded = !0), this._youMayAlsoLikeAccordionItemElement.value && (this._youMayAlsoLikeAccordionItemElement.value.expanded = !0);
|
|
334
334
|
}
|
|
335
335
|
async _getItemData() {
|
|
336
|
+
this._itemFetched = !1;
|
|
336
337
|
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await z(this.card.id, t), s = await B(this.card.id, t);
|
|
337
|
-
this._itemProperties = s.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
338
|
+
this._itemFetched = !0, this._itemProperties = s.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
338
339
|
const a = A(i, this.card.typeKeywords, e?.authentication);
|
|
339
340
|
this._privileges = t.username ? a : [], this._userPrivileges = e?.authentication && e?.userSession ? await K(e.authentication, e.userSession, e.authentication.PortalUserPrivileges) : [];
|
|
340
341
|
const o = this._privileges.filter((d) => !this._userPrivileges.includes(d));
|
|
@@ -380,7 +381,7 @@ class te extends C {
|
|
|
380
381
|
}
|
|
381
382
|
updateUserProp(e, t) {
|
|
382
383
|
const i = e.itemType?.toLowerCase() === "feature service", s = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), a = M(t, i ? "url" : "type", "") || "", o = a !== "" && s.test(a);
|
|
383
|
-
return e.responseValue = o ? a : "", e.name = o &&
|
|
384
|
+
return e.responseValue = o ? a : "", e.name = o && f(t, "name") || "", e.title = o && f(t, "title") || "", e.itemType = o ? f(t, "type") : e.itemType, e.validId = o, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), o;
|
|
384
385
|
}
|
|
385
386
|
updateOption(e, t, i) {
|
|
386
387
|
const s = e.default || "", a = typeof s, o = s.toString();
|
|
@@ -413,8 +414,8 @@ class te extends C {
|
|
|
413
414
|
e.valueType && e.valueType.toLowerCase() === "itemid" && Y(e, "attributes.required", "true");
|
|
414
415
|
}
|
|
415
416
|
getValidation(e, t) {
|
|
416
|
-
let i = "", s =
|
|
417
|
-
return
|
|
417
|
+
let i = "", s = f(e, "validation.message") || "", a = !0;
|
|
418
|
+
return f(e, "attributes.required") === "true" && (i = M(e, "validation.expression", "\\S{1,}"), a = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, s = this._translations.configure.invalidID), {
|
|
418
419
|
valid: a,
|
|
419
420
|
validation: {
|
|
420
421
|
expression: i,
|
|
@@ -429,7 +430,7 @@ class te extends C {
|
|
|
429
430
|
this._showYouMayAlsoLikeShowMore = (this._youMayAlsoLikeElement.value?.scrollHeight || 0) > this._youMayAlsoLikeBaseHeight, this._showScreenshotsShowMore = (this._screenshotsElement.value?.scrollHeight || 0) > this._screenshotsRowBaseHeight + 2;
|
|
430
431
|
}
|
|
431
432
|
_cleanupPanel() {
|
|
432
|
-
this.el.scrollIntoView(!0), this._isScreenshotsRowExpanded = !1, this._showScreenshotsShowMore = !1, this._screenshotsElement.value?.classList.remove("expanded"), this._isYouMayAlsoLikeRowExpanded = !1, this._showYouMayAlsoLikeShowMore = !1, this._youMayAlsoLikeElement.value?.classList.remove("expanded"), this._privilegePopoverRef.value?.open && (this._privilegePopoverRef.value.open = !1), this._isDeployDisabled = !1, this._isLoaded = !1, this._showLoader = !1, this._expandAccordions();
|
|
433
|
+
this.el.scrollIntoView(!0), this._isScreenshotsRowExpanded = !1, this._showScreenshotsShowMore = !1, this._screenshotsElement.value?.classList.remove("expanded"), this._isYouMayAlsoLikeRowExpanded = !1, this._showYouMayAlsoLikeShowMore = !1, this._youMayAlsoLikeElement.value?.classList.remove("expanded"), this._privilegePopoverRef.value?.open && (this._privilegePopoverRef.value.open = !1), this._isDeployDisabled = !1, this._isLoaded = !1, this._itemFetched = !1, this._showLoader = !1, this._expandAccordions();
|
|
433
434
|
}
|
|
434
435
|
_deployProgressStart(e) {
|
|
435
436
|
this._deploymentStartTime = Date.now(), this._telemetry?.logEvent({
|