@esri/solutions-components 0.8.7 → 0.8.9

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 (121) hide show
  1. package/dist/assets/t9n/crowdsource-reporter/resources.json +3 -1
  2. package/dist/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
  3. package/dist/cjs/{calcite-action-menu_2.cjs.entry.js → calcite-action-menu_3.cjs.entry.js} +114 -7
  4. package/dist/cjs/calcite-alert_4.cjs.entry.js +46 -5
  5. package/dist/cjs/{calcite-input-date-picker_3.cjs.entry.js → calcite-block_5.cjs.entry.js} +691 -13
  6. package/dist/cjs/{calcite-combobox_5.cjs.entry.js → calcite-combobox_3.cjs.entry.js} +876 -844
  7. package/dist/cjs/calcite-dropdown_4.cjs.entry.js +1023 -0
  8. package/dist/cjs/{calcite-flow_5.cjs.entry.js → calcite-flow_6.cjs.entry.js} +327 -2
  9. package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
  10. package/dist/cjs/crowdsource-manager.cjs.entry.js +5 -1
  11. package/dist/cjs/crowdsource-reporter.cjs.entry.js +122 -23
  12. package/dist/cjs/{downloadUtils-8b05d7cc.js → downloadUtils-dc349b1a.js} +2 -2
  13. package/dist/cjs/{index.es-e7587227.js → index.es-1830a1e6.js} +2 -2
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/cjs/map-select-tools_3.cjs.entry.js +8 -8
  16. package/dist/cjs/{mapViewUtils-3e0fa457.js → mapViewUtils-9dc05308.js} +11 -5
  17. package/dist/cjs/public-notification.cjs.entry.js +2 -2
  18. package/dist/cjs/solutions-components.cjs.js +1 -1
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/create-feature/create-feature.js +18 -0
  21. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +72 -0
  22. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +16 -0
  23. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +155 -71
  24. package/dist/collection/components/feature-details/feature-details.css +18 -0
  25. package/dist/collection/components/feature-details/feature-details.js +500 -0
  26. package/dist/collection/components/feature-details/test/feature-details.e2e.js +14 -0
  27. package/dist/collection/components/feature-details/test/feature-details.spec.js +22 -0
  28. package/dist/collection/components/feature-list/feature-list.js +14 -1
  29. package/dist/collection/components/info-card/info-card.css +15 -5
  30. package/dist/collection/components/info-card/info-card.js +178 -5
  31. package/dist/collection/components/layer-table/layer-table.js +2 -2
  32. package/dist/collection/components/map-card/map-card.js +1 -1
  33. package/dist/collection/components/map-select-tools/map-select-tools.js +5 -5
  34. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  35. package/dist/collection/demos/crowdsource-reporter.html +115 -1
  36. package/dist/collection/utils/interfaces.ts +4 -4
  37. package/dist/collection/utils/mapViewUtils.js +11 -5
  38. package/dist/collection/utils/mapViewUtils.ts +13 -5
  39. package/dist/components/create-feature2.js +4 -0
  40. package/dist/components/crowdsource-manager.js +8 -0
  41. package/dist/components/crowdsource-reporter.js +270 -85
  42. package/dist/components/feature-details.d.ts +11 -0
  43. package/dist/components/feature-details.js +11 -0
  44. package/dist/components/feature-details2.js +449 -0
  45. package/dist/components/feature-list2.js +14 -1
  46. package/dist/components/info-card2.js +53 -5
  47. package/dist/components/layer-table2.js +2 -2
  48. package/dist/components/map-card2.js +1 -1
  49. package/dist/components/map-select-tools2.js +5 -5
  50. package/dist/components/mapViewUtils.js +11 -5
  51. package/dist/components/refine-selection2.js +1 -1
  52. package/dist/esm/{calcite-action-menu_2.entry.js → calcite-action-menu_3.entry.js} +118 -12
  53. package/dist/esm/calcite-alert_4.entry.js +46 -5
  54. package/dist/esm/{calcite-input-date-picker_3.entry.js → calcite-block_5.entry.js} +688 -12
  55. package/dist/esm/{calcite-combobox_5.entry.js → calcite-combobox_3.entry.js} +878 -844
  56. package/dist/esm/calcite-date-picker-day_3.entry.js +1 -1
  57. package/dist/esm/calcite-dropdown_4.entry.js +1016 -0
  58. package/dist/esm/{calcite-flow_5.entry.js → calcite-flow_6.entry.js} +327 -3
  59. package/dist/esm/card-manager_3.entry.js +5 -5
  60. package/dist/esm/crowdsource-manager.entry.js +5 -1
  61. package/dist/esm/crowdsource-reporter.entry.js +122 -23
  62. package/dist/esm/{date-5630530d.js → date-0c026a8b.js} +1 -1
  63. package/dist/esm/{downloadUtils-0c1e4d7b.js → downloadUtils-df4f21f6.js} +2 -2
  64. package/dist/esm/{index.es-286e3cfa.js → index.es-904fb846.js} +2 -2
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/map-select-tools_3.entry.js +8 -8
  67. package/dist/esm/{mapViewUtils-253178f1.js → mapViewUtils-2ec19fb0.js} +11 -5
  68. package/dist/esm/public-notification.entry.js +2 -2
  69. package/dist/esm/solutions-components.js +1 -1
  70. package/dist/solutions-components/demos/crowdsource-reporter.html +115 -1
  71. package/dist/solutions-components/{p-813fd8a4.entry.js → p-29f518fd.entry.js} +2 -2
  72. package/dist/solutions-components/p-452fd697.entry.js +6 -0
  73. package/dist/solutions-components/p-511b1c91.entry.js +23 -0
  74. package/dist/solutions-components/p-577efb16.js +36 -0
  75. package/dist/solutions-components/{p-94de9279.js → p-5817d78c.js} +1 -1
  76. package/dist/solutions-components/p-602cd811.entry.js +17 -0
  77. package/dist/solutions-components/{p-15f9624a.entry.js → p-6557b703.entry.js} +1 -1
  78. package/dist/solutions-components/p-7269c49b.entry.js +6 -0
  79. package/dist/solutions-components/p-760bd17e.entry.js +6 -0
  80. package/dist/solutions-components/p-95fea07a.entry.js +17 -0
  81. package/dist/solutions-components/{p-212b02e7.js → p-ae4d86e8.js} +1 -1
  82. package/dist/solutions-components/{p-038fcd93.entry.js → p-c273ab7a.entry.js} +1 -1
  83. package/dist/solutions-components/p-d742b915.entry.js +29 -0
  84. package/dist/solutions-components/p-dfad61a8.entry.js +24 -0
  85. package/dist/solutions-components/{p-331b5d1e.js → p-fca434c8.js} +2 -2
  86. package/dist/solutions-components/p-fd82a00f.entry.js +6 -0
  87. package/dist/solutions-components/solutions-components.esm.js +1 -1
  88. package/dist/solutions-components/utils/interfaces.ts +4 -4
  89. package/dist/solutions-components/utils/mapViewUtils.ts +13 -5
  90. package/dist/types/components/create-feature/create-feature.d.ts +4 -4
  91. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +16 -0
  92. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +91 -18
  93. package/dist/types/components/feature-details/feature-details.d.ts +151 -0
  94. package/dist/types/components/feature-list/feature-list.d.ts +6 -0
  95. package/dist/types/components/info-card/info-card.d.ts +33 -1
  96. package/dist/types/components.d.ts +161 -28
  97. package/dist/types/preact.d.ts +6 -1
  98. package/dist/types/utils/interfaces.d.ts +4 -4
  99. package/dist/types/utils/mapViewUtils.d.ts +5 -3
  100. package/package.json +1 -1
  101. package/dist/cjs/calcite-block_2.cjs.entry.js +0 -652
  102. package/dist/cjs/calcite-graph_2.cjs.entry.js +0 -1055
  103. package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
  104. package/dist/cjs/utils-7bc7f595.js +0 -64
  105. package/dist/esm/calcite-block_2.entry.js +0 -647
  106. package/dist/esm/calcite-graph_2.entry.js +0 -1050
  107. package/dist/esm/calcite-scrim.entry.js +0 -121
  108. package/dist/esm/utils-9fb4104a.js +0 -61
  109. package/dist/solutions-components/p-04c37d69.entry.js +0 -17
  110. package/dist/solutions-components/p-0b92e4b1.entry.js +0 -11
  111. package/dist/solutions-components/p-238d3b5f.entry.js +0 -6
  112. package/dist/solutions-components/p-3af79063.js +0 -36
  113. package/dist/solutions-components/p-6db185bf.entry.js +0 -6
  114. package/dist/solutions-components/p-80b11ec1.entry.js +0 -17
  115. package/dist/solutions-components/p-aec06ce4.entry.js +0 -18
  116. package/dist/solutions-components/p-bfdf89c2.js +0 -11
  117. package/dist/solutions-components/p-c4ff3b52.entry.js +0 -17
  118. package/dist/solutions-components/p-ced067bd.entry.js +0 -17
  119. package/dist/solutions-components/p-d136eab0.entry.js +0 -23
  120. package/dist/solutions-components/p-e0446d5b.entry.js +0 -6
  121. package/dist/solutions-components/p-e8f13354.entry.js +0 -6
