@esri/solutions-components 0.8.8 → 0.8.10
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.
- package/dist/assets/t9n/crowdsource-reporter/resources.json +11 -2
- package/dist/assets/t9n/crowdsource-reporter/resources_en.json +11 -2
- package/dist/cjs/{calcite-action-menu_2.cjs.entry.js → calcite-action-menu_3.cjs.entry.js} +114 -7
- package/dist/cjs/calcite-alert_4.cjs.entry.js +47 -5
- package/dist/cjs/{calcite-input-date-picker_3.cjs.entry.js → calcite-block_5.cjs.entry.js} +691 -13
- package/dist/cjs/{calcite-combobox_5.cjs.entry.js → calcite-combobox_3.cjs.entry.js} +876 -844
- package/dist/cjs/calcite-dropdown_4.cjs.entry.js +1023 -0
- package/dist/cjs/{calcite-flow_5.cjs.entry.js → calcite-flow_6.cjs.entry.js} +327 -2
- package/dist/cjs/card-manager_3.cjs.entry.js +5 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +25 -17
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +122 -21
- package/dist/cjs/{downloadUtils-8b05d7cc.js → downloadUtils-dd787ddf.js} +2 -2
- package/dist/cjs/{index.es-e7587227.js → index.es-29fa176d.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +8 -8
- package/dist/cjs/{mapViewUtils-3e0fa457.js → mapViewUtils-82018df6.js} +12 -6
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/create-feature/create-feature.js +18 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +15 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +48 -16
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +16 -0
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +155 -35
- package/dist/collection/components/feature-details/feature-details.css +18 -0
- package/dist/collection/components/feature-details/feature-details.js +500 -0
- package/dist/collection/components/feature-details/test/feature-details.e2e.js +14 -0
- package/dist/collection/components/feature-details/test/feature-details.spec.js +22 -0
- package/dist/collection/components/feature-list/feature-list.js +14 -1
- package/dist/collection/components/info-card/info-card.css +15 -5
- package/dist/collection/components/info-card/info-card.js +179 -5
- package/dist/collection/components/layer-table/layer-table.js +2 -2
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/components/map-select-tools/map-select-tools.js +5 -5
- package/dist/collection/components/refine-selection/refine-selection.js +1 -1
- package/dist/collection/demos/crowdsource-manager.html +7 -2
- package/dist/collection/demos/crowdsource-reporter.html +115 -1
- package/dist/collection/utils/mapViewUtils.js +12 -6
- package/dist/collection/utils/mapViewUtils.ts +14 -6
- package/dist/components/create-feature2.js +4 -0
- package/dist/components/crowdsource-manager.js +26 -18
- package/dist/components/crowdsource-reporter.js +270 -81
- package/dist/components/feature-details.d.ts +11 -0
- package/dist/components/feature-details.js +11 -0
- package/dist/components/feature-details2.js +449 -0
- package/dist/components/feature-list2.js +14 -1
- package/dist/components/info-card2.js +54 -5
- package/dist/components/layer-table2.js +2 -2
- package/dist/components/map-card2.js +1 -1
- package/dist/components/map-select-tools2.js +5 -5
- package/dist/components/mapViewUtils.js +12 -6
- package/dist/components/refine-selection2.js +1 -1
- package/dist/esm/{calcite-action-menu_2.entry.js → calcite-action-menu_3.entry.js} +118 -12
- package/dist/esm/calcite-alert_4.entry.js +47 -5
- package/dist/esm/{calcite-input-date-picker_3.entry.js → calcite-block_5.entry.js} +688 -12
- package/dist/esm/{calcite-combobox_5.entry.js → calcite-combobox_3.entry.js} +878 -844
- package/dist/esm/calcite-date-picker-day_3.entry.js +1 -1
- package/dist/esm/calcite-dropdown_4.entry.js +1016 -0
- package/dist/esm/{calcite-flow_5.entry.js → calcite-flow_6.entry.js} +327 -3
- package/dist/esm/card-manager_3.entry.js +5 -5
- package/dist/esm/crowdsource-manager.entry.js +26 -18
- package/dist/esm/crowdsource-reporter.entry.js +122 -21
- package/dist/esm/{date-5630530d.js → date-0c026a8b.js} +1 -1
- package/dist/esm/{downloadUtils-0c1e4d7b.js → downloadUtils-25aa808f.js} +2 -2
- package/dist/esm/{index.es-286e3cfa.js → index.es-a16c9db4.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +8 -8
- package/dist/esm/{mapViewUtils-253178f1.js → mapViewUtils-c83c03a4.js} +12 -6
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/crowdsource-manager.html +7 -2
- package/dist/solutions-components/demos/crowdsource-reporter.html +115 -1
- package/dist/solutions-components/p-2f687975.entry.js +17 -0
- package/dist/solutions-components/{p-813fd8a4.entry.js → p-3e5085ae.entry.js} +2 -2
- package/dist/solutions-components/p-40039b84.entry.js +6 -0
- package/dist/solutions-components/p-511b1c91.entry.js +23 -0
- package/dist/solutions-components/{p-94de9279.js → p-5817d78c.js} +1 -1
- package/dist/solutions-components/{p-15f9624a.entry.js → p-58997cc1.entry.js} +1 -1
- package/dist/solutions-components/p-82e398cb.entry.js +17 -0
- package/dist/solutions-components/p-ae75d7d7.entry.js +6 -0
- package/dist/solutions-components/{p-331b5d1e.js → p-b1376c75.js} +2 -2
- package/dist/solutions-components/p-b5acfcd8.entry.js +6 -0
- package/dist/solutions-components/{p-212b02e7.js → p-bdd77f17.js} +1 -1
- package/dist/solutions-components/{p-038fcd93.entry.js → p-c273ab7a.entry.js} +1 -1
- package/dist/solutions-components/p-d742b915.entry.js +29 -0
- package/dist/solutions-components/p-d9c89479.js +36 -0
- package/dist/solutions-components/p-dfad61a8.entry.js +24 -0
- package/dist/solutions-components/p-fffc9e08.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +14 -6
- package/dist/types/components/create-feature/create-feature.d.ts +4 -4
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +13 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +91 -10
- package/dist/types/components/feature-details/feature-details.d.ts +151 -0
- package/dist/types/components/feature-list/feature-list.d.ts +6 -0
- package/dist/types/components/info-card/info-card.d.ts +33 -1
- package/dist/types/components.d.ts +148 -12
- package/dist/types/preact.d.ts +9 -2
- package/dist/types/utils/mapViewUtils.d.ts +5 -3
- package/package.json +1 -1
- package/dist/cjs/calcite-block_2.cjs.entry.js +0 -652
- package/dist/cjs/calcite-graph_2.cjs.entry.js +0 -1055
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -125
- package/dist/cjs/utils-7bc7f595.js +0 -64
- package/dist/esm/calcite-block_2.entry.js +0 -647
- package/dist/esm/calcite-graph_2.entry.js +0 -1050
- package/dist/esm/calcite-scrim.entry.js +0 -121
- package/dist/esm/utils-9fb4104a.js +0 -61
- package/dist/solutions-components/p-04c37d69.entry.js +0 -17
- package/dist/solutions-components/p-0b92e4b1.entry.js +0 -11
- package/dist/solutions-components/p-13ca3b00.entry.js +0 -6
- package/dist/solutions-components/p-238d3b5f.entry.js +0 -6
- package/dist/solutions-components/p-3af79063.js +0 -36
- package/dist/solutions-components/p-80b11ec1.entry.js +0 -17
- package/dist/solutions-components/p-a3a11749.entry.js +0 -6
- package/dist/solutions-components/p-aec06ce4.entry.js +0 -18
- package/dist/solutions-components/p-bfdf89c2.js +0 -11
- package/dist/solutions-components/p-c4ff3b52.entry.js +0 -17
- package/dist/solutions-components/p-ced067bd.entry.js +0 -17
- package/dist/solutions-components/p-d136eab0.entry.js +0 -23
- package/dist/solutions-components/p-e0446d5b.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 {
|
|
@@ -318,13 +320,13 @@ export namespace Components {
|
|
|
318
320
|
*/
|
|
319
321
|
"isMobile": boolean;
|
|
320
322
|
/**
|
|
321
|
-
*
|
|
323
|
+
* ILayerExpression[]: Array of layer expressions for layers (filter configuration)
|
|
322
324
|
*/
|
|
323
|
-
"
|
|
325
|
+
"layerExpressions": ILayerExpression[];
|
|
324
326
|
/**
|
|
325
|
-
* string
|
|
327
|
+
* string: Layer id of the feature from URL params
|
|
326
328
|
*/
|
|
327
|
-
"
|
|
329
|
+
"layerId": string;
|
|
328
330
|
/**
|
|
329
331
|
* string: Id of the zoom level from URL params
|
|
330
332
|
*/
|
|
@@ -422,6 +424,37 @@ export namespace Components {
|
|
|
422
424
|
}
|
|
423
425
|
interface FeatureComments {
|
|
424
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
|
+
}
|
|
425
458
|
interface FeatureFormFlowItem {
|
|
426
459
|
}
|
|
427
460
|
interface FeatureList {
|
|
@@ -476,6 +509,10 @@ export namespace Components {
|
|
|
476
509
|
* boolean: If true will show edit button
|
|
477
510
|
*/
|
|
478
511
|
"allowEditing"?: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* Go to the previous feature in the features widget
|
|
514
|
+
*/
|
|
515
|
+
"back": () => Promise<void>;
|
|
479
516
|
/**
|
|
480
517
|
* Get the current selected feature from the Features widget
|
|
481
518
|
* @returns Promise resolving with the current feature
|
|
@@ -501,6 +538,31 @@ export namespace Components {
|
|
|
501
538
|
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
|
502
539
|
*/
|
|
503
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>;
|
|
504
566
|
/**
|
|
505
567
|
* boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
|
|
506
568
|
*/
|
|
@@ -1386,6 +1448,10 @@ export interface CreateFeatureCustomEvent<T> extends CustomEvent<T> {
|
|
|
1386
1448
|
detail: T;
|
|
1387
1449
|
target: HTMLCreateFeatureElement;
|
|
1388
1450
|
}
|
|
1451
|
+
export interface CrowdsourceManagerCustomEvent<T> extends CustomEvent<T> {
|
|
1452
|
+
detail: T;
|
|
1453
|
+
target: HTMLCrowdsourceManagerElement;
|
|
1454
|
+
}
|
|
1389
1455
|
export interface CrowdsourceReporterCustomEvent<T> extends CustomEvent<T> {
|
|
1390
1456
|
detail: T;
|
|
1391
1457
|
target: HTMLCrowdsourceReporterElement;
|
|
@@ -1402,6 +1468,10 @@ export interface EditCardCustomEvent<T> extends CustomEvent<T> {
|
|
|
1402
1468
|
detail: T;
|
|
1403
1469
|
target: HTMLEditCardElement;
|
|
1404
1470
|
}
|
|
1471
|
+
export interface FeatureDetailsCustomEvent<T> extends CustomEvent<T> {
|
|
1472
|
+
detail: T;
|
|
1473
|
+
target: HTMLFeatureDetailsElement;
|
|
1474
|
+
}
|
|
1405
1475
|
export interface FeatureListCustomEvent<T> extends CustomEvent<T> {
|
|
1406
1476
|
detail: T;
|
|
1407
1477
|
target: HTMLFeatureListElement;
|
|
@@ -1542,6 +1612,7 @@ declare global {
|
|
|
1542
1612
|
"fail": Error;
|
|
1543
1613
|
"drawComplete": void;
|
|
1544
1614
|
"editingAttachment": boolean;
|
|
1615
|
+
"progressStatus": number;
|
|
1545
1616
|
}
|
|
1546
1617
|
interface HTMLCreateFeatureElement extends Components.CreateFeature, HTMLStencilElement {
|
|
1547
1618
|
addEventListener<K extends keyof HTMLCreateFeatureElementEventMap>(type: K, listener: (this: HTMLCreateFeatureElement, ev: CreateFeatureCustomEvent<HTMLCreateFeatureElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1557,7 +1628,18 @@ declare global {
|
|
|
1557
1628
|
prototype: HTMLCreateFeatureElement;
|
|
1558
1629
|
new (): HTMLCreateFeatureElement;
|
|
1559
1630
|
};
|
|
1631
|
+
interface HTMLCrowdsourceManagerElementEventMap {
|
|
1632
|
+
"infoIconButtonClick": void;
|
|
1633
|
+
}
|
|
1560
1634
|
interface HTMLCrowdsourceManagerElement extends Components.CrowdsourceManager, HTMLStencilElement {
|
|
1635
|
+
addEventListener<K extends keyof HTMLCrowdsourceManagerElementEventMap>(type: K, listener: (this: HTMLCrowdsourceManagerElement, ev: CrowdsourceManagerCustomEvent<HTMLCrowdsourceManagerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1636
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1637
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1638
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1639
|
+
removeEventListener<K extends keyof HTMLCrowdsourceManagerElementEventMap>(type: K, listener: (this: HTMLCrowdsourceManagerElement, ev: CrowdsourceManagerCustomEvent<HTMLCrowdsourceManagerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1640
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1641
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1642
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1561
1643
|
}
|
|
1562
1644
|
var HTMLCrowdsourceManagerElement: {
|
|
1563
1645
|
prototype: HTMLCrowdsourceManagerElement;
|
|
@@ -1639,6 +1721,23 @@ declare global {
|
|
|
1639
1721
|
prototype: HTMLFeatureCommentsElement;
|
|
1640
1722
|
new (): HTMLFeatureCommentsElement;
|
|
1641
1723
|
};
|
|
1724
|
+
interface HTMLFeatureDetailsElementEventMap {
|
|
1725
|
+
"loadingStatus": boolean;
|
|
1726
|
+
}
|
|
1727
|
+
interface HTMLFeatureDetailsElement extends Components.FeatureDetails, HTMLStencilElement {
|
|
1728
|
+
addEventListener<K extends keyof HTMLFeatureDetailsElementEventMap>(type: K, listener: (this: HTMLFeatureDetailsElement, ev: FeatureDetailsCustomEvent<HTMLFeatureDetailsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1729
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1730
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1731
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1732
|
+
removeEventListener<K extends keyof HTMLFeatureDetailsElementEventMap>(type: K, listener: (this: HTMLFeatureDetailsElement, ev: FeatureDetailsCustomEvent<HTMLFeatureDetailsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1733
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1734
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1735
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1736
|
+
}
|
|
1737
|
+
var HTMLFeatureDetailsElement: {
|
|
1738
|
+
prototype: HTMLFeatureDetailsElement;
|
|
1739
|
+
new (): HTMLFeatureDetailsElement;
|
|
1740
|
+
};
|
|
1642
1741
|
interface HTMLFeatureFormFlowItemElement extends Components.FeatureFormFlowItem, HTMLStencilElement {
|
|
1643
1742
|
}
|
|
1644
1743
|
var HTMLFeatureFormFlowItemElement: {
|
|
@@ -1689,7 +1788,7 @@ declare global {
|
|
|
1689
1788
|
};
|
|
1690
1789
|
interface HTMLInfoCardElementEventMap {
|
|
1691
1790
|
"popupClosed": void;
|
|
1692
|
-
"selectionChanged": __esri.Graphic[];
|
|
1791
|
+
"selectionChanged": { selectedFeature: __esri.Graphic[], selectedFeatureIndex: number };
|
|
1693
1792
|
}
|
|
1694
1793
|
interface HTMLInfoCardElement extends Components.InfoCard, HTMLStencilElement {
|
|
1695
1794
|
addEventListener<K extends keyof HTMLInfoCardElementEventMap>(type: K, listener: (this: HTMLInfoCardElement, ev: InfoCardCustomEvent<HTMLInfoCardElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2118,6 +2217,7 @@ declare global {
|
|
|
2118
2217
|
"delete-button": HTMLDeleteButtonElement;
|
|
2119
2218
|
"edit-card": HTMLEditCardElement;
|
|
2120
2219
|
"feature-comments": HTMLFeatureCommentsElement;
|
|
2220
|
+
"feature-details": HTMLFeatureDetailsElement;
|
|
2121
2221
|
"feature-form-flow-item": HTMLFeatureFormFlowItemElement;
|
|
2122
2222
|
"feature-list": HTMLFeatureListElement;
|
|
2123
2223
|
"features-flow-item": HTMLFeaturesFlowItemElement;
|
|
@@ -2280,6 +2380,10 @@ declare namespace LocalJSX {
|
|
|
2280
2380
|
* Emitted on demand when the feature creation is failed
|
|
2281
2381
|
*/
|
|
2282
2382
|
"onFail"?: (event: CreateFeatureCustomEvent<Error>) => void;
|
|
2383
|
+
/**
|
|
2384
|
+
* Emitted on demand when editor panel changes
|
|
2385
|
+
*/
|
|
2386
|
+
"onProgressStatus"?: (event: CreateFeatureCustomEvent<number>) => void;
|
|
2283
2387
|
/**
|
|
2284
2388
|
* Emitted on demand when the feature is created successfully
|
|
2285
2389
|
*/
|
|
@@ -2382,6 +2486,10 @@ declare namespace LocalJSX {
|
|
|
2382
2486
|
* IMapInfo[]: array of map infos (name and id)
|
|
2383
2487
|
*/
|
|
2384
2488
|
"mapInfos"?: IMapInfo[];
|
|
2489
|
+
/**
|
|
2490
|
+
* Emitted on demand when a info button is clicked
|
|
2491
|
+
*/
|
|
2492
|
+
"onInfoIconButtonClick"?: (event: CrowdsourceManagerCustomEvent<void>) => void;
|
|
2385
2493
|
/**
|
|
2386
2494
|
* boolean: When true only editable layers that support the update capability will be available
|
|
2387
2495
|
*/
|
|
@@ -2481,13 +2589,13 @@ declare namespace LocalJSX {
|
|
|
2481
2589
|
*/
|
|
2482
2590
|
"isMobile"?: boolean;
|
|
2483
2591
|
/**
|
|
2484
|
-
*
|
|
2592
|
+
* ILayerExpression[]: Array of layer expressions for layers (filter configuration)
|
|
2485
2593
|
*/
|
|
2486
|
-
"
|
|
2594
|
+
"layerExpressions"?: ILayerExpression[];
|
|
2487
2595
|
/**
|
|
2488
|
-
* string
|
|
2596
|
+
* string: Layer id of the feature from URL params
|
|
2489
2597
|
*/
|
|
2490
|
-
"
|
|
2598
|
+
"layerId"?: string;
|
|
2491
2599
|
/**
|
|
2492
2600
|
* string: Id of the zoom level from URL params
|
|
2493
2601
|
*/
|
|
@@ -2609,6 +2717,24 @@ declare namespace LocalJSX {
|
|
|
2609
2717
|
}
|
|
2610
2718
|
interface FeatureComments {
|
|
2611
2719
|
}
|
|
2720
|
+
interface FeatureDetails {
|
|
2721
|
+
/**
|
|
2722
|
+
* esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html
|
|
2723
|
+
*/
|
|
2724
|
+
"graphics"?: __esri.Graphic[];
|
|
2725
|
+
/**
|
|
2726
|
+
* esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html
|
|
2727
|
+
*/
|
|
2728
|
+
"mapView"?: __esri.MapView;
|
|
2729
|
+
/**
|
|
2730
|
+
* Emitted on demand when like or dislike button is clicked
|
|
2731
|
+
*/
|
|
2732
|
+
"onLoadingStatus"?: (event: FeatureDetailsCustomEvent<boolean>) => void;
|
|
2733
|
+
/**
|
|
2734
|
+
* IReportingOptions: Key options for reporting
|
|
2735
|
+
*/
|
|
2736
|
+
"reportingOptions"?: IReportingOptions1;
|
|
2737
|
+
}
|
|
2612
2738
|
interface FeatureFormFlowItem {
|
|
2613
2739
|
}
|
|
2614
2740
|
interface FeatureList {
|
|
@@ -2701,7 +2827,15 @@ declare namespace LocalJSX {
|
|
|
2701
2827
|
/**
|
|
2702
2828
|
* Emitted on demand when the selected index changes
|
|
2703
2829
|
*/
|
|
2704
|
-
"onSelectionChanged"?: (event: InfoCardCustomEvent<__esri.Graphic[]>) => void;
|
|
2830
|
+
"onSelectionChanged"?: (event: InfoCardCustomEvent<{ selectedFeature: __esri.Graphic[], selectedFeatureIndex: number }>) => void;
|
|
2831
|
+
/**
|
|
2832
|
+
* boolean: If true will show the pagination for multiple features
|
|
2833
|
+
*/
|
|
2834
|
+
"paginationEnabled"?: boolean;
|
|
2835
|
+
/**
|
|
2836
|
+
* string: Set the position of the feature info
|
|
2837
|
+
*/
|
|
2838
|
+
"position"?: string;
|
|
2705
2839
|
/**
|
|
2706
2840
|
* boolean: When true the selected feature will zoomed to in the map and the row will be scrolled to within the table
|
|
2707
2841
|
*/
|
|
@@ -3585,6 +3719,7 @@ declare namespace LocalJSX {
|
|
|
3585
3719
|
"delete-button": DeleteButton;
|
|
3586
3720
|
"edit-card": EditCard;
|
|
3587
3721
|
"feature-comments": FeatureComments;
|
|
3722
|
+
"feature-details": FeatureDetails;
|
|
3588
3723
|
"feature-form-flow-item": FeatureFormFlowItem;
|
|
3589
3724
|
"feature-list": FeatureList;
|
|
3590
3725
|
"features-flow-item": FeaturesFlowItem;
|
|
@@ -3642,6 +3777,7 @@ declare module "@stencil/core" {
|
|
|
3642
3777
|
"delete-button": LocalJSX.DeleteButton & JSXBase.HTMLAttributes<HTMLDeleteButtonElement>;
|
|
3643
3778
|
"edit-card": LocalJSX.EditCard & JSXBase.HTMLAttributes<HTMLEditCardElement>;
|
|
3644
3779
|
"feature-comments": LocalJSX.FeatureComments & JSXBase.HTMLAttributes<HTMLFeatureCommentsElement>;
|
|
3780
|
+
"feature-details": LocalJSX.FeatureDetails & JSXBase.HTMLAttributes<HTMLFeatureDetailsElement>;
|
|
3645
3781
|
"feature-form-flow-item": LocalJSX.FeatureFormFlowItem & JSXBase.HTMLAttributes<HTMLFeatureFormFlowItemElement>;
|
|
3646
3782
|
"feature-list": LocalJSX.FeatureList & JSXBase.HTMLAttributes<HTMLFeatureListElement>;
|
|
3647
3783
|
"features-flow-item": LocalJSX.FeaturesFlowItem & JSXBase.HTMLAttributes<HTMLFeaturesFlowItemElement>;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -514,14 +514,17 @@ 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
|
-
"crowdsource-manager": JSX.SolutionsCrowdsourceManager & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceManagerElement>
|
|
525
|
+
"crowdsource-manager": Omit<JSX.SolutionsCrowdsourceManager, "onInfoIconButtonClick"> & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceManagerElement> & {
|
|
526
|
+
"oninfoIconButtonClick"?: (event: CustomEvent<any>) => void;
|
|
527
|
+
}
|
|
525
528
|
|
|
526
529
|
"crowdsource-reporter": Omit<JSX.SolutionsCrowdsourceReporter, "onTogglePanel"> & JSXInternal.HTMLAttributes<HTMLSolutionsCrowdsourceReporterElement> & {
|
|
527
530
|
"ontogglePanel"?: (event: CustomEvent<any>) => void;
|
|
@@ -543,6 +546,10 @@ declare module "preact/src/jsx" {
|
|
|
543
546
|
|
|
544
547
|
"feature-comments": JSX.SolutionsFeatureComments & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureCommentsElement>
|
|
545
548
|
|
|
549
|
+
"feature-details": Omit<JSX.SolutionsFeatureDetails, "onLoadingStatus"> & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureDetailsElement> & {
|
|
550
|
+
"onloadingStatus"?: (event: CustomEvent<any>) => void;
|
|
551
|
+
}
|
|
552
|
+
|
|
546
553
|
"feature-form-flow-item": JSX.SolutionsFeatureFormFlowItem & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureFormFlowItemElement>
|
|
547
554
|
|
|
548
555
|
"feature-list": Omit<JSX.SolutionsFeatureList, "onFeatureSelect"> & JSXInternal.HTMLAttributes<HTMLSolutionsFeatureListElement> & {
|
|
@@ -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>;
|