@esri/solutions-components 5.1.0-next.93 → 5.1.0-next.95

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.
Files changed (169) hide show
  1. package/dist/cdn/{CDT7ELTA.js → 2B2ANB2N.js} +1 -1
  2. package/dist/cdn/2ID55IJB.js +2 -0
  3. package/dist/cdn/2SGR44DX.js +2 -0
  4. package/dist/cdn/2VXTMCRJ.js +2 -0
  5. package/dist/cdn/{L73FGVVE.js → 3J47AYBV.js} +117 -117
  6. package/dist/cdn/4B7NJE47.js +2 -0
  7. package/dist/cdn/5LTIZSXG.js +2 -0
  8. package/dist/cdn/74MDW73I.js +2 -0
  9. package/dist/cdn/ADPYDJG6.js +2 -0
  10. package/dist/cdn/{FDE2V7FU.js → AJZHT4GA.js} +1 -1
  11. package/dist/cdn/{5A7H4LVR.js → AY6K2SJI.js} +1 -1
  12. package/dist/cdn/{5NPISZEN.js → C6KN2U7N.js} +1 -1
  13. package/dist/cdn/{OGPKAPZK.js → C7ASL3A4.js} +1 -1
  14. package/dist/cdn/{NSJAGP7T.js → DI7PQSFH.js} +2 -2
  15. package/dist/cdn/FVXS4LF5.js +2 -0
  16. package/dist/cdn/{UJLDLGTN.js → IEKNRCBC.js} +1 -1
  17. package/dist/cdn/IRRMUFW7.js +2 -0
  18. package/dist/cdn/ITLTQWCX.js +2 -0
  19. package/dist/cdn/IYUTLV2O.js +2 -0
  20. package/dist/cdn/{3XGF3ZJO.js → KW6YOUWC.js} +1 -1
  21. package/dist/cdn/KYFNXHOH.js +2 -0
  22. package/dist/cdn/{WEAC3FS7.js → NBPM6OJQ.js} +1 -1
  23. package/dist/cdn/{S5VV7I2H.js → R3MCMOLS.js} +1 -1
  24. package/dist/cdn/R4VHCXKS.js +2 -0
  25. package/dist/cdn/RG2D7ZRS.js +3 -0
  26. package/dist/cdn/{XBDEGJHE.js → SJCXI4TB.js} +1 -1
  27. package/dist/cdn/{LCERYSRG.js → U77O2MIG.js} +1 -1
  28. package/dist/cdn/UHPN75WT.js +2 -0
  29. package/dist/cdn/VESARS2D.js +7 -0
  30. package/dist/cdn/{JBFDURMG.js → WVRKV5SS.js} +1 -1
  31. package/dist/cdn/{N3F6RUT6.js → X23TE3BV.js} +1 -1
  32. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  33. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  34. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  35. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  36. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  37. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  38. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  39. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  40. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  41. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  42. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  43. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  44. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  45. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  46. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  47. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  48. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  49. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  50. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  51. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  52. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  53. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  54. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  55. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  56. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  57. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  58. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  59. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  60. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  61. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  62. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  63. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  64. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  65. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  66. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  67. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  68. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  69. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  70. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  71. package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
  72. package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
  73. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
  74. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
  75. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
  76. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
  77. package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
  78. package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
  79. package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
  80. package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
  81. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  82. package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
  83. package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
  84. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
  85. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
  86. package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
  87. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
  88. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
  89. package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
  90. package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
  91. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
  92. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  93. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
  94. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
  95. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
  96. package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
  97. package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
  98. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
  99. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
  100. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
  101. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
  102. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
  103. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
  104. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
  105. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
  106. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
  107. package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
  108. package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
  109. package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
  110. package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
  111. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
  112. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
  113. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
  114. package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -0
  115. package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -0
  116. package/dist/cdn/index.js +1 -1
  117. package/dist/cdn/main.css +1 -1
  118. package/dist/chunks/converter.js +620 -0
  119. package/dist/chunks/get.js +387 -0
  120. package/dist/chunks/solution-deploy-dialog.js +91 -76
  121. package/dist/components/arcgis-solutions-assistant/customElement.js +8403 -8881
  122. package/dist/components/consent-manager/customElement.js +609 -638
  123. package/dist/components/solution-builder-assistant/customElement.js +115 -76
  124. package/dist/components/solution-builder-assistant/index.js +2 -0
  125. package/dist/components/solution-configure-titles/customElement.js +76 -59
  126. package/dist/components/solution-delete-dialog/customElement.js +57 -54
  127. package/dist/components/solution-deploy-dialog/customElement.d.ts +3 -1
  128. package/dist/components/solution-deploy-dialog/customElement.js +3 -2
  129. package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
  130. package/dist/components/solution-details-card/customElement.d.ts +4 -0
  131. package/dist/components/solution-details-card/customElement.js +45 -29
  132. package/dist/components/solution-details-card/index.js +1 -0
  133. package/dist/components/solution-item-accordion/customElement.d.ts +5 -4
  134. package/dist/components/solution-item-accordion/customElement.js +55 -35
  135. package/dist/components/solution-item-accordion/index.js +2 -0
  136. package/dist/components/solutions-all-panel/customElement.js +11 -11
  137. package/dist/components/solutions-deployed-list/customElement.d.ts +33 -0
  138. package/dist/components/solutions-deployed-list/customElement.js +38 -0
  139. package/dist/components/solutions-deployed-list/index.d.ts +1 -0
  140. package/dist/components/solutions-deployed-list/index.js +1 -0
  141. package/dist/docs/api.json +1 -1
  142. package/dist/docs/docs.json +1 -1
  143. package/dist/docs/vscode.html-custom-data.json +1 -1
  144. package/dist/docs/web-types.json +1 -1
  145. package/dist/index.d.ts +10 -0
  146. package/dist/loader.js +4 -3
  147. package/dist/solutions-components_commit.txt +7 -7
  148. package/dist/types/lumina.d.ts +7 -1
  149. package/dist/types/preact.d.ts +8 -1
  150. package/dist/types/react.d.ts +9 -1
  151. package/dist/types/stencil.d.ts +7 -1
  152. package/dist/utils/getRelatedInfos.d.ts +4 -0
  153. package/dist/utils/interfaces.d.ts +3 -1
  154. package/package.json +1 -1
  155. package/dist/cdn/4OJ3LBF6.js +0 -2
  156. package/dist/cdn/5XOS5PST.js +0 -2
  157. package/dist/cdn/BPELKV5K.js +0 -2
  158. package/dist/cdn/BRQJSGIX.js +0 -2
  159. package/dist/cdn/DLH53PYM.js +0 -7
  160. package/dist/cdn/DX56I3QB.js +0 -3
  161. package/dist/cdn/J5XFS6HE.js +0 -2
  162. package/dist/cdn/PJ43TSSJ.js +0 -2
  163. package/dist/cdn/R2G4DDRZ.js +0 -2
  164. package/dist/cdn/RTFBOXOK.js +0 -2
  165. package/dist/cdn/SN4D24TK.js +0 -2
  166. package/dist/cdn/SO3S3WP4.js +0 -2
  167. package/dist/cdn/WF32M7B5.js +0 -2
  168. package/dist/cdn/ZONXYZVU.js +0 -2
  169. package/dist/chunks/get-portal-url.js +0 -345
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as u } from "../../chunks/runtime.js";
3
- import { u as m } from "../../chunks/useT9n.js";
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { u } from "../../chunks/useT9n.js";
4
4
  import { LitElement as f, createEvent as r, safeClassMap as b, nothing as d } from "@arcgis/lumina";
