@arcgis/portal-components 5.0.0-next.136 → 5.0.0-next.138
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/cdn/{KAAVLN67.js → 77AHGEH2.js} +2 -2
- package/dist/cdn/{QF4PT6DN.js → 7HJNBQ4Z.js} +2 -2
- package/dist/cdn/{K7NJST56.js → 7IUGSPNA.js} +2 -2
- package/dist/cdn/{X63SQRMQ.js → B5SBCJ3C.js} +1 -1
- package/dist/cdn/{P6R5NA3A.js → BMVMPK5L.js} +2 -2
- package/dist/cdn/{KGMTMMHV.js → CI6BKI5S.js} +2 -2
- package/dist/cdn/{VVWPJRUI.js → DGCGGFDO.js} +2 -2
- package/dist/cdn/DNYIE6VB.js +6 -0
- package/dist/cdn/{LXQRUFRM.js → EG7OXB7L.js} +2 -2
- package/dist/cdn/{4RPZSSVS.js → F3NO2DJ7.js} +2 -2
- package/dist/cdn/{PQD35XIM.js → KKDTTTRJ.js} +2 -2
- package/dist/cdn/{3QGXNHUJ.js → M3FLI3RE.js} +2 -2
- package/dist/cdn/{OLL7YXB7.js → TM7MOVDU.js} +1 -1
- package/dist/cdn/{BFBSGGTS.js → UPVXKXHM.js} +2 -2
- package/dist/cdn/{YEPDFJPA.js → VBAMQMEX.js} +2 -2
- package/dist/cdn/{CBZCGQ7U.js → WFP254HP.js} +2 -2
- package/dist/cdn/{6X4M6WCH.js → XQZNQPZY.js} +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/item.js +1 -1
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/requests.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.d.ts +39 -34
- package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/index.d.ts +0 -1
- package/dist/components/arcgis-portal-classification-config/customElement.d.ts +67 -41
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/index.d.ts +0 -11
- package/dist/components/arcgis-portal-classification-favorite/customElement.d.ts +61 -16
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/index.d.ts +0 -11
- package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +27 -15
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-form-element/index.d.ts +0 -8
- package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +119 -51
- package/dist/components/arcgis-portal-extent-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker/index.d.ts +0 -7
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.d.ts +88 -29
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/index.d.ts +0 -9
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +33 -21
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-replacement-item-redirect/index.d.ts +0 -5
- package/dist/docs/api.json +1 -1609
- package/dist/docs/docs.json +1 -1520
- package/dist/docs/vscode.css-custom-data.json +1 -6
- package/dist/docs/vscode.html-custom-data.json +1 -142
- package/dist/docs/web-types.json +1 -484
- package/dist/index.d.ts +31 -17
- package/dist/index.js +1 -1
- package/dist/loader.js +10 -10
- package/dist/models/classificationModel.d.ts +1 -68
- package/dist/types/classification.d.ts +89 -165
- package/dist/types/lumina.d.ts +17 -17
- package/dist/types/preact.d.ts +17 -17
- package/dist/types/react.d.ts +17 -17
- package/dist/types/stencil.d.ts +17 -17
- package/dist/utils/fieldAddDelete.d.ts +12 -3
- package/dist/utils/types.d.ts +25 -24
- package/package.json +4 -4
- package/dist/cdn/HTG4KVD4.js +0 -6
- package/dist/components/arcgis-portal-extent-picker/mask-layer.d.ts +0 -28
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.d.ts +0 -29
- package/dist/components/arcgis-portal-extent-picker-coord-field/index.d.ts +0 -3
- package/dist/components/arcgis-portal-field-delete/types.d.ts +0 -5
- package/dist/components/arcgis-portal-replacement-item-redirect/types/actions.d.ts +0 -11
- package/dist/components/arcgis-portal-replacement-item-redirect/utils/actions.d.ts +0 -24
- package/dist/components/arcgis-portal-replacement-item-redirect/utils/capabilities.d.ts +0 -4
- package/dist/components/arcgis-portal-replacement-item-redirect/utils/info.d.ts +0 -2
- package/dist/controllers/loadClassificationData.d.ts +0 -11
- package/dist/controllers/useClassificationModel.d.ts +0 -9
- package/dist/controllers/useT9n.d.ts +0 -1
- package/dist/runtime.d.ts +0 -6
- package/dist/utils/arcade.d.ts +0 -27
- package/dist/utils/common.d.ts +0 -29
- package/dist/utils/commonEnums.d.ts +0 -5
- package/dist/utils/commonFunctions.d.ts +0 -12
- package/dist/utils/functionalComponents/FieldIcons.d.ts +0 -6
- package/dist/utils/item.d.ts +0 -21
- package/dist/utils/portal.d.ts +0 -2
- package/dist/utils/requests.d.ts +0 -15
- package/dist/utils/style.d.ts +0 -1
- package/dist/utils/url.d.ts +0 -1
package/dist/loader.js
CHANGED
|
@@ -2,17 +2,17 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as t } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
6
|
-
const
|
|
7
|
-
"arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
|
|
8
|
-
"arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
|
|
9
|
-
"arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
|
|
10
|
-
"arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,renderingInfo:,value:"],
|
|
11
|
-
"arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,portal:;;getExtent"],
|
|
5
|
+
v5.0.0-next.138 */
|
|
6
|
+
const s = t(e, {
|
|
7
|
+
"arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
|
|
8
|
+
"arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
|
|
9
|
+
"arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
|
|
10
|
+
"arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],
|
|
11
|
+
"arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],
|
|
12
12
|
"arcgis-portal-extent-picker-coord-field": [() => import("./components/arcgis-portal-extent-picker-coord-field/customElement.js"), "errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],
|
|
13
|
-
"arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,options:"],
|
|
14
|
-
"arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,portal:,user:;setFocus"]
|
|
13
|
+
"arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
|
|
14
|
+
"arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,portal:,t9n:,user:;setFocus"]
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
s as defineCustomElements
|
|
18
18
|
};
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { default as Accessor } from '@arcgis/core/core/Accessor.js';
|
|
3
|
-
import { ClassificationSchema, SchemaResult } from '../types/classification';
|
|
4
|
-
import { Deferred } from '@arcgis/toolkit/promise';
|
|
5
|
-
type Status = "error" | "idle" | "loaded" | "loading";
|
|
6
|
-
/**
|
|
7
|
-
* Initialization options for the classification model.
|
|
8
|
-
*/
|
|
9
|
-
export interface Options {
|
|
10
|
-
portalClassificationSchema?: ClassificationSchema | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare class ClassificationModel extends Accessor {
|
|
13
|
-
/**
|
|
14
|
-
* The classification schema for the portal that is fetched from
|
|
15
|
-
* <portal>/sharing/rest/portals/self/classification/classificationSchema.
|
|
16
|
-
*/
|
|
17
|
-
portalClassificationSchema: ClassificationSchema | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the model is currently getting fetched via an outside actor.
|
|
20
|
-
*/
|
|
21
|
-
fetching: boolean;
|
|
22
|
-
/** The loading status of the classification schema. */
|
|
23
|
-
status: Status;
|
|
24
|
-
error: SchemaResult["error"] | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The portal URL.
|
|
27
|
-
*/
|
|
28
|
-
portalUrl: string | undefined;
|
|
29
|
-
_itemClassificationValidationErrors: Map<string, Promise<string>>;
|
|
30
|
-
/**
|
|
31
|
-
* The promise that resolves when the classification schema is fetched.
|
|
32
|
-
*/
|
|
33
|
-
fetchingPromise: Deferred<boolean>;
|
|
34
|
-
/**
|
|
35
|
-
* The primary attribute of the classification schema metadata.
|
|
36
|
-
*/
|
|
37
|
-
get primaryAttribute(): ClassificationSchema["classificationMetadata"]["primaryAttribute"] | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the portal classification schema and updates the portal URL.
|
|
40
|
-
*/
|
|
41
|
-
setPortalClassificationData({ portalUrl, schema, }: {
|
|
42
|
-
portalUrl: string;
|
|
43
|
-
schema: ClassificationSchema | undefined;
|
|
44
|
-
}): void;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the fetching state.
|
|
47
|
-
*/
|
|
48
|
-
setFetching(fetching: boolean): void;
|
|
49
|
-
/**
|
|
50
|
-
* Loads and sets the classification schema from the portal.
|
|
51
|
-
*/
|
|
52
|
-
loadPortalClassificationData(portalUrl: string, { signal }: {
|
|
53
|
-
signal: AbortSignal;
|
|
54
|
-
}): Promise<void>;
|
|
55
|
-
validateClassification(id: nullish | string, classificationValue: __esri.PortalItem["classification"], portalUrl: string, options?: {
|
|
56
|
-
signal?: AbortSignal;
|
|
57
|
-
}): Promise<string>;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* This function checks if model is already defined. If not, it creates the classification model,
|
|
61
|
-
* ensuring that the classification model is created only once and reused for subsequent calls.
|
|
62
|
-
*/
|
|
63
|
-
export declare function loadClassificationModel(initialValues?: Options): ClassificationModel;
|
|
64
|
-
export declare const exportsForTests: {
|
|
65
|
-
/** export a test util to allow test runner to reset the model */
|
|
66
|
-
resetModel: () => void;
|
|
67
|
-
};
|
|
68
|
-
export {};
|
|
1
|
+
export type Status = "error" | "idle" | "loaded" | "loading";
|
|
@@ -1,66 +1,86 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
|
|
3
|
+
/** The classification schema defined on the portal. */
|
|
4
|
+
export type ClassificationSchema = Readonly<{
|
|
5
|
+
attributeCategories?: string[];
|
|
6
|
+
attributes: Record<string, ClassificationAttributesValues>;
|
|
7
|
+
bannerExpression?: string;
|
|
8
|
+
classificationMetadata: ClassificationMetadata;
|
|
9
|
+
grammarVersion: string;
|
|
10
|
+
layouts: Record<string, DefaultLayout>;
|
|
11
|
+
name: string;
|
|
12
|
+
selectionTextExpression?: string;
|
|
13
|
+
version: string;
|
|
14
|
+
helpUrl?: string;
|
|
15
|
+
helpTooltip?: string;
|
|
8
16
|
}>;
|
|
9
|
-
|
|
17
|
+
|
|
18
|
+
export interface FavoriteClassification {
|
|
19
|
+
name: string;
|
|
20
|
+
classification: __esri.PortalItem["classification"];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* State object that is used to store arcade expression results from expressions
|
|
25
|
+
* that are evaluated for each attribute in the classification schema.
|
|
26
|
+
*/
|
|
27
|
+
export type AttributeExpressionResults = Map<string, {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;
|
|
30
|
+
attributeValidationResult: string | null;
|
|
31
|
+
}>;
|
|
32
|
+
|
|
33
|
+
export type ClassificationMetadata = Readonly<{
|
|
10
34
|
primaryAttribute: string;
|
|
11
35
|
defaultValue: string;
|
|
12
36
|
classificationValueProperties: ClassificationType[];
|
|
13
37
|
}>;
|
|
38
|
+
|
|
14
39
|
export type ValueOption = Readonly<{
|
|
15
40
|
label: string;
|
|
16
41
|
value: string;
|
|
17
42
|
}>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
isAttributeEnabled?: string;
|
|
30
|
-
valueExpression?: string;
|
|
31
|
-
attributeValidation?: string;
|
|
32
|
-
arcadeResultLookup?: Record<string, ValueOption[]>;
|
|
33
|
-
attributeCategory?: string;
|
|
34
|
-
selectionDisplayOrder?: number;
|
|
35
|
-
selectionDisplayLabel?: string;
|
|
36
|
-
bannerOrder?: number;
|
|
37
|
-
bannerLabel?: string;
|
|
38
|
-
labelDelimiter?: string;
|
|
39
|
-
labelTooltip?: string;
|
|
40
|
-
valueDelimiter?: string;
|
|
41
|
-
attributeDelimiter?: string;
|
|
43
|
+
|
|
44
|
+
export type ClassificationAttributesValues = CheckboxAttributesValues | DateAttributesValues | MultiGroupedSelectNestedAttributesValues | MultiSelectAttributesValues | SingleSelectAttributesValues | TextAttributesValues;
|
|
45
|
+
|
|
46
|
+
export type DefaultLayout = Readonly<{ layoutElements: Record<string, ClassificationLayoutElements>; }>;
|
|
47
|
+
|
|
48
|
+
export type ClassificationType = Readonly<{
|
|
49
|
+
[index: string]: string | undefined;
|
|
50
|
+
value: string;
|
|
51
|
+
acronym?: string;
|
|
52
|
+
backgroundColor?: string;
|
|
53
|
+
textColor?: string;
|
|
42
54
|
}>;
|
|
55
|
+
|
|
43
56
|
/**
|
|
44
57
|
* Create narrowed types for each of the possible UI elements.
|
|
45
58
|
* Never is used to inform users that the property will never be defined
|
|
46
59
|
* when uiElement is a specific value.
|
|
47
60
|
*/
|
|
48
|
-
type SingleSelectAttributesValues = BaseAttributesValues
|
|
61
|
+
export type SingleSelectAttributesValues = BaseAttributesValues
|
|
62
|
+
& Readonly<{
|
|
49
63
|
uiElement: "single-select";
|
|
50
64
|
validValues?: ValueOption[];
|
|
51
65
|
validValuesMap?: never;
|
|
52
66
|
}>;
|
|
53
|
-
|
|
67
|
+
|
|
68
|
+
export type MultiSelectAttributesValues = BaseAttributesValues
|
|
69
|
+
& Readonly<{
|
|
54
70
|
uiElement: "multi-select";
|
|
55
71
|
validValues?: ValueOption[];
|
|
56
72
|
validValuesMap?: never;
|
|
57
73
|
}>;
|
|
58
|
-
|
|
74
|
+
|
|
75
|
+
export type MultiGroupedSelectNestedAttributesValues = BaseAttributesValues
|
|
76
|
+
& Readonly<{
|
|
59
77
|
uiElement: "multi-grouped-select-nested";
|
|
60
78
|
validValuesMap: Record<string, ValueOption[]>;
|
|
61
79
|
validValues?: never;
|
|
62
80
|
}>;
|
|
63
|
-
|
|
81
|
+
|
|
82
|
+
export type CheckboxAttributesValues = BaseAttributesValues
|
|
83
|
+
& Readonly<{
|
|
64
84
|
uiElement: "checkbox";
|
|
65
85
|
type: "boolean";
|
|
66
86
|
validValues?: never;
|
|
@@ -68,7 +88,9 @@ type CheckboxAttributesValues = BaseAttributesValues & Readonly<{
|
|
|
68
88
|
defaultDateTimeline?: never;
|
|
69
89
|
defaultDateTimelineUnits?: never;
|
|
70
90
|
}>;
|
|
71
|
-
|
|
91
|
+
|
|
92
|
+
export type DateAttributesValues = BaseAttributesValues
|
|
93
|
+
& Readonly<{
|
|
72
94
|
uiElement: "date";
|
|
73
95
|
type: "date";
|
|
74
96
|
defaultDateTimeline: number;
|
|
@@ -76,7 +98,9 @@ type DateAttributesValues = BaseAttributesValues & Readonly<{
|
|
|
76
98
|
validValues?: never;
|
|
77
99
|
validValuesMap?: never;
|
|
78
100
|
}>;
|
|
79
|
-
|
|
101
|
+
|
|
102
|
+
export type TextAttributesValues = BaseAttributesValues
|
|
103
|
+
& Readonly<{
|
|
80
104
|
uiElement: "text";
|
|
81
105
|
type: "string";
|
|
82
106
|
validValues?: never;
|
|
@@ -84,131 +108,31 @@ type TextAttributesValues = BaseAttributesValues & Readonly<{
|
|
|
84
108
|
defaultDateTimeline?: never;
|
|
85
109
|
defaultDateTimelineUnits?: never;
|
|
86
110
|
}>;
|
|
87
|
-
|
|
88
|
-
export
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export type SchemaResult = {
|
|
116
|
-
result?: ClassificationSchema;
|
|
117
|
-
error?: {
|
|
118
|
-
name: string;
|
|
119
|
-
message: string;
|
|
120
|
-
details: Record<string, unknown>;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
export interface ValidationResult {
|
|
124
|
-
result?: {
|
|
125
|
-
success: string;
|
|
126
|
-
};
|
|
127
|
-
error?: {
|
|
128
|
-
code: string;
|
|
129
|
-
details: {
|
|
130
|
-
raw: {
|
|
131
|
-
messages: string[];
|
|
132
|
-
};
|
|
133
|
-
name: string;
|
|
134
|
-
};
|
|
135
|
-
message: string;
|
|
136
|
-
name: string;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
declare const portalErrorList: readonly ["unhandledError"];
|
|
140
|
-
export type PortalErrorType = (typeof portalErrorList)[number];
|
|
141
|
-
export interface Result<ResultT = any, ErrorT extends PortalErrorType = PortalErrorType> {
|
|
142
|
-
result?: ResultT;
|
|
143
|
-
error?: PortalError<ErrorT>;
|
|
144
|
-
}
|
|
145
|
-
export interface PortalError<Error extends PortalErrorType = PortalErrorType> {
|
|
146
|
-
code: Error;
|
|
147
|
-
translatedMessage?: string;
|
|
148
|
-
message?: string;
|
|
149
|
-
details?: any;
|
|
150
|
-
}
|
|
151
|
-
export type EditInfo = Readonly<{
|
|
152
|
-
createdUser: string;
|
|
153
|
-
createdDate: number;
|
|
154
|
-
lastEditedUser: string;
|
|
155
|
-
lastEditedDate: number;
|
|
156
|
-
}>;
|
|
157
|
-
export type SelectionText = Readonly<{
|
|
158
|
-
elementType: string;
|
|
159
|
-
selectionDisplayLabel: string;
|
|
160
|
-
labelDelimiter: string;
|
|
161
|
-
classificationProp: string;
|
|
162
|
-
valueDelimiter: string;
|
|
163
|
-
}>;
|
|
164
|
-
export interface FavoriteClassification {
|
|
165
|
-
name: string;
|
|
166
|
-
classification: __esri.PortalItem["classification"];
|
|
167
|
-
}
|
|
168
|
-
export interface FavoriteClassificationResult {
|
|
169
|
-
result?: {
|
|
170
|
-
favorites: FavoriteClassification[];
|
|
171
|
-
};
|
|
172
|
-
error?: {
|
|
173
|
-
details: {
|
|
174
|
-
raw: {
|
|
175
|
-
code: string;
|
|
176
|
-
messages: string[];
|
|
177
|
-
messageCode: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
message: string;
|
|
181
|
-
name: string;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
export interface ClassificationAlertIndicator {
|
|
185
|
-
alertIndicatorType?: HTMLCalciteAlertElement["kind"];
|
|
186
|
-
alertIndicatorIcon?: HTMLCalciteIconElement["icon"];
|
|
187
|
-
alertIndicatorInfo: string;
|
|
188
|
-
}
|
|
189
|
-
export interface AddFavoriteClassificationResult {
|
|
190
|
-
result?: {
|
|
191
|
-
success: boolean;
|
|
192
|
-
};
|
|
193
|
-
error?: {
|
|
194
|
-
name: string;
|
|
195
|
-
message: string;
|
|
196
|
-
details?: {
|
|
197
|
-
raw: {
|
|
198
|
-
messages: string[];
|
|
199
|
-
};
|
|
200
|
-
name: string;
|
|
201
|
-
};
|
|
202
|
-
url?: string;
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* State object that is used to store arcade expression results from expressions
|
|
207
|
-
* that are evaluated for each attribute in the classification schema.
|
|
208
|
-
**/
|
|
209
|
-
export type AttributeExpressionResults = Map<string, {
|
|
210
|
-
enabled: boolean;
|
|
211
|
-
valueExpressionResult: Record<string, ValueOption[]> | ValueOption[] | null;
|
|
212
|
-
attributeValidationResult: string | null;
|
|
213
|
-
}>;
|
|
214
|
-
export {};
|
|
111
|
+
|
|
112
|
+
export type ClassificationLayoutElements = Readonly<{ formDisplayOrder: number; }>;
|
|
113
|
+
|
|
114
|
+
export type BaseAttributesValues = Readonly<{
|
|
115
|
+
label: string;
|
|
116
|
+
description?: string;
|
|
117
|
+
type: string;
|
|
118
|
+
uiElement: string;
|
|
119
|
+
isRequired?: boolean;
|
|
120
|
+
defaultValue?: string;
|
|
121
|
+
defaultDateTimeline?: number;
|
|
122
|
+
defaultDateTimelineUnits?: string;
|
|
123
|
+
validValues?: ValueOption[];
|
|
124
|
+
validValuesMap?: Record<string, ValueOption[]>;
|
|
125
|
+
isAttributeEnabled?: string;
|
|
126
|
+
valueExpression?: string;
|
|
127
|
+
attributeValidation?: string;
|
|
128
|
+
arcadeResultLookup?: Record<string, ValueOption[]>;
|
|
129
|
+
attributeCategory?: string;
|
|
130
|
+
selectionDisplayOrder?: number;
|
|
131
|
+
selectionDisplayLabel?: string;
|
|
132
|
+
bannerOrder?: number;
|
|
133
|
+
bannerLabel?: string;
|
|
134
|
+
labelDelimiter?: string;
|
|
135
|
+
labelTooltip?: string;
|
|
136
|
+
valueDelimiter?: string;
|
|
137
|
+
attributeDelimiter?: string;
|
|
138
|
+
}>;
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -8,35 +8,35 @@ import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-
|
|
|
8
8
|
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
9
9
|
import type { h, EventHandler } from "@arcgis/lumina";
|
|
10
10
|
|
|
11
|
-
interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
11
|
+
interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationBanner> {
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface LuminaArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
15
|
-
onarcgisPropertyChange?: EventHandler<
|
|
14
|
+
interface LuminaArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationConfig> {
|
|
15
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface LuminaArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
18
|
+
interface LuminaArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationFavorite> {
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
interface LuminaArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
22
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
21
|
+
interface LuminaArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationFormElement> {
|
|
22
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
interface LuminaArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker,
|
|
26
|
-
onarcgisExtentPickerChange?: EventHandler<
|
|
27
|
-
onarcgisExtentPickerClose?: EventHandler<
|
|
28
|
-
onarcgisExtentPickerSave?: EventHandler<
|
|
25
|
+
interface LuminaArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker, "active" | "contentOnly" | "extentService" | "extentValue" | "isArea" | "itemId" | "portal">>, h.JSX.HTMLAttributes<ArcgisPortalExtentPicker> {
|
|
26
|
+
onarcgisExtentPickerChange?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerChange"]>;
|
|
27
|
+
onarcgisExtentPickerClose?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerClose"]>;
|
|
28
|
+
onarcgisExtentPickerSave?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerSave"]>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
interface LuminaArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete,
|
|
32
|
-
onarcgisBeforeDelete?: EventHandler<
|
|
33
|
-
onarcgisBeforeModalClose?: EventHandler<
|
|
34
|
-
onarcgisClose?: EventHandler<
|
|
35
|
-
onarcgisFieldsDeleted?: EventHandler<
|
|
31
|
+
interface LuminaArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, "config" | "fieldNames" | "layer" | "mapView" | "options">>, h.JSX.HTMLAttributes<ArcgisPortalFieldDelete> {
|
|
32
|
+
onarcgisBeforeDelete?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeDelete"]>;
|
|
33
|
+
onarcgisBeforeModalClose?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeModalClose"]>;
|
|
34
|
+
onarcgisClose?: EventHandler<ArcgisPortalFieldDelete["arcgisClose"]>;
|
|
35
|
+
onarcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
interface LuminaArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect,
|
|
39
|
-
onarcgisPortalReplacementItemFetch?: EventHandler<
|
|
38
|
+
interface LuminaArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, h.JSX.HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
39
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
declare module "@arcgis/lumina" {
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -9,35 +9,35 @@ import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-p
|
|
|
9
9
|
import { HTMLAttributes } from "preact";
|
|
10
10
|
import type { EventHandler } from "@arcgis/lumina";
|
|
11
11
|
|
|
12
|
-
interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
12
|
+
interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLAttributes<ArcgisPortalClassificationBanner> {
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
16
|
-
onarcgisPropertyChange?: EventHandler<
|
|
15
|
+
interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, HTMLAttributes<ArcgisPortalClassificationConfig> {
|
|
16
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
19
|
+
interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, HTMLAttributes<ArcgisPortalClassificationFavorite> {
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
23
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
22
|
+
interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, HTMLAttributes<ArcgisPortalClassificationFormElement> {
|
|
23
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
interface PreactArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker,
|
|
27
|
-
onarcgisExtentPickerChange?: EventHandler<
|
|
28
|
-
onarcgisExtentPickerClose?: EventHandler<
|
|
29
|
-
onarcgisExtentPickerSave?: EventHandler<
|
|
26
|
+
interface PreactArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker, "active" | "contentOnly" | "extentService" | "extentValue" | "isArea" | "itemId" | "portal">>, HTMLAttributes<ArcgisPortalExtentPicker> {
|
|
27
|
+
onarcgisExtentPickerChange?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerChange"]>;
|
|
28
|
+
onarcgisExtentPickerClose?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerClose"]>;
|
|
29
|
+
onarcgisExtentPickerSave?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerSave"]>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
interface PreactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete,
|
|
33
|
-
onarcgisBeforeDelete?: EventHandler<
|
|
34
|
-
onarcgisBeforeModalClose?: EventHandler<
|
|
35
|
-
onarcgisClose?: EventHandler<
|
|
36
|
-
onarcgisFieldsDeleted?: EventHandler<
|
|
32
|
+
interface PreactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, "config" | "fieldNames" | "layer" | "mapView" | "options">>, HTMLAttributes<ArcgisPortalFieldDelete> {
|
|
33
|
+
onarcgisBeforeDelete?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeDelete"]>;
|
|
34
|
+
onarcgisBeforeModalClose?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeModalClose"]>;
|
|
35
|
+
onarcgisClose?: EventHandler<ArcgisPortalFieldDelete["arcgisClose"]>;
|
|
36
|
+
onarcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
interface PreactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect,
|
|
40
|
-
onarcgisPortalReplacementItemFetch?: EventHandler<
|
|
39
|
+
interface PreactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
40
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare module 'preact' {
|
package/dist/types/react.d.ts
CHANGED
|
@@ -9,35 +9,35 @@ import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-p
|
|
|
9
9
|
import type { HTMLProps } from 'react';
|
|
10
10
|
import type { EventHandler } from "@arcgis/lumina";
|
|
11
11
|
|
|
12
|
-
interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
12
|
+
interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLProps<ArcgisPortalClassificationBanner> {
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
interface ReactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
16
|
-
onarcgisPropertyChange?: EventHandler<
|
|
15
|
+
interface ReactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, HTMLProps<ArcgisPortalClassificationConfig> {
|
|
16
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
interface ReactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
19
|
+
interface ReactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, HTMLProps<ArcgisPortalClassificationFavorite> {
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
23
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
22
|
+
interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, HTMLProps<ArcgisPortalClassificationFormElement> {
|
|
23
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
interface ReactArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker,
|
|
27
|
-
onarcgisExtentPickerChange?: EventHandler<
|
|
28
|
-
onarcgisExtentPickerClose?: EventHandler<
|
|
29
|
-
onarcgisExtentPickerSave?: EventHandler<
|
|
26
|
+
interface ReactArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker, "active" | "contentOnly" | "extentService" | "extentValue" | "isArea" | "itemId" | "portal">>, HTMLProps<ArcgisPortalExtentPicker> {
|
|
27
|
+
onarcgisExtentPickerChange?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerChange"]>;
|
|
28
|
+
onarcgisExtentPickerClose?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerClose"]>;
|
|
29
|
+
onarcgisExtentPickerSave?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerSave"]>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
interface ReactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete,
|
|
33
|
-
onarcgisBeforeDelete?: EventHandler<
|
|
34
|
-
onarcgisBeforeModalClose?: EventHandler<
|
|
35
|
-
onarcgisClose?: EventHandler<
|
|
36
|
-
onarcgisFieldsDeleted?: EventHandler<
|
|
32
|
+
interface ReactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, "config" | "fieldNames" | "layer" | "mapView" | "options">>, HTMLProps<ArcgisPortalFieldDelete> {
|
|
33
|
+
onarcgisBeforeDelete?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeDelete"]>;
|
|
34
|
+
onarcgisBeforeModalClose?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeModalClose"]>;
|
|
35
|
+
onarcgisClose?: EventHandler<ArcgisPortalFieldDelete["arcgisClose"]>;
|
|
36
|
+
onarcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect,
|
|
40
|
-
onarcgisPortalReplacementItemFetch?: EventHandler<
|
|
39
|
+
interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, HTMLProps<ArcgisPortalReplacementItemRedirect> {
|
|
40
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare module "react" {
|