@arcgis/portal-components 5.0.0-next.14 → 5.0.0-next.141
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/2QNNOF35.js +4 -0
- package/dist/cdn/3PW365TA.js +4 -0
- package/dist/cdn/3TWP2RZQ.js +4 -0
- package/dist/cdn/{YBZHLIFY.js → 445AZMC5.js} +1 -1
- package/dist/cdn/DA4DAZQZ.js +4 -0
- package/dist/cdn/FCSBMJLE.js +4 -0
- package/dist/cdn/{E2UQO7Z7.js → FECCDTEG.js} +2 -2
- package/dist/cdn/FHB4YXY5.js +6 -0
- package/dist/cdn/LDGKDN4B.js +4 -0
- package/dist/cdn/LJFF4SBX.js +4 -0
- package/dist/cdn/MUZZAYF2.js +4 -0
- package/dist/cdn/PO7P4R6V.js +4 -0
- package/dist/cdn/PUHQ4XQ5.js +4 -0
- package/dist/cdn/SXN747Q7.js +4 -0
- package/dist/cdn/THZEVQB5.js +4 -0
- package/dist/cdn/XINMYRZV.js +4 -0
- package/dist/cdn/{HJFZ3UZA.js → ZX56HBSP.js} +2 -2
- 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/types/lumina.d.ts
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
/// <reference types="../index.d.ts" />
|
|
2
|
-
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
|
|
3
|
-
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
|
|
4
|
-
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
|
|
5
|
-
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
|
|
6
|
-
import type {
|
|
2
|
+
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
|
|
3
|
+
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
|
|
4
|
+
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
|
|
5
|
+
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
6
|
+
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
7
|
+
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
8
|
+
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
7
9
|
import type { h, EventHandler } from "@arcgis/lumina";
|
|
8
10
|
|
|
9
|
-
interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
11
|
+
interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationBanner> {
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
interface LuminaArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
13
|
-
onarcgisPropertyChange?: EventHandler<
|
|
14
|
+
interface LuminaArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationConfig> {
|
|
15
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
interface LuminaArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
18
|
+
interface LuminaArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationFavorite> {
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
interface LuminaArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
20
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
21
|
+
interface LuminaArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationFormElement> {
|
|
22
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
interface
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
}
|
|
30
|
+
|
|
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
|
+
}
|
|
37
|
+
|
|
38
|
+
interface LuminaArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, h.JSX.HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
39
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
27
40
|
}
|
|
28
41
|
|
|
29
42
|
declare module "@arcgis/lumina" {
|
|
@@ -33,7 +46,9 @@ declare module "@arcgis/lumina" {
|
|
|
33
46
|
"arcgis-portal-classification-config": LuminaArcgisPortalClassificationConfig;
|
|
34
47
|
"arcgis-portal-classification-favorite": LuminaArcgisPortalClassificationFavorite;
|
|
35
48
|
"arcgis-portal-classification-form-element": LuminaArcgisPortalClassificationFormElement;
|
|
49
|
+
"arcgis-portal-extent-picker": LuminaArcgisPortalExtentPicker;
|
|
36
50
|
"arcgis-portal-field-delete": LuminaArcgisPortalFieldDelete;
|
|
51
|
+
"arcgis-portal-replacement-item-redirect": LuminaArcgisPortalReplacementItemRedirect;
|
|
37
52
|
}
|
|
38
53
|
}
|
|
39
54
|
}
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
/// <reference types="../index.d.ts" />
|
|
2
|
-
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
|
|
3
|
-
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
|
|
4
|
-
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
|
|
5
|
-
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
|
|
6
|
-
import type {
|
|
2
|
+
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
|
|
3
|
+
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
|
|
4
|
+
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
|
|
5
|
+
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
6
|
+
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
7
|
+
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
8
|
+
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
7
9
|
import { HTMLAttributes } from "preact";
|
|
8
10
|
import type { EventHandler } from "@arcgis/lumina";
|
|
9
11
|
|
|
10
|
-
interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
12
|
+
interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLAttributes<ArcgisPortalClassificationBanner> {
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
14
|
-
onarcgisPropertyChange?: EventHandler<
|
|
15
|
+
interface PreactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, HTMLAttributes<ArcgisPortalClassificationConfig> {
|
|
16
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
19
|
+
interface PreactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, HTMLAttributes<ArcgisPortalClassificationFavorite> {
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
21
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
22
|
+
interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, HTMLAttributes<ArcgisPortalClassificationFormElement> {
|
|
23
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
interface
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
}
|
|
31
|
+
|
|
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
|
+
}
|
|
38
|
+
|
|
39
|
+
interface PreactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
40
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
declare module 'preact' {
|
|
@@ -34,7 +47,9 @@ declare module 'preact' {
|
|
|
34
47
|
"arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
|
|
35
48
|
"arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
|
|
36
49
|
"arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
|
|
50
|
+
"arcgis-portal-extent-picker": PreactArcgisPortalExtentPicker;
|
|
37
51
|
"arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
|
|
52
|
+
"arcgis-portal-replacement-item-redirect": PreactArcgisPortalReplacementItemRedirect;
|
|
38
53
|
}
|
|
39
54
|
}
|
|
40
55
|
namespace h.JSX {
|
|
@@ -43,7 +58,9 @@ declare module 'preact' {
|
|
|
43
58
|
"arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
|
|
44
59
|
"arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
|
|
45
60
|
"arcgis-portal-classification-form-element": PreactArcgisPortalClassificationFormElement;
|
|
61
|
+
"arcgis-portal-extent-picker": PreactArcgisPortalExtentPicker;
|
|
46
62
|
"arcgis-portal-field-delete": PreactArcgisPortalFieldDelete;
|
|
63
|
+
"arcgis-portal-replacement-item-redirect": PreactArcgisPortalReplacementItemRedirect;
|
|
47
64
|
}
|
|
48
65
|
}
|
|
49
66
|
}
|
package/dist/types/react.d.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
/// <reference types="../index.d.ts" />
|
|
2
|
-
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
|
|
3
|
-
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
|
|
4
|
-
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
|
|
5
|
-
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
|
|
6
|
-
import type {
|
|
2
|
+
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
|
|
3
|
+
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
|
|
4
|
+
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
|
|
5
|
+
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
6
|
+
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
7
|
+
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
8
|
+
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
7
9
|
import type { HTMLProps } from 'react';
|
|
8
10
|
import type { EventHandler } from "@arcgis/lumina";
|
|
9
11
|
|
|
10
|
-
interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
12
|
+
interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLProps<ArcgisPortalClassificationBanner> {
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
interface ReactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
14
|
-
onarcgisPropertyChange?: EventHandler<
|
|
15
|
+
interface ReactArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, HTMLProps<ArcgisPortalClassificationConfig> {
|
|
16
|
+
onarcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
interface ReactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
19
|
+
interface ReactArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, HTMLProps<ArcgisPortalClassificationFavorite> {
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
21
|
-
onarcgisAttributeValueChange?: EventHandler<
|
|
22
|
+
interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, HTMLProps<ArcgisPortalClassificationFormElement> {
|
|
23
|
+
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
interface
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
}
|
|
31
|
+
|
|
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
|
+
}
|
|
38
|
+
|
|
39
|
+
interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, HTMLProps<ArcgisPortalReplacementItemRedirect> {
|
|
40
|
+
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
declare module "react" {
|
|
@@ -34,7 +47,9 @@ declare module "react" {
|
|
|
34
47
|
"arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
|
|
35
48
|
"arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
|
|
36
49
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
50
|
+
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
37
51
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
52
|
+
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
38
53
|
}
|
|
39
54
|
}
|
|
40
55
|
}
|
|
@@ -45,7 +60,9 @@ declare module "react/jsx-runtime" {
|
|
|
45
60
|
"arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
|
|
46
61
|
"arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
|
|
47
62
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
63
|
+
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
48
64
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
65
|
+
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
49
66
|
}
|
|
50
67
|
}
|
|
51
68
|
}
|
|
@@ -56,7 +73,9 @@ declare module "react/jsx-dev-runtime" {
|
|
|
56
73
|
"arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
|
|
57
74
|
"arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
|
|
58
75
|
"arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
|
|
76
|
+
"arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
|
|
59
77
|
"arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
|
|
78
|
+
"arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
|
|
60
79
|
}
|
|
61
80
|
}
|
|
62
81
|
}
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
/// <reference types="../index.d.ts" />
|
|
2
|
-
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner";
|
|
3
|
-
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config";
|
|
4
|
-
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite";
|
|
5
|
-
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element";
|
|
6
|
-
import type {
|
|
2
|
+
import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
|
|
3
|
+
import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
|
|
4
|
+
import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
|
|
5
|
+
import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
|
|
6
|
+
import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
|
|
7
|
+
import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
|
|
8
|
+
import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
|
|
7
9
|
import { JSXBase as StencilJsx } from "@stencil/core/internal";
|
|
8
10
|
import type { EventHandler } from "@arcgis/lumina";
|
|
9
11
|
|
|
10
|
-
interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner,
|
|
12
|
+
interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationBanner> {
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
interface StencilArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig,
|
|
14
|
-
onArcgisPropertyChange?: EventHandler<
|
|
15
|
+
interface StencilArcgisPortalClassificationConfig extends Required<Pick<ArcgisPortalClassificationConfig, "portalItem">>, Partial<Pick<ArcgisPortalClassificationConfig, "valid" | "values">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationConfig> {
|
|
16
|
+
onArcgisPropertyChange?: EventHandler<ArcgisPortalClassificationConfig["arcgisPropertyChange"]>;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
interface StencilArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite,
|
|
19
|
+
interface StencilArcgisPortalClassificationFavorite extends Partial<Pick<ArcgisPortalClassificationFavorite, "attributeExpressionResults" | "classificationValue" | "favoriteClassifications" | "portalItem" | "resetFavoriteClassification" | "selectedFavoriteClassificationName" | "updateClassificationData">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationFavorite> {
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
interface StencilArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement,
|
|
21
|
-
onArcgisAttributeValueChange?: EventHandler<
|
|
22
|
+
interface StencilArcgisPortalClassificationFormElement extends Partial<Pick<ArcgisPortalClassificationFormElement, "attribute" | "attributeKey" | "isRequiredErrors" | "renderingInfo" | "value">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationFormElement> {
|
|
23
|
+
onArcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
interface
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
interface StencilArcgisPortalExtentPicker extends Partial<Pick<ArcgisPortalExtentPicker, "active" | "contentOnly" | "extentService" | "extentValue" | "isArea" | "itemId" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalExtentPicker> {
|
|
27
|
+
onArcgisExtentPickerChange?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerChange"]>;
|
|
28
|
+
onArcgisExtentPickerClose?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerClose"]>;
|
|
29
|
+
onArcgisExtentPickerSave?: EventHandler<ArcgisPortalExtentPicker["arcgisExtentPickerSave"]>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface StencilArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDelete, "config" | "fieldNames" | "layer" | "mapView" | "options">>, StencilJsx.HTMLAttributes<ArcgisPortalFieldDelete> {
|
|
33
|
+
onArcgisBeforeDelete?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeDelete"]>;
|
|
34
|
+
onArcgisBeforeModalClose?: EventHandler<ArcgisPortalFieldDelete["arcgisBeforeModalClose"]>;
|
|
35
|
+
onArcgisClose?: EventHandler<ArcgisPortalFieldDelete["arcgisClose"]>;
|
|
36
|
+
onArcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface StencilArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPortalReplacementItemRedirect, "itemId" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalReplacementItemRedirect> {
|
|
40
|
+
onArcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
interface ExposedElements {
|
|
@@ -32,7 +45,9 @@ interface ExposedElements {
|
|
|
32
45
|
"arcgis-portal-classification-config": StencilArcgisPortalClassificationConfig;
|
|
33
46
|
"arcgis-portal-classification-favorite": StencilArcgisPortalClassificationFavorite;
|
|
34
47
|
"arcgis-portal-classification-form-element": StencilArcgisPortalClassificationFormElement;
|
|
48
|
+
"arcgis-portal-extent-picker": StencilArcgisPortalExtentPicker;
|
|
35
49
|
"arcgis-portal-field-delete": StencilArcgisPortalFieldDelete;
|
|
50
|
+
"arcgis-portal-replacement-item-redirect": StencilArcgisPortalReplacementItemRedirect;
|
|
36
51
|
}
|
|
37
52
|
|
|
38
53
|
export namespace JSX {
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
import { FieldDeleteOptions } from
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { FieldDeleteOptions } from "./types.js";
|
|
3
|
+
|
|
4
|
+
/** @param layer */
|
|
5
|
+
export function canAddField(layer: any): Promise<boolean>;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @param mapView
|
|
9
|
+
* @param layer
|
|
10
|
+
* @param field
|
|
11
|
+
* @param options
|
|
12
|
+
*/
|
|
13
|
+
export function canDeleteField(mapView: __esri.MapView | undefined, layer: any, field: __esri.Field, options?: FieldDeleteOptions): Promise<boolean>;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
2
|
+
|
|
3
|
+
/** Configuration */
|
|
5
4
|
export interface IConfig {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
arcadeEditor?: string;
|
|
6
|
+
jsapiUrl?: string;
|
|
7
|
+
helpMap?: Record<string, string>;
|
|
8
|
+
helpBase?: string;
|
|
10
9
|
}
|
|
10
|
+
|
|
11
11
|
export interface FieldDeleteOptions {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
item: __esri.PortalItem;
|
|
13
|
+
portal: __esri.Portal;
|
|
14
|
+
handleCloseOnConsumer?: boolean;
|
|
15
|
+
ignorePopupTemplate?: boolean;
|
|
16
|
+
ignoreLayerRenderer?: boolean;
|
|
17
|
+
ignoreLayerFeatureReduction?: boolean;
|
|
18
|
+
ignoreLayerLabelingInfo?: boolean;
|
|
19
|
+
ignoreLayerDefinitionExpression?: boolean;
|
|
20
|
+
ignoreItemRenderer?: boolean;
|
|
21
|
+
ignoreItemFeatureReduction?: boolean;
|
|
22
|
+
userItemInfo?: UserItemInfo;
|
|
23
23
|
}
|
|
24
|
+
|
|
24
25
|
export interface UserItemInfo {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
26
|
+
itemData: any;
|
|
27
|
+
userGroups: any[];
|
|
28
|
+
itemGroups: any[];
|
|
29
|
+
relatedItems: any[];
|
|
30
|
+
fieldGroups: any[];
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.141",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -38,15 +38,16 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/
|
|
42
|
-
"@
|
|
43
|
-
"@lit/task": "^1.0.2",
|
|
41
|
+
"@arcgis/app-components": "~4.15.9",
|
|
42
|
+
"@lit/task": "^1.0.3",
|
|
44
43
|
"lit": "^3.3.0",
|
|
45
|
-
"tslib": "^2.8.1"
|
|
44
|
+
"tslib": "^2.8.1",
|
|
45
|
+
"@arcgis/lumina": "5.0.0-next.141",
|
|
46
|
+
"@arcgis/toolkit": "5.0.0-next.141"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"@arcgis/core": ">=5.0.0-next.
|
|
49
|
-
"@esri/calcite-components": "^
|
|
49
|
+
"@arcgis/core": ">=5.0.0-next.62 <5.1",
|
|
50
|
+
"@esri/calcite-components": "^5.0.0-next.28"
|
|
50
51
|
},
|
|
51
52
|
"css.customData": [
|
|
52
53
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/GAVE7GOE.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.14 */
|
|
4
|
-
import d from"./ORW2D6UX.js";import c from"./YBZHLIFY.js";import a from"./E2UQO7Z7.js";import{a as E,b as I}from"./OB7YFCHE.js";import{b as x,c as P,d as $}from"./MCC56U5S.js";import{B as u,C as g,D as b,F as C,I as y,h as p,j as n}from"./UYVWH4TJ.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},{a:d,b:c,c:m,d:R,e:O,f:_},{a:S,b:w}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await N(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function N(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function M({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var V=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):J(r,t)},J=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await L(r)).execute(e)}async function L(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var W=p`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,f=class extends b{constructor(){super(),this.classificationModel=S(this),this.messages=$(),this.formMainContentRef=u(),this._classificationDataTask=w(this),this._formCreationTask=new I(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await V(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this._itemClassificationWatchHandle&&(this._itemClassificationWatchHandle.remove(),this.portalItem.removeHandles("arcgis-classification-config"),this._itemClassificationWatchHandle=void 0),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this.portalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=m(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=P()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=W}async destroy(){await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=d(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await O(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=x(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=m(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await V(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await M({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,A=e[o]?.valueExpressionResult,D=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:A,attributeValidationResult:D})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===E.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${g(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",f);return f},"arcade","core/reactiveUtils",a,c,d)
|
package/dist/cdn/GCTEBF5M.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.14 */
|
|
4
|
-
import{b as J}from"./OB7YFCHE.js";import{d as B}from"./MCC56U5S.js";import{B as S,C as A,D as j,G as D,I as R,h as M,j as y,p as x}from"./UYVWH4TJ.js";export default $arcgis.t(([H,ge,we,be,$,I,Y,X,k,P,T])=>{var C=(i=>(i.expression="expression/",i.raster="Raster.",i.relationship="relationships/",i))(C||{});function N(i){return i!=null}function W(i,e){let t=i.fieldName;if(t.includes(C.expression)){let s=e.get(t);return s?.title?s.title:t}else return i.label?i.label:t}function q(i,e,t){let s="";if(/^raster.(?:item|service)pixelvalue/iu.test(i))s="number";else if(e.has(i)){let r=e.get(i);s=r.type?r.type.toLowerCase():""}else if(t.has(i)){let r=t.get(i);s=r.returnType?r.returnType.toLowerCase():""}else s="number";return s}async function _(i){return new Map((await Z(i)).filter(e=>e.visible).map(e=>[e.name,e]))}function V(i){let e=new Map;return i?.expressionInfos&&i.expressionInfos.forEach(t=>{let s=`${C.expression}${t.name}`;e.set(s,t)}),e}async function Z(i){return await new Promise((e,t)=>{switch(i.type){case"feature":case"ogc-feature":case"stream":e(i.fields);break;case"sublayer":{let s=i,r=s?.layer;r?.portalItem&&r.url.includes("https://demographics")&&r.url.includes(".arcgis.com")?r.portalItem?.fetchData().then(a=>{if(a?.thematicGroup){let n=new Map(s.fields.map(o=>[o.name,o])),c=a.thematicGroup.fieldNames,p=[];c.forEach(o=>{n.has(o)&&p.push(n.get(o))}),e(p)}else e(s.fields)}).catch(a=>{t(new Error(a))}):e(s.fields);break}case"imagery":case"imagery-tile":case"wcs":e(i.rasterFields);break;default:e("fields"in i?i.fields??[]:[])}})}var ee=i=>i&&!i.endsWith("/")?`${i}/`:i;function F(i){return ee(i.restUrl)}function te(i,e){return z(i,e)||ie(i,e)}function z(i,e){return i.owner===e.username}function ie(i,e){let t=i.owner,s=i.itemControl==="admin",r=["esri_livingatlas","esri_demographics","esri_boundaries"];return i.portal?.isPortal&&!z(i,e)&&s&&t?.includes("esri_")&&!r.includes(t)?!1:s}function se(i){return i.typeKeywords?.includes("Spatiotemporal")}function re(i){return i.typeKeywords?.includes("View Service")}function ae(i){return i.typeKeywords?.includes("Hosted Service")}function ne(i){return i.typeKeywords?.includes("Multi Services View")}function oe(i){return i?.hasViews&&!i.sourceSchemaChangesAllowed}async function le(i){let e=i?.portalItem;if(!e)return await Promise.resolve(null);let t=e.portal;if(t?.user){let s=`${F(t)}community/users/${t.user.username}`;return await P(s,{query:{f:"json",token:e.portal.credential?.token},responseType:"json"}).then(async r=>{let a=r.data?.groups??[];return await Promise.resolve(a)},async()=>await Promise.reject(new Error("Failed to fetch user groups")))}return await Promise.resolve(null)}async function de(i){let e=i?.portalItem;if(!e)return await Promise.resolve(null);let t=e.portal,s=`${F(t)}content/items/${e.id}/groups`;return await P(s,{query:{f:"json",token:e.portal.credential?.token},responseType:"json"}).then(async r=>{let a=r.data?.admin??[],n=r.data?.member??[],c=r.data?.other??[],p=[...a,...n,...c];return await Promise.resolve(p)},async()=>await Promise.reject(new Error("Failed to fetch item groups")))}async function ce(i,e,{relationshipType:t,direction:s}){let r=`${F(e)}content/items/${i}/relatedItems`;return await P(r,{query:{f:"json",relationshipType:t,direction:s},responseType:"json"})}function pe(i,e){return i?.some(t=>e?.some(s=>t.id===s.id&&t.capabilities.includes("updateitemcontrol")))}function d(i,e){return!i||!e?!1:i.toLocaleLowerCase()===e.toLocaleLowerCase()}async function U(i,e,t,s){if(!t)return!1;let r=["feature","oriented-imagery"].includes(e.type),a=s?.item??e.portalItem,n=e.sourceJSON;if(!r||!a||!a.portal.user||!ae(a)||re(a)||ne(a)||oe(n)||a.portal.isPortal&&se(a)||["oid","global-id","geometry"].includes(t.type))return!1;let c=e.sourceJSON.geometryProperties,p=c?.shapeLengthFieldName,o=c?.shapeAreaFieldName;if(d(p,t.name)||d(o,t.name))return!1;let l=e.editFieldsInfo;if(l&&(d(l.creationDateField,t.name)||d(l.creatorField,t.name)||d(l.editDateField,t.name)||d(l.editorField,t.name))||d(e.objectIdField,t.name)||d(e.displayField,t.name)||d(e.typeIdField,t.name)||d(e.subtypeField,t.name)||e.timeInfo&&(d(e.timeInfo.startField,t.name)||d(e.timeInfo.endField,t.name)||d(e.timeInfo.trackIdField,t.name)))return!1;if(!s?.ignoreLayerRenderer&&e.featureReduction){let u=new Set;if(await I.collectFeatureReductionFields(u,e,e.featureReduction),Array.from(u).some(b=>d(b,t.name)))return!1}if(!s?.ignoreLayerRenderer&&(await I.getRendererFields(e.renderer,e.fieldsIndex)).some(u=>d(u,t.name)))return!1;if(!s?.ignoreLayerLabelingInfo){let u=e.labelingInfo?.map(b=>b.labelExpressionInfo?.expression);if(u&&((await I.getExpressionFields(e,u)).some(b=>d(b,t.name))||await G(e,t,"layer")))return!1}if(!s?.ignoreLayerDefinitionExpression&&e.definitionExpression&&(await T.parseWhereClause(e.definitionExpression,e.fieldsIndex)).fieldNames.some(u=>d(u,t.name))||await ue(e,t,s)||await me(e,t))return!1;if(await he(e,t))return await Promise.resolve(!1);if(await ye(e,t))return await Promise.resolve(!1);if(fe(i,e,t)||e.relationships?.map(u=>u.keyField)?.some(u=>d(u,t.name)))return!1;let f=te(a,a.portal.user),v=s?.userItemInfo?.userGroups??await le(e)??[],h=s?.userItemInfo?.itemGroups??await de(e)??[],w=pe(v,h);if(!f&&!w)return!1;let g=s?.userItemInfo?.relatedItems??await ce(a.id,a.portal,{relationshipType:"Service2Service"});return!(g?.data?.relatedItems&&g.data.relatedItems.some(u=>["WMTS","Map Service","Vector Tile Service"].includes(u.type)))}function fe(i,e,t){if(!i)return!1;let s=i.map?.applicationProperties?.viewing?.search;if(s){let r=s.layers?.find(a=>a.id===e.id);if(r){let a=r?.field?.name;if(a)return d(a,t.name)}}return!1}async function G(i,e,t){let s=t==="layer"?i.labelingInfo?.filter(n=>N(n.where)):i.sourceJSON?.drawingInfo?.labelingInfo?.filter(n=>N(n.where));if(!s?.length)return!1;let r=[...await Promise.all(s.map(async n=>await T.parseWhereClause(n.where,i.fieldsIndex)))],a=!1;for(let n=0;n<r.length;n++){let c=r[n].fieldNames?.some(p=>d(p,e.name));if(!a&&c){a=!0;break}}return await Promise.resolve(a)}async function ue(i,e,t){let s=i.portalItem;if(!s)return!1;let r=`${F(s.portal)}content/items/${s.id}/data`,a=(t?.userItemInfo?.itemData??await P(r,{query:{f:"json"},responseType:"json"}))?.data;if(!a)return!1;if(a?.layers){let n=a.layers.find(l=>l.id===i.layerId),c=n?.layerDefinition?.drawingInfo?.renderer,p=n?.layerDefinition?.featureReduction,o=n?.layerDefinition?.definitionExpression;if(!c&&!p&&!o)return!1;if(!t?.ignoreItemRenderer&&c){let l=k.fromJSON(c);if((await I.getRendererFields(l,i.fieldsIndex)).some(f=>d(f,e.name)))return!0}if(!t?.ignoreItemFeatureReduction&&p&&await K(i,e,p)||o&&(await T.parseWhereClause(o,i.fieldsIndex)).fieldNames.some(l=>d(l,e.name)))return!0}return!1}async function me(i,e){let t=i.sourceJSON,s=t?.drawingInfo?.renderer,r=t?.featureReduction;if(!s&&!r)return!1;if(s){let a=k.fromJSON(s);if((await I.getRendererFields(a,i.fieldsIndex)).some(n=>d(n,e.name)))return!0}return!!(r&&await K(i,e,r))}async function he(i,e){let t=i.sourceJSON?.drawingInfo?.labelingInfo;if(!t)return await Promise.resolve(!1);let s=t?.map(r=>r.labelExpressionInfo?.expression);if(s){if((await I.getExpressionFields(i,s)).some(r=>d(r,e.name)))return await Promise.resolve(!0);if(await G(i,e,"service"))return await Promise.resolve(!0)}return await Promise.resolve(!1)}async function ye(i,e){let t=i.sourceJSON?.definitionQuery;return t?(await T.parseWhereClause(t,i.fieldsIndex)).fieldNames.some(s=>d(s,e.name))?await Promise.resolve(!0):await Promise.resolve(!1):await Promise.resolve(!1)}async function K(i,e,t){let s=t.type==="binning"?Y.fromJSON(t):X.fromJSON(t),r=new Set;return await I.collectFeatureReductionFields(r,i,s),!!Array.from(r).some(a=>d(a,e.name))}var m=new Map;m.set("oid","key");m.set("guid","key");m.set("global-id","key");m.set("blob","binary");m.set("integer","integer");m.set("small-integer","integer");m.set("big-integer","integer");m.set("single","number");m.set("double","number");m.set("long","number");m.set("number","number");m.set("date","date-time");m.set("date-only","calendar");m.set("time-only","clock");m.set("timestamp-offset","time-zone");m.set("string","string");var Ie=({fieldType:i})=>y`<calcite-icon scale=s .icon=${m.get(i)}></calcite-icon>`,ve=M`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-spacing-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-spacing-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`,L=class extends j{constructor(){super(...arguments),this.arcadeExpMap=new Map,this.cancelNode=S(),this.dialogNode=S(),this.layerFields=[],this.layerFieldsMap=new Map,this.messages=B({blocking:!0}),this._propWatcherTask=new J(this,{task:async([e,t])=>{if(!(N(e)&&N(t)))throw console.error("Required properties are missing."),new Error;this._propWatcherTask.autoRun=!1,await this.processProps()},args:()=>[this.layer,this.fieldNames]}),this.deleteInProgress=!1,this.fieldsAreDeletable=!1,this.arcgisFieldsDeleted=x(),this.arcgisBeforeModalClose=x(),this.arcgisClose=x()}static{this.properties={currentLayerInfo:16,deleteInProgress:16,fieldsAreDeletable:16,config:0,fieldNames:0,layer:0,mapView:0,options:0}}static{this.styles=ve}async processProps(){let{layer:e,mapView:t,fieldNames:s}=this;if(!e||!s){this.fieldsAreDeletable=!1;return}e.loaded||await e.load(),this.layerFields=e.fields.filter(a=>s.includes(a.name));let r=s.some(a=>!e.fields.find(n=>n.name===a));if(!this.layerFields?.length||r)this.fieldsAreDeletable=!1;else{let a=await Promise.all(this.layerFields.map(async n=>await U(t,e,n,this.options)));if(this.fieldsAreDeletable=a.every(n=>n),!this.fieldsAreDeletable)return}if(this.layerFieldsMap=await _(e),this.options?.ignorePopupTemplate||(this.arcadeExpMap=V(e.popupTemplate)),this.portal=e.portalItem?.portal??this.options?.portal,this.item=e.portalItem??this.options?.item,!this.item){this.fieldsAreDeletable=!1;return}await be.getCredential(this.item.url.replace("rest/services","rest/admin/services"))}getFieldLabel(e){let{layer:t,arcadeExpMap:s}=this;if(this.options?.ignorePopupTemplate)return this.getFieldDisplayNameFromLayerFields(e);{let r=(t.popupTemplate??t.createPopupTemplate()).fieldInfos?.find(a=>a.fieldName===e);return r?W(r,s):this.getFieldDisplayNameFromLayerFields(e)}}getFieldDisplayNameFromLayerFields(e){let t=this.layerFieldsMap.get(e);return t.alias??t.name}async deleteFields(){let{layer:e,fieldNames:t}=this,s=`${e.url.replace("/rest/services","/rest/admin/services")}/${e.layerId}/deleteFromDefinition`,r={fields:t.map(n=>({name:n}))},a={deleteFromDefinition:JSON.stringify(r)};await $(s,{query:{...a,f:"json",async:!1},method:"post",responseType:"json"}).then(async n=>{if(n.data?.success){let c=`${e.url}/${e.layerId}`;t.forEach(o=>{e.type==="feature"&&e.floorInfo?.floorField===o&&(e.floorInfo=null)});let p=await $(c,{query:{f:"json"},responseType:"json"});if(p){let o=p.data;this.currentLayerInfo=p.data,o&&(this.updateTypesAndTemplatesOnLayer(),t.forEach(l=>{o.templates?.length?o.templates.forEach(f=>delete f.prototype.attributes[l]):o.types?.forEach(f=>{f.templates.forEach(v=>delete v.prototype.attributes[l])})}),this.updateFeatureService(o))}else this.handleError()}},()=>this.handleError())}updateTypesAndTemplatesOnLayer(){let{currentLayerInfo:e}=this,t=e;if(t.templates?.length){let s=this.updateTemplatesList(t.templates);t.templates=s}else if(t.types){let s=t.types;t.types=[],s.forEach(r=>{r.templates=this.updateTemplatesList(r.templates),this.addType(t,r)})}}updateTemplatesList(e){let{currentLayerInfo:t,messages:s}=this,r=[];return(e??[]).forEach(a=>{let n=new ge;n.description=a.description??"",n.name=a.name||s.newFeature,n.drawingTool=a.drawingTool||"point";let c={};t.fields.forEach(o=>{let l=!1;for(let f=0;f<a.prototype.attributes.length;f++)if(a.prototype.attributes[f]===o.name){l=!0,c[o.name]=a.prototype.attributes[o.name];break}!l&&o.editable&&(c[o.name]=o.defaultValue||null)});let p=new we({attributes:c});n.prototype=p,r.push(n)}),r}addType(e,t){e.types?e.types.some(s=>s.id===t.id)||e.types.push(t):e.types=[t]}async updateFeatureService(e){let{layer:t,fieldNames:s}=this,r={templates:e.templates,types:e.types},a=`${t.url.replace("/rest/services","/rest/admin/services")}/${t.layerId}/updateDefinition`,n={f:"json",updateDefinition:JSON.stringify(r)};await $(a,{query:{...n,f:"json"},method:"post",responseType:"json"}).then(async c=>{if(c.data?.success){let p=`${F(this.portal)}content/items/${this.item.id}/data`;if(this.options?.ignorePopupTemplate||s.forEach(o=>{t.popupTemplate?.fieldInfos&&(t.popupTemplate.fieldInfos=t.popupTemplate.fieldInfos.filter(l=>l.fieldName!==o)),t.popupTemplate?.content?.forEach((l,f)=>{l.type==="fields"&&l.fieldInfos&&((t.popupTemplate?.content)[f].fieldInfos=(t.popupTemplate?.content)[f].fieldInfos?.filter(v=>v.fieldName!==o))})}),t.attributeTableTemplate){let o=t.attributeTableTemplate.clone();o.elements=o.elements.filter(l=>!(l.type==="field"&&s.includes(l.fieldName))),o.orderByFields=o.orderByFields.filter(l=>!s.includes(l.field)),t.attributeTableTemplate=o}if(t.fieldConfigurations?.length){let o=H.clone(t.fieldConfigurations).filter(l=>!s.includes(l.name));t.fieldConfigurations=o}await $(p,{query:{f:"json"},responseType:"json"}).then(async o=>{let l=o.data;if(l?.layers||l?.tables){let f=t.isTable,v=f?l.tables:l.layers,h=v?.find(w=>w.id===t.layerId);if(s.forEach(w=>{h?.attributeTableInfo?.attributeTableElements&&(h.attributeTableInfo.attributeTableElements=h.attributeTableInfo.attributeTableElements.filter(g=>!(g.type==="field"&&g.fieldName===w)),h.attributeTableInfo.orderByFields=h.attributeTableInfo.orderByFields.filter(g=>g.field!==w))}),h?.layerDefinition?.fieldConfigurations&&(h.layerDefinition.fieldConfigurations=h.layerDefinition.fieldConfigurations.filter(w=>!s.includes(w.name))),h?.popupInfo){s.forEach(b=>{h.popupInfo.fieldInfos=h.popupInfo.fieldInfos.filter(E=>E.fieldName!==b),h.popupInfo.popupElements?.forEach((E,O)=>{E.type==="fields"&&E.fieldInfos&&(h.popupInfo.popupElements[O].fieldInfos=h.popupInfo.popupElements[O].fieldInfos.filter(Q=>Q.fieldName!==b))})});let w=`${F(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`,g={};f?(g.tables=v,l.layers&&(g.layers=l.layers)):(g.layers=v,l.tables&&(g.tables=l.tables));let u={f:"json",text:JSON.stringify(g)};await $(w,{query:{...u},method:"post",responseType:"json"}).then(b=>{b.data?.success?this.handleSuccess():this.handleError()},()=>this.handleError())}else this.handleSuccess()}else o.httpStatus===200&&(!o.data||JSON.stringify(o.data)==="{}")?this.handleSuccess():this.handleError()},()=>this.handleError())}},()=>this.handleError())}handleSuccess(){this.arcgisFieldsDeleted.emit(),this.dialogNode?.value&&(this.dialogNode.value.open=!1),this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("success"):this.displaySuccessAlert()}handleError(e){this.dialogNode?.value&&(this.dialogNode.value.open=!1),e?this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("read-only-error"):this.displayReadOnlyErrorAlert():this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("error"):this.displayErrorAlert()}displaySuccessAlert(){let{messages:e,fieldNames:t}=this;this.successAlertNode&&(this.successAlertNode.parentElement?.removeChild(this.successAlertNode),this.successAlertNode=void 0),this.successAlertNode=D(y`<calcite-alert .label=${t.length===1?e.fieldDeleted:e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${t.length===1?e.fieldDeleted:e.fieldsDeleted}</div></calcite-alert>`),document.body.append(this.successAlertNode)}displayErrorAlert(){let{messages:e}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=D(y`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`),document.body.append(this.errorAlertNode)}displayReadOnlyErrorAlert(){let{messages:e,portal:t}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=D(y`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${t.isPortal?e.readOnlyErrorMessageEnterprise:e.readOnlyErrorMessage}</div>${!t.isPortal&&y`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>`||""}</calcite-alert>`),document.body.append(this.errorAlertNode)}render(){let{messages:e,fieldsAreDeletable:t,fieldNames:s,deleteInProgress:r}=this;return this._propWatcherTask.render({complete:()=>(t||(s?.length?s?.length===1?console.error("Field cannot be deleted"):console.error("One or more fields cannot be deleted"):console.error("You must select at least one field.")),y`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${()=>this.arcgisClose.emit()} .heading=${s?.length===1?e.deleteField:e.deleteFields} ${A(this.dialogNode)}>${t?y`<div class=${`dialog-content-wrapper ${r?"hide-overflow":""}`}>${this.renderDeleteLoader()}<calcite-label>${s.length===1?e.deletePrompt:e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}`:this.renderError()}</calcite-dialog>`)})}renderError(){let{messages:e}=this;return y`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`}renderDeleteLoader(){let{messages:e,fieldNames:t,deleteInProgress:s}=this;return y`<div class=${`loader-container ${s?"active":""}`}><calcite-loader class="loader" .label=${t.length===1?e.deletingField:e.deletingFields} .hidden=${!s}></calcite-loader><div class="loader-text">${t.length===1?e.deletingField:e.deletingFields}</div></div>`}renderFieldsPreview(){let{fieldNames:e,layerFields:t,layerFieldsMap:s,arcadeExpMap:r,messages:a}=this;return y`<calcite-list .label=${a.fields}>${e.map(n=>{let c=t.find(p=>p.name===n);return y`<calcite-list-item .label=${this.getFieldLabel(n)} .description=${`{${n}}`} .value=${n} .disabled=${!c.editable}><div slot=actions-end class="field-icons">${Ie({fieldType:q(n,s,r)})}</div></calcite-list-item>`})}</calcite-list>`}renderCancelButton(){let{messages:e}=this;return y`<calcite-button @click=${()=>this.dialogNode.value.open=!1} slot=footer-end appearance=outline ${A(this.cancelNode)}>${e.cancel}</calcite-button>`}renderDeleteButton(){let{messages:e,fieldNames:t}=this;return y`<calcite-button kind=danger slot=footer-end @click=${async s=>{let{portal:r}=this;s.currentTarget.disabled=!0,this.cancelNode.value.disabled=!0,this.dialogNode.value.closeDisabled=!0,r.sourceJSON?.isReadOnly?this.handleError(!0):(this.deleteInProgress=!0,await this.deleteFields())}}>${t.length===1?e.deleteField:e.deleteFieldsWithNumber.replace("${number}",`${t.length}`)}</calcite-button>`}};R("arcgis-portal-field-delete",L);return L},"core/lang","layers/support/FeatureTemplate","Graphic","identity/IdentityManager","request","layers/support/fieldUtils","layers/support/FeatureReductionBinning","layers/support/FeatureReductionCluster","renderers/support/jsonUtils","request","core/sql")
|
package/dist/cdn/IQGOBW2Z.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.14 */
|
|
4
|
-
import{a as m}from"./HJFZ3UZA.js";import{d as h}from"./MCC56U5S.js";import{D as b,F as a,I as d,h as c,j as i,p as u}from"./UYVWH4TJ.js";var g=c`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;function l(o,e){return o.uiElement===e}var n=class extends b{constructor(){super(...arguments),this.messages=h(),this.isRequiredErrors=new Set,this.arcgisAttributeValueChange=u()}static{this.properties={validationMsg:16,attributeKey:1,attribute:0,value:0,renderingInfo:0,isRequiredErrors:0}}static{this.styles=g}willUpdate(e){(e.has("renderingInfo")||e.has("isRequiredErrors"))&&(this.validationMsg=this._getValidationMessage())}_getValidationMessage(){if(this.renderingInfo?.attributeValidationResult)return this.renderingInfo.attributeValidationResult;if(this.isRequiredErrors.has(this.attributeKey))return this.messages.requiredfield??"This is a required field."}renderCheckbox(){return l(this.attribute,"checkbox")?i`<calcite-label class="spacing-y" .for=${this.attributeKey} layout=inline><calcite-checkbox .checked=${this.value} id=${this.attributeKey??a} @calciteCheckboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.checked})} .required=${this.attribute.isRequired??!1} .status=${this.validationMsg?"invalid":"valid"}></calcite-checkbox>${this.attribute.label}</calcite-label>`:null}renderDateInput(){return l(this.attribute,"date")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-input-date-picker id=${this.attributeKey??a} .name=${this.attribute.label} @calciteInputDatePickerChange=${e=>this.isConnected&&this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} overlay-positioning=fixed .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-date-picker></calcite-label>`:null}renderTextInput(){if(!l(this.attribute,"text"))return null;let e=this.attribute.label,t=this.attribute.description;return i`<calcite-label .for=${this.attributeKey}><div class="portal-classification-form-element-tooltip">${e}${this.attribute.labelTooltip&&i`<div><calcite-icon scale=s icon=information .id=${`tooltip-button-${this.attribute.bannerLabel}`} text-label=${this.messages.information??"Information"??a}></calcite-icon><calcite-tooltip .referenceElement=${`tooltip-button-${this.attribute.bannerLabel}`} placement=right>${this.attribute.labelTooltip}</calcite-tooltip></div>`||""}</div><calcite-input-text id=${this.attributeKey??a} .label=${e} .name=${this.attributeKey} @calciteInputTextChange=${r=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:r.target.value})} .placeholder=${t} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-text></calcite-label>`}renderSingleSelect(){return l(this.attribute,"single-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox selection-mode=single id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} .placeholder=${this.attribute.description??this.messages.selectanoption} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} overlay-positioning=fixed validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value} data-testid=${`single-select-${this.attributeKey}`}>${this._renderSingleSelectComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderSingleSelectComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return m(this.renderingInfo?.valueExpressionResult,t=>t.label,t=>i`<calcite-combobox-item .selected=${e===t.value} text-label=${t.label??a} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`)}_renderComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return this.renderingInfo?.valueExpressionResult.map(t=>i`<calcite-combobox-item .selected=${e?.includes(t.value)} text-label=${t.label??a} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`)}renderMultiSelect(){return l(this.attribute,"multi-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderGroupedComboboxOptions(){if(!this.renderingInfo?.valueExpressionResult||Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t,r])=>i`<calcite-combobox-item .selected=${e?.includes(t)} text-label=${t??a} .value=${t}>${r.map(s=>i`<calcite-combobox-item .selected=${e?.includes(s.value)} text-label=${s.label??a} .value=${s.value} data-testid=${`grouped-combobox-item-${s.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`)}renderMultiGroupedSelectNested(){return l(this.attribute,"multi-grouped-select-nested")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderGroupedComboboxOptions()}</calcite-combobox></calcite-label>`:null}render(){switch(this.attribute.uiElement){case"checkbox":return this.renderCheckbox();case"date":return this.renderDateInput();case"multi-select":return this.renderMultiSelect();case"multi-grouped-select-nested":return this.renderMultiGroupedSelectNested();case"single-select":return this.renderSingleSelect();case"text":return this.renderTextInput();default:return i`<div>Not Implemented Yet.</div>`}}};d("arcgis-portal-classification-form-element",n);export{n as ArcgisPortalClassificationFormElement};
|
package/dist/cdn/MCC56U5S.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.14 */
|
|
4
|
-
import{J as T,a as L,b as P,c as w,d as f,e as m,f as N,g,n as v,o as O,q as A}from"./UYVWH4TJ.js";var V=(e,n)=>{let t=e;for(;t;){if(t===n)return!0;if(!t.parentNode)return!1;t.parentNode instanceof ShadowRoot?t=t.parentNode.host:t=t.parentNode}return!1},k=(e,n,t)=>{let o=z(n).subscribe;return o(s=>{s.some(i=>V(e,i.target))&&t()})},b={},z=e=>{let n=e.join(","),t=b[n];if(t!==void 0)return t;let o=new Set,s=new MutationObserver(i=>o.forEach(a=>a(i)));globalThis.document&&s.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let r={subscribe:i=>(o.add(i),()=>{o.delete(i),o.size===0&&(s.disconnect(),b[n]=void 0)})};return b[n]=r,r},R=(e,n)=>{let t=e;for(;t;){let o=t.closest?.(n);if(o)return o;let s=t.getRootNode?.();if(s===globalThis.document)return;t=s.host}};var M=(e,n,t)=>R(e,`[${n}]`)?.getAttribute(n)??t;var _=e=>(...n)=>{let t=m(),o=new e(...n),s=o.exports;f(t.at(-1));let r=o.component.manager;r.W(o,s),o.watchExports(r.W.bind(r,o)),N(o);let i=[o.component,...t].reverse();return v(i,a=>a===void 0?void 0:U(o,a,s),s)},U=(e,{host:n,key:t,isReactive:o},s)=>{let r=n,i=r[t]!==e.exports,a=r[t]!==s,c=s!==e.exports;if(i&&!a&&c&&(r[t]=e.exports),n===e.component){if(o){let l=e.component.manager;a&&l.W(e,r[t]),e.onUpdate(d=>{if(d.has(t)){let x=r[t];x!==e.exports&&l.W(e,x)}})}e.O=o?void 0:t}let u=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{r[t]!==e.exports&&(u?g(()=>{r[t]=e.exports}):r[t]=e.exports)})};var G="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),W=new Set(G),h="en",H={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},K=async(e,n,t="")=>{let o=`${n}/${t}`,s=`${o}${e}.json`;return E[s]??(E[s]=$(e,o)),await E[s]},E={},$=async(e,n)=>{let t=`${n}${e}.json`;try{let o=await fetch(t);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return e===h?{}:await $(h,n)},y=e=>{let n=M(e,"lang",globalThis.navigator?.language||h);return{lang:n,t9nLocale:S(n)}},S=e=>{let[n,t]=e.split("-"),o=n.toLowerCase(),s=o;return t&&(s=`${o}-${t.toUpperCase()}`),s=H[s]??s,W.has(s)?s:t?S(o):h},j=(e,n,t,o)=>{let s,r=()=>I(e,n(),o).then(i=>{(s?.lang!==i.lang||s.t9nLocale!==i.t9nLocale||s.t9nStrings!==i.t9nStrings)&&t(i),s=i}).catch(console.error);return queueMicrotask(r),k(e,["lang"],r)},I=async(e,n,t=e.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:s}=y(e),r=`${n}/${t}/t9n`,a=t===null?{}:await K(s,r,"messages.");return{lang:o,t9nLocale:s,t9nStrings:a}};var q=e=>B(void 0,e);var C=class extends A{constructor(n,t){super(n);let o=this.exports;try{P(this.component);let s=t(this.component,this),r=this.exports!==o;if(L(s)){r||this.setProvisionalExports(s);let i=s.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a),console.error(a)});this.onLoad(async()=>await i)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this.P.reject(s),console.error(s)}}catchUpLifecycle(){}},B=_(C);var F=e=>(n={})=>q((t,o)=>{let s=y(t.el),r={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},i=t;o.onLifecycle(()=>j(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:p,lang:u})=>{let l={...p,_lang:u,_t9nLocale:c,_loading:!1};o.exports=l;let d=p.componentLabel;typeof d=="string"&&"label"in t&&t.label==null&&(t.label??=d),a(i.messageOverrides)},n.name));let a=c=>{let p=o.exports,u=p._original??p,l=D(u,c);c&&(l._original=u),o.exports=l};return"messageOverrides"in i&&o.onUpdate(c=>{c.has("messageOverrides")&&a(i.messageOverrides)}),n.blocking?(o.setProvisionalExports(r,!1),o.ready):r}),D=(e,n)=>{if(!n)return e;let t={...e};return Object.entries(n).forEach(([o,s])=>{typeof s=="object"?t[o]=D(e[o],s):t[o]=s??e[o]}),t},Et=e=>X,J="arcgisPropertyChange",X=(...e)=>{let n=w(),t=O(J,void 0,n),o=!0;return n.manager.onUpdated(s=>{if(o||!n.el.isConnected){o=!1;return}for(let r of e)s.has(r)&&t.emit({name:r})}),t};var Lt=F(T);export{_ as a,R as b,Et as c,Lt as d};
|