@arcgis/portal-components 5.0.0-next.14 → 5.0.0-next.140
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/2M22BAW3.js +4 -0
- package/dist/cdn/7SFLX2NJ.js +4 -0
- package/dist/cdn/BACNQ4AP.js +6 -0
- package/dist/cdn/BRMGO6M4.js +4 -0
- package/dist/cdn/CFZDEZJ5.js +4 -0
- package/dist/cdn/{YBZHLIFY.js → CKZ4AQIJ.js} +1 -1
- package/dist/cdn/CXTCB6C7.js +4 -0
- package/dist/cdn/F5BFVGJF.js +4 -0
- package/dist/cdn/G7IJQ2TS.js +4 -0
- package/dist/cdn/HQ56AUMW.js +4 -0
- package/dist/cdn/JPJGQTYG.js +4 -0
- package/dist/cdn/KXECN73X.js +4 -0
- package/dist/cdn/{HJFZ3UZA.js → S2MMJDT7.js} +2 -2
- package/dist/cdn/{E2UQO7Z7.js → SWFRE4FH.js} +2 -2
- package/dist/cdn/UXCVRW3L.js +4 -0
- package/dist/cdn/WCJUWWB5.js +4 -0
- package/dist/cdn/ZHVW7NN6.js +4 -0
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.nb.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/fieldAddDelete.js +153 -226
- package/dist/chunks/item.js +103 -0
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/requests.js +2 -2
- package/dist/chunks/runtime.js +2 -2
- 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 +18 -17
- package/dist/components/arcgis-portal-classification-banner/index.d.ts +0 -1
- package/dist/components/arcgis-portal-classification-config/customElement.d.ts +67 -38
- 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 +2 -2
- package/dist/components/arcgis-portal-classification-favorite/index.d.ts +0 -11
- package/dist/components/arcgis-portal-classification-form-element/customElement.d.ts +27 -12
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +7 -7
- package/dist/components/arcgis-portal-classification-form-element/index.d.ts +0 -8
- package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +124 -0
- package/dist/components/arcgis-portal-extent-picker/customElement.js +553 -0
- package/dist/components/arcgis-portal-extent-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-extent-picker/index.js +8 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +60 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/index.js +3 -0
- package/dist/components/arcgis-portal-field-delete/customElement.d.ts +88 -21
- package/dist/components/arcgis-portal-field-delete/customElement.js +81 -78
- package/dist/components/arcgis-portal-field-delete/index.d.ts +0 -9
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +43 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +151 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/index.d.ts +1 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/index.js +6 -0
- package/dist/docs/api.json +1 -1174
- package/dist/docs/docs.json +1 -1076
- package/dist/docs/vscode.css-custom-data.json +1 -6
- package/dist/docs/vscode.html-custom-data.json +1 -98
- package/dist/docs/web-types.json +1 -313
- package/dist/index.d.ts +73 -61
- package/dist/index.js +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js +11 -8
- package/dist/models/classificationModel.d.ts +1 -68
- package/dist/types/classification.d.ts +89 -165
- package/dist/types/components.d.ts +2 -1
- package/dist/types/lumina.d.ts +30 -15
- package/dist/types/preact.d.ts +32 -15
- package/dist/types/react.d.ts +34 -15
- package/dist/types/stencil.d.ts +30 -15
- package/dist/utils/fieldAddDelete.d.ts +12 -3
- package/dist/utils/types.d.ts +25 -24
- package/package.json +8 -7
- package/dist/cdn/GAVE7GOE.js +0 -4
- package/dist/cdn/GCTEBF5M.js +0 -4
- package/dist/cdn/IQGOBW2Z.js +0 -4
- package/dist/cdn/MCC56U5S.js +0 -4
- package/dist/cdn/NIHR6VOM.js +0 -4
- package/dist/cdn/NNI54DSU.js +0 -4
- package/dist/cdn/OB7YFCHE.js +0 -4
- package/dist/cdn/ORW2D6UX.js +0 -4
- package/dist/cdn/UYVWH4TJ.js +0 -6
- package/dist/components/arcgis-portal-field-delete/types.d.ts +0 -5
- 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/types/preact10.d.ts +0 -54
- 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 -11
- 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/url.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,87 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { ArcgisPortalClassificationFavorite } from "./components/arcgis-portal-classification-favorite";
|
|
4
|
-
import type { ArcgisPortalClassificationFormElement } from "./components/arcgis-portal-classification-form-element";
|
|
5
|
-
import type { ArcgisPortalFieldDelete } from "./components/arcgis-portal-field-delete";
|
|
1
|
+
export { canAddField, canDeleteField } from "./utils/fieldAddDelete";
|
|
2
|
+
export { type FieldDeleteOptions, type UserItemInfo } from "./utils/types";
|
|
6
3
|
|
|
7
4
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* Get a resolved path from where an asset can be loaded.
|
|
6
|
+
*
|
|
7
|
+
* @param suffix - The relative path for the asset.
|
|
10
8
|
*/
|
|
11
|
-
export
|
|
12
|
-
export { canAddField, canDeleteField } from './utils/fieldAddDelete';
|
|
13
|
-
export type { FieldDeleteOptions, UserItemInfo } from './utils/types';
|
|
9
|
+
export function getAssetPath(suffix: string): string;
|
|
14
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Used to manually set the base path where package assets (like localization
|
|
13
|
+
* and icons) can be found.
|
|
14
|
+
*
|
|
15
|
+
* By default, the package assets are loaded from
|
|
16
|
+
* `https://js.arcgis.com/<version>/<simplified-package-name>/`. We are hosting
|
|
17
|
+
* our assets on a CDN (Content Delivery Network) to ensure fast and reliable
|
|
18
|
+
* access. It is CORS-enabled, so you can load the assets from any domain. This
|
|
19
|
+
* is the recommended way to load the assets and avoid bundling them with your
|
|
20
|
+
* application.
|
|
21
|
+
*
|
|
22
|
+
* However, if you need to host the assets locally, you can copy them manually
|
|
23
|
+
* as part of your build process and use `setAssetPath` to customize where the
|
|
24
|
+
* browser will load the assets from.
|
|
25
|
+
*
|
|
26
|
+
* @param path - Relative or absolute path to the assets folder.
|
|
27
|
+
*/
|
|
28
|
+
export function setAssetPath(path: URL | string): void;
|
|
29
|
+
|
|
30
|
+
import type { ArcgisPortalClassificationBanner } from "./components/arcgis-portal-classification-banner/customElement.js";
|
|
31
|
+
import type { ArcgisPortalClassificationConfig } from "./components/arcgis-portal-classification-config/customElement.js";
|
|
32
|
+
import type { ArcgisPortalClassificationFavorite } from "./components/arcgis-portal-classification-favorite/customElement.js";
|
|
33
|
+
import type { ArcgisPortalClassificationFormElement } from "./components/arcgis-portal-classification-form-element/customElement.js";
|
|
34
|
+
import type { ArcgisPortalExtentPicker } from "./components/arcgis-portal-extent-picker/customElement.js";
|
|
35
|
+
import type { ArcgisPortalFieldDelete } from "./components/arcgis-portal-field-delete/customElement.js";
|
|
36
|
+
import type { ArcgisPortalReplacementItemRedirect } from "./components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
37
|
+
|
|
38
|
+
export { ToEvents, TargetedEvent } from "@arcgis/lumina";
|
|
15
39
|
|
|
16
40
|
export interface ArcgisPortalClassificationConfigCustomEvent<T> extends CustomEvent<T> {
|
|
17
41
|
detail: T;
|
|
18
|
-
target:
|
|
19
|
-
currentTarget:
|
|
42
|
+
target: ArcgisPortalClassificationConfig;
|
|
43
|
+
currentTarget: ArcgisPortalClassificationConfig;
|
|
20
44
|
}
|
|
21
45
|
export interface ArcgisPortalClassificationFormElementCustomEvent<T> extends CustomEvent<T> {
|
|
22
46
|
detail: T;
|
|
23
|
-
target:
|
|
24
|
-
currentTarget:
|
|
47
|
+
target: ArcgisPortalClassificationFormElement;
|
|
48
|
+
currentTarget: ArcgisPortalClassificationFormElement;
|
|
49
|
+
}
|
|
50
|
+
export interface ArcgisPortalExtentPickerCustomEvent<T> extends CustomEvent<T> {
|
|
51
|
+
detail: T;
|
|
52
|
+
target: ArcgisPortalExtentPicker;
|
|
53
|
+
currentTarget: ArcgisPortalExtentPicker;
|
|
25
54
|
}
|
|
26
55
|
export interface ArcgisPortalFieldDeleteCustomEvent<T> extends CustomEvent<T> {
|
|
27
56
|
detail: T;
|
|
28
|
-
target:
|
|
29
|
-
currentTarget:
|
|
57
|
+
target: ArcgisPortalFieldDelete;
|
|
58
|
+
currentTarget: ArcgisPortalFieldDelete;
|
|
59
|
+
}
|
|
60
|
+
export interface ArcgisPortalReplacementItemRedirectCustomEvent<T> extends CustomEvent<T> {
|
|
61
|
+
detail: T;
|
|
62
|
+
target: ArcgisPortalReplacementItemRedirect;
|
|
63
|
+
currentTarget: ArcgisPortalReplacementItemRedirect;
|
|
30
64
|
}
|
|
31
65
|
|
|
32
|
-
export { ToEvents, TargetedEvent } from "@arcgis/lumina";
|
|
33
66
|
|
|
34
67
|
declare global {
|
|
35
68
|
interface HTMLElementTagNameMap {
|
|
36
|
-
"arcgis-portal-classification-banner":
|
|
37
|
-
"arcgis-portal-classification-config":
|
|
38
|
-
"arcgis-portal-classification-favorite":
|
|
39
|
-
"arcgis-portal-classification-form-element":
|
|
40
|
-
"arcgis-portal-
|
|
69
|
+
"arcgis-portal-classification-banner": ArcgisPortalClassificationBanner;
|
|
70
|
+
"arcgis-portal-classification-config": ArcgisPortalClassificationConfig;
|
|
71
|
+
"arcgis-portal-classification-favorite": ArcgisPortalClassificationFavorite;
|
|
72
|
+
"arcgis-portal-classification-form-element": ArcgisPortalClassificationFormElement;
|
|
73
|
+
"arcgis-portal-extent-picker": ArcgisPortalExtentPicker;
|
|
74
|
+
"arcgis-portal-field-delete": ArcgisPortalFieldDelete;
|
|
75
|
+
"arcgis-portal-replacement-item-redirect": ArcgisPortalReplacementItemRedirect;
|
|
76
|
+
|
|
41
77
|
}
|
|
42
78
|
|
|
43
|
-
|
|
79
|
+
type HTMLArcgisPortalClassificationBannerElement = ArcgisPortalClassificationBanner;
|
|
44
80
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"arcgisPropertyChange": ArcgisPortalClassificationConfig["arcgisPropertyChange"]["detail"];
|
|
48
|
-
}
|
|
81
|
+
type HTMLArcgisPortalClassificationConfigElementEventMap = ArcgisPortalClassificationConfig["@eventTypes"];
|
|
82
|
+
type HTMLArcgisPortalClassificationConfigElement = ArcgisPortalClassificationConfig;
|
|
49
83
|
|
|
50
|
-
|
|
51
|
-
addEventListener<K extends keyof HTMLArcgisPortalClassificationConfigElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationConfigElement, ev: ArcgisPortalClassificationConfigCustomEvent<HTMLArcgisPortalClassificationConfigElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
52
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
53
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
54
|
-
removeEventListener<K extends keyof HTMLArcgisPortalClassificationConfigElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationConfigElement, ev: ArcgisPortalClassificationConfigCustomEvent<HTMLArcgisPortalClassificationConfigElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
55
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
56
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
57
|
-
}
|
|
58
|
-
interface HTMLArcgisPortalClassificationFavoriteElement extends ArcgisPortalClassificationFavorite {
|
|
84
|
+
type HTMLArcgisPortalClassificationFavoriteElement = ArcgisPortalClassificationFavorite;
|
|
59
85
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
86
|
+
type HTMLArcgisPortalClassificationFormElementElementEventMap = ArcgisPortalClassificationFormElement["@eventTypes"];
|
|
87
|
+
type HTMLArcgisPortalClassificationFormElementElement = ArcgisPortalClassificationFormElement;
|
|
88
|
+
|
|
89
|
+
type HTMLArcgisPortalExtentPickerElementEventMap = ArcgisPortalExtentPicker["@eventTypes"];
|
|
90
|
+
type HTMLArcgisPortalExtentPickerElement = ArcgisPortalExtentPicker;
|
|
91
|
+
|
|
92
|
+
type HTMLArcgisPortalFieldDeleteElementEventMap = ArcgisPortalFieldDelete["@eventTypes"];
|
|
93
|
+
type HTMLArcgisPortalFieldDeleteElement = ArcgisPortalFieldDelete;
|
|
94
|
+
|
|
95
|
+
type HTMLArcgisPortalReplacementItemRedirectElementEventMap = ArcgisPortalReplacementItemRedirect["@eventTypes"];
|
|
96
|
+
type HTMLArcgisPortalReplacementItemRedirectElement = ArcgisPortalReplacementItemRedirect;
|
|
64
97
|
|
|
65
|
-
interface HTMLArcgisPortalClassificationFormElementElement extends ArcgisPortalClassificationFormElement {
|
|
66
|
-
addEventListener<K extends keyof HTMLArcgisPortalClassificationFormElementElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationFormElementElement, ev: ArcgisPortalClassificationFormElementCustomEvent<HTMLArcgisPortalClassificationFormElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
67
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
68
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
69
|
-
removeEventListener<K extends keyof HTMLArcgisPortalClassificationFormElementElementEventMap>(type: K, listener: (this: HTMLArcgisPortalClassificationFormElementElement, ev: ArcgisPortalClassificationFormElementCustomEvent<HTMLArcgisPortalClassificationFormElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
70
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
71
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
72
|
-
}
|
|
73
|
-
interface HTMLArcgisPortalFieldDeleteElementEventMap {
|
|
74
|
-
"arcgisBeforeModalClose": ArcgisPortalFieldDelete["arcgisBeforeModalClose"]["detail"];
|
|
75
|
-
"arcgisClose": ArcgisPortalFieldDelete["arcgisClose"]["detail"];
|
|
76
|
-
"arcgisFieldsDeleted": ArcgisPortalFieldDelete["arcgisFieldsDeleted"]["detail"];
|
|
77
|
-
}
|
|
78
98
|
|
|
79
|
-
interface HTMLArcgisPortalFieldDeleteElement extends ArcgisPortalFieldDelete {
|
|
80
|
-
addEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
81
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
82
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
83
|
-
removeEventListener<K extends keyof HTMLArcgisPortalFieldDeleteElementEventMap>(type: K, listener: (this: HTMLArcgisPortalFieldDeleteElement, ev: ArcgisPortalFieldDeleteCustomEvent<HTMLArcgisPortalFieldDeleteElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
84
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
85
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
86
|
-
}
|
|
87
99
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { g as a, s as t } from "./chunks/runtime.js";
|
|
|
2
2
|
import { c as o, a as r } from "./chunks/fieldAddDelete.js";
|
|
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.
|
|
5
|
+
v5.0.0-next.140 */
|
|
6
6
|
export {
|
|
7
7
|
o as canAddField,
|
|
8
8
|
r as canDeleteField,
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./index";
|
|
1
|
+
import "./index.js";
|
|
2
2
|
export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;
|
package/dist/loader.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
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 s = t(
|
|
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-
|
|
5
|
+
v5.0.0-next.140 */
|
|
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
|
+
"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:,messages:,options:"],
|
|
14
|
+
"arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,portal:,t9n:,user:;setFocus"]
|
|
12
15
|
});
|
|
13
16
|
export {
|
|
14
17
|
s as defineCustomElements
|
|
@@ -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?: string;
|
|
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
|
+
}>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/** @deprecated import from stencil.d.ts instead */
|
|
2
|
+
export * from "./stencil.js";
|