5
5
  import { useContextConsumer as g } from "@arcgis/lumina/context";
6
- import { css as x, html as i } from "lit";
6
+ import { css as x, html as o } from "lit";
7
7
  import { c as _, i as v } from "../../chunks/deployAppContexts.js";
8
8
  import { y, T as s, x as w } from "../../chunks/interfaces.js";
9
- import { f as C, g as p, a as $ } from "../../chunks/cardsHelpers.js";
9
+ import { f as $, g as p, a as C } from "../../chunks/cardsHelpers.js";
10
10
  import { g as S } from "../../chunks/getRelatedInfos.js";
11
- import { u as k } from "../../chunks/common.js";
12
- import { d as D } from "../../chunks/helpers.js";
11
+ import { u as D } from "../../chunks/common.js";
12
+ import { d as k } from "../../chunks/helpers.js";
13
13
  import * as h from "@esri/solution-common";
14
- const T = x`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.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}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.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-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.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-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.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}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}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)}@container (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}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`;
15
- class I extends f {
14
+ const I = x`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.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}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.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-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.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-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.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}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}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)}@container (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}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`;
15
+ class T extends f {
16
16
  constructor() {
17
- super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations = m({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = g({
17
+ super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations = u({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = g({
18
18
  context: _,
19
19
  subscribe: !0,
20
20
  callback: async (e) => {
@@ -38,7 +38,7 @@ class I extends f {
38
38
  const t = this._configContextConsumer.value?.orgUrl;
39
39
  if (!t)
40
40
  return;
41
- const o = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === o;
41
+ const i = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === i;
42
42
  let a;
43
43
  if (n) {
44
44
  const l = this._folderId || this.card?.owner;
@@ -47,7 +47,7 @@ class I extends f {
47
47
  this._folderId ? a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this._folderId}` : a = `${t}/home/content.html?user=${this.card?.owner}&folder=${this.card?.owner}`;
48
48
  window.open(a, "_blank");
49
49
  }, this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "deployAppTabSelected", this._handleDeployAppTabSelected), this.listenOn(window, "displayDeployedCard", () => {
50
- D({
50
+ k({
51
51
  kind: "success",
52
52
  icon: "check-circle",
53
53
  title: this._translations.deploySuccessAlert.replace("{{solutionTitle}}", this.card?.title ?? ""),
@@ -63,7 +63,7 @@ class I extends f {
63
63
  this.properties = { card: 0, cardRef: 1, diagramKey: 1, open: 5, templateInfos: 0, _accordionLoading: 16, _configureTitlesOpen: 16, _deleteDialogOpen: 16, _hasNewVersion: 16, _isDiagramOpen: 16, _isNameConflict: 16, _invalidNameMessage: 16, _showFailedAlert: 16, _showItemUpdateLoading: 16, isMobile: 16, _templateInfoGraph: 16, _thumbnailUrl: 16, _folderName: 16, _folderId: 16, _folderLoading: 16, _translations: 16, _nonSolutionDependencyItems: 16 };
64
64
  }
65
65
  static {
66
- this.styles = T;
66
+ this.styles = I;
67
67
  }
68
68
  get _telemetry() {
69
69
  return this._configContextConsumer.value?.telemetrySession;
@@ -76,19 +76,19 @@ class I extends f {
76
76
  }
77
77
  willUpdate(e) {
78
78
  if (e.has("card")) {
79
- const t = this._configContextConsumer.value?.userSession, o = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400");
80
- this._thumbnailUrl = `${o}&token=${t?.token}`, this._folderLoading = !0, this._folderName = "", this._folderId = null;
79
+ const t = this._configContextConsumer.value?.userSession, i = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400");
80
+ this._thumbnailUrl = `${i}&token=${t?.token}`, this._folderLoading = !0, this._folderName = "", this._folderId = null;
81
81
  }
82
82
  }
83
83
  render() {
84
- return this.isMobile ? i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>` : i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`;
84
+ return this.isMobile ? o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>` : o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`;
85
85
  }
86
86
  async _deployedCardSelected(e) {
87
87
  const t = e.detail;
88
88
  this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
89
- const o = await S(this._configContextConsumer.value.userSession, this.card);
90
- this._nonSolutionDependencyItems = o._nonSolutionDependencyItems;
91
- const n = C(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
89
+ const i = await S(this._configContextConsumer.value.userSession, this.card);
90
+ this._nonSolutionDependencyItems = i._nonSolutionDependencyItems;
91
+ const n = $(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
92
92
  let a = !1;
93
93
  if (n) {
94
94
  const l = p(n), c = p(this.card);
@@ -100,14 +100,14 @@ class I extends f {
100
100
  e.detail === "deployed-card" && this.sortTypeChanged.emit("");
101
101
  }
102
102
  _getButtons() {
103
- const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || o, l = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
104
- return i`<div class=${`display-flex flex-direction-column ${c}`}>${!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>${n && !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=${b(l)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !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>`;
103
+ const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, i = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || i, l = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
104
+ return o`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && o`<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>${n && !this.isMobile && o`<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=${b(l)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !this.isMobile && o`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
105
105
  }
106
106
  _openConfigureTitlesDialog() {
107
107
  this._configureTitlesOpen = !0;
108
108
  }
109
109
  _getConfigureTitlesDialog() {
110
- return this._configureTitlesOpen ? i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
110
+ return this._configureTitlesOpen ? o`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
111
111
  this.templateInfos = await this._getTemplates(), this._configureTitlesOpen = !1;
112
112
  }} @solutionItemsTitlesChanged=${async () => {
113
113
  this.templateInfos = await this._getTemplates();
@@ -141,7 +141,7 @@ class I extends f {
141
141
  if (!this._configContextConsumer?.value)
142
142
  return;
143
143
  const e = this.isMobile ? "margin-start-end-lg" : "margin-start-end-xxl";
144
- return i`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
144
+ return o`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
145
145
  }
146
146
  async _openDiagram(e) {
147
147
  e.stopPropagation();
@@ -168,8 +168,8 @@ class I extends f {
168
168
  return;
169
169
  const t = await h.getItemBase(this.card.id, e);
170
170
  if (this._folderId = t.ownerFolder ?? null, this._folderId) {
171
- const o = await h.getUserFolder(this.card.owner, this._folderId, e);
172
- this._folderName = o?.currentFolder?.title || this._folderId;
171
+ const i = await h.getUserFolder(this.card.owner, this._folderId, e);
172
+ this._folderName = i?.currentFolder?.title || this._folderId;
173
173
  } else
174
174
  this._folderName = this.card.owner || "Root";
175
175
  } catch (e) {
@@ -177,12 +177,12 @@ class I extends f {
177
177
  }
178
178
  }
179
179
  _getFolderSection() {
180
- const e = this.isMobile ? "padding-lg" : "padding-xxl", o = !this._folderId ? "home" : "folder";
181
- return i`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? i`<div class="skeleton-loader skeleton-folder"></div>` : i`<calcite-icon class="icon-color" .icon=${o} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName || "Root"}</span></div>`}</div></div></div>`;
180
+ const e = this.isMobile ? "padding-lg" : "padding-xxl", i = !this._folderId ? "home" : "folder";
181
+ return o`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? o`<div class="skeleton-loader skeleton-folder"></div>` : o`<calcite-icon class="icon-color" .icon=${i} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName || "Root"}</span></div>`}</div></div></div>`;
182
182
  }
183
183
  _getSolutionVersionCard() {
184
184
  const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
185
- return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : ""}</div>`;
185
+ return o`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? o`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : ""}</div>`;
186
186
  }
187
187
  async _openNewVersionSolution(e) {
188
188
  e.stopPropagation(), this._telemetry?.logEvent({
@@ -193,24 +193,27 @@ class I extends f {
193
193
  this.card?.deployCommonId || "",
194
194
  this.card?.deployVersion || ""
195
195
  ]
196
- }), await new Promise((o) => setTimeout(o, 100));
197
- const t = $(this._configContextConsumer.value.allCards, this.card.deployCommonId);
196
+ }), await new Promise((i) => setTimeout(i, 100));
197
+ const t = C(this._configContextConsumer.value.allCards, this.card.deployCommonId);
198
198
  t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
199
199
  }
200
200
  _getSolutionPanel() {
201
- return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ?? d} src=${this._thumbnailUrl ?? d}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}", this.card?.created || "")}</calcite-label></div></div></div></div></div></calcite-panel>`;
201
+ return o`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ?? d} src=${this._thumbnailUrl ?? d}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}", this.card?.created || "")}</calcite-label></div></div></div></div></div></calcite-panel>`;
202
202
  }
203
203
  _getSolutionContents() {
204
- const e = [...new Set(this._nonSolutionDependencyItems.map((t) => t.controlItemId))];
205
- return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}", this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading ? i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>` : i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length > 0 ? "multiple" : "single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`;
204
+ const e = new Set(this._nonSolutionDependencyItems.filter((i) => i.dependencyItemId !== this.card.id).map((i) => `${i.controlItemId}|${i.dependencyItemId}`)), t = Array.from(e).map((i) => {
205
+ const [n, a] = i.split("|");
206
+ return { controlItemId: n, dependencyItemId: a };
207
+ });
208
+ return o`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}", this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading ? o`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>` : o`<solution-item-accordion .itemRelationshipDependencies=${t} .listSelectionMode=${t.length > 0 ? "multiple" : "single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`;
206
209
  }
207
210
  _getDeleteDialog() {
208
- return this._deleteDialogOpen ? i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${() => setTimeout(() => this.navTabSelected.emit({ tabType: "deployments" }), 100)} @solutionDeleteDialogBeforeClose=${() => {
211
+ return this._deleteDialogOpen ? o`<solution-delete-dialog .card=${this.card} @solutionDeleted=${() => setTimeout(() => this.navTabSelected.emit({ tabType: "deployments" }), 100)} @solutionDeleteDialogBeforeClose=${() => {
209
212
  this._deleteDialogOpen = !1;
210
213
  }} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>` : "";
211
214
  }
212
215
  _renderDiagramDialog() {
213
- return this._isDiagramOpen ? i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ?? d} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
216
+ return this._isDiagramOpen ? o`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ?? d} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
214
217
  this._isDiagramOpen = !1;
215
218
  }} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey !== "" ? this.diagramKey : this._configContextConsumer.value?.diagramKey ?? ""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
216
219
  }
@@ -218,10 +221,10 @@ class I extends f {
218
221
  this._deleteDialogOpen = !0;
219
222
  }
220
223
  _updateThumbnailToken(e) {
221
- this._thumbnailUrl !== "" && (this._thumbnailUrl = k(this._thumbnailUrl, e));
224
+ this._thumbnailUrl !== "" && (this._thumbnailUrl = D(this._thumbnailUrl, e));
222
225
  }
223
226
  }
224
- u("solution-deployed-card-panel", I);
227
+ m("solution-deployed-card-panel", T);
225
228
  export {
226
- I as SolutionDeployedCardPanel
229
+ T as SolutionDeployedCardPanel
227
230
  };
@@ -16,12 +16,16 @@ export abstract class SolutionDetailsCard extends LitElement {
16
16
  updated: string;
17
17
  deployed: string;
18
18
  viewDetails: string;
19
+ deployedTitle: string;
20
+ deployedPreviousTitle: string;
19
21
  } & T9nMeta<{
20
22
  arcgisSolutions: string;
21
23
  newSolution: string;
22
24
  updated: string;
23
25
  deployed: string;
24
26
  viewDetails: string;
27
+ deployedTitle: string;
28
+ deployedPreviousTitle: string;
25
29
  }>;
26
30
  /** The solutions card */
27
31
  accessor card: ISolutionInfoCard | undefined;
@@ -1,40 +1,41 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as h } from "../../chunks/runtime.js";
3
- import { css as p, html as o } from "lit";
4
- import { u as m } from "../../chunks/useT9n.js";
5
- import { LitElement as u, createEvent as f, nothing as r, safeClassMap as g } from "@arcgis/lumina";
6
- import { useContextConsumer as b } from "@arcgis/lumina/context";
7
- import { c as x } from "../../chunks/deployAppContexts.js";
8
- import { T as v } from "../../chunks/interfaces.js";
9
- import { c as y } from "../../chunks/cardsHelpers.js";
10
- import { h as $ } from "../../chunks/helpers.js";
11
- const _ = p`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@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{border-color:var(--calcite-color-brand);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%}`;
12
- class C extends u {
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import { css as m, html as r } from "lit";
4
+ import { u } from "../../chunks/useT9n.js";
5
+ import { LitElement as f, createEvent as g, nothing as n, safeClassMap as y } from "@arcgis/lumina";
6
+ import { useContextConsumer as v } from "@arcgis/lumina/context";
7
+ import { c as b } from "../../chunks/deployAppContexts.js";
8
+ import { T as x } from "../../chunks/interfaces.js";
9
+ import { c as $ } from "../../chunks/cardsHelpers.js";
10
+ import { h as C } from "../../chunks/helpers.js";
11
+ import * as _ from "@esri/solution-common";
12
+ const S = m`calcite-card{height:100%;padding-bottom:2px;border:2px solid transparent;transition:border-color .1s ease;box-sizing:border-box}@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{border-color:var(--calcite-color-brand);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%}`;
13
+ class w extends f {
13
14
  constructor() {
14
- super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._translations = m({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer = b({
15
- context: x,
15
+ super(...arguments), this.referrerSolutionId = "", this.referrerSolutionTitle = "", this.referrerSolutionVersion = "", this.source = "all-solutions", this._deployedTooltipContent = "", this._translations = u({ name: "solution-details-card", blocking: !0 }), this._configContextConsumer = v({
16
+ context: b,
16
17
  subscribe: !0
17
- }), this.detailsCardSelected = f();
18
+ }), this.detailsCardSelected = g();
18
19
  }
19
20
  static {
20
- this.properties = { card: 0, referrerSolutionId: 1, referrerSolutionTitle: 1, referrerSolutionVersion: 1, source: 1, _translations: 16 };
21
+ this.properties = { card: 0, referrerSolutionId: 1, referrerSolutionTitle: 1, referrerSolutionVersion: 1, source: 1, _deployedTooltipContent: 16, _translations: 16 };
21
22
  }
22
23
  static {
23
- this.styles = _;
24
+ this.styles = S;
24
25
  }
25
26
  get _telemetry() {
26
27
  return this._configContextConsumer.value?.telemetrySession;
27
28
  }
28
29
  render() {
29
- const e = y(this.card.title);
30
- return o`<a href=${e ?? r} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`;
30
+ const e = $(this.card.title);
31
+ return r`<a href=${e ?? n} @click=${this._anchorClick} tabindex=-1 .title=${`${this._translations.arcgisSolutions} | ${this.card.title}`}>${this._renderCard()}</a>`;
31
32
  }
32
33
  _anchorClick(e) {
33
34
  e.preventDefault();
34
35
  }
35
36
  _cardSelected() {
36
37
  if (this.source === "you-may-also-like") {
37
- const t = [
38
+ const i = [
38
39
  this.referrerSolutionTitle,
39
40
  this.referrerSolutionId,
40
41
  this.referrerSolutionVersion,
@@ -43,26 +44,41 @@ class C extends u {
43
44
  this.card?.deployVersion || ""
44
45
  ];
45
46
  this._telemetry?.logEvent({
46
- category: v.SOLUTION_DETAILS,
47
+ category: x.SOLUTION_DETAILS,
47
48
  action: "Related Solution",
48
- dimensions: t
49
+ dimensions: i
49
50
  });
50
51
  }
51
52
  this.detailsCardSelected.emit(this.card);
52
53
  }
53
54
  _renderChips(e) {
54
- const t = e.includes("deployed"), c = e.filter((i) => i !== "deployed"), s = [];
55
- return c.forEach((i) => {
56
- const n = "chip-status", l = `solution-details-card-chip-${i}`, d = i === "new" ? "star" : "mega-phone", a = i === "new" ? this._translations.newSolution : this._translations.updated;
57
- s.push(o`<calcite-chip class=${g(n)} .icon=${d} id=${l ?? r} .label=${a} .value=${a} scale=s></calcite-chip><calcite-tooltip .referenceElement=${l}><span>${a}</span></calcite-tooltip>`);
58
- }), t && s.push(o`<calcite-chip class="chip-deployed" icon=check-circle id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip reference-element=solution-details-card-chip-deployed><span>${this._translations.deployed}</span></calcite-tooltip>`), s;
55
+ const i = e.filter((t) => t === "deployed" || t === "deployedOlderVersion"), d = e.filter((t) => t !== "deployed" && t !== "deployedOlderVersion"), c = [];
56
+ return d.forEach((t) => {
57
+ const l = "chip-status", o = `solution-details-card-chip-${t}`, a = t === "new" ? "star" : "mega-phone", s = t === "new" ? this._translations.newSolution : this._translations.updated;
58
+ c.push(r`<calcite-chip class=${y(l)} .icon=${a} id=${o ?? n} .label=${s} .value=${s} scale=s></calcite-chip><calcite-tooltip .referenceElement=${o}><span>${s}</span></calcite-tooltip>`);
59
+ }), i.length > 0 && c.push(r`<calcite-chip class="chip-deployed" .icon=${i[0] === "deployedOlderVersion" ? "recent" : "check-circle"} id=solution-details-card-chip-deployed .label=${this._translations.deployed} .value=${this._translations.deployed} scale=s></calcite-chip><calcite-tooltip placement=bottom reference-element=solution-details-card-chip-deployed @calciteTooltipBeforeOpen=${async () => {
60
+ const t = {
61
+ q: `${this.card?.deployCommonId} and owner:${this._configContextConsumer.value?.userSession?.username}`,
62
+ authentication: this._configContextConsumer.value?.userSession,
63
+ pagingParam: { start: 1, num: 100 }
64
+ }, l = await _.searchItems(t);
65
+ console.log(l), this._deployedTooltipContent = r`<solutions-deployed-list .cards=${l.results.map((o) => {
66
+ const a = o.typeKeywords?.find((h) => h.startsWith("solutionversion-")), s = a ? a.split("-")[1] : "unknown";
67
+ return {
68
+ id: o.id,
69
+ title: o.title,
70
+ deployVersion: s,
71
+ created: o.created
72
+ };
73
+ })} .listTitle=${i[0] === "deployedOlderVersion" ? this._translations.deployedPreviousTitle : this._translations.deployedTitle}></solutions-deployed-list>`;
74
+ }}>${this._deployedTooltipContent}</calcite-tooltip>`), c;
59
75
  }
60
76
  _renderCard() {
61
77
  const e = this.card;
62
- return o`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(t) => $(t, () => this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? r} class="thumbnail card-image" src=${e.thumbnailUrl ?? r}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? o`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
78
+ return r`<calcite-card .label=${e.snippet} @click=${this._cardSelected} @keydown=${(i) => C(i, () => this._cardSelected())}><div class="card-image-wrap" slot=thumbnail><img alt=${e.title ?? n} class="thumbnail card-image" src=${e.thumbnailUrl ?? n}><div class="hover-text">${this._translations.viewDetails}</div></div><calcite-label slot=heading class="header-line-height" scale=l>${e.title}</calcite-label><p slot=description class="font-color-text-2 font-line-height font-size-size--1">${e.snippet}</p>${e.chips && e.chips.length > 0 ? r`<div slot=footer-end style="display: flex; gap: 0.5rem; justify-content: flex-end;">${this._renderChips(e.chips)}</div>` : void 0}<div slot=footer-start></div></calcite-card>`;
63
79
  }
64
80
  }
65
- h("solution-details-card", C);
81
+ p("solution-details-card", w);
66
82
  export {
67
- C as SolutionDetailsCard
83
+ w as SolutionDetailsCard
68
84
  };
@@ -1,5 +1,6 @@
1
1
  import "@esri/calcite-components/components/calcite-chip";
2
2
  import "@esri/calcite-components/components/calcite-tooltip";
3
+ import "../solutions-deployed-list/index.js";
3
4
  import "@esri/calcite-components/components/calcite-card";
4
5
  import "@esri/calcite-components/components/calcite-label";
5
6
  export * from "./customElement.js";
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { ISolutionItemHover, ISolutionItemSelected, ISolutionTypeHover, ITemplateInfo } from "../../utils/interfaces.js";
3
3
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+ import type { DependencyItem } from "../../utils/getRelatedInfos.js";
4
5
  import type { T9nMeta } from "@arcgis/lumina/controllers";
5
6
 
6
7
  export abstract class SolutionItemAccordion extends LitElement {
@@ -11,20 +12,20 @@ export abstract class SolutionItemAccordion extends LitElement {
11
12
  * @internal
12
13
  */
13
14
  protected _translations: {
14
- differentOwnerDeleteWarning: string;
15
+ usedInOtherSolutionsDeleteWarning: string;
15
16
  noPrivilegeToManage: string;
16
17
  openDetails: string;
17
18
  solutionsTemplates: string;
18
19
  usedInAnotherSolution: string;
19
20
  } & T9nMeta<{
20
- differentOwnerDeleteWarning: string;
21
+ usedInOtherSolutionsDeleteWarning: string;
21
22
  noPrivilegeToManage: string;
22
23
  openDetails: string;
23
24
  solutionsTemplates: string;
24
25
  usedInAnotherSolution: string;
25
26
  }>;
26
- /** string[]: List of items that have relationship dependencies outside of this solution */
27
- accessor itemRelationshipDependencies: string[];
27
+ /** DependencyItem[]: List of items that have relationship dependencies outside of this solution */
28
+ accessor itemRelationshipDependencies: DependencyItem[];
28
29
  /**
29
30
  * 'action' | 'item': Specifies the type of link that will be used for deployed items.
30
31
  * 'item' the items title will be underlined and clicking anywhere on the list item will open the items details page
@@ -1,15 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as a } from "../../chunks/runtime.js";
3
- import { u as c } from "../../chunks/useT9n.js";
4
- import { css as d, html as o, nothing as h } from "lit";
5
- import { LitElement as p, createEvent as l } from "@arcgis/lumina";
6
- import { c as u } from "../../chunks/deployAppContexts.js";
7
- import { useContextConsumer as m } from "@arcgis/lumina/context";
8
- const f = d`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`;
9
- class g extends p {
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { u as g } from "../../chunks/useT9n.js";
4
+ import { css as y, html as o, nothing as f } from "lit";
5
+ import { LitElement as _, createEvent as r, safeStyleMap as T } from "@arcgis/lumina";
6
+ import { c as v } from "../../chunks/deployAppContexts.js";
7
+ import { useContextConsumer as x } from "@arcgis/lumina/context";
8
+ import * as w from "@esri/solution-common";
9
+ const $ = y`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`;
10
+ class S extends _ {
10
11
  constructor() {
11
- super(...arguments), this.itemRelationshipDependencies = [], this.linkType = "item", this.listSelectionMode = "none", this.reuseWarning = "", this.templateInfos = [], this.typeKeywords = [], this.usageContext = "content", this._canDeletePermission = !1, this._sortedTemplateInfos = [], this._translations = c({ name: "solution-item-accordion", blocking: !0 }), this._configContextConsumer = m({
12
- context: u,
12
+ super(...arguments), this.itemRelationshipDependencies = [], this.linkType = "item", this.listSelectionMode = "none", this.reuseWarning = "", this.templateInfos = [], this.typeKeywords = [], this.usageContext = "content", this._canDeletePermission = !1, this._dependencyTooltipContent = "", this._sortedTemplateInfos = [], this._translations = g({ name: "solution-item-accordion", blocking: !0 }), this._configContextConsumer = x({
13
+ context: v,
13
14
  subscribe: !0
14
15
  }), this._sortOrder = [
15
16
  "Hub Site Application",
@@ -44,13 +45,13 @@ class g extends p {
44
45
  "Report Template",
45
46
  "Rule Package",
46
47
  "Group"
47
- ], this.solutionItemHover = l(), this.solutionItemSelect = l(), this.solutionTypeHover = l();
48
+ ], this.solutionItemHover = r(), this.solutionItemSelect = r(), this.solutionTypeHover = r();
48
49
  }
49
50
  static {
50
- this.properties = { itemRelationshipDependencies: 0, linkType: 1, listSelectionMode: 1, reuseWarning: 1, templateInfos: 0, typeKeywords: 0, usageContext: 1, _canDeletePermission: 16, _sortedTemplateInfos: 16, _translations: 16 };
51
+ this.properties = { itemRelationshipDependencies: 0, linkType: 1, listSelectionMode: 1, reuseWarning: 1, templateInfos: 0, typeKeywords: 0, usageContext: 1, _canDeletePermission: 16, _dependencyTooltipContent: 16, _sortedTemplateInfos: 16, _translations: 16 };
51
52
  }
52
53
  static {
53
- this.styles = f;
54
+ this.styles = $;
54
55
  }
55
56
  willUpdate(e) {
56
57
  e.has("templateInfos") && (this.hasUpdated || this.templateInfos?.length > 0) && this.templateInfosWatchHandler();
@@ -124,7 +125,7 @@ class g extends p {
124
125
  }
125
126
  _getListItem(e) {
126
127
  const i = this.typeKeywords.includes("Deployed") && e.url, t = this.linkType === "action";
127
- return o`<calcite-list-item id=${e.id ?? h} @mouseenter=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !0 })} @mouseleave=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !1 })} @calciteListItemSelect=${() => {
128
+ return o`<calcite-list-item id=${e.id ?? f} @mouseenter=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !0 })} @mouseleave=${() => this.solutionItemHover.emit({ itemId: e.id, entering: !1 })} @calciteListItemSelect=${() => {
128
129
  this._deselectOthers(e.id), this.solutionItemSelect.emit({ itemId: e.id, selected: !0 }), i && !t && window.open(e.url, "_blank");
129
130
  }} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${i && !t ? "underline" : ""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${i && t ? o`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${() => window.open(e.url, "_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>` : null}</calcite-list-item>`;
130
131
  }
@@ -133,8 +134,8 @@ class g extends p {
133
134
  }
134
135
  _sortTemplates() {
135
136
  return this.templateInfos.sort((e, i) => {
136
- const t = this._getTypeForSort(e), s = this._getTypeForSort(i), n = this._sortOrder.indexOf(t), r = this._sortOrder.indexOf(s);
137
- return n - r;
137
+ const t = this._getTypeForSort(e), s = this._getTypeForSort(i), n = this._sortOrder.indexOf(t), a = this._sortOrder.indexOf(s);
138
+ return n - a;
138
139
  });
139
140
  }
140
141
  _getTypeForSort(e) {
@@ -149,35 +150,54 @@ class g extends p {
149
150
  }
150
151
  return e === "Web Mapping Application" && (t = i.indexOf("configurableApp") > -1 ? "Instant App" : t), t = e === "Geoprocessing Service" ? "Tool" : t, t = e === "Feed" ? "Feed (hosted)" : t, t = e === "Real Time Analytic" ? "Real Time Analytic (hosted)" : t, t = e === "Big Data Analytic" ? "Big Data Analytic (hosted)" : t, t = e === "Vector Tile Service" ? "Tile Layer" : t, t;
151
152
  }
152
- _getWarningChip(e, i) {
153
- return o`<calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} kind=neutral .label=${e} scale=s slot=actions-end>${e}</calcite-chip>`;
153
+ _getWarningChip(e, i, t, s) {
154
+ const n = i === "info" ? "var(--calcite-color-status-info)" : "var(--calcite-color-status-danger)";
155
+ return o`<div slot=actions-end><calcite-chip .icon=${i === "info" ? "information" : "exclamation-mark-triangle"} .id=${t + "-warning"} kind=neutral .label=${e} scale=s style=${T({ "--calcite-chip-icon-color": n, cursor: s && s.length > 0 ? "pointer" : "default" })}>${e}</calcite-chip>${s && s.length > 0 ? o`<calcite-popover auto-close class=solution-list-item-content .label=${`${t}-warning`} placement=bottom .referenceElement=${`${t}-warning`} scale=s @calcitePopoverBeforeOpen=${async () => {
156
+ const p = {
157
+ q: s.map((l) => `id:${l.dependencyItemId}`).join(" OR "),
158
+ authentication: this._configContextConsumer.value?.userSession,
159
+ pagingParam: { start: 1, num: 100 }
160
+ }, c = await w.searchItems(p);
161
+ console.log(c), this._dependencyTooltipContent = o`<solutions-deployed-list .cards=${c.results.map((l) => {
162
+ const d = l.typeKeywords?.find((u) => u.startsWith("solutionversion-")), h = d ? d.split("-")[1] : "unknown";
163
+ return {
164
+ id: l.id,
165
+ title: l.title,
166
+ deployVersion: h,
167
+ created: l.created
168
+ };
169
+ })}></solutions-deployed-list>`;
170
+ }}>${this._dependencyTooltipContent}</calcite-popover>` : null}</div>`;
154
171
  }
155
172
  _checkUsageForWarnings(e) {
156
- const i = this._configContextConsumer.value?.userSession?.username ?? null, t = this.itemRelationshipDependencies.some((s) => s === e.id);
157
- if (this.usageContext === "content" && t && this.reuseWarning)
158
- return this._getWarningChip(this.reuseWarning, "info");
173
+ const i = this._configContextConsumer.value?.userSession?.username ?? null, t = this.itemRelationshipDependencies.filter((n) => n.controlItemId === e.id), s = t.length > 0;
174
+ if (this.usageContext === "content" && s && this.reuseWarning)
175
+ return this._getWarningChip(this.reuseWarning, "info", e.id, t);
159
176
  if (this.usageContext === "rename") {
160
- const s = this._configContextConsumer.value?.authentication?.CanUpdateSolution ?? !1;
177
+ const n = this._configContextConsumer.value?.authentication?.CanUpdateSolution ?? !1;
161
178
  if (e.owner !== i)
162
- if (s) {
163
- if (t && this.reuseWarning)
164
- return this._getWarningChip(this.reuseWarning, "info");
179
+ if (n) {
180
+ if (s && this.reuseWarning)
181
+ return this._getWarningChip(this.reuseWarning, "info", e.id, t);
165
182
  } else
166
- return this._getWarningChip(this._translations?.noPrivilegeToManage || "", "warn");
167
- else if (t && this.reuseWarning)
168
- return this._getWarningChip(this.reuseWarning, "info");
183
+ return this._getWarningChip(this._translations?.noPrivilegeToManage || "", "warn", e.id);
184
+ else if (s && this.reuseWarning)
185
+ return this._getWarningChip(this.reuseWarning, "info", e.id, t);
169
186
  }
170
187
  if (this.usageContext === "delete") {
171
- if (e.owner !== i) {
172
- if (this._canDeletePermission)
173
- return t ? this._getWarningChip(this._translations?.differentOwnerDeleteWarning || "", "info") : this._getWarningChip(this._translations?.noPrivilegeToManage || "", "warn");
174
- } else if (t)
175
- return this._getWarningChip(this._translations?.differentOwnerDeleteWarning || "", "info");
188
+ if (e.owner !== i)
189
+ if (this._canDeletePermission) {
190
+ if (s)
191
+ return this._getWarningChip(this._translations?.usedInOtherSolutionsDeleteWarning || "", "info", e.id);
192
+ } else
193
+ return this._getWarningChip(this._translations?.noPrivilegeToManage || "", "warn", e.id);
194
+ else if (s)
195
+ return this._getWarningChip(this.reuseWarning, "info", e.id, t);
176
196
  }
177
197
  return "";
178
198
  }
179
199
  }
180
- a("solution-item-accordion", g);
200
+ m("solution-item-accordion", S);
181
201
  export {
182
- g as SolutionItemAccordion
202
+ S as SolutionItemAccordion
183
203
  };
@@ -6,4 +6,6 @@ import "@esri/calcite-components/components/calcite-list-item";
6
6
  import "@esri/calcite-components/components/calcite-action";
7
7
  import "@esri/calcite-components/components/calcite-tooltip";
8
8
  import "@esri/calcite-components/components/calcite-chip";
9
+ import "../solutions-deployed-list/index.js";
10
+ import "@esri/calcite-components/components/calcite-popover";
9
11
  export * from "./customElement.js";