@esri/solutions-components 0.10.36 → 0.10.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +2 -2
  2. package/dist/cjs/calcite-block_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{constants-0a4fc296.js → constants-51cf394f.js} +57 -1
  4. package/dist/cjs/{helpers-415179ad.js → helpers-afcac967.js} +1 -1
  5. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +26 -13
  6. package/dist/cjs/instant-apps-export.cjs.entry.js +1086 -59
  7. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +8 -4
  8. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +10 -5
  9. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +1 -1
  10. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +52 -12
  11. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +9 -3
  12. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +19 -13
  13. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -2
  14. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
  15. package/dist/cjs/instant-apps-measurement.cjs.entry.js +2 -2
  16. package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
  17. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
  18. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +13 -9
  19. package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
  20. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +11 -9
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/cjs/solution-item-accordion.cjs.entry.js +15 -6
  23. package/dist/cjs/solutions-components.cjs.js +1 -1
  24. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +15 -6
  25. package/dist/collection/demos/solution-item-accordion.html +32 -0
  26. package/dist/components/instant-apps-app-guide.js +28 -14
  27. package/dist/components/instant-apps-export.js +1119 -76
  28. package/dist/components/instant-apps-interactive-legend-classic2.js +8 -4
  29. package/dist/components/instant-apps-interactive-legend-count2.js +6 -3
  30. package/dist/components/instant-apps-interactive-legend-layer-element-caption2.js +5 -2
  31. package/dist/components/instant-apps-interactive-legend-legend-element-caption2.js +52 -12
  32. package/dist/components/instant-apps-interactive-legend.js +13 -4
  33. package/dist/components/instant-apps-landing-page.js +19 -13
  34. package/dist/components/instant-apps-language-switcher.js +3 -1
  35. package/dist/components/instant-apps-language-translator2.js +57 -1
  36. package/dist/components/instant-apps-measurement-tool2.js +2 -2
  37. package/dist/components/instant-apps-measurement.js +2 -2
  38. package/dist/components/instant-apps-popover.js +1 -1
  39. package/dist/components/instant-apps-scoreboard.js +1 -1
  40. package/dist/components/instant-apps-sign-in2.js +14 -9
  41. package/dist/components/instant-apps-social-share2.js +2 -2
  42. package/dist/components/instant-apps-splash.js +1 -1
  43. package/dist/components/instant-apps-time-filter.js +11 -9
  44. package/dist/components/solution-item-accordion.js +15 -6
  45. package/dist/components/store.js +1 -1
  46. package/dist/esm/calcite-action-pad_2.entry.js +2 -2
  47. package/dist/esm/calcite-block_5.entry.js +2 -2
  48. package/dist/esm/{constants-045d6a1b.js → constants-886c7c2c.js} +57 -1
  49. package/dist/esm/{helpers-f9bf9c0b.js → helpers-91087955.js} +1 -1
  50. package/dist/esm/instant-apps-app-guide.entry.js +26 -13
  51. package/dist/esm/instant-apps-export.entry.js +1086 -59
  52. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +8 -4
  53. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +10 -5
  54. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +1 -1
  55. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +52 -12
  56. package/dist/esm/instant-apps-interactive-legend.entry.js +9 -3
  57. package/dist/esm/instant-apps-landing-page.entry.js +19 -13
  58. package/dist/esm/instant-apps-language-switcher.entry.js +3 -2
  59. package/dist/esm/instant-apps-language-translator.entry.js +1 -1
  60. package/dist/esm/instant-apps-measurement.entry.js +2 -2
  61. package/dist/esm/instant-apps-popover.entry.js +1 -1
  62. package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
  63. package/dist/esm/instant-apps-sign-in.entry.js +13 -9
  64. package/dist/esm/instant-apps-splash.entry.js +1 -1
  65. package/dist/esm/instant-apps-time-filter.entry.js +11 -9
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/esm/solution-item-accordion.entry.js +15 -6
  68. package/dist/esm/solutions-components.js +1 -1
  69. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-app-guide/instant-apps-app-guide.css +0 -5
  70. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-export/instant-apps-export.css +4 -0
  71. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-classic/instant-apps-interactive-legend-classic.css +14 -0
  72. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-count/instant-apps-interactive-legend-count.css +9 -0
  73. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-layer-element-caption/instant-apps-interactive-legend-layer-element-caption.css +5 -3
  74. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-interactive-legend/instant-apps-interactive-legend-legend-element-caption/instant-apps-interactive-legend-legend-element-caption.css +29 -0
  75. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-landing-page/instant-apps-landing-page.css +8 -0
  76. package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-sign-in/instant-apps-sign-in.css +22 -0
  77. package/dist/solutions-components/demos/solution-item-accordion.html +32 -0
  78. package/dist/solutions-components/p-1e14b3d0.entry.js +6 -0
  79. package/dist/solutions-components/p-2542d5c9.entry.js +6 -0
  80. package/dist/solutions-components/{p-70ecc979.entry.js → p-374ddead.entry.js} +1 -1
  81. package/dist/solutions-components/{p-146acd9a.entry.js → p-3fc18283.entry.js} +1 -1
  82. package/dist/solutions-components/p-43699470.entry.js +6 -0
  83. package/dist/solutions-components/p-5585dcd3.entry.js +6 -0
  84. package/dist/solutions-components/{p-3a513c67.entry.js → p-5b3c0418.entry.js} +1 -1
  85. package/dist/solutions-components/{p-f7e7b830.entry.js → p-6438d1ea.entry.js} +1 -1
  86. package/dist/solutions-components/p-750b3277.entry.js +6 -0
  87. package/dist/solutions-components/p-8779ee41.entry.js +6 -0
  88. package/dist/solutions-components/p-90fc786f.entry.js +6 -0
  89. package/dist/solutions-components/{p-43165ebd.entry.js → p-9c170b30.entry.js} +1 -1
  90. package/dist/solutions-components/p-a5b751e2.entry.js +6 -0
  91. package/dist/solutions-components/p-af573e0d.js +6 -0
  92. package/dist/solutions-components/p-bb8b1ee2.entry.js +6 -0
  93. package/dist/solutions-components/{p-b79f296d.entry.js → p-c48be45f.entry.js} +2 -2
  94. package/dist/solutions-components/p-ca3cbd29.entry.js +6 -0
  95. package/dist/solutions-components/p-ceb1030b.js +6 -0
  96. package/dist/solutions-components/{p-29047e77.entry.js → p-e1391389.entry.js} +1 -1
  97. package/dist/solutions-components/{p-759d0beb.entry.js → p-f728af86.entry.js} +1 -1
  98. package/dist/solutions-components/p-ff3858c6.entry.js +6 -0
  99. package/dist/solutions-components/solutions-components.esm.js +1 -1
  100. package/package.json +7 -7
  101. package/dist/solutions-components/p-07a194e6.entry.js +0 -6
  102. package/dist/solutions-components/p-14d78748.entry.js +0 -6
  103. package/dist/solutions-components/p-24e3f09f.entry.js +0 -6
  104. package/dist/solutions-components/p-3a33ef72.entry.js +0 -6
  105. package/dist/solutions-components/p-402301cb.js +0 -6
  106. package/dist/solutions-components/p-41a6f03d.entry.js +0 -6
  107. package/dist/solutions-components/p-4db86c5e.entry.js +0 -6
  108. package/dist/solutions-components/p-750f234e.entry.js +0 -6
  109. package/dist/solutions-components/p-7e97d4d6.entry.js +0 -6
  110. package/dist/solutions-components/p-7eb5d31a.js +0 -6
  111. package/dist/solutions-components/p-90d2aadc.entry.js +0 -6
  112. package/dist/solutions-components/p-b78a4ce7.entry.js +0 -6
  113. package/dist/solutions-components/p-efb4cb43.entry.js +0 -6
