@arcgis/common-components 5.1.0-next.12 → 5.1.0-next.120
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/README.md +26 -3
- package/dist/cdn/{J5X5TNVW.js → 3CYVP75E.js} +1 -1
- package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
- package/dist/cdn/5HNFQDIE.js +2 -0
- package/dist/cdn/6RFADDWS.js +4 -0
- package/dist/cdn/AETG56T6.js +2 -0
- package/dist/cdn/AH2USIZR.js +2 -0
- package/dist/cdn/BCWKJTLV.js +2 -0
- package/dist/cdn/BYGHEIBE.js +2 -0
- package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
- package/dist/cdn/DCI6LRH3.js +2 -0
- package/dist/cdn/DJBJXOSO.js +2 -0
- package/dist/cdn/DUJ3WX7U.js +2 -0
- package/dist/cdn/{AXTSUI2Q.js → DYF5K55H.js} +3 -3
- package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
- package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/KGHLN7QM.js +2 -0
- package/dist/cdn/PECYQ2HF.js +2 -0
- package/dist/cdn/TKMLU77O.js +2 -0
- package/dist/cdn/WPKV6SVG.js +2 -0
- package/dist/cdn/YCAZ4ZY2.js +2 -0
- package/dist/cdn/ZBV64YMG.js +2 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/chunks/layer-utils.js +70 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +3 -2
- package/dist/components/arcgis-color-input/customElement.js +6 -3
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +331 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +7703 -0
- package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +4 -2
- package/dist/components/arcgis-field-info/customElement.js +173 -172
- package/dist/components/arcgis-field-info/utils/basic.d.ts +25 -3
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
- package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +20 -2
- package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram/customElement.js +81 -90
- package/dist/components/arcgis-histogram/types.d.ts +1 -3
- package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
- package/dist/components/arcgis-label-input/customElement.js +22 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +2 -2
- package/dist/components/arcgis-picker-input/customElement.js +11 -11
- package/dist/components/arcgis-slider/customElement.d.ts +72 -67
- package/dist/components/arcgis-slider/customElement.js +349 -304
- package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
- package/dist/components/arcgis-slider-input/customElement.js +12 -12
- package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
- package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +21 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +39 -1
- package/dist/loader.js +7 -5
- package/dist/types/lumina.d.ts +14 -2
- package/dist/types/preact.d.ts +16 -2
- package/dist/types/react.d.ts +18 -2
- package/dist/types/stencil.d.ts +14 -2
- package/dist/utils/internal-types.d.ts +1 -0
- package/dist/utils/spatial-references.d.ts +1 -0
- package/dist/utils/types.d.ts +21 -18
- package/package.json +11 -9
- package/dist/cdn/23DDMSOB.js +0 -2
- package/dist/cdn/2BDHDUXG.js +0 -2
- package/dist/cdn/3O7GAC23.js +0 -2
- package/dist/cdn/4CW7U27R.js +0 -2
- package/dist/cdn/4DCAUWTC.js +0 -2
- package/dist/cdn/57I35HLF.js +0 -2
- package/dist/cdn/6DQVLQL6.js +0 -2
- package/dist/cdn/C6JAR4IN.js +0 -2
- package/dist/cdn/EKKJN7WZ.js +0 -2
- package/dist/cdn/UTXWKXMT.js +0 -4
- package/dist/cdn/XEB2RUND.js +0 -2
- package/dist/cdn/ZL3E4ZGE.js +0 -2
- package/dist/cdn/ZLXAKPUH.js +0 -2
- /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
- /package/dist/chunks/{types.js → internal-types.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PopoverProps as PopoverPropsAlias, PickListFieldInfo as PickListFieldInfoAlias, PickListGroupInfo as PickListGroupInfoAlias } from "./utils/types.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated import { PopoverProps } from "@arcgis/common-components/utils/types" instead
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type PopoverProps = PopoverPropsAlias;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated import { PickListFieldInfo } from "@arcgis/common-components/utils/types" instead
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export type PickListFieldInfo = PickListFieldInfoAlias;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated import { PickListGroupInfo } from "@arcgis/common-components/utils/types" instead
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export type PickListGroupInfo = PickListGroupInfoAlias;
|
|
2
20
|
|
|
3
21
|
/**
|
|
4
22
|
* Get a resolved path from where an asset can be loaded.
|
|
@@ -29,6 +47,8 @@ export function setAssetPath(path: URL | string): void;
|
|
|
29
47
|
import type { ArcgisCkeditor5 } from "./components/arcgis-ckeditor5/customElement.js";
|
|
30
48
|
import type { ArcgisCkeditor5Popover } from "./components/arcgis-ckeditor5-popover/customElement.js";
|
|
31
49
|
import type { ArcgisColorInput } from "./components/arcgis-color-input/customElement.js";
|
|
50
|
+
import type { ArcgisCoordinateSystemPicker } from "./components/arcgis-coordinate-system-picker/customElement.js";
|
|
51
|
+
import type { ArcgisCoordinateSystemPickerTree } from "./components/arcgis-coordinate-system-picker-tree/customElement.js";
|
|
32
52
|
import type { ArcgisFieldInfo } from "./components/arcgis-field-info/customElement.js";
|
|
33
53
|
import type { ArcgisFieldPickList } from "./components/arcgis-field-pick-list/customElement.js";
|
|
34
54
|
import type { ArcgisHistogram } from "./components/arcgis-histogram/customElement.js";
|
|
@@ -59,6 +79,16 @@ export interface ArcgisColorInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
59
79
|
target: ArcgisColorInput;
|
|
60
80
|
currentTarget: ArcgisColorInput;
|
|
61
81
|
}
|
|
82
|
+
export interface ArcgisCoordinateSystemPickerCustomEvent<T> extends CustomEvent<T> {
|
|
83
|
+
detail: T;
|
|
84
|
+
target: ArcgisCoordinateSystemPicker;
|
|
85
|
+
currentTarget: ArcgisCoordinateSystemPicker;
|
|
86
|
+
}
|
|
87
|
+
export interface ArcgisCoordinateSystemPickerTreeCustomEvent<T> extends CustomEvent<T> {
|
|
88
|
+
detail: T;
|
|
89
|
+
target: ArcgisCoordinateSystemPickerTree;
|
|
90
|
+
currentTarget: ArcgisCoordinateSystemPickerTree;
|
|
91
|
+
}
|
|
62
92
|
export interface ArcgisFieldInfoCustomEvent<T> extends CustomEvent<T> {
|
|
63
93
|
detail: T;
|
|
64
94
|
target: ArcgisFieldInfo;
|
|
@@ -106,6 +136,8 @@ declare global {
|
|
|
106
136
|
"arcgis-ckeditor5": ArcgisCkeditor5;
|
|
107
137
|
"arcgis-ckeditor5-popover": ArcgisCkeditor5Popover;
|
|
108
138
|
"arcgis-color-input": ArcgisColorInput;
|
|
139
|
+
"arcgis-coordinate-system-picker": ArcgisCoordinateSystemPicker;
|
|
140
|
+
"arcgis-coordinate-system-picker-tree": ArcgisCoordinateSystemPickerTree;
|
|
109
141
|
"arcgis-field-info": ArcgisFieldInfo;
|
|
110
142
|
"arcgis-field-pick-list": ArcgisFieldPickList;
|
|
111
143
|
"arcgis-histogram": ArcgisHistogram;
|
|
@@ -130,6 +162,12 @@ declare global {
|
|
|
130
162
|
type HTMLArcgisColorInputElementEventMap = ArcgisColorInput["@eventTypes"];
|
|
131
163
|
type HTMLArcgisColorInputElement = ArcgisColorInput;
|
|
132
164
|
|
|
165
|
+
type HTMLArcgisCoordinateSystemPickerElementEventMap = ArcgisCoordinateSystemPicker["@eventTypes"];
|
|
166
|
+
type HTMLArcgisCoordinateSystemPickerElement = ArcgisCoordinateSystemPicker;
|
|
167
|
+
|
|
168
|
+
type HTMLArcgisCoordinateSystemPickerTreeElementEventMap = ArcgisCoordinateSystemPickerTree["@eventTypes"];
|
|
169
|
+
type HTMLArcgisCoordinateSystemPickerTreeElement = ArcgisCoordinateSystemPickerTree;
|
|
170
|
+
|
|
133
171
|
type HTMLArcgisFieldInfoElementEventMap = ArcgisFieldInfo["@eventTypes"];
|
|
134
172
|
type HTMLArcgisFieldInfoElement = ArcgisFieldInfo;
|
|
135
173
|
|
package/dist/loader.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { r as e } from "./chunks/runtime.js";
|
|
3
3
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
4
|
-
const
|
|
4
|
+
const t = i(e, {
|
|
5
5
|
"arcgis-ckeditor5": [() => import("./components/arcgis-ckeditor5/customElement.js"), "canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],
|
|
6
6
|
"arcgis-ckeditor5-popover": [() => import("./components/arcgis-ckeditor5-popover/customElement.js"), "guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],
|
|
7
|
-
"arcgis-color-input": [() => import("./components/arcgis-color-input/customElement.js"), "_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus"],
|
|
7
|
+
"arcgis-color-input": [() => import("./components/arcgis-color-input/customElement.js"), "_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],
|
|
8
|
+
"arcgis-coordinate-system-picker": [() => import("./components/arcgis-coordinate-system-picker/customElement.js"), "_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],
|
|
9
|
+
"arcgis-coordinate-system-picker-tree": [() => import("./components/arcgis-coordinate-system-picker-tree/customElement.js"), "data:,value"],
|
|
8
10
|
"arcgis-field-info": [() => import("./components/arcgis-field-info/customElement.js"), "_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],
|
|
9
11
|
"arcgis-field-pick-list": [() => import("./components/arcgis-field-pick-list/customElement.js"), "_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],
|
|
10
12
|
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,layout,max,messageOverrides:,min,standardDeviation"],
|
|
@@ -14,10 +16,10 @@ const l = i(e, {
|
|
|
14
16
|
"arcgis-ramp-color-break": [() => import("./components/arcgis-ramp-color-break/customElement.js"), "layout,max,min,stops:"],
|
|
15
17
|
"arcgis-ramp-opacity": [() => import("./components/arcgis-ramp-opacity/customElement.js"), "fillColor,layout,max,min,stops:"],
|
|
16
18
|
"arcgis-slider": [() => import("./components/arcgis-slider/customElement.js"), "activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values;destroy"],
|
|
17
|
-
"arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,step,unitsLabel,value,withSteppers"],
|
|
19
|
+
"arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],
|
|
18
20
|
"arcgis-ticks": [() => import("./components/arcgis-ticks/customElement.js"), "interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],
|
|
19
|
-
"arcgis-unique-values-list": [() => import("./components/arcgis-unique-values-list/customElement.js"), "_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view
|
|
21
|
+
"arcgis-unique-values-list": [() => import("./components/arcgis-unique-values-list/customElement.js"), "_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"]
|
|
20
22
|
});
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
t as defineCustomElements
|
|
23
25
|
};
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import type { ArcgisCkeditor5 } from "../components/arcgis-ckeditor5/customElement.js";
|
|
3
3
|
import type { ArcgisCkeditor5Popover } from "../components/arcgis-ckeditor5-popover/customElement.js";
|
|
4
4
|
import type { ArcgisColorInput } from "../components/arcgis-color-input/customElement.js";
|
|
5
|
+
import type { ArcgisCoordinateSystemPicker } from "../components/arcgis-coordinate-system-picker/customElement.js";
|
|
6
|
+
import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coordinate-system-picker-tree/customElement.js";
|
|
5
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
6
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
7
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
@@ -41,6 +43,14 @@ interface LuminaArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearab
|
|
|
41
43
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
interface LuminaArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, h.JSX.HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
47
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface LuminaArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, h.JSX.HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
51
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
interface LuminaArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, h.JSX.HTMLAttributes<ArcgisFieldInfo> {
|
|
45
55
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
46
56
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -85,7 +95,7 @@ interface LuminaArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
|
|
|
85
95
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
86
96
|
}
|
|
87
97
|
|
|
88
|
-
interface LuminaArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, h.JSX.HTMLAttributes<ArcgisSliderInput> {
|
|
98
|
+
interface LuminaArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, h.JSX.HTMLAttributes<ArcgisSliderInput> {
|
|
89
99
|
onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
|
|
90
100
|
onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
|
|
91
101
|
}
|
|
@@ -94,7 +104,7 @@ interface LuminaArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "i
|
|
|
94
104
|
onarcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
interface LuminaArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view">>, h.JSX.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
107
|
+
interface LuminaArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, h.JSX.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
98
108
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
99
109
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
100
110
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
@@ -106,6 +116,8 @@ declare module "@arcgis/lumina" {
|
|
|
106
116
|
"arcgis-ckeditor5": LuminaArcgisCkeditor5;
|
|
107
117
|
"arcgis-ckeditor5-popover": LuminaArcgisCkeditor5Popover;
|
|
108
118
|
"arcgis-color-input": LuminaArcgisColorInput;
|
|
119
|
+
"arcgis-coordinate-system-picker": LuminaArcgisCoordinateSystemPicker;
|
|
120
|
+
"arcgis-coordinate-system-picker-tree": LuminaArcgisCoordinateSystemPickerTree;
|
|
109
121
|
"arcgis-field-info": LuminaArcgisFieldInfo;
|
|
110
122
|
"arcgis-field-pick-list": LuminaArcgisFieldPickList;
|
|
111
123
|
"arcgis-histogram": LuminaArcgisHistogram;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import type { ArcgisCkeditor5 } from "../components/arcgis-ckeditor5/customElement.js";
|
|
3
3
|
import type { ArcgisCkeditor5Popover } from "../components/arcgis-ckeditor5-popover/customElement.js";
|
|
4
4
|
import type { ArcgisColorInput } from "../components/arcgis-color-input/customElement.js";
|
|
5
|
+
import type { ArcgisCoordinateSystemPicker } from "../components/arcgis-coordinate-system-picker/customElement.js";
|
|
6
|
+
import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coordinate-system-picker-tree/customElement.js";
|
|
5
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
6
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
7
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
@@ -42,6 +44,14 @@ interface PreactArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearab
|
|
|
42
44
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
interface PreactArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
48
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface PreactArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
52
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
interface PreactArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, HTMLAttributes<ArcgisFieldInfo> {
|
|
46
56
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
47
57
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -86,7 +96,7 @@ interface PreactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
|
|
|
86
96
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
|
-
interface PreactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLAttributes<ArcgisSliderInput> {
|
|
99
|
+
interface PreactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLAttributes<ArcgisSliderInput> {
|
|
90
100
|
onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
|
|
91
101
|
onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
|
|
92
102
|
}
|
|
@@ -95,7 +105,7 @@ interface PreactArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "i
|
|
|
95
105
|
onarcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
|
-
interface PreactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view">>, HTMLAttributes<ArcgisUniqueValuesList> {
|
|
108
|
+
interface PreactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, HTMLAttributes<ArcgisUniqueValuesList> {
|
|
99
109
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
100
110
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
101
111
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
@@ -107,6 +117,8 @@ declare module 'preact' {
|
|
|
107
117
|
"arcgis-ckeditor5": PreactArcgisCkeditor5;
|
|
108
118
|
"arcgis-ckeditor5-popover": PreactArcgisCkeditor5Popover;
|
|
109
119
|
"arcgis-color-input": PreactArcgisColorInput;
|
|
120
|
+
"arcgis-coordinate-system-picker": PreactArcgisCoordinateSystemPicker;
|
|
121
|
+
"arcgis-coordinate-system-picker-tree": PreactArcgisCoordinateSystemPickerTree;
|
|
110
122
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
111
123
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
112
124
|
"arcgis-histogram": PreactArcgisHistogram;
|
|
@@ -126,6 +138,8 @@ declare module 'preact' {
|
|
|
126
138
|
"arcgis-ckeditor5": PreactArcgisCkeditor5;
|
|
127
139
|
"arcgis-ckeditor5-popover": PreactArcgisCkeditor5Popover;
|
|
128
140
|
"arcgis-color-input": PreactArcgisColorInput;
|
|
141
|
+
"arcgis-coordinate-system-picker": PreactArcgisCoordinateSystemPicker;
|
|
142
|
+
"arcgis-coordinate-system-picker-tree": PreactArcgisCoordinateSystemPickerTree;
|
|
129
143
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
130
144
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
131
145
|
"arcgis-histogram": PreactArcgisHistogram;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import type { ArcgisCkeditor5 } from "../components/arcgis-ckeditor5/customElement.js";
|
|
3
3
|
import type { ArcgisCkeditor5Popover } from "../components/arcgis-ckeditor5-popover/customElement.js";
|
|
4
4
|
import type { ArcgisColorInput } from "../components/arcgis-color-input/customElement.js";
|
|
5
|
+
import type { ArcgisCoordinateSystemPicker } from "../components/arcgis-coordinate-system-picker/customElement.js";
|
|
6
|
+
import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coordinate-system-picker-tree/customElement.js";
|
|
5
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
6
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
7
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
@@ -42,6 +44,14 @@ interface ReactArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearabl
|
|
|
42
44
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
interface ReactArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, HTMLProps<ArcgisCoordinateSystemPicker> {
|
|
48
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface ReactArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, HTMLProps<ArcgisCoordinateSystemPickerTree> {
|
|
52
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
interface ReactArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, HTMLProps<ArcgisFieldInfo> {
|
|
46
56
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
47
57
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -86,7 +96,7 @@ interface ReactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverl
|
|
|
86
96
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
|
-
interface ReactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLProps<ArcgisSliderInput> {
|
|
99
|
+
interface ReactArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, HTMLProps<ArcgisSliderInput> {
|
|
90
100
|
onarcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
|
|
91
101
|
onarcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
|
|
92
102
|
}
|
|
@@ -95,7 +105,7 @@ interface ReactArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "in
|
|
|
95
105
|
onarcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
|
-
interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view">>, HTMLProps<ArcgisUniqueValuesList> {
|
|
108
|
+
interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, HTMLProps<ArcgisUniqueValuesList> {
|
|
99
109
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
100
110
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
101
111
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
@@ -107,6 +117,8 @@ declare module "react" {
|
|
|
107
117
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
108
118
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
109
119
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
120
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
121
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
110
122
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
111
123
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
112
124
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
@@ -128,6 +140,8 @@ declare module "react/jsx-runtime" {
|
|
|
128
140
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
129
141
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
130
142
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
143
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
144
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
131
145
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
132
146
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
133
147
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
@@ -149,6 +163,8 @@ declare module "react/jsx-dev-runtime" {
|
|
|
149
163
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
150
164
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
151
165
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
166
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
167
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
152
168
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
153
169
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
154
170
|
"arcgis-histogram": ReactArcgisHistogram;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import type { ArcgisCkeditor5 } from "../components/arcgis-ckeditor5/customElement.js";
|
|
3
3
|
import type { ArcgisCkeditor5Popover } from "../components/arcgis-ckeditor5-popover/customElement.js";
|
|
4
4
|
import type { ArcgisColorInput } from "../components/arcgis-color-input/customElement.js";
|
|
5
|
+
import type { ArcgisCoordinateSystemPicker } from "../components/arcgis-coordinate-system-picker/customElement.js";
|
|
6
|
+
import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coordinate-system-picker-tree/customElement.js";
|
|
5
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
6
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
7
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
@@ -42,6 +44,14 @@ interface StencilArcgisColorInput extends Partial<Pick<ArcgisColorInput, "cleara
|
|
|
42
44
|
onArcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
interface StencilArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, StencilJsx.HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
48
|
+
onArcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface StencilArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, StencilJsx.HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
52
|
+
onArcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
interface StencilArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, StencilJsx.HTMLAttributes<ArcgisFieldInfo> {
|
|
46
56
|
onArcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
47
57
|
onArcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -86,7 +96,7 @@ interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOve
|
|
|
86
96
|
onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
87
97
|
}
|
|
88
98
|
|
|
89
|
-
interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
|
|
99
|
+
interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
|
|
90
100
|
onArcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
|
|
91
101
|
onArcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
|
|
92
102
|
}
|
|
@@ -95,7 +105,7 @@ interface StencilArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "
|
|
|
95
105
|
onArcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
|
-
interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
108
|
+
interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
99
109
|
onArcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
100
110
|
onArcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
101
111
|
onArcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
@@ -105,6 +115,8 @@ interface ExposedElements {
|
|
|
105
115
|
"arcgis-ckeditor5": StencilArcgisCkeditor5;
|
|
106
116
|
"arcgis-ckeditor5-popover": StencilArcgisCkeditor5Popover;
|
|
107
117
|
"arcgis-color-input": StencilArcgisColorInput;
|
|
118
|
+
"arcgis-coordinate-system-picker": StencilArcgisCoordinateSystemPicker;
|
|
119
|
+
"arcgis-coordinate-system-picker-tree": StencilArcgisCoordinateSystemPickerTree;
|
|
108
120
|
"arcgis-field-info": StencilArcgisFieldInfo;
|
|
109
121
|
"arcgis-field-pick-list": StencilArcgisFieldPickList;
|
|
110
122
|
"arcgis-histogram": StencilArcgisHistogram;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type VisualizationSource = "feature-reduction" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NestedObject = { [key: string]: NestedObject | string; };
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type Field from "@arcgis/core/layers/support/Field.js";
|
|
1
2
|
import type { Popover } from "@esri/calcite-components/dist/components/calcite-popover";
|
|
2
3
|
|
|
3
4
|
/** @internal */
|
|
@@ -11,7 +12,7 @@ export type LogicalPlacement = Popover["placement"];
|
|
|
11
12
|
*
|
|
12
13
|
* @internal
|
|
13
14
|
*/
|
|
14
|
-
export interface
|
|
15
|
+
export interface PopoverProps {
|
|
15
16
|
refElement: HTMLElement;
|
|
16
17
|
placement?: LogicalPlacement;
|
|
17
18
|
offsetDistance?: number;
|
|
@@ -25,39 +26,41 @@ export interface IPopoverProps {
|
|
|
25
26
|
zIndex?: number;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated - use PopoverProps instead
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export type IPopoverProps = PopoverProps;
|
|
34
|
+
|
|
28
35
|
/**
|
|
29
36
|
* Object to be passed to arcgis-field-pick-list containing info about a field.
|
|
30
37
|
* Use type:"none" to add non-sortable items, without info options, to the bottom of the list.
|
|
31
38
|
*
|
|
32
39
|
* @internal
|
|
33
40
|
*/
|
|
34
|
-
export interface
|
|
35
|
-
name:
|
|
36
|
-
alias?:
|
|
41
|
+
export interface PickListFieldInfo {
|
|
42
|
+
name: Field["name"];
|
|
43
|
+
alias?: Field["alias"];
|
|
37
44
|
type: string;
|
|
38
|
-
description?:
|
|
45
|
+
description?: Field["description"];
|
|
39
46
|
hideFieldName?: boolean;
|
|
40
47
|
hideDescription?: boolean;
|
|
41
48
|
showEditAction?: boolean;
|
|
42
49
|
showDeleteAction?: boolean;
|
|
43
50
|
}
|
|
44
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated - use PickListFieldInfo instead
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
export type IPickListFieldInfo = PickListFieldInfo;
|
|
57
|
+
|
|
45
58
|
/**
|
|
46
59
|
* Object to be passed to arcgis-field-pick-list containing a group of fields.
|
|
47
60
|
*
|
|
48
61
|
* @internal
|
|
49
62
|
*/
|
|
50
|
-
export interface
|
|
63
|
+
export interface PickListGroupInfo {
|
|
51
64
|
title?: string;
|
|
52
|
-
fields:
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export type LastSortBy = "default" | "display" | "field" | "type";
|
|
57
|
-
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const FieldInfoPrefix: {
|
|
60
|
-
expression: string;
|
|
61
|
-
relationship: string;
|
|
62
|
-
raster: string;
|
|
63
|
-
};
|
|
65
|
+
fields: PickListFieldInfo[];
|
|
66
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.120",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -19,11 +19,14 @@
|
|
|
19
19
|
],
|
|
20
20
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
21
21
|
"type": "module",
|
|
22
|
-
"main": "dist/index.js",
|
|
23
|
-
"module": "dist/index.js",
|
|
24
|
-
"types": "dist/index.d.ts",
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"module": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": "./dist/index.js",
|
|
27
|
+
"./utils/types": {
|
|
28
|
+
"types": "./dist/utils/types.d.ts"
|
|
29
|
+
},
|
|
27
30
|
"./loader": "./dist/loader.js",
|
|
28
31
|
"./package.json": "./package.json",
|
|
29
32
|
"./components/*/customElement": "./dist/components/*/customElement.js",
|
|
@@ -45,14 +48,13 @@
|
|
|
45
48
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
46
49
|
"@lit/task": "^1.0.3",
|
|
47
50
|
"lit": "^3.3.0",
|
|
48
|
-
"luxon": "~3.7.2",
|
|
49
51
|
"tslib": "^2.8.1",
|
|
50
|
-
"@arcgis/
|
|
51
|
-
"@arcgis/
|
|
52
|
+
"@arcgis/lumina": "5.1.0-next.120",
|
|
53
|
+
"@arcgis/toolkit": "5.1.0-next.120"
|
|
52
54
|
},
|
|
53
55
|
"peerDependencies": {
|
|
54
|
-
"@arcgis/core": "^5.
|
|
55
|
-
"@esri/calcite-components": "^5.
|
|
56
|
+
"@arcgis/core": "^5.1.0-next",
|
|
57
|
+
"@esri/calcite-components": "^5.1.0-next.60"
|
|
56
58
|
},
|
|
57
59
|
"css.customData": [
|
|
58
60
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/23DDMSOB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{h as o}from"./UTXWKXMT.js";var n=Symbol(),e=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,s)=>{this.o=t,this.h=s})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,s,r){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof s=="object"?s:{task:s,args:r};this.v=i.task,this.j=i.args,this.m=i.argsEqual??u,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),s=this.O;this.O=t,t===s||t===void 0||s!==void 0&&this.m(s,t)||await this.run(t)}async run(t){let s,r;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let a=!1;try{s=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,r=l}if(this.p===i){if(s===n)this.i=0;else{if(a===!1){try{this.k?.(s)}catch{}this.i=2,this.o?.(s)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=s,this.l=r}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(h,t)=>h===t||h.length===t.length&&h.every(((s,r)=>!o(s,t[r])));export{e as a};
|
package/dist/cdn/2BDHDUXG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as h}from"./EKKJN7WZ.js";import{a as k}from"./23DDMSOB.js";import{a as R}from"./7Y42J3JI.js";import{b as B}from"./7PB2GGQH.js";import"./7CI55VCH.js";import{A as F,B as S,H as O,g as L,i as b,m as w,n as N,q as Z,z as U}from"./UTXWKXMT.js";export default $arcgis.t(([{formatDate:q,convertDateFormatToIntlOptions:y,formatDateOnly:K,formatTimeOnly:Q,formatTimestamp:C,formatNumber:X},Y,{clone:I}])=>{function _(i){return new Date(`1970-01-01T${i}Z`).getTime()}function M(i){return new Date(`${i} 00:00:00`).getTime()}function ee(i,e,t){let o;return e==="unknown"?o=q(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):o=q(i,{...y("short-date-short-time"),timeZone:e}),o}function te(i){return i?K(i,y("short-date")):""}function ie(i){let e;return typeof i=="string"?e=Q(i,y("short-date-long-time")):e=q(i,{...y("long-time"),timeZone:"utc"}),e}function se(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?C(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):C(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?q(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):q(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function A(i,e){if(i.type!=="feature"&&i.type!=="subtype-group"&&i.type!=="subtype-sublayer"&&i.type!=="imagery")return;let t;return i.fields.forEach(o=>{let s=o.name,r=o.domain;if(i.type!=="imagery"&&i.subtypeField===s){let p;i.type==="subtype-group"||i.type==="feature"?p=i.subtypes:p=i.parent.subtypes,p.forEach(l=>{i.type==="subtype-sublayer"&&i.subtypeCode!==l.code||(e.name===s&&(t=t||[],t.push({code:l.code,name:l.name})),l.domains&&Object.keys(l.domains).forEach(a=>{if(e.name===a){let n=l.domains[a];n?.type==="coded-value"&&n?.codedValues&&n.codedValues.forEach(u=>{let f=!1;t=t||[],t.forEach(c=>{c.code===u.code&&(f=!0,`| ${c.name} |`.includes(`| ${u.name} |`)||(c.name+=` | ${u.name}`))}),f||t.push({code:u.code,name:u.name})})}}))})}if(e.name===s&&(i.type==="feature"||i.type==="imagery")){let p=i.type==="feature"?i.typeIdField:void 0,l=i.type==="feature"?i.types:void 0;i.type==="feature"&&p&&l?(p===s?t=l.map(a=>({code:a.id,name:a.name})):(t=t||[],l.forEach(a=>{if(!a.domains?.[s]||a.domains[s].type==="inherited"){let n=r;n?.codedValues&&n.codedValues.forEach(u=>{let f=!1;t.forEach(c=>{c.code===u.code&&(f=!0,`| ${c.name} |`.includes(`| ${u.name} |`)||(c.name+=` | ${u.name}`))}),f||t.push(I(u))})}else a.domains?.[s]?.codedValues&&a.domains[s].codedValues.forEach(n=>{let u=!1;t.forEach(f=>{f.code===n.code&&(u=!0,`| ${f.name} |`.includes(`| ${n.name} |`)||(f.name+=` | ${n.name}`))}),u||t.push(I(n))})})),!t?.length&&r?.codedValues&&(t=I(r.codedValues))):r?.codedValues&&(t=r.codedValues)}}),t}function E(i,e){let t=e;if(t){let o="";for(let s=0;s<t.length;s++){let r=t[s];r.code==i&&(o+=(o.length?" | ":"")+r.name)}return o.length||(o=`${i}`),o}return i}function W(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function P(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var ne=L`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,D=class extends S{constructor(){super(...arguments),this.dropdownNode=U(),this._messages=B({blocking:!0}),this._propWatcherTask=new k(this,{task:async([e,t,o])=>{let s=h(e)&&h(t)||h(o);if(!h(o)&&!h(e)&&!h(t)?w("error",this,N("uniqueValues")):h(o)||(h(e)||w("error",this,N("layer")),h(t)||w("error",this,N("fieldName"))),h(e)&&h(t)&&!e.fields?.filter(r=>r.name===t))throw w("error",this,"Field could not be found."),new Error;if(!s)throw new Error;await this.processProps()},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=Z(),this.arcgisSortByChange=Z(),this.arcgisLoad=Z()}static{this.properties={initialRender:16,view:0,layer:0,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=ne}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(h(e?.uniqueValueInfos)){let{uniqueValueInfos:t,partialUniqueValues:o}=e;return{uniqueValues:t,partialUniqueValues:o}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}async processProps(){let{layer:e,fieldName:t,view:o}=this,s=e?.fields?.filter(r=>r.name===t)?.[0];if(h(this.uniqueValues))this.fieldInfo={layerField:s,fieldDomains:e&&s?A(e,s):void 0,simpleType:e&&s?P(s):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&s){this.fieldInfo={layerField:s,fieldDomains:A(e,s),simpleType:P(s),partialUniqueValues:!1};let{fieldInfo:r}=this;try{let p=await Y({layer:e,view:o,field:t,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:!1}),l=W(s),a=p.uniqueValueInfos.filter(n=>h(n.value)?s.type==="string"&&!l||s.type==="guid"?n.value!=="<Null>"&&`${n.value}`.trim()!=="":(W(s)||s.type,n.value!=="<Null>"&&n.value!==""):!1);a.sort((n,u)=>n.count>u.count?-1:n.count<u.count?1:0),r.fieldDomains?.length&&r.fieldDomains.forEach(n=>{a.find(u=>u.value===n.code)||a.push({value:n.code,count:0})}),r.uniqueValueInfos=a,r.partialUniqueValues=p.uniqueValueInfos.length===2e3,this.arcgisLoad.emit()}catch(p){if(w("error",this,`uniqueValues() - ${p.message}`),this.hasFieldDomains(r)){let l=[];r.fieldDomains.forEach(a=>{l.find(n=>n.value===a.code)||l.push({value:a.code,count:void 0})})}}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:t}=this;this.listNode=e,t&&e?.setAttribute("style",`max-height: ${t||400}px`)}onSortMenuSelect(e){let t=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=t||void 0,this.arcgisSortByChange.emit(t||void 0)}isSameLists(e,t){if(!e&&!t)return!0;if(!e||!t||e?.length!==t?.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:t,sortBy:o,multiple:s,initialRender:r,showFilterLength:p,_messages:l}=this,{fieldDomains:a,uniqueValueInfos:n,partialUniqueValues:u,layerField:f}=e,c=f?.type;if(!n?.length)return"";let x=c?["small-integer","big-integer","integer","single","double","long","oid"].includes(c):!1,z=c?["date","date-only","time-only"].includes(c):!1,H=g=>{g.sort((d,m)=>d.count<=m.count?1:-1)},j=g=>{let d=a?.length;g.sort((m,v)=>{if(!d&&x)return(typeof m.value=="string"?Number.parseFloat(m.value):m.value)-(typeof v.value=="string"?Number.parseFloat(v.value):v.value);{let $=d?E(m.value,a):m.value,V=d?E(v.value,a):v.value;return`${$}`.startsWith("_")?1:`${V}`.startsWith("_")?-1:`${$}`.localeCompare(`${V}`)}})},G=(g,d)=>{g.sort((m,v)=>{let $=d?.indexOf(m.value)??-1,V=d?.indexOf(v.value)??-1;return $===V||$>-1&&V>-1?0:$>V?-1:1})};j(n),!o||o==="count"?H(n):o==="selected"&&G(n,t);let J=n.map(g=>this.renderUniqueValue(g)),T;return u&&!r&&(T=b`<div class="unique-values-content-list-msg">${l.errors.tooManyUniqueValues}</div>`),b`<div class="container"><calcite-list .label=${l.values} class="popover-unique-list" .filterEnabled=${n.length>=p} .selectionMode=${s?"multiple":"single"} .filterPlaceholder=${l.searchValues} @calciteListChange=${g=>{let d=g.target.selectedItems.map(m=>m.value);!a&&c==="date-only"?d=d?.map(m=>M(m)):!a&&c==="time-only"?d=d?.map(m=>_(m)):c&&["date","oid","small-integer","big-integer","integer","long"].includes(c)?d=d?.map(m=>Number.parseInt(m)):c&&["single","double"].includes(c)&&(d=d?.map(m=>Number.parseFloat(m))),!this.isSameLists(d,this.selectedValues)&&(this.selectedValues=d,this.arcgisChange.emit(d))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${F(this.setListRef)}>${n.length>=p&&!r?this.renderSort(x,z):null}${J}</calcite-list>${T}</div>`},error:()=>""})}renderSort(e,t){let{sortBy:o,_messages:s}=this;return b`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${F(this.dropdownNode)}><calcite-action slot=trigger .label=${s.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${o==="count"||!h(o)} data-value=count>${s.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${o==="name"} data-value=name>${e||t?s.sortAscending:s.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${o==="selected"} data-value=selected>${s.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:t,initialRender:o,view:s,fieldInfo:r,numberFormatOptions:p}=this,{fieldDomains:l,uniqueValueInfos:a,simpleType:n}=r,u=s&&"timeZone"in s&&s.timeZone||"system",f=l?.length?E(e.value,l):n==="date"?ee(e.value,u):n==="date-only"?te(e.value):n==="time-only"?ie(e.value):n==="timestamp-offset"?se(e.value,s):typeof e.value=="number"?X(e.value,p):e.value,c=t?n==="date-only"?t.includes(l?.length?e.value:M(e.value)):n==="time-only"?t.includes(l?.length?e.value:_(e.value)):t.includes(e.value):!1;return R(`list-item_${e.value}`,b`<calcite-list-item .label=${`${f}`} .value=${`${e.value}`} .selected=${c}>${h(e.count)&&(a.length>200&&!o||a.length<=200)?b`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};O("arcgis-unique-values-list",D);return D},"intl","smartMapping/statistics/uniqueValues","core/lang")
|
package/dist/cdn/3O7GAC23.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{B as $,C as h,D as m,E as f,H as M,g as y,i as c,q as w}from"./UTXWKXMT.js";export default $arcgis.t(([{formatNumber:A}])=>{var l={container:"container",ticksContainer:"ticks-container",labelsContainer:"labels-container",tick:"tick",tickMin:"tick--min",tickMax:"tick--max",tickLabel:"tick-label",baseline:"baseline"},L=y`:host{display:flex;--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-gap: 1em;--arcgis-ticks-font-size: var(--calcite-font-size--2)}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--calcite-font-weight-medium);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:.125rem;height:var(--arcgis-ticks-tick-length);transform:translate(-50%)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:.125rem;transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`,g=class extends ${constructor(){super(...arguments),this._formatValue=e=>A(e,this._formatOptions),this._formatOptions={style:"decimal",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:2},this.interactive=!1,this.interpolationExponent=0,this.labelPlacement="end",this.layout="horizontal",this.max=100,this.min=0,this.mirrored=!1,this.mode="count",this.showLabels=!1,this.showBaseline=!1,this.values=[],this.arcgisTickClick=w({cancelable:!1})}static{this.properties={_formatOptions:16,interactive:7,interpolationExponent:9,labelFormatter:0,labelPlacement:3,layout:3,max:9,min:9,mirrored:7,mode:1,showLabels:5,showBaseline:5,values:[9,{converter:{fromAttribute(e){if(e.includes(","))return e.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t));{let t=parseFloat(e);return Number.isFinite(t)?[t]:[]}}}}]}}static{this.styles=L}updated(){let e=this.renderRoot.querySelector(`.${l.labelsContainer}`);if(e){let t=0,i=0;for(let a of this.renderRoot.querySelectorAll(`.${l.tickLabel}`)){let r=a.getBoundingClientRect();t=Math.max(t,r.width),i=Math.max(i,r.height)}t=Math.ceil(t),i=Math.ceil(i),!t||!i?(e.style.removeProperty("--labels-container-width"),e.style.removeProperty("--labels-container-height")):(e.style.setProperty("--labels-container-width",`${t}px`),e.style.setProperty("--labels-container-height",`${i}px`))}}_handleClick(e){if(!this.interactive)return;let t=e.target.dataset.value;t&&this.arcgisTickClick.emit({value:Number(t)})}_internalLabelFormatter(e){let t=this.labelFormatter;return t?t(e,this._formatValue)??this._formatValue(e):this._formatValue(e)}render(){return c`<div class=${h(l.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`}_renderContent(){let{interpolationExponent:e,max:t,min:i,mode:a,values:r,layout:s,mirrored:o,showLabels:C}=this,p=[],v=[];for(let[d,k]of F(a,i,t,e,r)){let x={[s==="horizontal"?o?"right":"left":o?"top":"bottom"]:`${d}%`},z={[l.tick]:!0,[l.tickMin]:d===0,[l.tickMax]:d===100};p.push(c`<div class=${h(z)} style=${m(x)} data-value=${k??f}></div>`),C&&v.push(c`<div class=${h(l.tickLabel)} style=${m(x)} data-value=${k??f}>${this._internalLabelFormatter(k)}</div>`)}return[c`<div class=${h(l.labelsContainer)}>${v}</div>`,c`<div class=${h(l.ticksContainer)}>${p}</div>`]}_renderBaseline(){let{showBaseline:e,layout:t}=this;return e&&c`<div class=${h(l.baseline)} style=${m({[t==="horizontal"?"width":"height"]:"100%",[t==="horizontal"?"height":"width"]:"0.125rem"})}></div>`||""}};function*F(n,e,t,i,a){switch(n){case"value":{let r=Array.isArray(a)?a:[a];for(let s of r){let o=P(e,t,s,i)*100;o>=0&&o<=100&&(yield[o,s])}break}case"percent":{if(Array.isArray(a))for(let r of a)r>=0&&r<=100&&(yield[r,u(e,t,r/100,i)]);else if(a>0)for(let r=0;r<=100;r+=a)yield[r,u(e,t,r/100,i)];break}case"count":{let r=Array.isArray(a)?a[0]:a;if(r<=1)yield[50,u(e,t,.5,i)];else for(let s=0;s<r;s++){let o=s*100/(r-1);yield[o,u(e,t,o/100,i)]}break}}}function b(n,e,t){return t<n?n:t>e?e:t}function _(n,e,t){return n+(e-n)*t}function P(n,e,t,i=0){let a=(t-n)/(e-n);if(a=b(0,1,a),Math.abs(i)<1e-9)return a;let r=1+Math.expm1(i)*a;return a=Math.log(r)/i,b(0,1,a)}function u(n,e,t,i=0){if(t=b(0,1,t),Math.abs(i)<1e-9)return _(n,e,t);let a=Math.expm1(i*t)/Math.expm1(i);return _(n,e,a)}M("arcgis-ticks",g);return g},"intl")
|
package/dist/cdn/4CW7U27R.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as x}from"./23DDMSOB.js";import{a as F}from"./7Y42J3JI.js";import{b as k}from"./7PB2GGQH.js";import"./7CI55VCH.js";import{A as V,B as C,C as h,H as q,g as D,i as d,m as $,n as b,q as T}from"./UTXWKXMT.js";export default $arcgis.t(([L,w,f,I,S,Z,A,P])=>{function p(s){return s!=null}function M(s){return s.type==="scene"?s.associatedLayer?.url:s.url}var G={dateStyle:"short",timeStyle:"short"},W={timeStyle:"medium"};function H(s){let{layer:e,fieldName:t}=s,i,a=I.supportsFieldConfiguration(e),r;"popupTemplate"in e&&(r=e.popupTemplate);let n=r?r.fieldInfos:[];return R(s)?.filter(l=>l.name===t).forEach(l=>{let u=!a&&n?n.filter(m=>m.fieldName===l.name):null,c=a?e.getFieldAlias(t):u?.length?u[0].label:l.alias;/^raster.(item|service)pixelvalue/iu.test(t)&&(l.type="double");let o={layerField:l,label:c||l.name};o.codedValues=j(t,s),Q(o),o.simpleFieldType&&(i=o)}),i}function R(s){let{layer:e}=s;return e.type==="imagery-tile"||e.type==="wcs"||e.type==="imagery"&&e.rasterFields.length?e.rasterFields:e.fields}async function E(s){s.statisticsStatus="in-progress";let{layer:e,view:t}=s;if(e.type==="imagery-tile"||e.type==="wcs"||e.type==="stream"||e.type==="voxel")throw new Error("could not get feature count");try{return await B(e,t)}catch{return}}async function U(s){let{layer:e,view:t,fieldName:i,fieldInfo:a}=s;if(e.type==="imagery-tile"||e.type==="wcs"||e.type==="voxel")throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");if(!a||a.layerField.type==="oid"||a.layerField.type==="guid"||a.layerField.type==="global-id")return{totalCount:await E(s),nullcount:0};try{let r=await Z({layer:e,view:t,field:i,outStatisticTypes:{exclude:["median"]}});if(!p(r.count))throw new Error("could not get statistics");let n="sourceJSON"in e&&e.sourceJSON.maxRecordCount===r.count;if(p(r.nullcount)&&!n)return{...r,totalCount:r.count+r.nullcount};{let l=await E(s);return{...r,totalCount:l}}}catch{throw new Error("could not get statistics")}}async function J(s){let{layer:e,view:t,fieldName:i}=s;if(e.type==="imagery-tile"||e.type==="wcs"||e.type==="voxel")throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");e.type==="feature"&&!e.url&&(e.outFields=["*"]);try{return await A({layer:e,view:t,field:i})}catch{throw new Error("could not get unique values")}}function Q(s){switch(s.layerField.type){case"string":s.simpleFieldType="string";break;case"date":s.simpleFieldType="date";break;case"timestamp-offset":s.simpleFieldType="timestamp-offset";break;case"date-only":s.simpleFieldType="date-only";break;case"time-only":s.simpleFieldType="time-only";break;case"oid":s.simpleFieldType="oid";break;case"guid":case"global-id":s.simpleFieldType="guid";break;case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":s.simpleFieldType="number";break}}function j(s,e){let{layer:t}=e;if(t.type==="subtype-sublayer"&&t.subtypeField===s){let u=t.parent?.subtypes?.find(c=>c.code===t.subtypeCode);if(u)return[{code:u.code,name:u.name}]}if(t.type!=="feature"&&t.type!=="imagery")return;let i=t.type==="feature"?t.typeIdField:void 0,a=t.type==="feature"?t.types:void 0,r,n=R(e)?.find(u=>u.name===s),l=n?.domain;return t.type==="feature"&&i&&a?(i===s?r=a.map(u=>({code:u.id,name:u.name})):(r=[],a.forEach(u=>{if(!u.domains[s]||u.domains[s].type==="inherited"){let c=l;c?.codedValues&&c.codedValues.forEach(async o=>{let m=!1;r.forEach(y=>{y.code===o.code&&(m=!0,`, ${y.name},`.includes(`, ${o.name},`)||(y.name+=`, ${o.name}`))}),m||r.push(S.clone(o))})}else u.domains[s].codedValues&&u.domains[s].codedValues.forEach(async c=>{let o=!1;r.forEach(m=>{m.code===c.code&&(o=!0,`, ${m.name},`.includes(`, ${c.name},`)||(m.name+=`, ${c.name}`))}),o||r.push(S.clone(c))})})),!r.length&&l?.codedValues&&(r=S.clone(l.codedValues))):l?.codedValues&&(r=n.domain.codedValues),r?.length?r:null}async function z(s){let{view:e,layer:t}=s;if(t.type==="imagery"||t.type==="imagery-tile"||t.type==="wcs")throw new Error("could not get feature");if(t.type==="feature"&&!t.url||t.type==="wfs"){let i=t.createQuery();i.start=0,i.num=5,i.outFields=["*"];let a=await t.queryFeatures(i);if(a.features.length)return a;throw new Error("could not get feature")}else{if(!e)return await N(s);let i;if(t.type==="subtype-sublayer"||t.type==="sublayer"){let a=t.parent;for(;["subtype-group","map-image"].includes(a.type);)a=a.parent;i=await e.whenLayerView(a)}else i=await e.whenLayerView(t);if(i.availableFields.length===t.fields.length||["stream","ogc-feature"].includes(t.type)&&i.availableFields.length>0){let a=t.createQuery();a.start=0,a.num=5,a.outFields=["*"];let r=await i.queryFeatures(a);return r.features?.length?r:await N(s)}else return await N(s)}}async function N(s){let{layer:e}=s;if(["imagery","imagery-tile","stream","ogc-feature"].includes(e.type))throw new Error("cannot get feature from service");let t=new P({where:"1=1",outFields:["*"],returnGeometry:!1});return"sourceJSON"in e&&e.sourceJSON?.advancedQueryCapabilities?.supportsPagination&&(t.num=1),await e.queryFeatures(t)}async function B(s,e){if(s.type==="feature"&&!s.url)return await K(s);if(s.type==="feature"||s.type==="csv"||s.type==="scene"||s.type==="wfs"||s.type==="geojson")return await s.queryFeatureCount();if(e&&(s.type==="stream"||s.type==="ogc-feature"))return await X(s,e)}async function K(s){let e=s.createQuery();e.outFields=["*"];let t=await s.queryFeatures(e);if(t.features.length)return t.features.length;throw new Error("could not get feature count")}async function X(s,e){return await(await e.whenLayerView(s)).queryFeatureCount()}var Y=D`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-foreground-1)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`,_=class extends C{constructor(){super(...arguments),this._messages=k({blocking:!0}),this._propWatcherTask=new x(this,{task:async([e,t])=>{let i=p(e)&&p(t);if(p(e)||$("error",this,b("layer")),p(t)||$("error",this,b("fieldName")),!i)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName]}),this.oneFeatureResponseStatus="missing",this.statisticsStatus="missing",this.uniqueValuesStatus="missing",this.hideAlias=!1,this.hideNumericFormat=!1,this.hideStatistics=!1,this.arcgisComplete=T(),this.arcgisFieldInfoComplete=T()}static{this.properties={oneFeatureResponseStatus:16,oneFeatureResponse:16,statisticsStatus:16,statistics:16,uniqueValuesStatus:16,uniqueValues:16,view:0,layer:0,fieldName:1,hideAlias:5,hideNumericFormat:5,hideStatistics:5}}static{this.styles=Y}async refresh(){await this.processProps(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.timeZoneHandle?.remove()}async processProps(){let{view:e,layer:t,fieldName:i,hideStatistics:a}=this;if(!t||!i)return;let r;if(t.declaredClass==="esri.layers.support.Sublayer"){let n=t;e&&await w.whenOnce(()=>!e.updating),r=await n.createFeatureLayer(),await r?.load()}this.props={view:e,layer:r??t,fieldName:i,hideStatistics:a},this.props.fieldInfo=H(this.props),t.type==="scene"&&L.request.interceptors?.push({urls:`${M(t)}/${t.layerId}`,before(n){n.requestOptions.authMode="no-prompt"}}),this.oneFeatureResponseStatus="in-progress";try{let n=await z(this.props);this.oneFeatureResponse=n,this.oneFeatureResponseStatus="success"}catch{this.oneFeatureResponseStatus="failed"}if(t.type==="stream"){this.uniqueValuesStatus="failed",this.statisticsStatus="failed";return}if(a)this.uniqueValuesStatus="failed";else{this.uniqueValuesStatus="in-progress";try{let n=await J(this.props);this.uniqueValues=n,n?.uniqueValueInfos?.length?this.uniqueValuesStatus="success":this.uniqueValuesStatus="failed"}catch{this.uniqueValuesStatus="failed"}}if(a)this.statisticsStatus="failed";else{this.statisticsStatus="in-progress";try{let n=await U(this.props);if(!p(n.totalCount)&&p(n.count)&&this.uniqueValuesStatus==="success"){let l=this.uniqueValues?.uniqueValueInfos??[];for(let u=0;u<l.length;u++){let c=l[u];if(c.value===null){n.totalCount=c.count+n.count;break}}n.totalCount??=n.count}this.statistics=n,this.statisticsStatus="success"}catch{this.statisticsStatus="failed"}}this.setUpTimeZoneHandle()}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{props:e}=this,{view:t,fieldInfo:i}=e;["date","timestamp-offset"].includes(this._getStatisticsType(i))&&(this.timeZoneHandle=w.watch(()=>t?.timeZone,()=>{this.requestUpdate()}))}_getFieldTypeLabel(e){let{_messages:t}=this,i=t.fieldTypes;switch(e){case"big-integer":return i.bigInteger;case"date":return i.date;case"date-only":return i.dateOnly;case"double":return i.double;case"global-id":return i.globalId;case"guid":return i.guid;case"integer":return i.integer;case"long":return i.long;case"oid":return i.oid;case"single":return i.single;case"small-integer":return i.smallInteger;case"string":return i.string;case"time-only":return i.timeOnly;case"timestamp-offset":return i.timestampOffset;default:return i.string}}_getStatisticsType(e){switch(e.layerField.type){case"big-integer":case"double":case"integer":case"single":case"small-integer":{if(e.codedValues)return"string";switch(e.layerField.valueType){case"binary":case"description":case"location-or-place-name":case"name-or-title":case"ordered-or-ranked":case"type-or-category":return"string";default:return"number"}}case"date":return"date";case"date-only":return"date-only";case"string":return"string";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";default:return"string"}}_getFieldValueTypeCamelCase(e){switch(e.layerField.valueType){case"count-or-amount":return"countOrAmount";case"date-and-time":return"dateAndTime";case"location-or-place-name":return"locationOrPlaceName";case"name-or-title":return"nameOrTitle";case"ordered-or-ranked":return"orderedOrRanked";case"percentage-or-ratio":return"percentageOrRatio";case"type-or-category":return"typeOrCategory";case"unique-identifier":return"uniqueIdentifier";case"phone-number":return"phoneNumber";case"email-address":return"emailAddress";default:return e.layerField.valueType}}_getDisplayString(e,t){let{props:i}=this,{fieldInfo:a}=i;switch(a.simpleFieldType){case"date":return this._getDateString(e,t);case"date-only":return this._getDateOnlyString(e,t);case"guid":return this._getGuidString(e);case"number":return this._getNumberString(e,t);case"time-only":return this._getTimeOnlyString(e,t);case"timestamp-offset":return this._getTimestampOffsetString(e,t);default:return`${e}`}}_getDateString(e,t){let{view:i}=this.props;return i&&i.timeZone==="unknown"?f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"})}_getTimestampOffsetString(e,t){let{view:i}=this.props;return typeof e=="string"?i&&i.timeZone==="unknown"?f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):f.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"}):this._getDateString(e,t)}_getDateOnlyString(e,t){return f.formatDateOnly(e,this.getIntlDateTimeFormattingOptions("short-date",t))}_getTimeOnlyString(e,t){return typeof e=="string"?f.formatTimeOnly(e,this.getIntlDateTimeFormattingOptions("short-date-long-time",t)):f.formatDate(e,{...this.getIntlDateTimeFormattingOptions("long-time",{...t,isTimeOnly:!0}),timeZone:"utc"})}_getGuidString(e){return e.startsWith("{")?e:`{${e}}`}_getNumberString(e,t){let i=t?.useFieldFormatting?e:Math.round(e*100)/100;return f.formatNumber(i,this.getIntlNumberFormattingOptions(t))}_printNumValue(e,t){return p(e)?this._getNumberString(e,t):"--"}_setCompleteRef(){this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit()}getCurrentFieldFormat(){let{props:e}=this,{layer:t,fieldName:i}=e;return(this.originalLayerSupportsFieldConfigs()?t.getFieldConfiguration(i):void 0)?.fieldFormat}getIntlNumberFormattingOptions(e){let t=this.getCurrentFieldFormat();if(!e?.useFieldFormatting)return t?{useGrouping:["always","auto"].includes(t.useGrouping)}:f.convertNumberFormatToIntlOptions({digitSeparator:this.getPopupTemplateFieldInfo()?.format?.digitSeparator??!0});let i=t?{minimumFractionDigits:t.minimumFractionDigits,maximumFractionDigits:t.maximumFractionDigits,useGrouping:["always","auto"].includes(t.useGrouping)}:void 0;if(i)return i;let a=this.getPopupTemplateFieldInfo();return f.convertNumberFormatToIntlOptions({digitSeparator:a?.format?.digitSeparator??!0,places:a?.format?.places??2})}getIntlDateTimeFormattingOptions(e,t){let i=this.getCurrentFieldFormat();if(!t?.useFieldFormatting)return i?t?.isTimeOnly?W:G:f.convertDateFormatToIntlOptions(e);let a=i?{dateStyle:t?.isTimeOnly?void 0:i.dateStyle??void 0,year:i.dateStyle?void 0:i.year??void 0,month:i.dateStyle?void 0:i.month??void 0,timeStyle:i.timeStyle??void 0,hourCycle:i.hour12==="never"?"h23":"h11"}:void 0;if(a)return a;let r=this.getPopupTemplateFieldInfo();return f.convertDateFormatToIntlOptions(r?.format?.dateFormat??e)}originalLayerSupportsFieldConfigs(){let{layer:e}=this;return I.supportsFieldConfiguration(e)}getPopupTemplateFieldInfo(){let{props:e}=this,{layer:t,fieldName:i}=e;return("popupTemplate"in t?t.popupTemplate:void 0)?.fieldInfos?.find(a=>a.fieldName===i)}render(){return this._propWatcherTask.render({complete:()=>{let{props:e}=this,{fieldInfo:t}=e;return t?d`<div class="container">${this.renderFieldType()}${this.renderFieldAlias()}${this.renderFieldDescription()}${this.renderFieldValueType()}${this.renderFieldSampleValue()}${this.renderFieldNumericFormat()}${this.renderFieldStatistics()}</div>`:""},error:()=>""})}renderFieldType(){let{_messages:e,props:t}=this,{fieldInfo:i}=t,a=this._getFieldTypeLabel(i.layerField.type);return d`<div class="section"><div class="title">${e.fieldType}</div><div>${a}</div></div>`}renderFieldAlias(){let{_messages:e,props:t,hideAlias:i}=this,{fieldInfo:a}=t;return i?"":d`<div class="section"><div class="title">${e.fieldAlias}</div><div>${a.label}</div></div>`}renderFieldDescription(){let{_messages:e,props:t}=this,{layer:i}=t;if(i.type!=="feature")return"";let{fieldInfo:a}=t,r=a.layerField.description;return d`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${h({missing:!r})}>${r||e.fieldDescriptionNotSet}</div></div>`}renderFieldValueType(){let{_messages:e,props:t}=this,{layer:i}=t;if(i.type!=="feature")return"";let{fieldInfo:a}=t,r=this._getFieldValueTypeCamelCase(a);return d`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${h(r?"":"missing")}>${r?e.fieldValueTypes[r]:e.fieldValueTypeNotSet}</div></div>`}renderFieldSampleValue(){let{oneFeatureResponse:e,oneFeatureResponseStatus:t,statisticsStatus:i,statistics:a,uniqueValuesStatus:r,uniqueValues:n,_messages:l,props:u}=this,{layer:c,fieldName:o,fieldInfo:m}=u,{statistics:y}=l,g;if(["imagery-tile","voxel"].includes(c.type)||c.type!=="stream"&&["string","oid","guid"].includes(this._getStatisticsType(m))&&r!=="failed")return"";t==="success"?e.features.forEach(v=>{(g===void 0||g===null&&v.attributes[o]!==null)&&(g=v.attributes[o])}):i==="success"?g=a?.min:r==="success"&&(g=n?.uniqueValueInfos?.[0]?.value||n?.uniqueValueInfos?.[1]?.value);let O=m.codedValues;return p(g)&&(O?g=O.find(v=>g===v.code)?.name||g:g=this._getDisplayString(g,{useFieldFormatting:!0})),d`<div class="section"><div class="title">${l.fieldSampleValue}</div><div class=${h(t==="failed"&&i==="failed"&&r==="failed"||!p(g)?"missing":"")}>${t==="success"||i==="success"||r==="success"?g?.toString()??y.allNulls:t==="failed"&&i==="failed"&&r==="failed"?l.fieldSampleNotAvailable:l.fieldSampleRetrieving}</div></div>`}renderFieldNumericFormat(){let{_messages:e,props:t,hideNumericFormat:i}=this,{fieldName:a,fieldInfo:r,layer:n}=t;if(i||!["double","long","single"].includes(r.layerField.type))return"";let l=this.originalLayerSupportsFieldConfigs()?n.getFieldConfiguration(a):void 0;if(l?.fieldFormat){let{minimumFractionDigits:c,maximumFractionDigits:o}=l.fieldFormat;return d`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}",c.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}",o.toString())}</div></div>`}let u="popupTemplate"in n?n.popupTemplate:void 0;if(u?.fieldInfos){let c=u.fieldInfos?.filter(o=>o.fieldName===a);if(c?.length){let o=c[0];if(p(o?.format?.places)){let m=o.format.places;return d`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}",m.toString())}</div></div>`}}}return d`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div class="missing">${e.fieldDecimalPlacesNotAvailable}</div></div>`}renderFieldStatistics(){let{statisticsStatus:e,uniqueValuesStatus:t,hideStatistics:i,_messages:a,props:r}=this,{layer:n,fieldInfo:l}=r;return i?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):["stream","imagery-tile","voxel"].includes(n.type)||["long"].includes(l.layerField.type)?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):d`<div class="section"><div class="title">${a.fieldStatistics}</div>${!e||e==="missing"||e==="in-progress"?F("field-info-statistics-content",d`<div class="missing">${a.fieldStatisticsRetrieving}</div>`):e==="failed"&&t!=="success"?this.renderNoStatistics():F("field-info-statistics-content",d`<div ${V(this._setCompleteRef)}>${this.renderStatistics()}</div>`)}</div>`}renderNoStatistics(){let{_messages:e}=this;return F("field-info-statistics-content",d`<div class="missing" ${V(this._setCompleteRef)}>${e.fieldStatisticsNotAvailable}</div>`)}renderStatistics(){let{props:e}=this,{fieldInfo:t}=e;switch(this._getStatisticsType(t)){case"number":return this.renderNumberStatistics();case"guid":case"oid":case"string":return this.renderStringStatistics();case"date":case"date-only":case"time-only":case"timestamp-offset":return this.renderDateStatistics();default:return""}}renderNumberStatistics(){let{statistics:e,_messages:t}=this;if(!e)return this.renderNoStatistics();let{statistics:i}=t;return d`<div><div class="statistics-row"><div>${i.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${p(e.sum)?d`<div class="statistics-row"><div>${i.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>`:null}${p(e.min)?d`<div class="statistics-row"><div>${i.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>`:null}${p(e.max)?d`<div class="statistics-row"><div>${i.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>`:null}${p(e.avg)?d`<div class="statistics-row"><div>${i.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>`:null}${p(e.stddev)?d`<div class="statistics-row"><div>${i.standardDeviation}</div><div class="data">${this._printNumValue(e.stddev)}</div></div>`:null}${this.renderNullValues()}</div>`}renderStringStatistics(){let{statistics:e,uniqueValuesStatus:t,_messages:i}=this,{statistics:a}=i;return d`<div><div class="statistics-row"><div>${a.numberOfValues}</div>${t!=="success"?d`<div class="missing">--</div>`:d`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`}renderDateStatistics(){let{statistics:e,view:t,props:i,_messages:a}=this,{fieldInfo:r}=i;if(!e||!p(e.max)||!p(e.min))return this.renderNoStatistics();let{statistics:n}=a,l=e.max-e.min,u=Math.floor(l/31536e6),c=Math.floor((l-u*31536e6)/2628e6),o=Math.ceil((l-c*2628e6)/864e5);o>=30&&(c+=1,o=0);let m=u===1?n.timeSpanOptions.year:u>1?n.timeSpanOptions.years.replace("${years}",u.toString()):"";m+=u>0&&(c>0||o>0)?", ":"",m+=c===1?n.timeSpanOptions.month:c>1?n.timeSpanOptions.months.replace("${months}",c.toString()):"",m+=c>0&&o>0?", ":"",m+=o===1?n.timeSpanOptions.day:o>1?n.timeSpanOptions.days.replace("${days}",o.toString()):"";let y=r.simpleFieldType!=="timestamp-offset"||!t||t.timeZone!=="unknown",g=r.simpleFieldType==="time-only";return d`<div><div class="statistics-row"><div>${n.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${y&&p(e.min)?d`<div class="statistics-row"><div>${g?n.minimumTime:n.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>`:null}${y&&p(e.max)?d`<div class="statistics-row"><div>${g?n.maximumTime:n.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>`:null}${y&&p(e.avg)?d`<div class="statistics-row"><div>${g?n.averageTime:n.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>`:null}${y&&!g&&p(e.min)&&p(e.max)&&l>0?d`<div class="statistics-row"><div>${n.timespan}</div><div class="data">${m}</div></div>`:null}${this.renderNullValues()}</div>`}renderTopValues(){let{uniqueValues:e,uniqueValuesStatus:t,_messages:i,props:a}=this,{fieldInfo:r}=a,{statistics:n}=i;if(e?.uniqueValueInfos?.length){let l=e.uniqueValueInfos;l.sort((o,m)=>o.count<m.count?1:o.count>m.count?-1:0);let u=r.codedValues,c=l.filter(o=>o.value!==null).filter((o,m)=>o&&m<10).map(o=>{let m=o.value;return u?u.forEach(y=>{m===y.code&&(m=y.name)}):m=this._getDisplayString(m),d`<div class="statistics-row"><div class="data">${`${m}`}</div><div class="count">${this._printNumValue(o.count)}</div></div>`});return c.length?d`<div><div class="statistics-row-top-values"><div>${l.length>10?n.topTenValues:n.topValues}</div><div>${n.count}</div></div>${c}</div>`:""}else return d`<div><div class="statistics-row-top-values"><div>${n.topValues}</div><div>${n.count}</div></div><div class="statistics-row"><div class="missing">${t==="failed"?i.fieldUniqueValuesNotAvailable:i.fieldSampleRetrieving}</div></div></div>`}renderNullValues(){let{statistics:e,uniqueValues:t,_messages:i}=this,{statistics:a}=i,r=e?.nullcount;if(!p(r)&&t){let n=t.uniqueValueInfos;for(let l=0;l<n.length;l++){let u=n[l];if(u.value===null){r=u.count;break}}}return d`<div class="statistics-row"><div>${a.numberOfNulls}</div>${p(r)?d`<div class="data">${this._printNumValue(r)}</div>`:d`<div class="missing">--</div>`}</div>`}};q("arcgis-field-info",_);return _},"config","core/reactiveUtils","intl","applications/PortalApp/layerUtils","core/lang","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","rest/support/Query")
|
package/dist/cdn/4DCAUWTC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as i}from"./WDOKXOEG.js";import{a as m}from"./EKKJN7WZ.js";import{a as u}from"./23DDMSOB.js";import{e as g}from"./7CI55VCH.js";import{A as a,B as d,C as e,E as p,H as h,g as l,i as n,q as s,t as c,z as o}from"./UTXWKXMT.js";var v=l`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`,r=class extends d{constructor(){super(),this.okButton=o(),this.popoverNode=o(),this._propWatcherTask=new u(this,{task:async([t])=>{if(!m(t)){console.error("[ckeditor5] Required properties are missing.");return}},args:()=>[this.refElement]}),this.guid=c(),this.intlOk="Ok",this.intlCancel="Cancel",this.arcgisCkeditor5PopoverClosed=s(),this.arcgisPopoverClosed=s(),this.listen("arcgisCreated",this.afterEditorCreated),this.listen("arcgisSourceEditingChanged",this.onSourceEditingStatusChanged)}static{this.properties={guid:1,refElement:0,intlOk:1,intlCancel:1,intlLabel:1}}static{this.styles=v}async reposition(){this.popoverNode.value?.reposition()}afterEditorCreated(t){this.editor=t.target,this.reposition(),this.requestUpdate()}onSourceEditingStatusChanged(t){this.okButton.value&&(this.okButton.value.disabled=t.detail)}render(){return this.el.classList.add("js-app-flyout"),this._propWatcherTask.render({complete:()=>n`<calcite-popover class=${e(i.popover)} dir=${g(this.el)??p} placement=leading-start open pointer-disabled .referenceElement=${this.refElement} .offsetDistance=${-Math.round(this.refElement.getBoundingClientRect().width)} offset-skidding=50 .label=${this.intlLabel??""} focus-trap-disabled trigger-disabled top-layer-disabled ${a(this.popoverNode)}><div class=${e(i.arcgisAppCkeditorPopoverContainer)}><slot></slot><div class=${e(i.arcgisAppCkeditorPopoverFooter)}><calcite-button .label=${this.intlOk} @click=${async t=>{this.okButton.value?.disabled||(t.stopPropagation(),this.arcgisCkeditor5PopoverClosed.emit({guid:this.guid,data:await this.editor?.getData()}),this.arcgisPopoverClosed.emit({guid:this.guid,data:await this.editor?.getData()}))}} ${a(this.okButton)}>${this.intlOk}</calcite-button><calcite-button appearance=outline-fill .label=${this.intlCancel} @click=${t=>{t.stopPropagation(),this.arcgisCkeditor5PopoverClosed.emit({guid:this.guid}),this.arcgisPopoverClosed.emit({guid:this.guid})}}>${this.intlCancel}</calcite-button></div></div></calcite-popover>`})}};h("arcgis-ckeditor5-popover",r);export{r as ArcgisCkeditor5Popover};
|