@esri/solutions-components 0.10.28 → 0.10.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/solution-item-accordion.cjs.entry.js +22 -3
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +4 -0
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +21 -2
- package/dist/collection/demos/browse-solutions.html +1 -1
- package/dist/collection/demos/buffer-tools.html +3 -3
- package/dist/collection/demos/card-manager.html +1 -1
- package/dist/collection/demos/create-feature.html +3 -3
- package/dist/collection/demos/crowdsource-manager.html +4 -42
- package/dist/collection/demos/crowdsource-reporter.html +1 -1
- package/dist/collection/demos/deduct-calculator.html +1 -1
- package/dist/collection/demos/demo-map.html +3 -3
- package/dist/collection/demos/edit-card.html +1 -1
- package/dist/collection/demos/feature-list.html +3 -3
- package/dist/collection/demos/index.html +1 -2
- package/dist/collection/demos/info-card.html +1 -1
- package/dist/collection/demos/json-editor-2.html +1 -1
- package/dist/collection/demos/json-editor.html +1 -1
- package/dist/collection/demos/layer-list.html +3 -3
- package/dist/collection/demos/layer-table.html +3 -3
- package/dist/collection/demos/list-item.html +3 -3
- package/dist/collection/demos/map-card.html +3 -3
- package/dist/collection/demos/map-draw-tools.html +3 -3
- package/dist/collection/demos/map-layer-picker.html +3 -3
- package/dist/collection/demos/map-select-tools.html +3 -3
- package/dist/collection/demos/new-public-notification.html +3 -3
- package/dist/collection/demos/new-solution-configuration.html +1 -1
- package/dist/collection/demos/pci-calculator.html +1 -1
- package/dist/collection/demos/pdf-download.html +1 -2
- package/dist/collection/demos/solution-configuration.html +1 -1
- package/dist/collection/demos/solution-contents.html +1 -1
- package/dist/collection/demos/solution-group-details.html +1 -1
- package/dist/collection/demos/solution-item-accordion.html +1 -2
- package/dist/collection/demos/solution-item-details.html +1 -1
- package/dist/collection/demos/solution-item-icon.html +1 -2
- package/dist/collection/demos/solution-item-sharing.html +1 -1
- package/dist/collection/demos/solution-item.html +1 -1
- package/dist/collection/demos/solution-organization-variables.html +1 -1
- package/dist/collection/demos/solution-resource-item.html +1 -1
- package/dist/collection/demos/solution-spatial-ref.html +1 -1
- package/dist/collection/demos/solution-template-data.html +1 -1
- package/dist/collection/demos/solution-variables.html +1 -1
- package/dist/collection/demos/spatial-ref.html +1 -1
- package/dist/components/solution-item-accordion.js +22 -3
- package/dist/esm/solution-item-accordion.entry.js +22 -3
- package/dist/solutions-components/demos/browse-solutions.html +1 -1
- package/dist/solutions-components/demos/buffer-tools.html +3 -3
- package/dist/solutions-components/demos/card-manager.html +1 -1
- package/dist/solutions-components/demos/create-feature.html +3 -3
- package/dist/solutions-components/demos/crowdsource-manager.html +4 -42
- package/dist/solutions-components/demos/crowdsource-reporter.html +1 -1
- package/dist/solutions-components/demos/deduct-calculator.html +1 -1
- package/dist/solutions-components/demos/demo-map.html +3 -3
- package/dist/solutions-components/demos/edit-card.html +1 -1
- package/dist/solutions-components/demos/feature-list.html +3 -3
- package/dist/solutions-components/demos/index.html +1 -2
- package/dist/solutions-components/demos/info-card.html +1 -1
- package/dist/solutions-components/demos/json-editor-2.html +1 -1
- package/dist/solutions-components/demos/json-editor.html +1 -1
- package/dist/solutions-components/demos/layer-list.html +3 -3
- package/dist/solutions-components/demos/layer-table.html +3 -3
- package/dist/solutions-components/demos/list-item.html +3 -3
- package/dist/solutions-components/demos/map-card.html +3 -3
- package/dist/solutions-components/demos/map-draw-tools.html +3 -3
- package/dist/solutions-components/demos/map-layer-picker.html +3 -3
- package/dist/solutions-components/demos/map-select-tools.html +3 -3
- package/dist/solutions-components/demos/new-public-notification.html +3 -3
- package/dist/solutions-components/demos/new-solution-configuration.html +1 -1
- package/dist/solutions-components/demos/pci-calculator.html +1 -1
- package/dist/solutions-components/demos/pdf-download.html +1 -2
- package/dist/solutions-components/demos/solution-configuration.html +1 -1
- package/dist/solutions-components/demos/solution-contents.html +1 -1
- package/dist/solutions-components/demos/solution-group-details.html +1 -1
- package/dist/solutions-components/demos/solution-item-accordion.html +1 -2
- package/dist/solutions-components/demos/solution-item-details.html +1 -1
- package/dist/solutions-components/demos/solution-item-icon.html +1 -2
- package/dist/solutions-components/demos/solution-item-sharing.html +1 -1
- package/dist/solutions-components/demos/solution-item.html +1 -1
- package/dist/solutions-components/demos/solution-organization-variables.html +1 -1
- package/dist/solutions-components/demos/solution-resource-item.html +1 -1
- package/dist/solutions-components/demos/solution-spatial-ref.html +1 -1
- package/dist/solutions-components/demos/solution-template-data.html +1 -1
- package/dist/solutions-components/demos/solution-variables.html +1 -1
- package/dist/solutions-components/demos/spatial-ref.html +1 -1
- package/dist/solutions-components/{p-1dbef451.entry.js → p-22bb693d.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
- package/package.json +2 -2
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -34,7 +34,6 @@
|
|
34
34
|
}
|
35
35
|
</style>
|
36
36
|
|
37
|
-
<script type="module" src="https://js.arcgis.com/calcite-components/2.0.0/calcite.esm.js"></script>
|
38
37
|
<script type="module" src="../solutions-components.esm.js"></script>
|
39
38
|
</head>
|
40
39
|
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
23
|
|
24
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
25
25
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
26
26
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
27
27
|
<style>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
| See the License for the specific language governing permissions and
|
21
21
|
| limitations under the License.
|
22
22
|
-->
|
23
|
-
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.
|
23
|
+
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.13.0/calcite.css" />
|
24
24
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
25
25
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
26
26
|
<style>
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,g as e,h as i,H as s}from"./p-4e6eb06e.js";import{g as a}from"./p-f4aadb3b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return e(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic","Real Time Analytic","Feed","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"6fcdd61177775d0757ad91c57f579638f35ed01a"},this._getAccordion())}_getAccordion(){return i("calcite-accordion",{selectionMode:"single"},this._sortedTemplateInfos.reduce(((t,e)=>{const i=this._getTypeForDisplay(e.type,e.typeKeywords);return this._types.indexOf(i)<0&&(this._types.push(i),t.push(this._getAccordionItem(e))),t}),[]))}_getAccordionItem(t){const e=this._getTypeForDisplay(t.type,t.typeKeywords),s=this._sortedTemplateInfos.filter((t=>this._getTypeForDisplay(t.type,t.typeKeywords)===e));return i("calcite-accordion-item",{description:`${e} (${s.length})`},i("solution-item-icon",{class:"padding-start-1",slot:"actions-start",type:t.type,typeKeywords:t.typeKeywords}),this._getList(s))}_getList(t){return i("calcite-list",
|
6
|
+
import{r as t,g as e,h as i,H as s}from"./p-4e6eb06e.js";import{g as a}from"./p-f4aadb3b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.templateInfos=[],this._sortedTemplateInfos=[],this._translations=void 0}get el(){return e(this)}_sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic","Real Time Analytic","Feed","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"];_types=[];async templateInfosWatchHandler(){this._types=[],this._sortedTemplateInfos=this._sortTemplates()}async componentWillLoad(){await this._getTranslations()}async componentWillRender(){0===this._sortedTemplateInfos.length&&this.templateInfos?.length>0&&(this._sortedTemplateInfos=this._sortTemplates())}render(){return i(s,{key:"6fcdd61177775d0757ad91c57f579638f35ed01a"},this._getAccordion())}_getAccordion(){return i("calcite-accordion",{selectionMode:"single"},this._sortedTemplateInfos.reduce(((t,e)=>{const i=this._getTypeForDisplay(e.type,e.typeKeywords);return this._types.indexOf(i)<0&&(this._types.push(i),t.push(this._getAccordionItem(e))),t}),[]))}_getAccordionItem(t){const e=this._getTypeForDisplay(t.type,t.typeKeywords),s=this._sortedTemplateInfos.filter((t=>this._getTypeForDisplay(t.type,t.typeKeywords)===e));return i("calcite-accordion-item",{description:`${e} (${s.length})`},i("solution-item-icon",{class:"padding-start-1",slot:"actions-start",type:t.type,typeKeywords:t.typeKeywords}),this._getList(s))}_getList(t){const e=this._sortTemplatesByTitle(t);return i("calcite-list",null,e.map((t=>this._getListItem(t))))}_getListItem(t){return i("calcite-list-item",{class:"font-size-override",description:t.snippet,label:t.title,value:t.id})}_sortTemplatesByTitle(t){return t.sort(((t,e)=>t.title<e.title?-1:t.title>e.title?1:0))}_sortTemplates(){return this.templateInfos.sort(((t,e)=>{const i=this._getTypeForSort(t),s=this._getTypeForSort(e);return this._sortOrder.indexOf(i)-this._sortOrder.indexOf(s)}))}_getTypeForSort(t){let e=this._getTypeForDisplay(t.type,t.typeKeywords);return this._sortOrder.indexOf(e)<0&&(e="TypeNotFound"),e}_getTypeForDisplay(t,e){let i=t;return"Feature Service"===t&&(i=e.indexOf("View Service")>-1?"Feature Layer (hosted, view)":"Feature Layer (hosted)"),"Web Mapping Application"===t&&(i=e.indexOf("configurableApp")>-1?"Instant App":i),i}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{templateInfos:["templateInfosWatchHandler"]}}};r.style=":host{display:block}.padding-start-1{padding-inline-start:1rem}.font-size-override{--calcite-font-size--2:var(--calcite-font-size--1)}";export{r as solution_item_accordion}
|