@esri/solutions-components 5.1.0-next.146 → 5.1.0-next.148
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/{BQE6IVEF.js → 3A2YSBVB.js} +1 -1
- package/dist/cdn/{QKJJHBMB.js → 42GXADY4.js} +1 -1
- package/dist/cdn/{L3UI7EZZ.js → 4DAGSZIC.js} +1 -1
- package/dist/cdn/{ULUJKWT5.js → 4FRYNYQ6.js} +1 -1
- package/dist/cdn/4RJURJQ5.js +2 -0
- package/dist/cdn/{7CLM77HQ.js → 4SBOBTOR.js} +1 -1
- package/dist/cdn/{CVRBLJ5O.js → 5MPDXVRM.js} +1 -1
- package/dist/cdn/{MPCJZCL5.js → 5O7LFBHI.js} +2 -2
- package/dist/cdn/{7ADKNWWI.js → 6AUKNSKW.js} +1 -1
- package/dist/cdn/{FSWG7SUT.js → 6K3C5JX2.js} +1 -1
- package/dist/cdn/6VCG2ITQ.js +2 -0
- package/dist/cdn/{NOXANMDF.js → 757HAEJS.js} +1 -1
- package/dist/cdn/{P4XNRWG7.js → 7Q5BT35O.js} +1 -1
- package/dist/cdn/{4NZDPHHF.js → 7WYPODAB.js} +1 -1
- package/dist/cdn/{463VANZI.js → BH42V5CR.js} +1 -1
- package/dist/cdn/DD2Y5NOB.js +2 -0
- package/dist/cdn/{J5K2SIY6.js → DMM5WA5Q.js} +3 -3
- package/dist/cdn/DO7NLLUV.js +2 -0
- package/dist/cdn/{UKQPYE7U.js → DQQTSOMQ.js} +1 -1
- package/dist/cdn/{Y4KGXRSD.js → FWLPMS4Q.js} +1 -1
- package/dist/cdn/{M4II4TSX.js → G3C6IL5Y.js} +1 -1
- package/dist/cdn/{3DCFUYKP.js → GG4IIHQE.js} +1 -1
- package/dist/cdn/GRQLB7ZG.js +2 -0
- package/dist/cdn/{5DEYOM7D.js → HQLA2AI4.js} +1 -1
- package/dist/cdn/{MHVLVLRA.js → HYQVSB6C.js} +1 -1
- package/dist/cdn/I46CXTVR.js +2 -0
- package/dist/cdn/{MIH5YMTN.js → JMBANG5V.js} +1 -1
- package/dist/cdn/KETYOYXQ.js +2 -0
- package/dist/cdn/{GJD7AOUI.js → KH5WPLZK.js} +1 -1
- package/dist/cdn/{IDEOFV22.js → LTLR4VF3.js} +1 -1
- package/dist/cdn/NQH7ZZWD.js +2 -0
- package/dist/cdn/OANAQ6HY.js +2 -0
- package/dist/cdn/{FAIQTEVJ.js → PP7EF7UU.js} +1 -1
- package/dist/cdn/{L6P26BYB.js → Q2DJUFVO.js} +1 -1
- package/dist/cdn/{LCV5GKUD.js → Q35DDH7J.js} +123 -123
- package/dist/cdn/{RIHOGDUV.js → QC4MO5BO.js} +1 -1
- package/dist/cdn/QDKHYQJB.js +2 -0
- package/dist/cdn/{FCJSMT5G.js → RMO244NW.js} +1 -1
- package/dist/cdn/RY6KZ77P.js +2 -0
- package/dist/cdn/{PBGG3TGN.js → RYBSWXQQ.js} +1 -1
- package/dist/cdn/{2UMMLVCR.js → SYQ5E5TV.js} +1 -1
- package/dist/cdn/{E6YCTW3S.js → TKOGOWYQ.js} +14 -14
- package/dist/cdn/UBEU6ULP.js +2 -0
- package/dist/cdn/UCQJWFUW.js +2 -0
- package/dist/cdn/{2PUK3PST.js → W7I22AW3.js} +1 -1
- package/dist/cdn/{RUQ4RO4T.js → WUEJANIZ.js} +1 -1
- package/dist/cdn/{BMMIXOTR.js → WXL7GVUU.js} +1 -1
- package/dist/cdn/{B5MBF4JC.js → XO54BFTC.js} +1 -1
- package/dist/cdn/{XGYNSCTA.js → Y37QLEAM.js} +1 -1
- package/dist/cdn/{O6ZQYZKL.js → YFJZN5K5.js} +1 -1
- package/dist/cdn/{6T35OGRG.js → YTU2BYBP.js} +1 -1
- package/dist/cdn/{5LF6C3S5.js → YWALGZAG.js} +1 -1
- package/dist/cdn/{F26SXWZ5.js → ZNH7LRND.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/deployFlowController.js +1 -1
- package/dist/chunks/helpers.js +47 -43
- package/dist/chunks/interfaces.js +105 -102
- package/dist/chunks/solution-builder-assistant.js +183 -119
- package/dist/chunks/solution-deploy-dialog.js +4 -4
- package/dist/chunks/solutions-deploy-app-nav.js +2 -2
- package/dist/chunks/validators.js +3 -3
- package/dist/components/arcgis-solutions-assistant/customElement.js +115 -101
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- package/dist/components/card-manager/customElement.js +8 -8
- package/dist/components/create-feature/customElement.js +107 -113
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +3 -0
- package/dist/components/layer-table/customElement.js +110 -100
- package/dist/components/solution-configure-titles/customElement.js +11 -10
- package/dist/components/solution-delete-dialog/customElement.js +9 -8
- package/dist/components/solution-deploy-dialog/customElement.d.ts +6 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +41 -38
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +114 -100
- package/dist/components/solution-item-diagram/customElement.js +6 -6
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +9 -11
- package/dist/components/solutions-deployed-panel/customElement.js +7 -7
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +9 -6
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/3JQ2RXVJ.js +0 -2
- package/dist/cdn/54AE7WD2.js +0 -2
- package/dist/cdn/7WD3GNG4.js +0 -2
- package/dist/cdn/D3XPV5W4.js +0 -2
- package/dist/cdn/KDNGZ47C.js +0 -2
- package/dist/cdn/KIPRPYME.js +0 -2
- package/dist/cdn/PBMTIFFX.js +0 -2
- package/dist/cdn/PECGJO2P.js +0 -2
- package/dist/cdn/QGCF64WY.js +0 -2
- package/dist/cdn/Z3B5KW2S.js +0 -2
- package/dist/cdn/ZM27FRZG.js +0 -2
- package/dist/cdn/ZUPXKH75.js +0 -2
- package/dist/cdn/ZYLKUZID.js +0 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
2
|
+
import { c as k } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as M } from "../../chunks/useT9n.js";
|
|
4
4
|
import { createRef as d, ref as h } from "lit-html/directives/ref.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { useContextConsumer as
|
|
7
|
-
import { c as
|
|
8
|
-
import { css as
|
|
9
|
-
import * as
|
|
10
|
-
import { sanitizeHTML as
|
|
11
|
-
import { T as g, C as
|
|
12
|
-
import { _findExistingItem as
|
|
13
|
-
import {
|
|
14
|
-
import { D as
|
|
5
|
+
import { LitElement as S, createEvent as f, safeClassMap as p, nothing as u, safeStyleMap as I } from "@arcgis/lumina";
|
|
6
|
+
import { useContextConsumer as x } from "@arcgis/lumina/context";
|
|
7
|
+
import { c as D, i as T } from "../../chunks/deployAppContexts.js";
|
|
8
|
+
import { css as L, html as a } from "lit";
|
|
9
|
+
import * as E from "@esri/solution-common";
|
|
10
|
+
import { sanitizeHTML as _, getItemDataAsJson as R, getItem as P, getPropWithDefault as w, getProp as y, setCreateProp as A } from "@esri/solution-common";
|
|
11
|
+
import { T as g, C as $, F as O, G as F, z as U } from "../../chunks/interfaces.js";
|
|
12
|
+
import { _findExistingItem as V } from "@esri/solution-deployer";
|
|
13
|
+
import { m as v, j as m, n as H, i as b, l as N } from "../../chunks/helpers.js";
|
|
14
|
+
import { D as z } from "../../chunks/deployFlowController.js";
|
|
15
15
|
import "../../chunks/solution-deploy-dialog.js";
|
|
16
16
|
import "../solution-snapshot-gallery/customElement.js";
|
|
17
17
|
import "../solution-deploying-dialog/customElement.js";
|
|
18
|
-
const
|
|
19
|
-
class
|
|
18
|
+
const B = L`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0;align-self:flex-start}@container (max-width: 1050px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1050px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@container (max-width: 800px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;max-width:100%;margin:0;padding-bottom:0}.image-width img{width:100%;max-width:100%}.title-font{padding-inline-end:var(--calcite-spacing-lg);padding-top:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@container (max-width: 1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@container (max-width: 1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@container (max-width: 550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}#screenshots-subsection .card-image{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-surface-3)}.back-color-override-1{background-color:var(--calcite-color-surface-2)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-surface-2)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-surface-3)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.chip-deployed-warn{--calcite-chip-icon-color: var(--calcite-color-status-warning)}`;
|
|
19
|
+
class Y extends S {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(), this.readOnlyNotice = "", this._deployedTooltipContent = "", 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 =
|
|
22
|
-
context:
|
|
21
|
+
super(), this.readOnlyNotice = "", this._deployedTooltipContent = "", 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 = M({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = x({
|
|
22
|
+
context: D,
|
|
23
23
|
subscribe: !0
|
|
24
|
-
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._deployFlow = new
|
|
24
|
+
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._deployFlow = new z({
|
|
25
25
|
deployDialogRef: this._deployDialogRef,
|
|
26
26
|
deployingDialogRef: this._deployingDialogRef,
|
|
27
27
|
getCard: () => this.card,
|
|
@@ -32,7 +32,9 @@ class B extends M {
|
|
|
32
32
|
dimensions: [
|
|
33
33
|
this.card?.title || "",
|
|
34
34
|
this.card?.deployCommonId || "",
|
|
35
|
-
this.card?.deployVersion || ""
|
|
35
|
+
this.card?.deployVersion || "",
|
|
36
|
+
"",
|
|
37
|
+
m(this.card?.typeKeywords)
|
|
36
38
|
]
|
|
37
39
|
});
|
|
38
40
|
},
|
|
@@ -43,27 +45,31 @@ class B extends M {
|
|
|
43
45
|
dimensions: [
|
|
44
46
|
this.card?.title || "",
|
|
45
47
|
this.card?.deployCommonId || "",
|
|
46
|
-
this.card?.deployVersion || ""
|
|
48
|
+
this.card?.deployVersion || "",
|
|
49
|
+
"",
|
|
50
|
+
m(this.card?.typeKeywords)
|
|
47
51
|
]
|
|
48
52
|
});
|
|
49
53
|
},
|
|
50
54
|
onDeploySuccess: () => {
|
|
51
|
-
const e =
|
|
55
|
+
const e = v(this._deploymentStartTime);
|
|
52
56
|
this._deploymentStartTime = null, this._telemetry?.logEvent({
|
|
53
57
|
category: g.SOLUTION_DETAILS,
|
|
54
58
|
action: "Deploy Success",
|
|
55
59
|
dimensions: [
|
|
56
60
|
this.card?.title || "",
|
|
57
61
|
this.card?.deployCommonId || "",
|
|
58
|
-
this.card?.deployVersion || ""
|
|
62
|
+
this.card?.deployVersion || "",
|
|
63
|
+
"",
|
|
64
|
+
m(this.card?.typeKeywords)
|
|
59
65
|
],
|
|
60
66
|
metrics: [e]
|
|
61
67
|
});
|
|
62
68
|
},
|
|
63
69
|
onDeployFailedReal: (e) => {
|
|
64
|
-
const t =
|
|
70
|
+
const t = v(this._deploymentStartTime);
|
|
65
71
|
this._deploymentStartTime = null;
|
|
66
|
-
const i =
|
|
72
|
+
const i = H(e), l = i.length > 200 ? i.slice(-200) : i;
|
|
67
73
|
console.error("Deployment failed:", e), this._telemetry?.logEvent({
|
|
68
74
|
category: g.SOLUTION_DETAILS,
|
|
69
75
|
action: "Deploy Failure",
|
|
@@ -71,23 +77,26 @@ class B extends M {
|
|
|
71
77
|
this.card?.title || "",
|
|
72
78
|
this.card?.deployCommonId || "",
|
|
73
79
|
this.card?.deployVersion || "",
|
|
74
|
-
l
|
|
80
|
+
l,
|
|
81
|
+
m(this.card?.typeKeywords)
|
|
75
82
|
],
|
|
76
83
|
metrics: [t]
|
|
77
84
|
});
|
|
78
85
|
},
|
|
79
86
|
onDeploymentProcessCancelled: () => {
|
|
80
|
-
this._cancellationStartTime = Date.now(), this._deployToCancelDuration =
|
|
87
|
+
this._cancellationStartTime = Date.now(), this._deployToCancelDuration = v(this._deploymentStartTime), this._deploymentStartTime = null;
|
|
81
88
|
},
|
|
82
89
|
onCloseAfterCancel: () => {
|
|
83
|
-
const e =
|
|
90
|
+
const e = v(this._cancellationStartTime);
|
|
84
91
|
this._telemetry?.logEvent({
|
|
85
92
|
category: g.SOLUTION_DETAILS,
|
|
86
93
|
action: "Deploy Canceled",
|
|
87
94
|
dimensions: [
|
|
88
95
|
this.card?.title || "",
|
|
89
96
|
this.card?.deployCommonId || "",
|
|
90
|
-
this.card?.deployVersion || ""
|
|
97
|
+
this.card?.deployVersion || "",
|
|
98
|
+
"",
|
|
99
|
+
m(this.card?.typeKeywords)
|
|
91
100
|
],
|
|
92
101
|
metrics: [this._deployToCancelDuration, e]
|
|
93
102
|
}), this._cancellationStartTime = null, this._deployToCancelDuration = 0;
|
|
@@ -98,11 +107,11 @@ class B extends M {
|
|
|
98
107
|
onDeploymentFallback: () => {
|
|
99
108
|
console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"), window.dispatchEvent(new CustomEvent("navTabSelected", { detail: "deployments" }));
|
|
100
109
|
}
|
|
101
|
-
}), this._isMobileContextConsumer =
|
|
102
|
-
context:
|
|
110
|
+
}), this._isMobileContextConsumer = x({
|
|
111
|
+
context: T,
|
|
103
112
|
subscribe: !0,
|
|
104
113
|
callback: (e) => this.isMobile = e
|
|
105
|
-
}), this._overviewAccordionItemElement = d(), this._privilegePopoverRef = d(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = d(), this._relatedResourcesAccordionItemElement = d(), this._screenshotsAccordionItemElement = d(), this._screenshotsDialogRef = d(), this._screenshotsElement = d(), this._termsOfUseAccordionItemElement = d(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = d(), this._youMayAlsoLikeElement = d(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched =
|
|
114
|
+
}), this._overviewAccordionItemElement = d(), this._privilegePopoverRef = d(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = d(), this._relatedResourcesAccordionItemElement = d(), this._screenshotsAccordionItemElement = d(), this._screenshotsDialogRef = d(), this._screenshotsElement = d(), this._termsOfUseAccordionItemElement = d(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = d(), this._youMayAlsoLikeElement = d(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = f(), this.itemPropertiesFetched = f(), this.sortTypeChanged = f(), this.tokenRefreshed = f(), this._handleDeployCancelled = () => {
|
|
106
115
|
this._deployFlow.handleDeployCancelled();
|
|
107
116
|
}, this._deployProgressStart = (e) => {
|
|
108
117
|
this._deployFlow.deployProgressStart(e);
|
|
@@ -122,7 +131,7 @@ class B extends M {
|
|
|
122
131
|
this.properties = { card: 0, readOnlyNotice: 1, _deployedTooltipContent: 16, _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 };
|
|
123
132
|
}
|
|
124
133
|
static {
|
|
125
|
-
this.styles =
|
|
134
|
+
this.styles = B;
|
|
126
135
|
}
|
|
127
136
|
get _telemetry() {
|
|
128
137
|
return this._configContextConsumer.value?.telemetrySession;
|
|
@@ -146,7 +155,7 @@ class B extends M {
|
|
|
146
155
|
}
|
|
147
156
|
render() {
|
|
148
157
|
const e = "padding-bottom-1-5", t = this._getRelatedResources(), i = this._getYouMayAlsoLikeCards();
|
|
149
|
-
return
|
|
158
|
+
return a`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${p(e)}>${this._getScreenshotsRow()}</div><div class=${p(e)}>${this._getOverviewRow()}</div><div class=${p(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? a`<div class=${p(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? a`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${p(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : a`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`;
|
|
150
159
|
}
|
|
151
160
|
updated() {
|
|
152
161
|
setTimeout(() => {
|
|
@@ -162,67 +171,67 @@ class B extends M {
|
|
|
162
171
|
_checkUrlParametersForAutoDeployment() {
|
|
163
172
|
if (this._signInParamValue === "deploy") {
|
|
164
173
|
const t = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
165
|
-
this._configContextConsumer.value?.authentication?.IsSignedIn && this.card && this._deployDialogRef.value && !t && !
|
|
174
|
+
this._configContextConsumer.value?.authentication?.IsSignedIn && this.card && this._deployDialogRef.value && !t && !b(this._configContextConsumer.value) && (this._signInParamValue = null, this._openDeploy());
|
|
166
175
|
}
|
|
167
176
|
}
|
|
168
177
|
_getSolutionRow() {
|
|
169
|
-
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, l = this._missingPrivilegeMessages?.bulletedMessages || [], s = l.length > 0,
|
|
170
|
-
return
|
|
178
|
+
const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, l = this._missingPrivilegeMessages?.bulletedMessages || [], s = l.length > 0, o = this._missingPrivilegeMessages?.trailingMessages || [], r = o.length > 0;
|
|
179
|
+
return a`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? u} src=${e ?? u}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, s, r, t, l, o)}${this._getButtons()}</div></div>`;
|
|
171
180
|
}
|
|
172
|
-
_getTextSection(e, t, i, l, s,
|
|
173
|
-
return
|
|
181
|
+
_getTextSection(e, t, i, l, s, o) {
|
|
182
|
+
return a`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this._renderChips(this.card?.chips || [])}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : b(this._configContextConsumer.value) ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getReadOnlyNotice()}</div>` : e || t || i ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(l, s, o)}</div>` : ""}</div>`;
|
|
174
183
|
}
|
|
175
184
|
_renderChips(e) {
|
|
176
185
|
const t = e.filter((s) => s === "deployed" || s === "deployedOlderVersion"), i = e.filter((s) => s !== "deployed" && s !== "deployedOlderVersion"), l = [];
|
|
177
186
|
if (i.forEach((s) => {
|
|
178
|
-
const
|
|
179
|
-
l.push(
|
|
187
|
+
const o = "margin-bottom-1-5 margin-sides-1 chip-status", r = `solution-details-card-chip-${s}`, c = s === "new" ? "star" : "mega-phone", n = s === "new" ? this._translations.newChip : this._translations.updatedChip;
|
|
188
|
+
l.push(a`<calcite-chip class=${p(o)} .icon=${c} id=${r ?? u} .label=${n} .value=${n} scale=s></calcite-chip><calcite-tooltip .referenceElement=${r}><span>${n}</span></calcite-tooltip>`);
|
|
180
189
|
}), t.length > 0) {
|
|
181
190
|
let s = "margin-bottom-1-5 margin-sides-1 chip-status";
|
|
182
|
-
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", l.push(
|
|
183
|
-
const
|
|
191
|
+
i.length > 0 ? s = t[0] === "deployedOlderVersion" ? "chip-deployed-warn" : "chip-deployed" : s += t[0] === "deployedOlderVersion" ? " chip-deployed-warn" : " chip-deployed", l.push(a`<calcite-chip class=${p(s)} .icon=${t[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployedChip} .value=${this._translations.deployedChip} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
|
|
192
|
+
const o = {
|
|
184
193
|
q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
|
|
185
194
|
authentication: this._configContextConsumer.value?.userSession,
|
|
186
195
|
pagingParam: { start: 1, num: 100 }
|
|
187
|
-
}, r = await
|
|
188
|
-
this._deployedTooltipContent =
|
|
196
|
+
}, r = await E.searchItems(o);
|
|
197
|
+
this._deployedTooltipContent = a`<solutions-deployed-list .results=${r} has-links .listTitle=${t[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
|
|
189
198
|
}} @calciteTooltipBeforeClose=${() => {
|
|
190
199
|
}}>${this._deployedTooltipContent}</calcite-tooltip>`);
|
|
191
200
|
}
|
|
192
201
|
return l;
|
|
193
202
|
}
|
|
194
203
|
_getButtons() {
|
|
195
|
-
const e = this._itemProperties?.demoURL || "", t =
|
|
196
|
-
return
|
|
204
|
+
const e = this._itemProperties?.demoURL || "", t = b(this._configContextConsumer.value);
|
|
205
|
+
return a`<div class="display-flex flex-direction-column button-width">${!this.isMobile && a`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled || t} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m width=full>${this._showLoader ? a`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && a`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleWatchDemoClick(e)} scale=m width=full>${this._translations.watchDemo}</calcite-button>` || ""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleLearnMoreClick()} scale=m width=full>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise && a`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId || ""} .solutionTitle=${this.card?.title || ""} .solutionVersion=${this.card?.deployVersion || ""}></solution-social-share>` || ""}</div>`;
|
|
197
206
|
}
|
|
198
207
|
_getReadOnlyNotice() {
|
|
199
|
-
return
|
|
208
|
+
return a`<calcite-notice class="margin-inline-unset" icon=exclamation-mark-triangle kind=warning open scale=s><div slot=message .innerHTML=${this.readOnlyNotice ?? ""}></div></calcite-notice>`;
|
|
200
209
|
}
|
|
201
210
|
_getMissingPrivilegesNotice(e, t, i) {
|
|
202
|
-
const l = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,
|
|
203
|
-
return
|
|
204
|
-
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${
|
|
211
|
+
const l = "solutions-missing-privileges-notice", s = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, o = t.length > 0 ? "" : "display-none", r = t.length > 0 ? "padding-top-sm" : "";
|
|
212
|
+
return a`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${s}`}</div><calcite-action icon=information id=${l} slot=actions-end .text=${s}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
|
|
213
|
+
this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${o}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
|
|
205
214
|
this._getBulletedMessages(t)}${// Trailing messages
|
|
206
215
|
this._getSpanMessages(i, r)}</div></calcite-popover></div>`;
|
|
207
216
|
}
|
|
208
217
|
_getSpanMessages(e, t) {
|
|
209
|
-
return e.length > 0 ? e.map((i) =>
|
|
218
|
+
return e.length > 0 ? e.map((i) => a`<span class=${p(t)}>${i}</span>`) : "";
|
|
210
219
|
}
|
|
211
220
|
_getBulletedMessages(e) {
|
|
212
|
-
return e.length > 0 ?
|
|
221
|
+
return e.length > 0 ? a`<ul>${e.map((t) => a`<li>${t}</li>`)}</ul>` : "";
|
|
213
222
|
}
|
|
214
223
|
_getScreenshotsRow() {
|
|
215
224
|
const e = this._isScreenshotsRowExpanded ? this._translations.showLess : this._translations.showMore, t = this._isScreenshotsRowExpanded ? "arrow-up" : "arrow-down", i = this._showScreenshotsShowMore ? "" : "display-none";
|
|
216
|
-
return
|
|
225
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${() => {
|
|
217
226
|
this._screenshotsElement.value?.classList.toggle("expanded"), this._isScreenshotsRowExpanded = this._screenshotsElement.value.classList.contains("expanded");
|
|
218
227
|
}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
|
|
219
228
|
}
|
|
220
229
|
_getScreenshots() {
|
|
221
230
|
const e = this._itemProperties?.preview.filter((s) => s.format === "image") || [], t = this._configContextConsumer.value, i = this._itemFetched ? "" : "display-none", l = this._itemFetched ? "display-none" : "";
|
|
222
|
-
return
|
|
223
|
-
const r =
|
|
231
|
+
return a`<calcite-loader class=${p(l)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((s, o) => {
|
|
232
|
+
const r = $(this.card?.id || "", o.name, t.authentication);
|
|
224
233
|
let c;
|
|
225
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c =
|
|
234
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (c = $(this.card?.id || "", o.name, void 0, t.agolPortalUrl)), this.card?.id ? s.push(a`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${o.alt} @click=${() => this._openScreenshotGallery(o)} @keydown=${(n) => N(n, () => this._openScreenshotGallery(o))}><div class="card-image-wrap" slot=thumbnail><img alt=${o.alt ?? u} class="thumbnail card-image" slot=thumbnail src=${(c || r) ?? u}>${!this.isMobile && a`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : s.push(""), s;
|
|
226
235
|
}, [])}</calcite-card-group>`;
|
|
227
236
|
}
|
|
228
237
|
_openScreenshotGallery(e) {
|
|
@@ -241,32 +250,32 @@ class B extends M {
|
|
|
241
250
|
}
|
|
242
251
|
}
|
|
243
252
|
_getOverviewRow() {
|
|
244
|
-
return
|
|
253
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`;
|
|
245
254
|
}
|
|
246
255
|
_getDescriptionRow() {
|
|
247
|
-
return
|
|
256
|
+
return a`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""} tabindex=0></div></div>`;
|
|
248
257
|
}
|
|
249
258
|
_getInformationProductsRow() {
|
|
250
|
-
return
|
|
259
|
+
return a`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`;
|
|
251
260
|
}
|
|
252
261
|
_getInformationTableHeaderRow() {
|
|
253
|
-
return
|
|
262
|
+
return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`;
|
|
254
263
|
}
|
|
255
264
|
_getInformationTableRows() {
|
|
256
|
-
return (this._itemProperties?.infoProducts || []).map((t) =>
|
|
265
|
+
return (this._itemProperties?.infoProducts || []).map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
257
266
|
}
|
|
258
267
|
_getReleaseNotesRow() {
|
|
259
|
-
return
|
|
268
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`;
|
|
260
269
|
}
|
|
261
270
|
_getReleaseNotesTableHeaderRow() {
|
|
262
|
-
return
|
|
271
|
+
return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`;
|
|
263
272
|
}
|
|
264
273
|
_getReleaseNotesTableRows() {
|
|
265
|
-
return (this._itemProperties?.releaseNotes || [])?.map((t) =>
|
|
274
|
+
return (this._itemProperties?.releaseNotes || [])?.map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
|
|
266
275
|
}
|
|
267
276
|
_getRelatedResourcesRow(e) {
|
|
268
|
-
return
|
|
269
|
-
|
|
277
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(() => {
|
|
278
|
+
a`<solution-resource-card></solution-resource-card>`;
|
|
270
279
|
})}</div></calcite-accordion-item></calcite-accordion>`;
|
|
271
280
|
}
|
|
272
281
|
_getRelatedResources() {
|
|
@@ -274,7 +283,7 @@ class B extends M {
|
|
|
274
283
|
}
|
|
275
284
|
_getYouMayAlsoLikeRow(e) {
|
|
276
285
|
const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, l = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", s = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
|
|
277
|
-
return
|
|
286
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${I(s)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((o, r) => a`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${o} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId || ""} .referrerSolutionTitle=${this.card?.title || ""} .referrerSolutionVersion=${this.card?.deployVersion || ""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${l} kind=inverse @click=${() => {
|
|
278
287
|
this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
|
|
279
288
|
}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
|
|
280
289
|
}
|
|
@@ -283,20 +292,25 @@ class B extends M {
|
|
|
283
292
|
return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
|
|
284
293
|
}
|
|
285
294
|
_getTermsOfUseRow() {
|
|
286
|
-
return
|
|
295
|
+
return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`;
|
|
287
296
|
}
|
|
288
297
|
_openDeploy() {
|
|
289
298
|
if (this._configContextConsumer.value.authentication.IsSignedIn) {
|
|
290
299
|
const e = this._deployDialogRef.value;
|
|
291
|
-
e
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
+
if (e) {
|
|
301
|
+
const t = m(this.card?.typeKeywords);
|
|
302
|
+
this._telemetry?.logEvent({
|
|
303
|
+
category: g.SOLUTION_DETAILS,
|
|
304
|
+
action: "Deploy Dialog Opened",
|
|
305
|
+
dimensions: [
|
|
306
|
+
this.card?.title || "",
|
|
307
|
+
this.card?.deployCommonId || "",
|
|
308
|
+
this.card?.deployVersion || "",
|
|
309
|
+
"",
|
|
310
|
+
t
|
|
311
|
+
]
|
|
312
|
+
}), e.userOptions = this._userOptions, e.open = !0;
|
|
313
|
+
}
|
|
300
314
|
} else
|
|
301
315
|
this._configContextConsumer.value.authentication.signIn("deploy");
|
|
302
316
|
}
|
|
@@ -333,12 +347,12 @@ class B extends M {
|
|
|
333
347
|
}
|
|
334
348
|
async _getItemData() {
|
|
335
349
|
this._itemFetched = !1;
|
|
336
|
-
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await
|
|
350
|
+
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await R(this.card.id, t), l = await P(this.card.id, t);
|
|
337
351
|
this._itemFetched = !0, this._itemProperties = l.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
338
|
-
const s =
|
|
352
|
+
const s = O(i, this.card.typeKeywords, e?.authentication);
|
|
339
353
|
this._privileges = t.username ? s : [], this._userPrivileges = e?.authentication ? e.authentication.PortalUserEnrichedPrivileges : [];
|
|
340
|
-
const
|
|
341
|
-
this._missingPrivilegeMessages =
|
|
354
|
+
const o = this._privileges.filter((c) => !this._userPrivileges.includes(c));
|
|
355
|
+
this._missingPrivilegeMessages = F(this._translations, o), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
342
356
|
const r = i.params ? await this.formatParams(i.params) : [];
|
|
343
357
|
this._userOptions = r, this._templates = i.templates, this.templatesFetched.emit(i.templates), this._checkUrlParametersForAutoDeployment(), this._isLoaded = !0, this._showLoader && (this._showLoader = !1, this._isDeployDisabled || this._openDeploy());
|
|
344
358
|
}
|
|
@@ -349,16 +363,16 @@ class B extends M {
|
|
|
349
363
|
accordionDisplay: !1
|
|
350
364
|
};
|
|
351
365
|
if (l.length > 0) {
|
|
352
|
-
const
|
|
366
|
+
const o = [];
|
|
353
367
|
return l.forEach((r) => {
|
|
354
368
|
const c = e[r];
|
|
355
|
-
c.valueType && c.valueType.toLowerCase() === "itemid" &&
|
|
356
|
-
}), Promise.all(
|
|
369
|
+
c.valueType && c.valueType.toLowerCase() === "itemid" && o.push(this._findExistingItem(r, "Feature Service", t.username || ""));
|
|
370
|
+
}), Promise.all(o).then((r) => {
|
|
357
371
|
const c = {};
|
|
358
372
|
return r.forEach((n) => {
|
|
359
373
|
if (n.query && n.results && n.results.length > 0) {
|
|
360
|
-
const
|
|
361
|
-
c[
|
|
374
|
+
const C = n.query.split(" ")[0].replace("typekeywords:source-", "");
|
|
375
|
+
c[C] = {
|
|
362
376
|
resultId: n.results[0].id,
|
|
363
377
|
response: n.results[0]
|
|
364
378
|
};
|
|
@@ -376,16 +390,16 @@ class B extends M {
|
|
|
376
390
|
}
|
|
377
391
|
_findExistingItem(e, t, i) {
|
|
378
392
|
const l = this._configContextConsumer.value.userSession;
|
|
379
|
-
return
|
|
393
|
+
return V(`typekeywords:source-${e} type:${t} owner:${i}`, l);
|
|
380
394
|
}
|
|
381
395
|
updateUserProp(e, t) {
|
|
382
|
-
const i = e.itemType?.toLowerCase() === "feature service", l = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s =
|
|
383
|
-
return e.responseValue =
|
|
396
|
+
const i = e.itemType?.toLowerCase() === "feature service", l = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), s = w(t, i ? "url" : "type", "") || "", o = s !== "" && l.test(s);
|
|
397
|
+
return e.responseValue = o ? s : "", e.name = o && y(t, "name") || "", e.title = o && y(t, "title") || "", e.itemType = o ? y(t, "type") : e.itemType, e.validId = o, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), o;
|
|
384
398
|
}
|
|
385
399
|
updateOption(e, t, i) {
|
|
386
|
-
const l = e.default || "", s = typeof l,
|
|
400
|
+
const l = e.default || "", s = typeof l, o = l.toString();
|
|
387
401
|
this._setFeatureServiceProps(e);
|
|
388
|
-
const r = this.getValidation(e,
|
|
402
|
+
const r = this.getValidation(e, o);
|
|
389
403
|
t.props.push({
|
|
390
404
|
id: i,
|
|
391
405
|
outType: s,
|
|
@@ -396,10 +410,10 @@ class B extends M {
|
|
|
396
410
|
choices: e.choices || [],
|
|
397
411
|
valueType: e.valueType.toLowerCase(),
|
|
398
412
|
attributes: e.attributes || {},
|
|
399
|
-
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId :
|
|
400
|
-
default:
|
|
401
|
-
srSearchText:
|
|
402
|
-
autoSelect:
|
|
413
|
+
value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId : o,
|
|
414
|
+
default: o,
|
|
415
|
+
srSearchText: o,
|
|
416
|
+
autoSelect: o !== "",
|
|
403
417
|
...r,
|
|
404
418
|
loading: !1,
|
|
405
419
|
validId: !0,
|
|
@@ -410,11 +424,11 @@ class B extends M {
|
|
|
410
424
|
});
|
|
411
425
|
}
|
|
412
426
|
_setFeatureServiceProps(e) {
|
|
413
|
-
e.valueType && e.valueType.toLowerCase() === "itemid" &&
|
|
427
|
+
e.valueType && e.valueType.toLowerCase() === "itemid" && A(e, "attributes.required", "true");
|
|
414
428
|
}
|
|
415
429
|
getValidation(e, t) {
|
|
416
|
-
let i = "", l =
|
|
417
|
-
return
|
|
430
|
+
let i = "", l = y(e, "validation.message") || "", s = !0;
|
|
431
|
+
return y(e, "attributes.required") === "true" && (i = w(e, "validation.expression", "\\S{1,}"), s = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, l = this._translations.configure.invalidID), {
|
|
418
432
|
valid: s,
|
|
419
433
|
validation: {
|
|
420
434
|
expression: i,
|
|
@@ -435,10 +449,10 @@ class B extends M {
|
|
|
435
449
|
e.detail === "details" && this.sortTypeChanged.emit("");
|
|
436
450
|
}
|
|
437
451
|
_checkPermissionsBeforeDeploy() {
|
|
438
|
-
|
|
452
|
+
b(this._configContextConsumer.value) || (this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy());
|
|
439
453
|
}
|
|
440
454
|
}
|
|
441
|
-
|
|
455
|
+
k("solution-details-panel", Y);
|
|
442
456
|
export {
|
|
443
|
-
|
|
457
|
+
Y as SolutionDetailsPanel
|
|
444
458
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as B } from "../../chunks/useT9n.js";
|
|
4
4
|
import { LitElement as A } from "@arcgis/lumina";
|
|
5
5
|
import { css as $, html as O } from "lit";
|
|
@@ -173,7 +173,7 @@ function U(o, t, e) {
|
|
|
173
173
|
const r = J(o);
|
|
174
174
|
return m(r, t), Q(o, r, e), r;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function E(o) {
|
|
177
177
|
const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
|
|
178
178
|
function r(i) {
|
|
179
179
|
i.findLinksInto().each(
|
|
@@ -231,7 +231,7 @@ function ee(o, t, e, r = !0) {
|
|
|
231
231
|
i[a] = z;
|
|
232
232
|
}
|
|
233
233
|
{
|
|
234
|
-
const { connectedNodes: n, connectedLinks: a } =
|
|
234
|
+
const { connectedNodes: n, connectedLinks: a } = E(o);
|
|
235
235
|
for (const l of n)
|
|
236
236
|
i[l.key] = k;
|
|
237
237
|
for (const l of a) {
|
|
@@ -507,7 +507,7 @@ class ge {
|
|
|
507
507
|
return;
|
|
508
508
|
if (this.currentSelectedItemId) {
|
|
509
509
|
if (this.usefilteredView) {
|
|
510
|
-
const a =
|
|
510
|
+
const a = E(n);
|
|
511
511
|
a.connectedNodes.add(n);
|
|
512
512
|
const l = Array.from(a.connectedNodes).map((c) => c.data), h = Array.from(a.connectedLinks).map((c) => c.data);
|
|
513
513
|
if (m(this.diagram, { nodes: l, links: h }), this.createNodeHighlighters(), n = this.getNodeById(t), !n)
|
|
@@ -573,7 +573,7 @@ class fe extends A {
|
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
this._sizeObserver && this._sizeObserver.disconnect(), this._sizeObserver = new ResizeObserver(() => {
|
|
576
|
-
|
|
576
|
+
this._pendingCreate && r(t) && (this._sizeObserver?.disconnect(), this._sizeObserver = void 0, this._buildSolutionDisplay());
|
|
577
577
|
}), this._sizeObserver.observe(t);
|
|
578
578
|
}
|
|
579
579
|
_buildSolutionDisplay() {
|
|
@@ -593,7 +593,7 @@ class fe extends A {
|
|
|
593
593
|
this.solutionDisplay = new ge(t, e, r, this.diagramKey), this.solutionDisplay.create(this.templateInfoGraph, this.typeKeywords);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
|
|
596
|
+
D("solution-item-diagram", fe);
|
|
597
597
|
export {
|
|
598
598
|
fe as SolutionItemDiagram
|
|
599
599
|
};
|
|
@@ -6,7 +6,7 @@ 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
|
-
import {
|
|
9
|
+
import { l as d } from "../../chunks/helpers.js";
|
|
10
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",
|
|
@@ -5,7 +5,7 @@ import { LitElement as l, nothing as a } from "@arcgis/lumina";
|
|
|
5
5
|
import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
6
6
|
import { C as r } from "../../chunks/interfaces.js";
|
|
7
7
|
import { c as h } from "../../chunks/deployAppContexts.js";
|
|
8
|
-
import {
|
|
8
|
+
import { l as p } from "../../chunks/helpers.js";
|
|
9
9
|
import { css as m, html as i } from "lit";
|
|
10
10
|
import "@esri/solution-common";
|
|
11
11
|
import "@arcgis/core/identity/IdentityManager.js";
|