@esri/solutions-components 1.2.0-next.191 → 1.2.0-next.192
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/2FB7PLHA.js +2 -0
- package/dist/cdn/{2Z4TOYVC.js → 35BKTK23.js} +1 -1
- package/dist/cdn/3IXJ77QG.js +2 -0
- package/dist/cdn/4PJLBC3H.js +2 -0
- package/dist/cdn/5DYEGOFQ.js +2 -0
- package/dist/cdn/{BHSNNVIL.js → 5YSQ2CW2.js} +1 -1
- package/dist/cdn/{V25NUVVQ.js → 6MYF74WP.js} +1 -1
- package/dist/cdn/6OWU7VAP.js +2 -0
- package/dist/cdn/AIU3MGAJ.js +2 -0
- package/dist/cdn/AXJNTXWG.js +2 -0
- package/dist/cdn/BFRGKEST.js +2 -0
- package/dist/cdn/{OUH4HVG4.js → BTHN6PO3.js} +21 -21
- package/dist/cdn/CA5SSBGK.js +2 -0
- package/dist/cdn/DMQY2YSV.js +2 -0
- package/dist/cdn/DZEATYCC.js +2 -0
- package/dist/cdn/FCTLSKQC.js +2 -0
- package/dist/cdn/{HEW273HR.js → FKEZD3IR.js} +3 -3
- package/dist/cdn/GNHKPEWB.js +2 -0
- package/dist/cdn/HRR3S4YS.js +2 -0
- package/dist/cdn/HTILYSMI.js +2 -0
- package/dist/cdn/K2TGYZ23.js +2 -0
- package/dist/cdn/{W4DGTEPL.js → KMFPTAQU.js} +1 -1
- package/dist/cdn/LOQNTCQ5.js +2 -0
- package/dist/cdn/LT22II6J.js +2 -0
- package/dist/cdn/OSY6VKW4.js +2 -0
- package/dist/cdn/{Y4QWAYNX.js → PK5GAZJJ.js} +1 -1
- package/dist/cdn/PYFPZPMP.js +2 -0
- package/dist/cdn/QCI2IO23.js +2 -0
- package/dist/cdn/{KEWRBJOT.js → QU7HKK7N.js} +3 -3
- package/dist/cdn/U6K37QQX.js +2 -0
- package/dist/cdn/V562ZRP5.js +2 -0
- package/dist/cdn/VFSFRIPI.js +2 -0
- package/dist/cdn/WT64QMSP.js +2 -0
- package/dist/cdn/XCOHDOZB.js +2 -0
- package/dist/cdn/{AS6FGEVT.js → XGT7USWV.js} +1 -1
- package/dist/cdn/XVCTCPQP.js +2 -0
- package/dist/cdn/YBCBDSHJ.js +2 -0
- package/dist/cdn/YN2Q4YSJ.js +2 -0
- package/dist/cdn/Z7S7SUZV.js +2 -0
- package/dist/cdn/ZBVU5UTY.js +2 -0
- package/dist/cdn/ZEIBUDIU.js +2 -0
- package/dist/cdn/ZLVZRRWC.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +13 -13
- package/dist/chunks/interfaces.js +155 -151
- package/dist/chunks/solution-deploy-dialog.js +9 -10
- package/dist/chunks/solutions-deploy-app-nav.js +23 -24
- package/dist/components/arcgis-solutions-assistant/customElement.js +15 -15
- package/dist/components/create-feature/customElement.d.ts +2 -0
- package/dist/components/create-feature/customElement.js +6 -7
- package/dist/components/crowdsource-reporter/customElement.js +3 -3
- package/dist/components/layer-list/customElement.js +32 -32
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +4 -5
- package/dist/components/solution-delete-dialog/customElement.js +6 -7
- package/dist/components/solution-deploy-dialog/customElement.js +3 -4
- package/dist/components/solution-deployed-card/customElement.js +2 -3
- package/dist/components/solution-deployed-card-panel/customElement.js +10 -11
- package/dist/components/solution-details-card/customElement.js +1 -2
- package/dist/components/solution-details-panel/customElement.js +43 -42
- package/dist/components/solution-resource-card/customElement.js +6 -7
- package/dist/components/solution-snapshot-gallery/customElement.js +7 -8
- package/dist/components/solution-social-share/customElement.js +2 -3
- package/dist/components/solution-user-avatar/customElement.js +7 -8
- package/dist/components/solutions-all-panel/customElement.js +17 -18
- package/dist/components/solutions-all-shell/customElement.js +64 -28
- package/dist/components/solutions-all-shell/index.js +1 -0
- package/dist/components/solutions-deploy-app/customElement.js +59 -23
- package/dist/components/solutions-deploy-app-nav/customElement.js +2 -3
- package/dist/components/solutions-deploy-app-nav/index.js +3 -3
- package/dist/components/solutions-deployed-panel/customElement.js +11 -12
- package/dist/components/solutions-deployed-shell/customElement.js +11 -11
- package/dist/components/solutions-filter-panel/customElement.js +68 -65
- package/dist/components/solutions-resources-shell/customElement.js +47 -10
- package/dist/components/solutions-searchsort-toolbar/customElement.js +6 -7
- 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/loader.js +1 -1
- package/dist/solutions-components_commit.txt +8 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/3A7PC2RZ.js +0 -2
- package/dist/cdn/3HWKU2CT.js +0 -2
- package/dist/cdn/4CPDEFIT.js +0 -2
- package/dist/cdn/4N5LEYZP.js +0 -2
- package/dist/cdn/7BDPZCCN.js +0 -2
- package/dist/cdn/7M3GJY6J.js +0 -2
- package/dist/cdn/BEC6A65P.js +0 -2
- package/dist/cdn/BT66JT22.js +0 -2
- package/dist/cdn/C7DWPTJL.js +0 -2
- package/dist/cdn/CN4TSLTZ.js +0 -2
- package/dist/cdn/DOFNBU4Q.js +0 -2
- package/dist/cdn/DSH7QIEF.js +0 -2
- package/dist/cdn/FP5UBHCW.js +0 -2
- package/dist/cdn/FPW3BDJT.js +0 -2
- package/dist/cdn/FWFL23CM.js +0 -2
- package/dist/cdn/I3ERNQTX.js +0 -2
- package/dist/cdn/LN36O3EB.js +0 -2
- package/dist/cdn/LPPOTZKI.js +0 -2
- package/dist/cdn/MVNKOMSZ.js +0 -2
- package/dist/cdn/OQVULF2Q.js +0 -2
- package/dist/cdn/PFQDRDKQ.js +0 -2
- package/dist/cdn/PJ2IZ77K.js +0 -2
- package/dist/cdn/QPEQNTE2.js +0 -2
- package/dist/cdn/R6QJKOAM.js +0 -2
- package/dist/cdn/RG6FVRCW.js +0 -2
- package/dist/cdn/RZKHWRGX.js +0 -2
- package/dist/cdn/TA7XOCI6.js +0 -2
- package/dist/cdn/U3MPHGGT.js +0 -2
- package/dist/cdn/VFROSB3U.js +0 -2
- package/dist/cdn/VHA56S7W.js +0 -2
- package/dist/cdn/W4773WDH.js +0 -2
- package/dist/cdn/WI7VFPQ3.js +0 -2
- package/dist/cdn/Y2S3AB43.js +0 -2
- package/dist/cdn/ZVLL5DZC.js +0 -2
- package/dist/chunks/deployAppContexts.js +0 -9
|
@@ -4,9 +4,8 @@ import { u as y } from "../../chunks/useT9n.js";
|
|
|
4
4
|
import { LitElement as S, createEvent as c, safeClassMap as r } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as T } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as D, html as u } from "lit";
|
|
7
|
-
import { A as m, I as
|
|
7
|
+
import { A as v, C as m, I as $, T as P } from "../../chunks/interfaces.js";
|
|
8
8
|
import { createRef as _, ref as p } from "lit-html/directives/ref.js";
|
|
9
|
-
import { c as P } from "../../chunks/deployAppContexts.js";
|
|
10
9
|
import * as V from "@esri/solution-common";
|
|
11
10
|
import { updateGroup as E, updateItem as b, updateItemExtended as w } from "@esri/solution-common";
|
|
12
11
|
import { g as W } from "../../chunks/getRelatedInfos.js";
|
|
@@ -14,7 +13,7 @@ const L = D`.display-flex{display:flex}.display-none{display:none}.flex-directio
|
|
|
14
13
|
class k extends S {
|
|
15
14
|
constructor() {
|
|
16
15
|
super(...arguments), this.open = !1, this.source = "Card Dropdown", this.solutionData = {}, this.templateInfos = [], this._saveDisabled = !1, this._displayTemplateInfos = [], this._hasNameLengthError = !1, this._nonSolutionDependencyItems = [], this._solutionItemsTitlesUpdating = !1, this._translations = y({ name: "solution-configure-titles", blocking: !0 }), this._configContextConsumer = T({
|
|
17
|
-
context:
|
|
16
|
+
context: v,
|
|
18
17
|
subscribe: !0
|
|
19
18
|
}), this._defaultPrefix = "", this._defaultSuffix = "", this._loadingDefaultPrefix = !1, this._loadingDefaultSuffix = !1, this._prefixRef = _(), this._prefixValue = "", this._suffixRef = _(), this._suffixValue = "", this._templateInfos = [], this._originalTitles = [], this.solutionConfigureTitlesBeforeClose = c(), this.solutionItemsTitlesChanged = c();
|
|
20
19
|
}
|
|
@@ -79,7 +78,7 @@ class k extends S {
|
|
|
79
78
|
let a = t.title;
|
|
80
79
|
i && (n ? this._originalTitles.find((l) => l.id === t.id)?.title.startsWith(this._defaultPrefix) ? a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue) : this._prefixValue !== this._defaultPrefix && (a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue)) : a = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue));
|
|
81
80
|
let o = a;
|
|
82
|
-
return s && (f ? this._originalTitles.find((l) => l.id === t.id)?.title.endsWith(this._defaultSuffix) ? o = this._applySuffixWithDuplicateCheck(a, this._suffixValue) : this._suffixValue !== this._defaultSuffix && (o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)) : o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)), t.title = o, this._hasNameLengthError || (this._hasNameLengthError = t.title.length >
|
|
81
|
+
return s && (f ? this._originalTitles.find((l) => l.id === t.id)?.title.endsWith(this._defaultSuffix) ? o = this._applySuffixWithDuplicateCheck(a, this._suffixValue) : this._suffixValue !== this._defaultSuffix && (o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)) : o = this._applySuffixWithDuplicateCheck(a, this._suffixValue)), t.title = o, this._hasNameLengthError || (this._hasNameLengthError = t.title.length > $), t;
|
|
83
82
|
}), this._loadingDefaultPrefix = !1, this._loadingDefaultSuffix = !1;
|
|
84
83
|
}
|
|
85
84
|
_replaceStart(e, t, i) {
|
|
@@ -107,7 +106,7 @@ class k extends S {
|
|
|
107
106
|
async _commitNameChanges() {
|
|
108
107
|
if (this._hasChanges()) {
|
|
109
108
|
this._telemetry?.logEvent({
|
|
110
|
-
category:
|
|
109
|
+
category: P.DEPLOYMENTS,
|
|
111
110
|
action: "Rename Items",
|
|
112
111
|
dimensions: [
|
|
113
112
|
this.card?.title || "",
|
|
@@ -4,9 +4,8 @@ import { css as u, nothing as p, html as r } from "lit";
|
|
|
4
4
|
import { u as f } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as g, createEvent as d, safeClassMap as c } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as _ } from "@arcgis/lumina/context";
|
|
7
|
-
import {
|
|
8
|
-
import { deleteSolution as
|
|
9
|
-
import { c as b } from "../../chunks/deployAppContexts.js";
|
|
7
|
+
import { A as D, T as I, D as y } from "../../chunks/interfaces.js";
|
|
8
|
+
import { deleteSolution as b } from "@esri/solution-common";
|
|
10
9
|
import { createRef as w, ref as h } from "lit-html/directives/ref.js";
|
|
11
10
|
import "../solution-item-accordion/customElement.js";
|
|
12
11
|
import { p as $, g as C } from "../../chunks/getRelatedInfos.js";
|
|
@@ -14,7 +13,7 @@ const S = u`.panel-bg-color{--calcite-panel-header-background-color: var(--calci
|
|
|
14
13
|
class v extends g {
|
|
15
14
|
constructor() {
|
|
16
15
|
super(), this.open = !1, this.source = "Card Dropdown", this._deletePercentage = 0, this._fetchingTemplates = !1, this._isDeleteInProgress = !1, this._nonSolutionDependencyItems = [], this._showDeleteError = !1, this._showUndeletableItems = !1, this._templateInfos = [], this._translations = f({ name: "solution-delete-dialog", blocking: !0 }), this._accordion = w(), this._configContextConsumer = _({
|
|
17
|
-
context:
|
|
16
|
+
context: D,
|
|
18
17
|
subscribe: !0
|
|
19
18
|
}), this.solutionDeleteDialogOpen = d(), this.solutionDeleted = d(), this.solutionDeleteDialogBeforeClose = d(), this.listenOn(window, "beforeunload", (e) => {
|
|
20
19
|
this._isDeleteInProgress && (e.preventDefault(), e.returnValue = !0);
|
|
@@ -34,7 +33,7 @@ class v extends g {
|
|
|
34
33
|
}
|
|
35
34
|
delete() {
|
|
36
35
|
if (this._telemetry?.logEvent({
|
|
37
|
-
category:
|
|
36
|
+
category: I.DEPLOYMENTS,
|
|
38
37
|
action: "Delete Solution",
|
|
39
38
|
dimensions: [
|
|
40
39
|
this.card?.title || "",
|
|
@@ -54,7 +53,7 @@ class v extends g {
|
|
|
54
53
|
},
|
|
55
54
|
solutionOwner: this.card.owner
|
|
56
55
|
};
|
|
57
|
-
|
|
56
|
+
b(this.card.id, this._configContextConsumer.value.userSession, s).then((t) => {
|
|
58
57
|
const a = t[1];
|
|
59
58
|
let i;
|
|
60
59
|
if (a ? i = a.items.map((o) => ({
|
|
@@ -79,7 +78,7 @@ class v extends g {
|
|
|
79
78
|
typeKeywords: [],
|
|
80
79
|
snippet: "",
|
|
81
80
|
dependencies: [],
|
|
82
|
-
url:
|
|
81
|
+
url: y(n.id, this._configContextConsumer.value.authentication)
|
|
83
82
|
})), this._templateInfos = l, this._showDeleteError = !1, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
|
|
84
83
|
} else
|
|
85
84
|
this.solutionDeleted.emit({ showAlert: !0, refreshSolutionsTimeout: !0 }), this._isDeleteInProgress = !1, this.open = !1;
|
|
@@ -4,13 +4,12 @@ import "../../chunks/useT9n.js";
|
|
|
4
4
|
import "@arcgis/lumina";
|
|
5
5
|
import "@arcgis/lumina/context";
|
|
6
6
|
import "@arcgis/analysis-shared-utils";
|
|
7
|
-
import { S as
|
|
7
|
+
import { S as g } from "../../chunks/solution-deploy-dialog.js";
|
|
8
8
|
import "@esri/solution-common";
|
|
9
|
-
import "../../chunks/deployAppContexts.js";
|
|
10
|
-
import "@esri/solution-deployer";
|
|
11
9
|
import "../../chunks/interfaces.js";
|
|
10
|
+
import "@esri/solution-deployer";
|
|
12
11
|
import "lit";
|
|
13
12
|
import "lit/directives/ref.js";
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
g as SolutionDeployDialog
|
|
16
15
|
};
|
|
@@ -4,9 +4,8 @@ import "lit";
|
|
|
4
4
|
import "../../chunks/useT9n.js";
|
|
5
5
|
import "@arcgis/lumina";
|
|
6
6
|
import "@arcgis/lumina/context";
|
|
7
|
-
import "../../chunks/
|
|
8
|
-
import { a0 as l } from "../../chunks/interfaces.js";
|
|
7
|
+
import { a2 as d } from "../../chunks/interfaces.js";
|
|
9
8
|
import "lit-html/directives/ref.js";
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
d as SolutionDeployedCard
|
|
12
11
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { u } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as m, createEvent as
|
|
4
|
+
import { LitElement as m, createEvent as l, safeClassMap as f, nothing as d } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as p } from "@arcgis/lumina/context";
|
|
6
6
|
import { css as b, html as i } from "lit";
|
|
7
|
-
import {
|
|
8
|
-
import { D as v, T as s, x as y, F as w } from "../../chunks/interfaces.js";
|
|
7
|
+
import { A as x, F as _, G as v, T as s, x as y, H as w } from "../../chunks/interfaces.js";
|
|
9
8
|
import { f as C, g, a as $ } from "../../chunks/cardsHelpers.js";
|
|
10
9
|
import { g as S } from "../../chunks/getRelatedInfos.js";
|
|
11
10
|
const D = b`.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-foreground-1)}.background-color-2{background-color:var(--calcite-color-foreground-2)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-foreground-2);background-color:var(--calcite-color-foreground-2)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-foreground-1);--calcite-shell-panel-background-color: var(--calcite-color-foreground-1)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@media(max-width:800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}`;
|
|
@@ -15,13 +14,13 @@ class T extends m {
|
|
|
15
14
|
context: x,
|
|
16
15
|
subscribe: !0,
|
|
17
16
|
callback: async (e) => {
|
|
18
|
-
e && (this._isOrgAdmin =
|
|
17
|
+
e && (this._isOrgAdmin = _(e.authentication), this._user = e.authentication?.Portal?.user);
|
|
19
18
|
}
|
|
20
19
|
}), this._isOrgAdmin = !1, this._isMobileContextConsumer = p({
|
|
21
|
-
context:
|
|
20
|
+
context: v,
|
|
22
21
|
subscribe: !0,
|
|
23
22
|
callback: (e) => this.isMobile = e
|
|
24
|
-
}), this.navTabSelected =
|
|
23
|
+
}), this.navTabSelected = l(), this.forceSelectTab = l(), this.sortTypeChanged = l(), this.solutionConfigureDialogClose = l(), this._nonSolutionDependencyItems = [], this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "displayDeployedCard", () => {
|
|
25
24
|
this._showSuccessAlert = !0;
|
|
26
25
|
}), this.listenOn(window, "sessionRefreshed", (e) => {
|
|
27
26
|
this._updateThumbnailToken(e.detail);
|
|
@@ -57,19 +56,19 @@ class T extends m {
|
|
|
57
56
|
const a = await S(this._configContextConsumer.value.userSession, this.card);
|
|
58
57
|
this._nonSolutionDependencyItems = a._nonSolutionDependencyItems;
|
|
59
58
|
const o = C(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
|
|
60
|
-
let
|
|
59
|
+
let n = !1;
|
|
61
60
|
if (o) {
|
|
62
61
|
const c = g(o), r = g(this.card);
|
|
63
|
-
|
|
62
|
+
n = c > r;
|
|
64
63
|
}
|
|
65
|
-
this._hasNewVersion =
|
|
64
|
+
this._hasNewVersion = n;
|
|
66
65
|
}
|
|
67
66
|
_handleDeployAppTabSelected(e) {
|
|
68
67
|
e.detail === "deployed-card" && this.sortTypeChanged.emit("");
|
|
69
68
|
}
|
|
70
69
|
_getButtons() {
|
|
71
|
-
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this._configContextConsumer.value?.authentication?.CanDeleteSolution, o = this.card?.owner === e || this._isOrgAdmin || t,
|
|
72
|
-
return i`<div class=${`display-flex flex-direction-column ${r}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${o && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${f(c)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${
|
|
70
|
+
const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this.card?.owner === e || this._isOrgAdmin || t, n = this.card?.owner === e || this._isOrgAdmin || a, c = o ? "display-none" : "", r = this.isMobile ? "padding-lg" : "padding-xxl";
|
|
71
|
+
return i`<div class=${`display-flex flex-direction-column ${r}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${o && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${f(c)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${n && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
|
|
73
72
|
}
|
|
74
73
|
_openConfigureTitlesDialog() {
|
|
75
74
|
this._configureTitlesOpen = !0;
|
|
@@ -4,8 +4,7 @@ import { css as p, html as o } from "lit";
|
|
|
4
4
|
import { u as m } from "../../chunks/useT9n.js";
|
|
5
5
|
import { LitElement as u, createEvent as f, nothing as r, safeClassMap as g } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as x } from "@arcgis/lumina/context";
|
|
7
|
-
import {
|
|
8
|
-
import { T as b, G as y } from "../../chunks/interfaces.js";
|
|
7
|
+
import { A as v, T as b, J as y } from "../../chunks/interfaces.js";
|
|
9
8
|
import { c as $ } from "../../chunks/cardsHelpers.js";
|
|
10
9
|
const _ = p`calcite-card{height:100%;padding-bottom:2px}@media(max-width:400px){calcite-card{width:100%}}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{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer}.chip-status{--calcite-chip-icon-color: var(--calcite-color-brand);cursor:pointer}.chip-deployed{--calcite-chip-icon-color: var(--calcite-color-status-success)}.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:1.2rem}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.info-icon{--calcite-icon-color: var(--calcite-color-text-inverse);padding-inline-end:.3rem}.card-image-wrap{flex:0 0 auto}.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}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}a{text-decoration:none;color:inherit;outline:0;padding:0;margin:0;display:inherit;height:100%}`;
|
|
11
10
|
class C extends u {
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
2
|
+
import { c as I } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as S } from "../../chunks/useT9n.js";
|
|
4
4
|
import { createRef as d, ref as h } from "lit-html/directives/ref.js";
|
|
5
5
|
import { LitElement as C, createEvent as f, safeClassMap as u, nothing as y, safeStyleMap as D } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as w } from "@arcgis/lumina/context";
|
|
7
|
-
import {
|
|
8
|
-
import { css as
|
|
9
|
-
import { request as
|
|
10
|
-
import { E as m, R as F, g as x, T as g, U as b, V as H, H as I, G as V, W as z, X as B, C as Y } from "../../chunks/interfaces.js";
|
|
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
|
+
import { css as N, html as a } 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 v, setCreateProp as Y } from "@esri/solution-common";
|
|
11
10
|
import { _findExistingItem as G } from "@esri/solution-deployer";
|
|
12
11
|
import "../../chunks/solution-deploy-dialog.js";
|
|
13
12
|
import "../solution-snapshot-gallery/customElement.js";
|
|
14
13
|
import "../solution-deploying-dialog/customElement.js";
|
|
15
|
-
const W =
|
|
14
|
+
const W = N`.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}@media(max-width:1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@media(max-width:768px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;padding-inline-end:0;margin-bottom: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}@media(max-width:1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@media(max-width:1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@media(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}.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-foreground-2)}.back-color-override-1{background-color:var(--calcite-color-foreground-1)}.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-foreground-1)}.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-foreground-2)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-foreground-2);background-color:var(--calcite-color-foreground-2)}.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)}`;
|
|
16
15
|
async function K(n, e, t) {
|
|
17
16
|
let i = t;
|
|
18
17
|
return n && (n?.IsEnterprisePortal && await X(
|
|
19
18
|
"",
|
|
20
19
|
// the portal url
|
|
21
20
|
e
|
|
22
|
-
) && i.push(m.NOTEBOOK), await
|
|
21
|
+
) && i.push(m.NOTEBOOK), await E(e) ? t.push(m.VELOCITY) : n?.PortalUserPrivileges && [
|
|
23
22
|
x.VELOCITYFEEDS,
|
|
24
23
|
x.VELOCITYBIGDATA,
|
|
25
24
|
x.VELOCITYREALTIME
|
|
@@ -28,8 +27,8 @@ async function K(n, e, t) {
|
|
|
28
27
|
r !== -1 && t.splice(r, 1);
|
|
29
28
|
}), i = i.concat(
|
|
30
29
|
q(
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
Z(n),
|
|
31
|
+
Q(n)
|
|
33
32
|
)
|
|
34
33
|
), i = i.concat(j(n)), i = i.concat(await J(n))), Promise.resolve(i);
|
|
35
34
|
}
|
|
@@ -47,8 +46,8 @@ function j(n) {
|
|
|
47
46
|
) ? [m.HUBPREMIUM] : [];
|
|
48
47
|
}
|
|
49
48
|
async function J(n) {
|
|
50
|
-
const e = await
|
|
51
|
-
return await
|
|
49
|
+
const e = await H(n?.RestUserSession);
|
|
50
|
+
return await V(
|
|
52
51
|
e,
|
|
53
52
|
n?.RestUserSession
|
|
54
53
|
) ? [m.WORKFLOW] : [];
|
|
@@ -61,9 +60,9 @@ async function X(n, e) {
|
|
|
61
60
|
f: "json"
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
|
-
return
|
|
63
|
+
return F(`${t}/portals/self/servers`, i).then((s) => s?.servers?.find((o) => o.serverFunction.indexOf("NotebookServer") > -1), (s) => (console.error(s), !1));
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function Z(n) {
|
|
67
66
|
const e = n?.PortalUserSubset?.privileges, t = [
|
|
68
67
|
"portal:admin:create",
|
|
69
68
|
"portal:admin:delete",
|
|
@@ -74,7 +73,7 @@ function Q(n) {
|
|
|
74
73
|
(i) => e.some((s) => s.startsWith(i))
|
|
75
74
|
) : !1;
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function Q(n) {
|
|
78
77
|
return n?.PortalSubset?.locationTrackingEnabled || !1;
|
|
79
78
|
}
|
|
80
79
|
function ee(n) {
|
|
@@ -82,11 +81,11 @@ function ee(n) {
|
|
|
82
81
|
}
|
|
83
82
|
class te extends C {
|
|
84
83
|
constructor() {
|
|
85
|
-
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 =
|
|
86
|
-
context:
|
|
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 = S({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
|
|
85
|
+
context: L,
|
|
87
86
|
subscribe: !0
|
|
88
87
|
}), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._isMobileContextConsumer = w({
|
|
89
|
-
context:
|
|
88
|
+
context: R,
|
|
90
89
|
subscribe: !0,
|
|
91
90
|
callback: (e) => this.isMobile = e
|
|
92
91
|
}), 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 = () => {
|
|
@@ -128,7 +127,7 @@ class te extends C {
|
|
|
128
127
|
}
|
|
129
128
|
const t = b(this._deploymentStartTime);
|
|
130
129
|
this._deploymentStartTime = null;
|
|
131
|
-
const i =
|
|
130
|
+
const i = T(e.detail?.error), s = i.length > 200 ? i.slice(-200) : i;
|
|
132
131
|
console.error("Deployment failed:", e.detail?.error), this._telemetry?.logEvent({
|
|
133
132
|
category: g.SOLUTION_DETAILS,
|
|
134
133
|
action: "Deploy Failure",
|
|
@@ -222,23 +221,25 @@ class te extends C {
|
|
|
222
221
|
_getScreenshots() {
|
|
223
222
|
const e = this._itemProperties?.preview.filter((i) => i.format === "image") || [], t = this._configContextConsumer.value;
|
|
224
223
|
return a`<calcite-card-group class="card-group" .label=${this._translations.solutionOverview}>${e.reduce((i, s) => {
|
|
225
|
-
const o =
|
|
224
|
+
const o = $(this.card?.id || "", s.name, t.authentication);
|
|
226
225
|
let l;
|
|
227
|
-
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (l =
|
|
226
|
+
return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (l = $(this.card?.id || "", s.name, void 0, t.agolPortalUrl)), this.card?.id ? i.push(a`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${s.alt} @click=${() => this._openScreenshotGallery(s)} @keydown=${(r) => P(r, () => this._openScreenshotGallery(s))}><div class="card-image-wrap" slot=thumbnail><img alt=${s.alt ?? y} class="thumbnail card-image" slot=thumbnail src=${(l || o) ?? y}>${!this.isMobile && a`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : i.push(""), i;
|
|
228
227
|
}, [])}</calcite-card-group>`;
|
|
229
228
|
}
|
|
230
229
|
_openScreenshotGallery(e) {
|
|
231
|
-
this.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
230
|
+
if (!this.isMobile) {
|
|
231
|
+
this._telemetry?.logEvent({
|
|
232
|
+
category: g.SOLUTION_DETAILS,
|
|
233
|
+
action: "Screenshot Gallery",
|
|
234
|
+
dimensions: [
|
|
235
|
+
this.card?.title || "",
|
|
236
|
+
this.card?.deployCommonId || "",
|
|
237
|
+
this.card?.deployVersion || ""
|
|
238
|
+
]
|
|
239
|
+
});
|
|
240
|
+
const t = this._screenshotsDialogRef.value;
|
|
241
|
+
t && (t.screenshot = e, t.open = !0);
|
|
242
|
+
}
|
|
242
243
|
}
|
|
243
244
|
_getOverviewRow() {
|
|
244
245
|
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>`;
|
|
@@ -332,12 +333,12 @@ class te extends C {
|
|
|
332
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);
|
|
333
334
|
}
|
|
334
335
|
async _getItemData() {
|
|
335
|
-
const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await
|
|
336
|
+
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);
|
|
336
337
|
this._itemProperties = s.properties, this.itemPropertiesFetched.emit(this._itemProperties);
|
|
337
|
-
const o =
|
|
338
|
+
const o = A(i, this.card.typeKeywords, e?.authentication);
|
|
338
339
|
this._privileges = t.username ? o : [], this._userPrivileges = e?.authentication && e?.userSession ? await K(e.authentication, e.userSession, e.authentication.PortalUserPrivileges) : [];
|
|
339
340
|
const l = this._privileges.filter((p) => !this._userPrivileges.includes(p));
|
|
340
|
-
this._missingPrivilegeMessages =
|
|
341
|
+
this._missingPrivilegeMessages = O(this._translations, l), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
|
|
341
342
|
const r = i.params ? await this.formatParams(i.params) : [];
|
|
342
343
|
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());
|
|
343
344
|
}
|
|
@@ -356,8 +357,8 @@ class te extends C {
|
|
|
356
357
|
const p = {};
|
|
357
358
|
return r.forEach((c) => {
|
|
358
359
|
if (c.query && c.results && c.results.length > 0) {
|
|
359
|
-
const
|
|
360
|
-
p[
|
|
360
|
+
const k = c.query.split(" ")[0].replace("typekeywords:source-", "");
|
|
361
|
+
p[k] = {
|
|
361
362
|
resultId: c.results[0].id,
|
|
362
363
|
response: c.results[0]
|
|
363
364
|
};
|
|
@@ -378,8 +379,8 @@ class te extends C {
|
|
|
378
379
|
return G(`typekeywords:source-${e} type:${t} owner:${i}`, s);
|
|
379
380
|
}
|
|
380
381
|
updateUserProp(e, t) {
|
|
381
|
-
const i = e.itemType?.toLowerCase() === "feature service", s = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), o =
|
|
382
|
-
return e.responseValue = l ? o : "", e.name = l && v(t, "name") || "", e.title = l && v(t, "title") || "", e.itemType = l ? v(t, "type") : e.itemType, e.validId = l, e.itemUrl =
|
|
382
|
+
const i = e.itemType?.toLowerCase() === "feature service", s = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), o = M(t, i ? "url" : "type", "") || "", l = o !== "" && s.test(o);
|
|
383
|
+
return e.responseValue = l ? o : "", e.name = l && v(t, "name") || "", e.title = l && v(t, "title") || "", e.itemType = l ? v(t, "type") : e.itemType, e.validId = l, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), l;
|
|
383
384
|
}
|
|
384
385
|
updateOption(e, t, i) {
|
|
385
386
|
const s = e.default || "", o = typeof s, l = s.toString();
|
|
@@ -409,11 +410,11 @@ class te extends C {
|
|
|
409
410
|
});
|
|
410
411
|
}
|
|
411
412
|
_setFeatureServiceProps(e) {
|
|
412
|
-
e.valueType && e.valueType.toLowerCase() === "itemid" &&
|
|
413
|
+
e.valueType && e.valueType.toLowerCase() === "itemid" && Y(e, "attributes.required", "true");
|
|
413
414
|
}
|
|
414
415
|
getValidation(e, t) {
|
|
415
416
|
let i = "", s = v(e, "validation.message") || "", o = !0;
|
|
416
|
-
return v(e, "attributes.required") === "true" && (i =
|
|
417
|
+
return v(e, "attributes.required") === "true" && (i = M(e, "validation.expression", "\\S{1,}"), o = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, s = this._translations.configure.invalidID), {
|
|
417
418
|
valid: o,
|
|
418
419
|
validation: {
|
|
419
420
|
expression: i,
|
|
@@ -468,7 +469,7 @@ class te extends C {
|
|
|
468
469
|
this._isLoaded ? this._openDeploy() : this._configContextConsumer.value.authentication?.IsSignedIn ? this._showLoader = !0 : this._openDeploy();
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
|
-
|
|
472
|
+
I("solution-details-panel", te);
|
|
472
473
|
export {
|
|
473
474
|
te as SolutionDetailsPanel
|
|
474
475
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as i } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as t, svg as e, html as l } from "lit";
|
|
4
|
-
import { u as
|
|
5
|
-
import { LitElement as
|
|
4
|
+
import { u as h } from "../../chunks/useT9n.js";
|
|
5
|
+
import { LitElement as o, nothing as r } from "@arcgis/lumina";
|
|
6
6
|
import { useContextConsumer as s } from "@arcgis/lumina/context";
|
|
7
|
-
import {
|
|
8
|
-
import { G as m, T as z } from "../../chunks/interfaces.js";
|
|
7
|
+
import { A as n, J as m, T as z } from "../../chunks/interfaces.js";
|
|
9
8
|
const v = t`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)}`, c = {
|
|
10
9
|
"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",
|
|
11
10
|
"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",
|
|
@@ -19,9 +18,9 @@ const v = t`calcite-card{cursor:pointer;height:100%;padding-bottom:2px;border-in
|
|
|
19
18
|
video: "M11.363 17.1l27.814-8.32-1.697-5.673-31.127 9.311 1.696 5.673.051-.015V41.9h31.8V17.1zm15.783-5.556l-5.179 1.549 1.246-4.883 5.178-1.549zm2.14-5.15l5.178-1.549-1.246 4.883-5.178 1.548zm-8.213 6.966l-5.178 1.549 1.246-4.883 5.178-1.548zm-6.072 1.816l-5.178 1.549 1.246-4.883 5.178-1.548zm23.18-6.933L34.112 9.46l1.246-4.882 1.585-.474zM7.35 12.955l2.826-.845-1.246 4.882-.343.103zM29.044 22.1l2.52-4.2h5.405l-2.52 4.2zm-19.014 0l2.52-4.2h5.405l-2.52 4.2zm8.858-4.2h5.405l-2.52 4.2h-5.405zm6.338 0h5.405l-2.52 4.2h-5.405zM8.9 17.9h2.716l-2.519 4.2H8.9zm30.2 23.2H8.9V22.9h30.2zm-3.718-19l2.52-4.2H39.1v4.2zM36 27.9h-2v-.8h2zm-5 0H13v-.8h18zm-17.9 9h22.8v-5.8H13.1zm.8-5h21.2v4.2H13.9z",
|
|
20
19
|
"speech-bubbles": "M11 15.9v-.8h18v.8zm12 4v-.8H11v.8zm-1 7.2h-3.443L9.9 32.76V27.1H5.75a1.852 1.852 0 0 1-1.85-1.85v-14.5A1.852 1.852 0 0 1 5.75 8.9h27.5a1.852 1.852 0 0 1 1.85 1.85V22h.8V10.75a2.653 2.653 0 0 0-2.65-2.65H5.75a2.653 2.653 0 0 0-2.65 2.65v14.5a2.653 2.653 0 0 0 2.65 2.65H9.1v6.34l9.695-6.34H22zm18.9 9.8h1.35a2.653 2.653 0 0 0 2.65-2.65v-8.5a2.653 2.653 0 0 0-2.65-2.65h-16.5a2.653 2.653 0 0 0-2.65 2.65v8.5a2.653 2.653 0 0 0 2.65 2.65h7.28l7.87 5.628zm1.35-13a1.852 1.852 0 0 1 1.85 1.85v8.5a1.852 1.852 0 0 1-1.85 1.85H40.1v4.872L33.288 36.1H25.75a1.852 1.852 0 0 1-1.85-1.85v-8.5a1.852 1.852 0 0 1 1.85-1.85zm-3.25 4v-.8H29v.8zm-3 5v-.8h-7v.8z"
|
|
21
20
|
};
|
|
22
|
-
class d extends
|
|
21
|
+
class d extends o {
|
|
23
22
|
constructor() {
|
|
24
|
-
super(...arguments), this._translations =
|
|
23
|
+
super(...arguments), this._translations = h({ name: "solution-resource-card", blocking: !0 }), this._configContextConsumer = s({
|
|
25
24
|
context: n,
|
|
26
25
|
subscribe: !0
|
|
27
26
|
}), this.heading = "", this.description = "", this.sectionHeading = "";
|
|
@@ -36,7 +35,7 @@ class d extends r {
|
|
|
36
35
|
return this._configContextConsumer.value?.telemetrySession;
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
|
-
return l`<calcite-card @click=${() => this.url && this._handleCardClick(this.url)} @keydown=${(a) => m(a, () => this.url && this._handleCardClick(this.url))}>${this.meridianIcon && c[this.meridianIcon] && l`<div class="card-icon"><svg class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${e`<path fill=currentColor d=${c[this.meridianIcon] ??
|
|
38
|
+
return l`<calcite-card @click=${() => this.url && this._handleCardClick(this.url)} @keydown=${(a) => m(a, () => this.url && this._handleCardClick(this.url))}>${this.meridianIcon && c[this.meridianIcon] && l`<div class="card-icon"><svg class="meridian-icon" xmlns=http://www.w3.org/2000/svg viewBox="0 0 48 48">${e`<path fill=currentColor d=${c[this.meridianIcon] ?? r} />`}</svg></div>` || ""}${this.icon && l`<div class="card-icon"><calcite-icon .icon=${this.icon} scale=l></calcite-icon></div>` || ""}<h3 class="card-heading">${this.heading}</h3><p class="card-description">${this.description}</p></calcite-card>`;
|
|
40
39
|
}
|
|
41
40
|
_handleCardClick(a) {
|
|
42
41
|
this._telemetry?.logEvent({
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as c } from "../../chunks/useT9n.js";
|
|
4
|
-
import { LitElement as l, nothing as
|
|
4
|
+
import { LitElement as l, nothing as a } from "@arcgis/lumina";
|
|
5
5
|
import { useContextConsumer as d } from "@arcgis/lumina/context";
|
|
6
|
-
import {
|
|
7
|
-
import { c as p } from "../../chunks/deployAppContexts.js";
|
|
6
|
+
import { A as h, J as p, K as r } from "../../chunks/interfaces.js";
|
|
8
7
|
import { css as g, html as i } from "lit";
|
|
9
8
|
import "@esri/solution-common";
|
|
10
9
|
import "@arcgis/core/identity/IdentityManager.js";
|
|
@@ -15,7 +14,7 @@ const f = g`.display-flex{display:flex}.align-items-center{align-items:center}.j
|
|
|
15
14
|
class b extends l {
|
|
16
15
|
constructor() {
|
|
17
16
|
super(...arguments), this.open = !1, this._screenshots = [], this._translations = c({ name: "solution-snapshot-gallery", blocking: !0 }), this._configContextConsumer = d({
|
|
18
|
-
context:
|
|
17
|
+
context: h,
|
|
19
18
|
subscribe: !0
|
|
20
19
|
}), this._displayText = "", this._paginationControl = m(), this._screenshotNames = [];
|
|
21
20
|
}
|
|
@@ -36,7 +35,7 @@ class b extends l {
|
|
|
36
35
|
}
|
|
37
36
|
_getFooter() {
|
|
38
37
|
const t = this._screenshotNames.indexOf(this.screenshot?.name || ""), s = document.body.classList.contains("calcite-mode-dark") ? "calcite-mode-dark" : "";
|
|
39
|
-
return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${s}`}><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 ??
|
|
38
|
+
return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${s}`}><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>${this._displayText}</calcite-label></div>${this._getCards()}</div>`;
|
|
40
39
|
}
|
|
41
40
|
_changeScreenshot() {
|
|
42
41
|
this.screenshot = this._screenshots[this._paginationControl.value.startItem - 1];
|
|
@@ -44,18 +43,18 @@ class b extends l {
|
|
|
44
43
|
_getCards() {
|
|
45
44
|
return i`<calcite-card-group class="card-group padding-1" .label=${this._translations.seeSolutionScreenshots} selection-mode=single>${this._screenshots.map((t) => {
|
|
46
45
|
const e = t.name === this.screenshot?.name;
|
|
47
|
-
return i`<calcite-card class=${`footer-card ${e ? "calcite-card-selected" : ""}`} .label=${t.alt} @click=${() => this._showScreenshot(t)} @keydown=${(o) =>
|
|
46
|
+
return i`<calcite-card class=${`footer-card ${e ? "calcite-card-selected" : ""}`} .label=${t.alt} @click=${() => this._showScreenshot(t)} @keydown=${(o) => p(o, () => this._showScreenshot(t))} .selected=${e}><div class="card-image-wrap" slot=thumbnail>${this._getImage(t, "thumbnail")}<div class="hover-text">${this._translations.viewScreenshot}</div></div></calcite-card>`;
|
|
48
47
|
})}</calcite-card-group>`;
|
|
49
48
|
}
|
|
50
49
|
_getImage(t, e) {
|
|
51
|
-
return i`<img alt=${t.alt ??
|
|
50
|
+
return i`<img alt=${t.alt ?? a} slot=${e ?? a} src=${this._getSource(this._configContextConsumer.value.authentication, this.card?.id || "", t.name) ?? a}>`;
|
|
52
51
|
}
|
|
53
52
|
_showScreenshot(t) {
|
|
54
53
|
this.screenshot = t;
|
|
55
54
|
}
|
|
56
55
|
_getSource(t, e, s) {
|
|
57
56
|
const o = this._configContextConsumer.value;
|
|
58
|
-
return o.agoBasedEnterpriseSolutionsGroupId && o.isEnterprise ?
|
|
57
|
+
return o.agoBasedEnterpriseSolutionsGroupId && o.isEnterprise ? r(e || "", s, void 0, o.agolPortalUrl) : t ? r(e || "", s, t) : "";
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
n("solution-snapshot-gallery", b);
|
|
@@ -4,12 +4,11 @@ import { css as v, html as e, svg as p } 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";
|
|
7
|
-
import {
|
|
8
|
-
import { T as w, J as y } from "../../chunks/interfaces.js";
|
|
7
|
+
import { A as x, T as w, L as y } from "../../chunks/interfaces.js";
|
|
9
8
|
import { createRef as n, ref as r } from "lit-html/directives/ref.js";
|
|
10
9
|
import * as $ from "@arcgis/core/intl";
|
|
11
10
|
import k from "@arcgis/core/request";
|
|
12
|
-
const R = v`:host{display:block;--solutions-social-share-action-width: initial;--solutions-social-share-width--s: 200px;--solutions-social-share-width--m: 280px;--solutions-social-share-width--l: 320px;--solutions-social-share-width-horizontal--s: 300px;--solutions-social-share-width-horizontal--m: 380px;--solutions-social-share-width-horizontal--l: 420px;--solutions-social-share-background-color: var(--calcite-color-foreground-1);--solutions-social-share-popover-button-background-color: transparent;--solutions-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--solutions-social-share-border: 1px solid var(--calcite-color-border-1);position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-flow:column;align-items:stretch}.solutions-social-share__popover-button{background-color:var(--solutions-social-share-popover-button-background-color);--calcite-color-focus: initial}.solutions-social-share__popover-button calcite-icon{color:var(--solutions-social-share-popover-button-icon-color)}.solutions-social-share__dialog{background-color:var(--solutions-social-share-background-color);border:var(--solutions-social-share-border);box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}.solutions-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}.solutions-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}.solutions-social-share__options li .solutions-social-share__icon,.solutions-social-share__options li .solutions-social-share__option-text{display:inline-block}.solutions-social-share__options li .solutions-social-share__icon{display:flex;align-items:center}.solutions-social-share__options li .solutions-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}.solutions-social-share__options li .solutions-social-share__option-text--rtl{margin-left:0;margin-right:10px}.solutions-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}.solutions-social-share__x-logo{color:var(--calcite-color-text-1)}.solutions-social-share__success{display:flex;flex-direction:column;padding:15px}.solutions-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}.solutions-social-share__success-icon{display:flex;align-items:center;margin-right:5px}.solutions-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}.solutions-social-share__success-message{line-height:16px}.solutions-social-share__layout--horizontal .solutions-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}.solutions-social-share__layout--horizontal .solutions-social-share__options li{flex-direction:column;padding:0}.solutions-social-share__layout--horizontal .solutions-social-share__options li .solutions-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}.solutions-social-share__layout--horizontal .solutions-social-share__options li:hover{background-color:unset}.solutions-social-share__icon-container{display:flex;align-items:center}calcite-action{width:var(--solutions-social-share-action-width)}:host([scale=s]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--s)}:host([scale=s]) .solutions-social-share__icon{width:16px;height:16px}:host([scale=s]) .solutions-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--s)}:host([scale=m]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--m)}:host([scale=m]) .solutions-social-share__icon{width:24px;height:24px}:host([scale=m]) .solutions-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--m)}:host([scale=l]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--l)}:host([scale=l]) .solutions-social-share__icon{width:32px;height:32px}:host([scale=l]) .solutions-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--l)}`, L = ".calcite-mode-dark", S = {
|
|
11
|
+
const R = v`:host{display:block;--solutions-social-share-action-width: initial;--solutions-social-share-width--s: 200px;--solutions-social-share-width--m: 280px;--solutions-social-share-width--l: 320px;--solutions-social-share-width-horizontal--s: 300px;--solutions-social-share-width-horizontal--m: 380px;--solutions-social-share-width-horizontal--l: 420px;--solutions-social-share-background-color: var(--calcite-color-foreground-1);--solutions-social-share-popover-button-background-color: transparent;--solutions-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--solutions-social-share-border: 1px solid var(--calcite-color-border-1);position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-flow:column;align-items:stretch}.solutions-social-share__popover-button{background-color:var(--solutions-social-share-popover-button-background-color);--calcite-color-focus: initial}.solutions-social-share__popover-button calcite-icon{color:var(--solutions-social-share-popover-button-icon-color)}.solutions-social-share__dialog{background-color:var(--solutions-social-share-background-color);border:var(--solutions-social-share-border);box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}.solutions-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}.solutions-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}.solutions-social-share__options li .solutions-social-share__icon,.solutions-social-share__options li .solutions-social-share__option-text{display:inline-block}.solutions-social-share__options li .solutions-social-share__icon{display:flex;align-items:center}.solutions-social-share__options li .solutions-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}.solutions-social-share__options li .solutions-social-share__option-text--rtl{margin-left:0;margin-right:10px}.solutions-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}.solutions-social-share__options li:focus{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.solutions-social-share__x-logo{color:var(--calcite-color-text-1)}.solutions-social-share__success{display:flex;flex-direction:column;padding:15px}.solutions-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}.solutions-social-share__success-icon{display:flex;align-items:center;margin-right:5px}.solutions-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}.solutions-social-share__success-message{line-height:16px}.solutions-social-share__layout--horizontal .solutions-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}.solutions-social-share__layout--horizontal .solutions-social-share__options li{flex-direction:column;padding:0}.solutions-social-share__layout--horizontal .solutions-social-share__options li .solutions-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}.solutions-social-share__layout--horizontal .solutions-social-share__options li:hover{background-color:unset}.solutions-social-share__icon-container{display:flex;align-items:center}calcite-action{width:var(--solutions-social-share-action-width)}:host([scale=s]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--s)}:host([scale=s]) .solutions-social-share__icon{width:16px;height:16px}:host([scale=s]) .solutions-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--s)}:host([scale=m]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--m)}:host([scale=m]) .solutions-social-share__icon{width:24px;height:24px}:host([scale=m]) .solutions-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--m)}:host([scale=l]) .solutions-social-share__dialog{width:var(--solutions-social-share-width--l)}:host([scale=l]) .solutions-social-share__icon{width:32px;height:32px}:host([scale=l]) .solutions-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .solutions-social-share__dialog.solutions-social-share__layout--horizontal{width:var(--solutions-social-share-width-horizontal--l)}`, L = ".calcite-mode-dark", S = {
|
|
13
12
|
facebook: "https://www.facebook.com/sharer/sharer.php?u={url}",
|
|
14
13
|
x: "https://x.com/intent/post?url={url}",
|
|
15
14
|
linkedIn: "https://www.linkedin.com/sharing/share-offsite/?url={url}",
|