@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.
Files changed (87) hide show
  1. package/dist/cjs/solution-item-accordion.cjs.entry.js +22 -3
  2. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +4 -0
  3. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +21 -2
  4. package/dist/collection/demos/browse-solutions.html +1 -1
  5. package/dist/collection/demos/buffer-tools.html +3 -3
  6. package/dist/collection/demos/card-manager.html +1 -1
  7. package/dist/collection/demos/create-feature.html +3 -3
  8. package/dist/collection/demos/crowdsource-manager.html +4 -42
  9. package/dist/collection/demos/crowdsource-reporter.html +1 -1
  10. package/dist/collection/demos/deduct-calculator.html +1 -1
  11. package/dist/collection/demos/demo-map.html +3 -3
  12. package/dist/collection/demos/edit-card.html +1 -1
  13. package/dist/collection/demos/feature-list.html +3 -3
  14. package/dist/collection/demos/index.html +1 -2
  15. package/dist/collection/demos/info-card.html +1 -1
  16. package/dist/collection/demos/json-editor-2.html +1 -1
  17. package/dist/collection/demos/json-editor.html +1 -1
  18. package/dist/collection/demos/layer-list.html +3 -3
  19. package/dist/collection/demos/layer-table.html +3 -3
  20. package/dist/collection/demos/list-item.html +3 -3
  21. package/dist/collection/demos/map-card.html +3 -3
  22. package/dist/collection/demos/map-draw-tools.html +3 -3
  23. package/dist/collection/demos/map-layer-picker.html +3 -3
  24. package/dist/collection/demos/map-select-tools.html +3 -3
  25. package/dist/collection/demos/new-public-notification.html +3 -3
  26. package/dist/collection/demos/new-solution-configuration.html +1 -1
  27. package/dist/collection/demos/pci-calculator.html +1 -1
  28. package/dist/collection/demos/pdf-download.html +1 -2
  29. package/dist/collection/demos/solution-configuration.html +1 -1
  30. package/dist/collection/demos/solution-contents.html +1 -1
  31. package/dist/collection/demos/solution-group-details.html +1 -1
  32. package/dist/collection/demos/solution-item-accordion.html +1 -2
  33. package/dist/collection/demos/solution-item-details.html +1 -1
  34. package/dist/collection/demos/solution-item-icon.html +1 -2
  35. package/dist/collection/demos/solution-item-sharing.html +1 -1
  36. package/dist/collection/demos/solution-item.html +1 -1
  37. package/dist/collection/demos/solution-organization-variables.html +1 -1
  38. package/dist/collection/demos/solution-resource-item.html +1 -1
  39. package/dist/collection/demos/solution-spatial-ref.html +1 -1
  40. package/dist/collection/demos/solution-template-data.html +1 -1
  41. package/dist/collection/demos/solution-variables.html +1 -1
  42. package/dist/collection/demos/spatial-ref.html +1 -1
  43. package/dist/components/solution-item-accordion.js +22 -3
  44. package/dist/esm/solution-item-accordion.entry.js +22 -3
  45. package/dist/solutions-components/demos/browse-solutions.html +1 -1
  46. package/dist/solutions-components/demos/buffer-tools.html +3 -3
  47. package/dist/solutions-components/demos/card-manager.html +1 -1
  48. package/dist/solutions-components/demos/create-feature.html +3 -3
  49. package/dist/solutions-components/demos/crowdsource-manager.html +4 -42
  50. package/dist/solutions-components/demos/crowdsource-reporter.html +1 -1
  51. package/dist/solutions-components/demos/deduct-calculator.html +1 -1
  52. package/dist/solutions-components/demos/demo-map.html +3 -3
  53. package/dist/solutions-components/demos/edit-card.html +1 -1
  54. package/dist/solutions-components/demos/feature-list.html +3 -3
  55. package/dist/solutions-components/demos/index.html +1 -2
  56. package/dist/solutions-components/demos/info-card.html +1 -1
  57. package/dist/solutions-components/demos/json-editor-2.html +1 -1
  58. package/dist/solutions-components/demos/json-editor.html +1 -1
  59. package/dist/solutions-components/demos/layer-list.html +3 -3
  60. package/dist/solutions-components/demos/layer-table.html +3 -3
  61. package/dist/solutions-components/demos/list-item.html +3 -3
  62. package/dist/solutions-components/demos/map-card.html +3 -3
  63. package/dist/solutions-components/demos/map-draw-tools.html +3 -3
  64. package/dist/solutions-components/demos/map-layer-picker.html +3 -3
  65. package/dist/solutions-components/demos/map-select-tools.html +3 -3
  66. package/dist/solutions-components/demos/new-public-notification.html +3 -3
  67. package/dist/solutions-components/demos/new-solution-configuration.html +1 -1
  68. package/dist/solutions-components/demos/pci-calculator.html +1 -1
  69. package/dist/solutions-components/demos/pdf-download.html +1 -2
  70. package/dist/solutions-components/demos/solution-configuration.html +1 -1
  71. package/dist/solutions-components/demos/solution-contents.html +1 -1
  72. package/dist/solutions-components/demos/solution-group-details.html +1 -1
  73. package/dist/solutions-components/demos/solution-item-accordion.html +1 -2
  74. package/dist/solutions-components/demos/solution-item-details.html +1 -1
  75. package/dist/solutions-components/demos/solution-item-icon.html +1 -2
  76. package/dist/solutions-components/demos/solution-item-sharing.html +1 -1
  77. package/dist/solutions-components/demos/solution-item.html +1 -1
  78. package/dist/solutions-components/demos/solution-organization-variables.html +1 -1
  79. package/dist/solutions-components/demos/solution-resource-item.html +1 -1
  80. package/dist/solutions-components/demos/solution-spatial-ref.html +1 -1
  81. package/dist/solutions-components/demos/solution-template-data.html +1 -1
  82. package/dist/solutions-components/demos/solution-variables.html +1 -1
  83. package/dist/solutions-components/demos/spatial-ref.html +1 -1
  84. package/dist/solutions-components/{p-1dbef451.entry.js → p-22bb693d.entry.js} +1 -1
  85. package/dist/solutions-components/solutions-components.esm.js +1 -1
  86. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +8 -0
  87. 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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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.0.0/calcite.css" />
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",{class:"padding-start-1"},t.map((t=>this._getListItem(t))))}_getListItem(t){return i("calcite-list-item",{description:t.snippet,label:t.title,value:t.id})}_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}";export{r as solution_item_accordion}
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}