@arcgis/common-components 5.1.0-next.102 → 5.1.0-next.103
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/3P3NRZ2D.js +2 -0
- package/dist/cdn/{H74W6KYI.js → 53LIKT4M.js} +1 -1
- package/dist/cdn/{O6ZASYX6.js → 5KIT22UZ.js} +1 -1
- package/dist/cdn/ALH2AARB.js +2 -0
- package/dist/cdn/BPEHBFXY.js +2 -0
- package/dist/cdn/CLPCPWPE.js +2 -0
- package/dist/cdn/J7JP7Q3W.js +2 -0
- package/dist/cdn/{MHJWVKG5.js → QYF3665A.js} +1 -1
- package/dist/cdn/{LVSH5I3Q.js → UQQWSK4Z.js} +1 -1
- package/dist/cdn/W2BLCMKI.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/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/spatial-references.js +7598 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +327 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +110 -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-pick-list/customElement.js +91 -86
- package/dist/components/arcgis-spatial-reference-picker/customElement.js +43 -7635
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- 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 +20 -0
- package/dist/loader.js +4 -2
- package/dist/types/lumina.d.ts +12 -0
- package/dist/types/preact.d.ts +14 -0
- package/dist/types/react.d.ts +16 -0
- package/dist/types/stencil.d.ts +12 -0
- package/package.json +3 -3
- package/dist/cdn/43KGVFBF.js +0 -2
- package/dist/cdn/B43M633Q.js +0 -2
- package/dist/cdn/QEPJM6XG.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export function setAssetPath(path: URL | string): void;
|
|
|
47
47
|
import type { ArcgisCkeditor5 } from "./components/arcgis-ckeditor5/customElement.js";
|
|
48
48
|
import type { ArcgisCkeditor5Popover } from "./components/arcgis-ckeditor5-popover/customElement.js";
|
|
49
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";
|
|
50
52
|
import type { ArcgisFieldInfo } from "./components/arcgis-field-info/customElement.js";
|
|
51
53
|
import type { ArcgisFieldPickList } from "./components/arcgis-field-pick-list/customElement.js";
|
|
52
54
|
import type { ArcgisHistogram } from "./components/arcgis-histogram/customElement.js";
|
|
@@ -79,6 +81,16 @@ export interface ArcgisColorInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
79
81
|
target: ArcgisColorInput;
|
|
80
82
|
currentTarget: ArcgisColorInput;
|
|
81
83
|
}
|
|
84
|
+
export interface ArcgisCoordinateSystemPickerCustomEvent<T> extends CustomEvent<T> {
|
|
85
|
+
detail: T;
|
|
86
|
+
target: ArcgisCoordinateSystemPicker;
|
|
87
|
+
currentTarget: ArcgisCoordinateSystemPicker;
|
|
88
|
+
}
|
|
89
|
+
export interface ArcgisCoordinateSystemPickerTreeCustomEvent<T> extends CustomEvent<T> {
|
|
90
|
+
detail: T;
|
|
91
|
+
target: ArcgisCoordinateSystemPickerTree;
|
|
92
|
+
currentTarget: ArcgisCoordinateSystemPickerTree;
|
|
93
|
+
}
|
|
82
94
|
export interface ArcgisFieldInfoCustomEvent<T> extends CustomEvent<T> {
|
|
83
95
|
detail: T;
|
|
84
96
|
target: ArcgisFieldInfo;
|
|
@@ -136,6 +148,8 @@ declare global {
|
|
|
136
148
|
"arcgis-ckeditor5": ArcgisCkeditor5;
|
|
137
149
|
"arcgis-ckeditor5-popover": ArcgisCkeditor5Popover;
|
|
138
150
|
"arcgis-color-input": ArcgisColorInput;
|
|
151
|
+
"arcgis-coordinate-system-picker": ArcgisCoordinateSystemPicker;
|
|
152
|
+
"arcgis-coordinate-system-picker-tree": ArcgisCoordinateSystemPickerTree;
|
|
139
153
|
"arcgis-field-info": ArcgisFieldInfo;
|
|
140
154
|
"arcgis-field-pick-list": ArcgisFieldPickList;
|
|
141
155
|
"arcgis-histogram": ArcgisHistogram;
|
|
@@ -162,6 +176,12 @@ declare global {
|
|
|
162
176
|
type HTMLArcgisColorInputElementEventMap = ArcgisColorInput["@eventTypes"];
|
|
163
177
|
type HTMLArcgisColorInputElement = ArcgisColorInput;
|
|
164
178
|
|
|
179
|
+
type HTMLArcgisCoordinateSystemPickerElementEventMap = ArcgisCoordinateSystemPicker["@eventTypes"];
|
|
180
|
+
type HTMLArcgisCoordinateSystemPickerElement = ArcgisCoordinateSystemPicker;
|
|
181
|
+
|
|
182
|
+
type HTMLArcgisCoordinateSystemPickerTreeElementEventMap = ArcgisCoordinateSystemPickerTree["@eventTypes"];
|
|
183
|
+
type HTMLArcgisCoordinateSystemPickerTreeElement = ArcgisCoordinateSystemPickerTree;
|
|
184
|
+
|
|
165
185
|
type HTMLArcgisFieldInfoElementEventMap = ArcgisFieldInfo["@eventTypes"];
|
|
166
186
|
type HTMLArcgisFieldInfoElement = ArcgisFieldInfo;
|
|
167
187
|
|
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
7
|
"arcgis-color-input": [() => import("./components/arcgis-color-input/customElement.js"), "_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus"],
|
|
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"],
|
|
@@ -21,5 +23,5 @@ const l = i(e, {
|
|
|
21
23
|
"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"]
|
|
22
24
|
});
|
|
23
25
|
export {
|
|
24
|
-
|
|
26
|
+
t as defineCustomElements
|
|
25
27
|
};
|
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";
|
|
@@ -43,6 +45,14 @@ interface LuminaArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearab
|
|
|
43
45
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
44
46
|
}
|
|
45
47
|
|
|
48
|
+
interface LuminaArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, h.JSX.HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
49
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface LuminaArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, h.JSX.HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
53
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
54
|
+
}
|
|
55
|
+
|
|
46
56
|
interface LuminaArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, h.JSX.HTMLAttributes<ArcgisFieldInfo> {
|
|
47
57
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
48
58
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -116,6 +126,8 @@ declare module "@arcgis/lumina" {
|
|
|
116
126
|
"arcgis-ckeditor5": LuminaArcgisCkeditor5;
|
|
117
127
|
"arcgis-ckeditor5-popover": LuminaArcgisCkeditor5Popover;
|
|
118
128
|
"arcgis-color-input": LuminaArcgisColorInput;
|
|
129
|
+
"arcgis-coordinate-system-picker": LuminaArcgisCoordinateSystemPicker;
|
|
130
|
+
"arcgis-coordinate-system-picker-tree": LuminaArcgisCoordinateSystemPickerTree;
|
|
119
131
|
"arcgis-field-info": LuminaArcgisFieldInfo;
|
|
120
132
|
"arcgis-field-pick-list": LuminaArcgisFieldPickList;
|
|
121
133
|
"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";
|
|
@@ -44,6 +46,14 @@ interface PreactArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearab
|
|
|
44
46
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
interface PreactArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
50
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface PreactArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
54
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
interface PreactArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, HTMLAttributes<ArcgisFieldInfo> {
|
|
48
58
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
49
59
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -117,6 +127,8 @@ declare module 'preact' {
|
|
|
117
127
|
"arcgis-ckeditor5": PreactArcgisCkeditor5;
|
|
118
128
|
"arcgis-ckeditor5-popover": PreactArcgisCkeditor5Popover;
|
|
119
129
|
"arcgis-color-input": PreactArcgisColorInput;
|
|
130
|
+
"arcgis-coordinate-system-picker": PreactArcgisCoordinateSystemPicker;
|
|
131
|
+
"arcgis-coordinate-system-picker-tree": PreactArcgisCoordinateSystemPickerTree;
|
|
120
132
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
121
133
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
122
134
|
"arcgis-histogram": PreactArcgisHistogram;
|
|
@@ -138,6 +150,8 @@ declare module 'preact' {
|
|
|
138
150
|
"arcgis-ckeditor5": PreactArcgisCkeditor5;
|
|
139
151
|
"arcgis-ckeditor5-popover": PreactArcgisCkeditor5Popover;
|
|
140
152
|
"arcgis-color-input": PreactArcgisColorInput;
|
|
153
|
+
"arcgis-coordinate-system-picker": PreactArcgisCoordinateSystemPicker;
|
|
154
|
+
"arcgis-coordinate-system-picker-tree": PreactArcgisCoordinateSystemPickerTree;
|
|
141
155
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
142
156
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
143
157
|
"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";
|
|
@@ -44,6 +46,14 @@ interface ReactArcgisColorInput extends Partial<Pick<ArcgisColorInput, "clearabl
|
|
|
44
46
|
onarcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
interface ReactArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, HTMLProps<ArcgisCoordinateSystemPicker> {
|
|
50
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface ReactArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, HTMLProps<ArcgisCoordinateSystemPickerTree> {
|
|
54
|
+
onarcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
interface ReactArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, HTMLProps<ArcgisFieldInfo> {
|
|
48
58
|
onarcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
49
59
|
onarcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -117,6 +127,8 @@ declare module "react" {
|
|
|
117
127
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
118
128
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
119
129
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
130
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
131
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
120
132
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
121
133
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
122
134
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
@@ -140,6 +152,8 @@ declare module "react/jsx-runtime" {
|
|
|
140
152
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
141
153
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
142
154
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
155
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
156
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
143
157
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
144
158
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
145
159
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
@@ -163,6 +177,8 @@ declare module "react/jsx-dev-runtime" {
|
|
|
163
177
|
"arcgis-ckeditor5": ReactArcgisCkeditor5;
|
|
164
178
|
"arcgis-ckeditor5-popover": ReactArcgisCkeditor5Popover;
|
|
165
179
|
"arcgis-color-input": ReactArcgisColorInput;
|
|
180
|
+
"arcgis-coordinate-system-picker": ReactArcgisCoordinateSystemPicker;
|
|
181
|
+
"arcgis-coordinate-system-picker-tree": ReactArcgisCoordinateSystemPickerTree;
|
|
166
182
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
167
183
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
168
184
|
"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";
|
|
@@ -44,6 +46,14 @@ interface StencilArcgisColorInput extends Partial<Pick<ArcgisColorInput, "cleara
|
|
|
44
46
|
onArcgisSwatchUpdate?: EventHandler<ArcgisColorInput["arcgisSwatchUpdate"]>;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
interface StencilArcgisCoordinateSystemPicker extends Partial<Pick<ArcgisCoordinateSystemPicker, "autoFilterToDefault" | "defaultWkid" | "filterEnabled" | "hideCategories" | "value">>, StencilJsx.HTMLAttributes<ArcgisCoordinateSystemPicker> {
|
|
50
|
+
onArcgisChange?: EventHandler<ArcgisCoordinateSystemPicker["arcgisChange"]>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface StencilArcgisCoordinateSystemPickerTree extends Partial<Pick<ArcgisCoordinateSystemPickerTree, "data" | "value">>, StencilJsx.HTMLAttributes<ArcgisCoordinateSystemPickerTree> {
|
|
54
|
+
onArcgisChange?: EventHandler<ArcgisCoordinateSystemPickerTree["arcgisChange"]>;
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
interface StencilArcgisFieldInfo extends Partial<Pick<ArcgisFieldInfo, "fieldName" | "hideAlias" | "hideNumericFormat" | "hideStatistics" | "layer" | "view">>, StencilJsx.HTMLAttributes<ArcgisFieldInfo> {
|
|
48
58
|
onArcgisComplete?: EventHandler<ArcgisFieldInfo["arcgisComplete"]>;
|
|
49
59
|
onArcgisFieldInfoComplete?: EventHandler<ArcgisFieldInfo["arcgisFieldInfoComplete"]>;
|
|
@@ -115,6 +125,8 @@ interface ExposedElements {
|
|
|
115
125
|
"arcgis-ckeditor5": StencilArcgisCkeditor5;
|
|
116
126
|
"arcgis-ckeditor5-popover": StencilArcgisCkeditor5Popover;
|
|
117
127
|
"arcgis-color-input": StencilArcgisColorInput;
|
|
128
|
+
"arcgis-coordinate-system-picker": StencilArcgisCoordinateSystemPicker;
|
|
129
|
+
"arcgis-coordinate-system-picker-tree": StencilArcgisCoordinateSystemPickerTree;
|
|
118
130
|
"arcgis-field-info": StencilArcgisFieldInfo;
|
|
119
131
|
"arcgis-field-pick-list": StencilArcgisFieldPickList;
|
|
120
132
|
"arcgis-histogram": StencilArcgisHistogram;
|
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.103",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@lit/task": "^1.0.3",
|
|
50
50
|
"lit": "^3.3.0",
|
|
51
51
|
"tslib": "^2.8.1",
|
|
52
|
-
"@arcgis/lumina": "5.1.0-next.
|
|
53
|
-
"@arcgis/toolkit": "5.1.0-next.
|
|
52
|
+
"@arcgis/lumina": "5.1.0-next.103",
|
|
53
|
+
"@arcgis/toolkit": "5.1.0-next.103"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@arcgis/core": "^5.1.0-next",
|
package/dist/cdn/43KGVFBF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./TJNYRK5P.js";import{a as C,b as k}from"./O3CBCQNL.js";import{a as B}from"./GPVWNUMW.js";import{b as x}from"./JRF33N6C.js";import"./HYLC5GEB.js";import{A as h,B as w,C as $,D as m,E as c,F as v,H as S,g as y,i as s,m as p,n as F,q as n,z as r}from"./GSNPEBGQ.js";var o=new Map;o.set("oid","key");o.set("guid","key");o.set("global-id","key");o.set("blob","binary");o.set("integer","integer");o.set("small-integer","integer");o.set("big-integer","integer");o.set("single","number");o.set("double","number");o.set("long","number");o.set("number","number");o.set("date","date-time");o.set("date-only","calendar");o.set("time-only","clock");o.set("timestamp-offset","time-zone");o.set("string","string");var L=({fieldType:u})=>s`<calcite-icon scale=s .icon=${o.get(u)}></calcite-icon>`,E=y`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`,f=class extends w{constructor(){super(...arguments),this._messages=x({blocking:!0}),this.popoverNode=r(),this.listNode=r(),this.flowElement=r(),this.panelElement=r(),this.dropdownNode=r(),this.fieldInfoFlowItemEl=r(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this._propWatcherTask=new C(this,{task:async([e])=>{if(!this.listOnly&&!k(e?.refElement))throw p("error",this,F("popoverProps")),new Error;this._propWatcherTask.autoRun=!1},args:()=>[this.popoverProps]}),this.fields=[],this.selectedFields=[],this.listOnly=!1,this.showFieldInfo=!1,this.showFieldTypeIcon=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.hideCancel=!1,this.showSort=!0,this.hideSort=!1,this.showFilterLength=10,this.multiple=!1,this.sortBy="default",this.groupFieldsAndExpressions=!1,this.arcgisChange=n(),this.arcgisClose=n(),this.arcgisFieldPickListChange=n(),this.arcgisFieldPickListDismissed=n(),this.arcgisFieldPickListSortByChange=n(),this.arcgisSortByChange=n(),this.arcgisEditField=n(),this.arcgisDeleteField=n()}static{this.properties={lastSortBy:16,filterFields:16,mapView:0,view:0,layer:0,fields:0,selectedFields:0,listOnly:5,popoverProps:0,showFieldInfo:5,showFieldTypeIcon:5,showFieldName:5,showDescription:5,showSelectionAll:5,showCancel:5,hideCancel:5,showSort:5,hideSort:5,showFilterLength:9,multiple:5,heading:1,okBtnText:1,filterPlaceholderText:1,filterNoResultsText:1,sortBy:1,groupFieldsAndExpressions:5,fieldsGroupHeading:1,expressionsGroupHeading:1,customExpressionCheck:0}}static{this.styles=E}async reposition(){await this.popoverNode.value?.reposition()}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}load(){!this.view&&this.mapView&&(this.view=this.mapView),!this.showCancel&&!this.hideCancel&&(this.hideCancel=!0),!this.showSort&&!this.hideSort&&(this.hideSort=!0),this.listOnly&&this.showFieldInfo&&(this.showFieldInfo=!1,p("info",this,"showFieldInfo is not supported if listOnly is true.")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortBy=this.sortBy??this.lastSortBy,this.updateGroupedLists()}willUpdate(e){(e.has("fields")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&this.updateGroupedLists()}loaded(){this.setUpObserver(),this.listOnly?this.listNode.value?.setFocus():(this.flowElement.value?.setFocus(),this.checkMaxHeight())}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}setUpObserver(){this.observer=new MutationObserver(e=>{for(let t of e)t.attributeName==="style"&&this.popoverNode.value&&this.dropdownNode.value&&this.popoverNode.value.style.visibility==="hidden"&&(this.dropdownNode.value.open=!1)})}checkMaxHeight(){setTimeout(()=>this.checkPanelMaxHeight(),200),setTimeout(()=>this.checkPanelMaxHeight(),500),setTimeout(()=>this.checkPanelMaxHeight(),1e3),setTimeout(()=>this.checkPanelMaxHeight(),1500)}checkPanelMaxHeight(){if(this.panelCutOffHeight===0){let e=this.panelElement.value?.getBoundingClientRect();if(e&&e.bottom>window.innerHeight){this.panelCutOffHeight=e.height-(e.bottom-window.innerHeight)-5;let t=this.listNode.value?.getBoundingClientRect();t&&(this.listNode.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],i=t.filter(l=>l.type==="none");return t=t.filter(l=>l.type!=="none"),this.lastSortBy==="display"?t.sort((l,a)=>l.alias.localeCompare(a.alias)):this.lastSortBy==="field"?t.sort((l,a)=>l.name.localeCompare(a.name)):this.lastSortBy==="type"&&t.sort((l,a)=>l.type.localeCompare(a.type)),t=t.concat(i),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(g.expression)}canDeselectAll(){let e=this.getAllFields();return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===e.length}filterContainsAll(){return!!this.filterFields?.every(e=>this.selectedFields.some(t=>t===e))}showFieldInfoCheck(e){let{layer:t}=this;return this.showFieldInfo?!(!t||this.isExpression(e)||e.name.includes(g.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],this.usingCustomGroups())for(let e of this.fields)this.allLists.push({title:e.title,fields:[...this.getSortedList(e.fields)]});else this.allLists=this.groupFieldsAndExpressions?[{title:this.expressionsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>this.isExpression(e))},{title:this.fieldsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>!this.isExpression(e))}]:[{title:void 0,fields:[...this.getSortedList(this.fields)]}]}addFieldInfoFlowItem(e,t){let i=this.flowElement.value,l=v(s`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${m(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${a=>{a.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${h(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??c} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);i.appendChild(l),this.panelElement.value.selected=!1,this.fieldInfoFlowItemEl?.value.setFocus()}usingCustomGroups(){return!!this.fields.length&&"fields"in this.fields[0]}getAllFields(){return this.allLists.map(e=>e.fields).flat()}render(){return this._propWatcherTask.render({complete:()=>{if(this.listOnly)return this.renderList();let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.popoverProps;return this.el.classList.add("js-app-flyout"),s`<calcite-popover .placement=${t.placement??"leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance??-Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding??0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading??(this.multiple?this._messages.headerSelect:this._messages.header)??""} @calcitePopoverClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${h(this.popoverNode)}><calcite-flow style=${m({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${h(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${h(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&s`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?s`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:s`${this.renderAddButton()}${this.renderCancelButton()}`}</div>`||""}</calcite-flow-item></calcite-flow></calcite-popover>`},error:()=>""})}renderList(){let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.getAllFields(),i=t.length>=this.showFilterLength;return s`${t.length?s`<calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} class=${$(this.listOnly?"":"content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>{let l=this.listNode.value.selectedItems.map(d=>d.value),a=this.selectedFields.filter(d=>l.includes(d)),b=l.filter(d=>!this.selectedFields.includes(d));this.selectedFields=[...new Set([...a,...b])],this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}} @calciteListFilter=${l=>{l.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(a=>a.value),this.filterText=this.listNode.value.filterText}} ${h(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple&&this.showSelectionAll&&(!i||!this.filterText||this.filterFields?.length)?this.renderSelectionButton():null}${this.renderListItems()}</calcite-list>`:s`<slot name=no-fields></slot>`}${this.filterFields&&!this.filterFields.length&&this.listNode.value&&this.filterNoResultsText?.length!==0?s`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSortButton(){let e=this.getAllFields();if(!(e.length>=this.showFilterLength&&!this.hideSort))return"";let t=e.every(i=>!!i.type);return s`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields?this.filterFields.length<4:!1} @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${h(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort??""} title=${this._messages.sort??c}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @click=${()=>{this.lastSortBy="default",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy)}} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&(this.lastSortBy="default",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy))}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @click=${()=>{this.lastSortBy="display",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy)}} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&(this.lastSortBy="display",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy))}}>${this._messages.displayName}</calcite-dropdown-item>${t&&s`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @click=${()=>{this.lastSortBy="type",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy)}} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&(this.lastSortBy="type",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy))}}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @click=${()=>{this.lastSortBy="field",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy)}} @keydown=${i=>{i.stopPropagation(),(i.key===" "||i.key==="Enter")&&(this.lastSortBy="field",this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy))}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return s`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${()=>{if(this.canDeselectAll())this.selectedFields=this.filterFields?.length?this.selectedFields.filter(e=>!this.filterFields?.includes(e)):[];else if(this.filterFields?.length)this.selectedFields=[...new Set([...this.selectedFields,...this.filterFields])];else{let e=this.getAllFields();this.selectedFields=e.map(t=>t.name)}this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderListItems(){let e=this.allLists.filter(t=>!!t.fields.length);return e.length===1&&!e[0].title?e[0].fields.map(t=>this.renderCalciteListItem(t)):e.map(t=>s`<calcite-list-item-group .heading=${t.title}>${t.fields.map(i=>this.renderCalciteListItem(i))}</calcite-list-item-group>`)}renderCalciteListItem(e){let t=this.showFieldInfoCheck(e),i=this.showFieldTypeIcon&&!!e.type;return B(e.name,s`<calcite-list-item .label=${e.alias||e.name} .description=${(()=>{if(this.showFieldName&&e.hideFieldName!==!0)return`{${e.name}}`;if(this.showDescription&&e.hideDescription!==!0&&e.description)return e.description})()} .value=${e.name} .selected=${!this.multiple&&e.name===this.selectedFields[0]||this.multiple&&this.selectedFields.includes(e.name)} .metadata=${{label:e.alias,fieldName:e.name}}>${i&&s`<div slot=actions-end class="field-icons">${L({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:i}=this;return t?s`<calcite-action slot=actions-end .text=${i.info} title=${i.info??c} scale=s icon=information @click=${l=>{l.stopPropagation();let a=l.currentTarget;this.addFieldInfoFlowItem(e,a)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?s`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??c} scale=s icon=pencil @click=${i=>{i.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?s`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??c} scale=s icon=trash @click=${i=>{i.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?s`<calcite-button .appearance=${this.hideCancel?"outline-fill":"solid"} .width=${this.hideCancel?"full":"half"} @click=${()=>{this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}}>${this.okBtnText||(this.multiple?this._messages.done:this._messages.ok)}</calcite-button>`:""}renderCancelButton(){return this.hideCancel?"":s`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};S("arcgis-field-pick-list",f);export{f as ArcgisFieldPickList};
|
package/dist/cdn/B43M633Q.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"./GSNPEBGQ.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"))}:dir(rtl){.tick-label{direction:rtl}}: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")
|