@@ -5,9 +5,11 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IInventoryItem, ILayerAndTableIds, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
8
+ import { ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
9
+ import { IReportingOptions as IReportingOptions1 } from "./components";
9
10
  import { UserSession } from "@esri/solution-common";
10
- export { ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IInventoryItem, ILayerAndTableIds, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
11
+ export { ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISpatialRefRepresentation, IValueChange, theme } from "./utils/interfaces";
12
+ export { IReportingOptions as IReportingOptions1 } from "./components";
11
13
  export { UserSession } from "@esri/solution-common";
12
14
  export namespace Components {
13
15
  interface ArcgisLogin {
@@ -223,6 +225,22 @@ export namespace Components {
223
225
  * boolean: When true only editable layers that support the update capability will be available
224
226
  */
225
227
  "onlyShowUpdatableLayers": boolean;
228
+ /**
229
+ * string: The background color to apply to the popup header
230
+ */
231
+ "popupHeaderColor": string;
232
+ /**
233
+ * string: The color that will be displayed on hover when expanding the popup header
234
+ */
235
+ "popupHeaderHoverColor": string;
236
+ /**
237
+ * string: The font color that will be displayed on hover when expanding the popup header
238
+ */
239
+ "popupHeaderHoverTextColor": string;
240
+ /**
241
+ * string: The font color to apply to the popup header
242
+ */
243
+ "popupHeaderTextColor": string;
226
244
  /**
227
245
  * ISearchConfiguration: Configuration details for the Search widget
228
246
  */
@@ -302,13 +320,13 @@ export namespace Components {
302
320
  */
303
321
  "isMobile": boolean;
304
322
  /**
305
- * string: Layer id of the feature from URL params
323
+ * ILayerExpression[]: Array of layer expressions for layers (filter configuration)
306
324
  */
307
- "layerId": string;
325
+ "layerExpressions": ILayerExpression[];
308
326
  /**
309
- * string[]: list of layer ids
327
+ * string: Layer id of the feature from URL params
310
328
  */
311
- "layers": string[];
329
+ "layerId": string;
312
330
  /**
313
331
  * string: Id of the zoom level from URL params
314
332
  */
@@ -329,14 +347,6 @@ export namespace Components {
329
347
  * string: Object id of the feature from URL params
330
348
  */
331
349
  "objectId": string;
332
- /**
333
- * string: The background color to apply to the popup header
334
- */
335
- "popupHeaderColor": string;
336
- /**
337
- * string: The color that will be displayed on hover when expanding the popup header
338
- */
339
- "popupHeaderHoverColor": string;
340
350
  /**
341
351
  * string: The word(s) to display in the reports submit button
342
352
  */
@@ -414,6 +424,37 @@ export namespace Components {
414
424
  }
415
425
  interface FeatureComments {
416
426
  }
427
+ interface FeatureDetails {
428
+ /**
429
+ * Go to the previous feature in the features widget
430
+ */
431
+ "back": () => Promise<void>;
432
+ /**
433
+ * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
434
+ */
435
+ "graphics": __esri.Graphic[];
436
+ /**
437
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
438
+ */
439
+ "mapView": __esri.MapView;
440
+ /**
441
+ * Go to the next feature in the features widget
442
+ */
443
+ "next": () => Promise<void>;
444
+ /**
445
+ * Refresh the features comments which will fetch like, dislike and update the component
446
+ * @returns Promise that resolves when the operation is complete
447
+ */
448
+ "refresh": (graphic?: __esri.Graphic) => Promise<void>;
449
+ /**
450
+ * IReportingOptions: Key options for reporting
451
+ */
452
+ "reportingOptions": IReportingOptions1;
453
+ /**
454
+ * Toggle the visibility of the features list view
455
+ */
456
+ "toggleListView": () => Promise<void>;
457
+ }
417
458
  interface FeatureFormFlowItem {
418
459
  }
419
460
  interface FeatureList {
@@ -468,6 +509,10 @@ export namespace Components {
468
509
  * boolean: If true will show edit button
469
510
  */
470
511
  "allowEditing"?: boolean;
512
+ /**
513
+ * Go to the previous feature in the features widget
514
+ */
515
+ "back": () => Promise<void>;
471
516
  /**
472
517
  * Get the current selected feature from the Features widget
473
518
  * @returns Promise resolving with the current feature
@@ -493,6 +538,31 @@ export namespace Components {
493
538
  * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
494
539
  */
495
540
  "mapView": __esri.MapView;
541
+ /**
542
+ * Go to the next feature in the features widget
543
+ */
544
+ "next": () => Promise<void>;
545
+ /**
546
+ * boolean: If true will show the pagination for multiple features
547
+ */
548
+ "paginationEnabled"?: boolean;
549
+ /**
550
+ * string: Set the position of the feature info
551
+ */
552
+ "position"?: string;
553
+ /**
554
+ * Get the current selected feature from the Features widget
555
+ * @returns Promise resolving with the current feature
556
+ */
557
+ "refresh": () => Promise<any>;
558
+ /**
559
+ * Toggle the visibility of the features list view
560
+ */
561
+ "toggleListView": () => Promise<void>;
562
+ /**
563
+ * update the current graphics to the features widget
564
+ */
565
+ "updateCurrentGraphic": (selectedGraphic: __esri.Graphic) => Promise<void>;
496
566
  /**
497
567
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
498
568
  */
@@ -1394,6 +1464,10 @@ export interface EditCardCustomEvent<T> extends CustomEvent<T> {
1394
1464
  detail: T;
1395
1465
  target: HTMLEditCardElement;
1396
1466
  }
1467
+ export interface FeatureDetailsCustomEvent<T> extends CustomEvent<T> {
1468
+ detail: T;
1469
+ target: HTMLFeatureDetailsElement;
1470
+ }
1397
1471
  export interface FeatureListCustomEvent<T> extends CustomEvent<T> {
1398
1472
  detail: T;
1399
1473
  target: HTMLFeatureListElement;
@@ -1534,6 +1608,7 @@ declare global {
1534
1608
  "fail": Error;
1535
1609
  "drawComplete": void;
1536
1610
  "editingAttachment": boolean;
1611
+ "progressStatus": number;
1537
1612
  }
1538
1613
  interface HTMLCreateFeatureElement extends Components.CreateFeature, HTMLStencilElement {
1539
1614
  addEventListener<K extends keyof HTMLCreateFeatureElementEventMap>(type: K, listener: (this: HTMLCreateFeatureElement, ev: CreateFeatureCustomEvent<HTMLCreateFeatureElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1631,6 +1706,23 @@ declare global {
1631
1706
  prototype: HTMLFeatureCommentsElement;
1632
1707
  new (): HTMLFeatureCommentsElement;
1633
1708
  };
1709
+ interface HTMLFeatureDetailsElementEventMap {
1710
+ "loadingStatus": boolean;
1711
+ }
1712
+ interface HTMLFeatureDetailsElement extends Components.FeatureDetails, HTMLStencilElement {
1713
+ addEventListener<K extends keyof HTMLFeatureDetailsElementEventMap>(type: K, listener: (this: HTMLFeatureDetailsElement, ev: FeatureDetailsCustomEvent<HTMLFeatureDetailsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1714
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1715
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1716
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1717
+ removeEventListener<K extends keyof HTMLFeatureDetailsElementEventMap>(type: K, listener: (this: HTMLFeatureDetailsElement, ev: FeatureDetailsCustomEvent<HTMLFeatureDetailsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1718
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1719
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1720
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1721
+ }
1722
+ var HTMLFeatureDetailsElement: {
1723
+ prototype: HTMLFeatureDetailsElement;
1724
+ new (): HTMLFeatureDetailsElement;
1725
+ };
1634
1726
  interface HTMLFeatureFormFlowItemElement extends Components.FeatureFormFlowItem, HTMLStencilElement {
1635
1727
  }
1636
1728
  var HTMLFeatureFormFlowItemElement: {
@@ -1681,7 +1773,7 @@ declare global {
1681
1773
  };
1682
1774
  interface HTMLInfoCardElementEventMap {
1683
1775
  "popupClosed": void;
1684
- "selectionChanged": __esri.Graphic[];
1776
+ "selectionChanged": { selectedFeature: __esri.Graphic[], selectedFeatureIndex: number };
1685
1777
  }
1686
1778
  interface HTMLInfoCardElement extends Components.InfoCard, HTMLStencilElement {
1687
1779
  addEventListener<K extends keyof HTMLInfoCardElementEventMap>(type: K, listener: (this: HTMLInfoCardElement, ev: InfoCardCustomEvent<HTMLInfoCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2110,6 +2202,7 @@ declare global {
2110
2202
  "delete-button": HTMLDeleteButtonElement;
2111
2203
  "edit-card": HTMLEditCardElement;
2112
2204
  "feature-comments": HTMLFeatureCommentsElement;
2205
+ "feature-details": HTMLFeatureDetailsElement;
2113
2206
  "feature-form-flow-item": HTMLFeatureFormFlowItemElement;
2114
2207
  "feature-list": HTMLFeatureListElement;
2115
2208
  "features-flow-item": HTMLFeaturesFlowItemElement;
@@ -2272,6 +2365,10 @@ declare namespace LocalJSX {
2272
2365
  * Emitted on demand when the feature creation is failed
2273
2366
  */
2274
2367
  "onFail"?: (event: CreateFeatureCustomEvent<Error>) => void;
2368
+ /**
2369
+ * Emitted on demand when editor panel changes
2370
+ */
2371
+ "onProgressStatus"?: (event: CreateFeatureCustomEvent<number>) => void;
2275
2372
  /**
2276
2373
  * Emitted on demand when the feature is created successfully
2277
2374
  */
@@ -2378,6 +2475,22 @@ declare namespace LocalJSX {
2378
2475
  * boolean: When true only editable layers that support the update capability will be available
2379
2476
  */
2380
2477
  "onlyShowUpdatableLayers"?: boolean;
2478
+ /**
2479
+ * string: The background color to apply to the popup header
2480
+ */
2481
+ "popupHeaderColor"?: string;
2482
+ /**
2483
+ * string: The color that will be displayed on hover when expanding the popup header
2484
+ */
2485
+ "popupHeaderHoverColor"?: string;
2486
+ /**
2487
+ * string: The font color that will be displayed on hover when expanding the popup header
2488
+ */
2489
+ "popupHeaderHoverTextColor"?: string;
2490
+ /**
2491
+ * string: The font color to apply to the popup header
2492
+ */
2493
+ "popupHeaderTextColor"?: string;
2381
2494
  /**
2382
2495
  * ISearchConfiguration: Configuration details for the Search widget
2383
2496
  */
@@ -2457,13 +2570,13 @@ declare namespace LocalJSX {
2457
2570
  */
2458
2571
  "isMobile"?: boolean;
2459
2572
  /**
2460
- * string: Layer id of the feature from URL params
2573
+ * ILayerExpression[]: Array of layer expressions for layers (filter configuration)
2461
2574
  */
2462
- "layerId"?: string;
2575
+ "layerExpressions"?: ILayerExpression[];
2463
2576
  /**
2464
- * string[]: list of layer ids
2577
+ * string: Layer id of the feature from URL params
2465
2578
  */
2466
- "layers"?: string[];
2579
+ "layerId"?: string;
2467
2580
  /**
2468
2581
  * string: Id of the zoom level from URL params
2469
2582
  */
@@ -2488,14 +2601,6 @@ declare namespace LocalJSX {
2488
2601
  * Emitted when toggle panel button is clicked in reporter
2489
2602
  */
2490
2603
  "onTogglePanel"?: (event: CrowdsourceReporterCustomEvent<boolean>) => void;
2491
- /**
2492
- * string: The background color to apply to the popup header
2493
- */
2494
- "popupHeaderColor"?: string;
2495
- /**
2496
- * string: The color that will be displayed on hover when expanding the popup header
2497
- */
2498
- "popupHeaderHoverColor"?: string;
2499
2604
  /**
2500
2605
  * string: The word(s) to display in the reports submit button
2501
2606
  */
@@ -2593,6 +2698,24 @@ declare namespace LocalJSX {
2593
2698
  }
2594
2699
  interface FeatureComments {
2595
2700
  }
2701
+ interface FeatureDetails {
2702
+ /**
2703
+ * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
2704
+ */
2705
+ "graphics"?: __esri.Graphic[];
2706
+ /**
2707
+ * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
2708
+ */
2709
+ "mapView"?: __esri.MapView;
2710
+ /**
2711
+ * Emitted on demand when like or dislike button is clicked
2712
+ */
2713
+ "onLoadingStatus"?: (event: FeatureDetailsCustomEvent<boolean>) => void;
2714
+ /**
2715
+ * IReportingOptions: Key options for reporting
2716
+ */
2717
+ "reportingOptions"?: IReportingOptions1;
2718
+ }
2596
2719
  interface FeatureFormFlowItem {
2597
2720
  }
2598
2721
  interface FeatureList {
@@ -2685,7 +2808,15 @@ declare namespace LocalJSX {
2685
2808
  /**
2686
2809
  * Emitted on demand when the selected index changes
2687
2810
  */
2688
- "onSelectionChanged"?: (event: InfoCardCustomEvent<__esri.Graphic[]>) => void;
2811
+ "onSelectionChanged"?: (event: InfoCardCustomEvent<{ selectedFeature: __esri.Graphic[], selectedFeatureIndex: number }>) => void;
2812
+ /**
2813
+ * boolean: If true will show the pagination for multiple features
2814
+ */
2815
+ "paginationEnabled"?: boolean;
2816
+ /**
2817
+ * string: Set the position of the feature info
2818
+ */
2819
+ "position"?: string;
2689
2820
  /**
2690
2821
  * boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
2691
2822
  */
@@ -3569,6 +3700,7 @@ declare namespace LocalJSX {
3569
3700
  "delete-button": DeleteButton;
3570
3701
  "edit-card": EditCard;
3571
3702
  "feature-comments": FeatureComments;
3703
+ "feature-details": FeatureDetails;
3572
3704
  "feature-form-flow-item": FeatureFormFlowItem;
3573
3705
  "feature-list": FeatureList;
3574
3706
  "features-flow-item": FeaturesFlowItem;
@@ -3626,6 +3758,7 @@ declare module "@stencil/core" {
3626
3758
  "delete-button": LocalJSX.DeleteButton & JSXBase.HTMLAttributes<HTMLDeleteButtonElement>;
3627
3759
  "edit-card": LocalJSX.EditCard & JSXBase.HTMLAttributes<HTMLEditCardElement>;
3628
3760
  "feature-comments": LocalJSX.FeatureComments & JSXBase.HTMLAttributes<HTMLFeatureCommentsElement>;
3761
+ "feature-details": LocalJSX.FeatureDetails & JSXBase.HTMLAttributes<HTMLFeatureDetailsElement>;
3629
3762
  "feature-form-flow-item": LocalJSX.FeatureFormFlowItem & JSXBase.HTMLAttributes<HTMLFeatureFormFlowItemElement>;
3630
3763
  "feature-list": LocalJSX.FeatureList & JSXBase.HTMLAttributes<HTMLFeatureListElement>;
3631
3764
  "features-flow-item": LocalJSX.FeaturesFlowItem & JSXBase.HTMLAttributes<HTMLFeaturesFlowItemElement>;
@@ -514,11 +514,12 @@ declare module "preact/src/jsx" {
514
514
  "onconsentGranted"?: (event: CustomEvent<any>) => void;
515
515
  }
516
516
 
517
- "create-feature": Omit<JSX.SolutionsCreateFeature, "onSuccess" | "onFail" | "onDrawComplete" | "onEditingAttachment"> & JSXInternal.HTMLAttributes<HTMLSolutionsCreateFeatureElement> & {
517
+ "create-feature": Omit<JSX.SolutionsCreateFeature, "onSuccess" | "onFail" | "onDrawComplete" | "onEditingAttachment" | "onProgressStatus"> & JSXInternal.HTMLAttributes<HTMLSolutionsCreateFeatureElement> & {
518
518
  "onsuccess"?: (event: CustomEvent<any>) => void;
519
519
  "onfail"?: (event: CustomEvent<any>) => void;
520
520
  "ondrawComplete"?: (event: CustomEvent<any>) => void;
521
521
  "oneditingAttachment"?: (event: CustomEvent<any>) => void;
522
+ "onprogressStatus"?: (event: CustomEvent<any>) => void;
522
523
  }
523
524
 
524
525
  "crowdsource-manager": JSX.SolutionsCrowdsourceManager & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceManagerElement>
@@ -543,6 +544,10 @@ declare module "preact/src/jsx" {
543
544
 
544
545
  "feature-comments": JSX.SolutionsFeatureComments & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureCommentsElement>
545
546
 
547
+ "feature-details": Omit<JSX.SolutionsFeatureDetails, "onLoadingStatus"> & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureDetailsElement> & {
548
+ "onloadingStatus"?: (event: CustomEvent<any>) => void;
549
+ }
550
+
546
551
  "feature-form-flow-item": JSX.SolutionsFeatureFormFlowItem & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureFormFlowItemElement>
547
552
 
548
553
  "feature-list": Omit<JSX.SolutionsFeatureList, "onFeatureSelect"> & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureListElement> & {
@@ -497,13 +497,13 @@ export interface IManagedLayers {
497
497
  * Key is the layers guid
498
498
  */
499
499
  export interface IReportingOptions {
500
- [key: string]: IReportOption;
500
+ [key: string]: IReportingOption;
501
501
  }
502
- export interface IReportOption {
502
+ export interface IReportingOption {
503
503
  reporting: boolean;
504
504
  comment: boolean;
505
505
  like: boolean;
506
+ likeField?: string;
506
507
  dislike: boolean;
507
- likeField: string;
508
- dislikeField: string;
508
+ dislikeField?: string;
509
509
  }
@@ -71,10 +71,11 @@ export declare function getAllLayers(mapView: __esri.MapView): Promise<__esri.La
71
71
  * @param layerView the layer view to highlight
72
72
  * @param mapView the map view used if updateExtent is true
73
73
  * @param updateExtent optional (default false) boolean to indicate if we should zoom to the extent
74
+ * @param zoomToScale optional (default 0) zoomScale that individual points will use when zoomed to
74
75
  *
75
76
  * @returns Promise resolving with the highlight handle
76
77
  */
77
- export declare function highlightFeatures(ids: number[], layerView: __esri.FeatureLayerView, mapView: __esri.MapView, updateExtent?: boolean): Promise<__esri.Handle>;
78
+ export declare function highlightFeatures(ids: number[], layerView: __esri.FeatureLayerView, mapView: __esri.MapView, updateExtent?: boolean, zoomToScale?: number): Promise<__esri.Handle>;
78
79
  /**
79
80
  * Highlights features from all sets including the refine set
80
81
  *
@@ -110,8 +111,9 @@ export declare function flashSelection(ids: number[], layerView: __esri.FeatureL
110
111
  * @param layerView the layer view that contains the OIDs
111
112
  * @param mapView the map view to show the extent change
112
113
  * @param flashFeatures optional (default true) boolean to indicate if we should flash the features
113
- *
114
+ * @param featureEffect optional (default undefined) feature effect when flashing the features
115
+ * @param zoomToScale optional (default to 0) zoomScale that individual points will use when zoomed to
114
116
  * @returns Promise resolving when the operation is complete
115
117
  *
116
118
  */
117
- export declare function goToSelection(ids: number[], layerView: __esri.FeatureLayerView, mapView: __esri.MapView, flashFeatures?: boolean, featureEffect?: __esri.FeatureEffect): Promise<void>;
119
+ export declare function goToSelection(ids: number[], layerView: __esri.FeatureLayerView, mapView: __esri.MapView, flashFeatures?: boolean, featureEffect?: __esri.FeatureEffect, zoomToScale?: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",