@@ -51,9 +51,9 @@ export class SolutionItemAccordion {
51
51
  "Form",
52
52
  "QuickCapture Project",
53
53
  "Workflow",
54
- "Big Data Analytic",
55
- "Real Time Analytic",
56
- "Feed",
54
+ "Big Data Analytic (hosted)",
55
+ "Real Time Analytic (hosted)",
56
+ "Feed (hosted)",
57
57
  "Tool",
58
58
  "Notebook",
59
59
  "Data Pipeline",
@@ -64,6 +64,8 @@ export class SolutionItemAccordion {
64
64
  "Web Scene",
65
65
  "Feature Layer (hosted, view)",
66
66
  "Feature Layer (hosted)",
67
+ "Table (hosted, view)",
68
+ "Table (hosted)",
67
69
  "Tile Layer",
68
70
  "CSV",
69
71
  "Microsoft Excel",
@@ -119,7 +121,7 @@ export class SolutionItemAccordion {
119
121
  * Renders the component.
120
122
  */
121
123
  render() {
122
- return (h(Host, { key: '9a940187b8b91f94346f51cd67cb3c9fd2d8f470' }, this._getAccordion()));
124
+ return (h(Host, { key: '8e51f89ed52cd292aae82ed819c61ec4f1e1e5fb' }, this._getAccordion()));
123
125
  }
124
126
  //--------------------------------------------------------------------------
125
127
  //
@@ -251,13 +253,20 @@ export class SolutionItemAccordion {
251
253
  _getTypeForDisplay(type, typeKeywords) {
252
254
  let _type = type;
253
255
  if (type === "Feature Service") {
254
- _type = typeKeywords.indexOf("View Service") > -1 ?
255
- "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
256
+ const isView = typeKeywords.indexOf("View Service") > -1;
257
+ const isTable = typeKeywords.indexOf("Table") > -1;
258
+ _type = isView && isTable ? "Table (hosted, view)" : isTable ? "Table (hosted)" :
259
+ isView ? "Feature Layer (hosted, view)" : "Feature Layer (hosted)";
256
260
  }
257
261
  if (type === "Web Mapping Application") {
258
262
  _type = typeKeywords.indexOf("configurableApp") > -1 ?
259
263
  "Instant App" : _type;
260
264
  }
265
+ _type = type === "Geoprocessing Service" ? "Tool" : _type;
266
+ _type = type === "Feed" ? "Feed (hosted)" : _type;
267
+ _type = type === "Real Time Analytic" ? "Real Time Analytic (hosted)" : _type;
268
+ _type = type === "Big Data Analytic" ? "Big Data Analytic (hosted)" : _type;
269
+ _type = type === "Vector Tile Service" ? "Tile Layer" : _type;
261
270
  return _type;
262
271
  }
263
272
  /**
@@ -135,6 +135,38 @@
135
135
  ],
136
136
  "snippet": "A feature layer view used to share volunteers and clearing activities with the Adopt-A-Catch Basin site."
137
137
  },
138
+ {
139
+ "id": "aa2a7f901eb9492a829ab918cd38318d",
140
+ "type": "Feature Service",
141
+ "title": "CatchBasinVolunteers_public_table",
142
+ "typeKeywords": [
143
+ "ArcGIS Server",
144
+ "Data",
145
+ "Feature Access",
146
+ "Feature Service",
147
+ "Multilayer",
148
+ "Service",
149
+ "Hosted Service",
150
+ "View Service",
151
+ "Table"
152
+ ],
153
+ "snippet": "A feature table view"
154
+ },
155
+ {
156
+ "id": "bb2a7f901eb9492a829ab918cd38318d",
157
+ "type": "Feature Service",
158
+ "title": "CatchBasinVolunteers_table",
159
+ "typeKeywords": [
160
+ "ArcGIS Server",
161
+ "Data",
162
+ "Feature Access",
163
+ "Feature Service",
164
+ "Multilayer",
165
+ "Service",
166
+ "Table"
167
+ ],
168
+ "snippet": "A feature table"
169
+ },
138
170
  {
139
171
  "id": "cb7f74af39c64abfbe7c7fc5b69587b1",
140
172
  "type": "Feature Service",
@@ -19,16 +19,19 @@ import { d as defineCustomElement$2 } from './scrim.js';
19
19
  class AppGuideViewModel {
20
20
  constructor() {
21
21
  this.pages = [];
22
+ this.headerText = '';
23
+ this.pages = [];
22
24
  }
23
- addPage(page) {
24
- this.pages = [...this.pages, page];
25
+ setPages(pages) {
26
+ this.pages = pages;
27
+ this.setDefaultHeaderText();
25
28
  }
26
- removePage(page) {
27
- this.pages = this.pages.filter(p => p !== page);
29
+ setDefaultHeaderText() {
30
+ this.headerText = !!this.pages.length ? this.pages[0].title : '';
28
31
  }
29
32
  }
30
33
 
31
- const instantAppsAppGuideCss = ":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;overflow:scroll;height:-moz-fit-content;height:fit-content;background-color:var(--calcite-color-foreground-1)}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem}:host .content-heading{font-weight:var(--calcite-font-weight-bold);display:flex;gap:var(--calcite-spacing-sm);line-height:var(--calcite-font-line-height-fixed-lg)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}";
34
+ const instantAppsAppGuideCss = ":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;overflow:scroll;height:-moz-fit-content;height:fit-content;background-color:var(--calcite-color-foreground-1)}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}";
32
35
  const InstantAppsAppGuideStyle0 = instantAppsAppGuideCss;
33
36
 
34
37
  const CSS = {
@@ -41,6 +44,9 @@ const InstantAppsAppGuide$1 = /*@__PURE__*/ proxyCustomElement(class InstantApps
41
44
  super();
42
45
  this.__registerHost();
43
46
  this.__attachShadow();
47
+ /**
48
+ * Private Variables
49
+ */
44
50
  this._viewModel = new AppGuideViewModel();
45
51
  this.header = true;
46
52
  this.data = undefined;
@@ -48,19 +54,25 @@ const InstantAppsAppGuide$1 = /*@__PURE__*/ proxyCustomElement(class InstantApps
48
54
  this.headerText = undefined;
49
55
  }
50
56
  watchPropHandler(newValue) {
51
- this._viewModel.pages = newValue;
52
- this._updateHeaderText();
57
+ this._setContent(newValue);
58
+ }
59
+ watchStateHandler(newValue) {
60
+ this._viewModel.headerText = newValue;
53
61
  }
54
- connectedCallback() {
55
- var _a, _b, _c, _d;
56
- this._viewModel.pages = (this === null || this === void 0 ? void 0 : this.data) || [];
57
- this.headerText = (_c = (_b = (_a = this === null || this === void 0 ? void 0 : this.data) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : (_d = this === null || this === void 0 ? void 0 : this.messages) === null || _d === void 0 ? void 0 : _d.headerText;
62
+ componentWillLoad() {
63
+ this._setContent(this === null || this === void 0 ? void 0 : this.data);
58
64
  }
59
65
  componentDidLoad() {
60
66
  getMessages(this);
61
67
  }
62
68
  render() {
63
- return (h(Host, { key: '3c6bf465e2543e62f8e991a22a4f8b8420556285' }, h("calcite-panel", { key: '15a145d4f930de4325716dcd8b73fdcbbe5fa31e', scale: "s" }, this._renderAppGuideHeader(), h("calcite-carousel", { key: '8f962b828f76b8a68f19b71fb79d3f4c93420e38', onCalciteCarouselChange: () => this._updateHeaderText(), ref: el => this._carouselRef = el, "arrow-type": this._getArrowType() }, this._renderAppGuidePages(this._viewModel.pages)))));
69
+ const pages = this._renderAppGuidePages(this._viewModel.pages);
70
+ const header = this._renderAppGuideHeader();
71
+ return (h(Host, { key: 'a6969274bbb9e917869c4c09910ef04b2d40c49a' }, h("calcite-panel", { key: 'f203f430978eed0db5aa0058ae53bd811ba0fdfe', scale: "s" }, header, h("calcite-carousel", { key: 'afd572b169f27b03616e568b9146cb2e52f04cae', onCalciteCarouselChange: () => this._updateHeaderText(), ref: el => this._carouselRef = el, "arrow-type": this._getArrowType() }, pages))));
72
+ }
73
+ _setContent(content) {
74
+ this._viewModel.setPages(content);
75
+ this.headerText = this._viewModel.headerText;
64
76
  }
65
77
  _updateHeaderText() {
66
78
  var _a;
@@ -102,7 +114,8 @@ const InstantAppsAppGuide$1 = /*@__PURE__*/ proxyCustomElement(class InstantApps
102
114
  }
103
115
  get el() { return this; }
104
116
  static get watchers() { return {
105
- "data": ["watchPropHandler"]
117
+ "data": ["watchPropHandler"],
118
+ "headerText": ["watchStateHandler"]
106
119
  }; }
107
120
  static get style() { return InstantAppsAppGuideStyle0; }
108
121
  }, [1, "instant-apps-app-guide", {
@@ -111,7 +124,8 @@ const InstantAppsAppGuide$1 = /*@__PURE__*/ proxyCustomElement(class InstantApps
111
124
  "messages": [32],
112
125
  "headerText": [32]
113
126
  }, undefined, {
114
- "data": ["watchPropHandler"]
127
+ "data": ["watchPropHandler"],
128
+ "headerText": ["watchStateHandler"]
115
129
  }]);
116
130
  function defineCustomElement$1() {
117
131
  if (typeof customElements === "undefined") {