@arcgis/common-components 5.2.0-next.106 → 5.2.0-next.108
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/{IXISGCNR.js → 2JQ6OEBP.js} +2 -2
- package/dist/cdn/{JLF6J4PV.js → 2ZQLPGO6.js} +2 -2
- package/dist/cdn/{BQCBHDME.js → 34O5NI3L.js} +2 -2
- package/dist/cdn/{CKBWHADN.js → 3KVQXK6I.js} +2 -2
- package/dist/cdn/{H4B7RWSC.js → 3KZKOKL3.js} +2 -2
- package/dist/cdn/{27EUJ42B.js → 3YTGG7RF.js} +2 -2
- package/dist/cdn/{FCIUMZTZ.js → 44GHRHDT.js} +2 -2
- package/dist/cdn/46YOWKVP.js +2 -0
- package/dist/cdn/4Z3W4SLN.js +2 -0
- package/dist/cdn/{EXBLSHSY.js → 5I46DP72.js} +2 -2
- package/dist/cdn/{HPNII7DL.js → 6G2BA5R6.js} +2 -2
- package/dist/cdn/{CEXP5DLE.js → 73LCJZI5.js} +2 -2
- package/dist/cdn/{Y5Y7IXOV.js → 74MDECVO.js} +1 -1
- package/dist/cdn/AHWD5KV4.js +2 -0
- package/dist/cdn/B2QFPLR5.js +2 -0
- package/dist/cdn/{WJZHHIWO.js → DLOQSM4T.js} +2 -2
- package/dist/cdn/{L6V3WKUI.js → E4CBJIXT.js} +2 -2
- package/dist/cdn/{XEK22IDA.js → E4NVOXNZ.js} +1 -1
- package/dist/cdn/EWHSIDUL.js +2 -0
- package/dist/cdn/{AY6QNI6M.js → FH6M3L5Q.js} +2 -2
- package/dist/cdn/FMIYRWWD.js +2 -0
- package/dist/cdn/{RYAF2CEQ.js → G2DVIZZJ.js} +2 -2
- package/dist/cdn/{WOZ7IPPQ.js → GB5FMYCZ.js} +2 -2
- package/dist/cdn/GPRF6QZC.js +2 -0
- package/dist/cdn/{NQRDB6LM.js → GQBGVIQF.js} +2 -2
- package/dist/cdn/{J6YVJVSN.js → GQCIBJZF.js} +2 -2
- package/dist/cdn/{7XSCHHGO.js → IBJHDNP3.js} +2 -2
- package/dist/cdn/{H7JRH53Q.js → ISCASG7C.js} +2 -2
- package/dist/cdn/{4TZVXSQZ.js → LE43VGSR.js} +2 -2
- package/dist/cdn/LRG23IGC.js +2 -0
- package/dist/cdn/{PMV2N3L3.js → NMDESY3T.js} +1 -1
- package/dist/cdn/O2DY73RF.js +2 -0
- package/dist/cdn/OHMQBUUM.js +2 -0
- package/dist/cdn/{OADKJRMQ.js → OVOUEXKG.js} +2 -2
- package/dist/cdn/{Z5QBBHLD.js → P3DCEHGK.js} +1 -1
- package/dist/cdn/{7CY3QEZW.js → QH4CFJEJ.js} +2 -2
- package/dist/cdn/{TWW63D32.js → QJJFF4PI.js} +1 -1
- package/dist/cdn/{H66SBHKJ.js → QKRBQ2F5.js} +2 -2
- package/dist/cdn/{VJDK62KV.js → RT25KW2T.js} +2 -2
- package/dist/cdn/RZEJ56RX.js +2 -0
- package/dist/cdn/S3XLEJSQ.js +2 -0
- package/dist/cdn/SBVCJDLD.js +2 -0
- package/dist/cdn/{4D7RVA5N.js → UIHTW6OA.js} +2 -2
- package/dist/cdn/UIKQQY3N.js +2 -0
- package/dist/cdn/{LLKF5IUE.js → UWHPPNTE.js} +2 -2
- package/dist/cdn/VIBCKXUC.js +2 -0
- package/dist/cdn/{4DL4CQMD.js → WUGJFP7P.js} +2 -2
- package/dist/cdn/{UGWLCTVM.js → YJTI6KPW.js} +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/element-reference-controller.js +8 -6
- package/dist/chunks/general.js +1 -1
- package/dist/chunks/internal-types.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/strategies.js +1 -1
- package/dist/chunks/toolbar.js +9 -0
- package/dist/chunks/types.js +16 -0
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +18 -28
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +4 -4
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +1 -1
- package/dist/components/arcgis-field-info/customElement.d.ts +1 -1
- package/dist/components/arcgis-field-info/customElement.js +73 -80
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +7 -7
- package/dist/components/arcgis-field-pick-list/customElement.js +49 -45
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-picker-input/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-slider-field/customElement.js +1 -1
- package/dist/components/arcgis-slider-histogram-range/customElement.js +1 -1
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-toolbar/customElement.d.ts +26 -6
- package/dist/components/arcgis-toolbar/customElement.js +61 -35
- package/dist/components/arcgis-toolbar/types.d.ts +32 -1
- package/dist/components/arcgis-toolbar-action/customElement.d.ts +1 -1
- package/dist/components/arcgis-toolbar-action/customElement.js +17 -22
- package/dist/components/arcgis-toolbar-group/customElement.js +18 -17
- package/dist/components/arcgis-toolbar-item/customElement.d.ts +1 -1
- package/dist/components/arcgis-toolbar-item/customElement.js +7 -7
- package/dist/components/arcgis-toolbar-more-button/customElement.js +8 -8
- package/dist/components/arcgis-toolbar-split-button/customElement.js +16 -15
- package/dist/components/arcgis-toolbar-stack/customElement.d.ts +48 -0
- package/dist/components/arcgis-toolbar-stack/customElement.js +174 -0
- package/dist/components/arcgis-toolbar-stack/index.d.ts +1 -0
- package/dist/components/arcgis-toolbar-stack/index.js +1 -0
- package/dist/components/arcgis-unique-values-list/customElement.js +3 -3
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-collection/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-combobox/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-label/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
- 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 +6 -0
- package/dist/index.js +3 -1
- package/dist/loader.js +3 -2
- package/dist/types/lumina.d.ts +5 -0
- package/dist/types/preact.d.ts +6 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/stencil.d.ts +5 -0
- package/package.json +4 -4
- package/dist/cdn/4S7M7IP7.js +0 -2
- package/dist/cdn/A2QOOQYR.js +0 -2
- package/dist/cdn/DM57UJMG.js +0 -2
- package/dist/cdn/EO2W4XX2.js +0 -2
- package/dist/cdn/HBTHCFTX.js +0 -2
- package/dist/cdn/K2W2X3P7.js +0 -2
- package/dist/cdn/NUJU53OQ.js +0 -2
- package/dist/cdn/RBBKKELV.js +0 -2
- package/dist/cdn/RYTUSPBA.js +0 -2
- package/dist/cdn/SM5735TW.js +0 -2
- package/dist/cdn/VCZLD7ZT.js +0 -2
- package/dist/cdn/VOBBBIYC.js +0 -2
- package/dist/cdn/XPZQ4XIH.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PopoverProps as PopoverPropsAlias, PickListFieldInfo as PickListFieldInfoAlias, PickListGroupInfo as PickListGroupInfoAlias } from "./utils/types.js";
|
|
2
2
|
|
|
3
|
+
export { LayoutPriorities } from "./components/arcgis-toolbar/types.js";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @deprecated import { PopoverProps } from "@arcgis/common-components/utils/types" instead
|
|
5
7
|
* @internal
|
|
@@ -68,6 +70,7 @@ import type { ArcgisToolbarGroup } from "./components/arcgis-toolbar-group/custo
|
|
|
68
70
|
import type { ArcgisToolbarItem } from "./components/arcgis-toolbar-item/customElement.js";
|
|
69
71
|
import type { ArcgisToolbarMoreButton } from "./components/arcgis-toolbar-more-button/customElement.js";
|
|
70
72
|
import type { ArcgisToolbarSplitButton } from "./components/arcgis-toolbar-split-button/customElement.js";
|
|
73
|
+
import type { ArcgisToolbarStack } from "./components/arcgis-toolbar-stack/customElement.js";
|
|
71
74
|
import type { ArcgisUniqueValuesList } from "./components/arcgis-unique-values-list/customElement.js";
|
|
72
75
|
import type { ArcgisValuePicker } from "./components/arcgis-value-picker/customElement.js";
|
|
73
76
|
import type { ArcgisValuePickerCollection } from "./components/arcgis-value-picker-collection/customElement.js";
|
|
@@ -215,6 +218,7 @@ declare global {
|
|
|
215
218
|
"arcgis-toolbar-item": ArcgisToolbarItem;
|
|
216
219
|
"arcgis-toolbar-more-button": ArcgisToolbarMoreButton;
|
|
217
220
|
"arcgis-toolbar-split-button": ArcgisToolbarSplitButton;
|
|
221
|
+
"arcgis-toolbar-stack": ArcgisToolbarStack;
|
|
218
222
|
"arcgis-unique-values-list": ArcgisUniqueValuesList;
|
|
219
223
|
"arcgis-value-picker": ArcgisValuePicker;
|
|
220
224
|
"arcgis-value-picker-collection": ArcgisValuePickerCollection;
|
|
@@ -288,6 +292,8 @@ declare global {
|
|
|
288
292
|
|
|
289
293
|
type HTMLArcgisToolbarSplitButtonElement = ArcgisToolbarSplitButton;
|
|
290
294
|
|
|
295
|
+
type HTMLArcgisToolbarStackElement = ArcgisToolbarStack;
|
|
296
|
+
|
|
291
297
|
type HTMLArcgisUniqueValuesListElementEventMap = ArcgisUniqueValuesList["@eventTypes"];
|
|
292
298
|
type HTMLArcgisUniqueValuesListElement = ArcgisUniqueValuesList;
|
|
293
299
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { g as e, s as a } from "./chunks/runtime.js";
|
|
3
|
+
import { L as r } from "./chunks/types.js";
|
|
3
4
|
export {
|
|
5
|
+
r as LayoutPriorities,
|
|
4
6
|
e as getAssetPath,
|
|
5
7
|
a as setAssetPath
|
|
6
8
|
};
|
package/dist/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
|
|
2
2
|
import { r as e } from "./chunks/runtime.js";
|
|
3
3
|
import { makeDefineCustomElements as a } from "@arcgis/lumina";
|
|
4
4
|
const s = a(e, {
|
|
@@ -20,12 +20,13 @@ const s = a(e, {
|
|
|
20
20
|
"arcgis-slider-histogram-range": [() => import("./components/arcgis-slider-histogram-range/customElement.js"), "activeValue:,average,bins:,dataLines:,excludedBarColor:,fieldType,fillPlacement,includedBarColor:,label,labelFormatter:,layout,max,min,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,standardDeviation,standardDeviationCount,valueLabelsDisplay,valueLabelsEditingEnabled,values;destroy,generateWhereClause,updateFromHistogramResult"],
|
|
21
21
|
"arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],
|
|
22
22
|
"arcgis-ticks": [() => import("./components/arcgis-ticks/customElement.js"), "interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],
|
|
23
|
-
"arcgis-toolbar": [() => import("./components/arcgis-toolbar/customElement.js"), "barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance"],
|
|
23
|
+
"arcgis-toolbar": [() => import("./components/arcgis-toolbar/customElement.js"), "barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance;;allocate,measure,proxiedRender"],
|
|
24
24
|
"arcgis-toolbar-action": [() => import("./components/arcgis-toolbar-action/customElement.js"), "actionElement:,active,appearance,disabled,icon,iconFlipRtl,indicator,kind,labelText,loading,textEnabled,tooltipText;;measure,proxiedRender"],
|
|
25
25
|
"arcgis-toolbar-group": [() => import("./components/arcgis-toolbar-group/customElement.js"), "preferEndSlot,priority;;measure,proxiedRender"],
|
|
26
26
|
"arcgis-toolbar-item": [() => import("./components/arcgis-toolbar-item/customElement.js"), "actionElement:,active,disabled,icon,iconFlipRtl,labelText,lastActivated:,loading,tooltipText;;measure,proxiedRender"],
|
|
27
27
|
"arcgis-toolbar-more-button": [() => import("./components/arcgis-toolbar-more-button/customElement.js"), "menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],
|
|
28
28
|
"arcgis-toolbar-split-button": [() => import("./components/arcgis-toolbar-split-button/customElement.js"), "menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],
|
|
29
|
+
"arcgis-toolbar-stack": [() => import("./components/arcgis-toolbar-stack/customElement.js"), "layout,relativePosition,scale,toolbarKind,tooltipAppearance"],
|
|
29
30
|
"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"],
|
|
30
31
|
"arcgis-value-picker": [() => import("./components/arcgis-value-picker/customElement.js"), "autoDestroyDisabled,disabled,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],
|
|
31
32
|
"arcgis-value-picker-collection": [() => import("./components/arcgis-value-picker-collection/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/cust
|
|
|
23
23
|
import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
|
|
24
24
|
import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
|
|
25
25
|
import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
|
|
26
|
+
import type { ArcgisToolbarStack } from "../components/arcgis-toolbar-stack/customElement.js";
|
|
26
27
|
import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
|
|
27
28
|
import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
|
|
28
29
|
import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
|
|
@@ -152,6 +153,9 @@ interface LuminaArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreBu
|
|
|
152
153
|
interface LuminaArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, h.JSX.HTMLAttributes<ArcgisToolbarSplitButton> {
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
interface LuminaArcgisToolbarStack extends Partial<Pick<ArcgisToolbarStack, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, h.JSX.HTMLAttributes<ArcgisToolbarStack> {
|
|
157
|
+
}
|
|
158
|
+
|
|
155
159
|
interface LuminaArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, h.JSX.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
156
160
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
157
161
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
@@ -211,6 +215,7 @@ declare module "@arcgis/lumina" {
|
|
|
211
215
|
"arcgis-toolbar-item": LuminaArcgisToolbarItem;
|
|
212
216
|
"arcgis-toolbar-more-button": LuminaArcgisToolbarMoreButton;
|
|
213
217
|
"arcgis-toolbar-split-button": LuminaArcgisToolbarSplitButton;
|
|
218
|
+
"arcgis-toolbar-stack": LuminaArcgisToolbarStack;
|
|
214
219
|
"arcgis-unique-values-list": LuminaArcgisUniqueValuesList;
|
|
215
220
|
"arcgis-value-picker": LuminaArcgisValuePicker;
|
|
216
221
|
"arcgis-value-picker-collection": LuminaArcgisValuePickerCollection;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/cust
|
|
|
23
23
|
import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
|
|
24
24
|
import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
|
|
25
25
|
import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
|
|
26
|
+
import type { ArcgisToolbarStack } from "../components/arcgis-toolbar-stack/customElement.js";
|
|
26
27
|
import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
|
|
27
28
|
import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
|
|
28
29
|
import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
|
|
@@ -153,6 +154,9 @@ interface PreactArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreBu
|
|
|
153
154
|
interface PreactArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, HTMLAttributes<ArcgisToolbarSplitButton> {
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
interface PreactArcgisToolbarStack extends Partial<Pick<ArcgisToolbarStack, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, HTMLAttributes<ArcgisToolbarStack> {
|
|
158
|
+
}
|
|
159
|
+
|
|
156
160
|
interface PreactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, HTMLAttributes<ArcgisUniqueValuesList> {
|
|
157
161
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
158
162
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
@@ -212,6 +216,7 @@ declare module 'preact' {
|
|
|
212
216
|
"arcgis-toolbar-item": PreactArcgisToolbarItem;
|
|
213
217
|
"arcgis-toolbar-more-button": PreactArcgisToolbarMoreButton;
|
|
214
218
|
"arcgis-toolbar-split-button": PreactArcgisToolbarSplitButton;
|
|
219
|
+
"arcgis-toolbar-stack": PreactArcgisToolbarStack;
|
|
215
220
|
"arcgis-unique-values-list": PreactArcgisUniqueValuesList;
|
|
216
221
|
"arcgis-value-picker": PreactArcgisValuePicker;
|
|
217
222
|
"arcgis-value-picker-collection": PreactArcgisValuePickerCollection;
|
|
@@ -246,6 +251,7 @@ declare module 'preact' {
|
|
|
246
251
|
"arcgis-toolbar-item": PreactArcgisToolbarItem;
|
|
247
252
|
"arcgis-toolbar-more-button": PreactArcgisToolbarMoreButton;
|
|
248
253
|
"arcgis-toolbar-split-button": PreactArcgisToolbarSplitButton;
|
|
254
|
+
"arcgis-toolbar-stack": PreactArcgisToolbarStack;
|
|
249
255
|
"arcgis-unique-values-list": PreactArcgisUniqueValuesList;
|
|
250
256
|
"arcgis-value-picker": PreactArcgisValuePicker;
|
|
251
257
|
"arcgis-value-picker-collection": PreactArcgisValuePickerCollection;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/cust
|
|
|
23
23
|
import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
|
|
24
24
|
import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
|
|
25
25
|
import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
|
|
26
|
+
import type { ArcgisToolbarStack } from "../components/arcgis-toolbar-stack/customElement.js";
|
|
26
27
|
import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
|
|
27
28
|
import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
|
|
28
29
|
import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
|
|
@@ -153,6 +154,9 @@ interface ReactArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreBut
|
|
|
153
154
|
interface ReactArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, HTMLProps<ArcgisToolbarSplitButton> {
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
interface ReactArcgisToolbarStack extends Partial<Pick<ArcgisToolbarStack, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, HTMLProps<ArcgisToolbarStack> {
|
|
158
|
+
}
|
|
159
|
+
|
|
156
160
|
interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, HTMLProps<ArcgisUniqueValuesList> {
|
|
157
161
|
onarcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
158
162
|
onarcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
@@ -212,6 +216,7 @@ declare module "react" {
|
|
|
212
216
|
"arcgis-toolbar-item": ReactArcgisToolbarItem;
|
|
213
217
|
"arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
|
|
214
218
|
"arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
|
|
219
|
+
"arcgis-toolbar-stack": ReactArcgisToolbarStack;
|
|
215
220
|
"arcgis-unique-values-list": ReactArcgisUniqueValuesList;
|
|
216
221
|
"arcgis-value-picker": ReactArcgisValuePicker;
|
|
217
222
|
"arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
|
|
@@ -248,6 +253,7 @@ declare module "react/jsx-runtime" {
|
|
|
248
253
|
"arcgis-toolbar-item": ReactArcgisToolbarItem;
|
|
249
254
|
"arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
|
|
250
255
|
"arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
|
|
256
|
+
"arcgis-toolbar-stack": ReactArcgisToolbarStack;
|
|
251
257
|
"arcgis-unique-values-list": ReactArcgisUniqueValuesList;
|
|
252
258
|
"arcgis-value-picker": ReactArcgisValuePicker;
|
|
253
259
|
"arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
|
|
@@ -284,6 +290,7 @@ declare module "react/jsx-dev-runtime" {
|
|
|
284
290
|
"arcgis-toolbar-item": ReactArcgisToolbarItem;
|
|
285
291
|
"arcgis-toolbar-more-button": ReactArcgisToolbarMoreButton;
|
|
286
292
|
"arcgis-toolbar-split-button": ReactArcgisToolbarSplitButton;
|
|
293
|
+
"arcgis-toolbar-stack": ReactArcgisToolbarStack;
|
|
287
294
|
"arcgis-unique-values-list": ReactArcgisUniqueValuesList;
|
|
288
295
|
"arcgis-value-picker": ReactArcgisValuePicker;
|
|
289
296
|
"arcgis-value-picker-collection": ReactArcgisValuePickerCollection;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/cust
|
|
|
23
23
|
import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
|
|
24
24
|
import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
|
|
25
25
|
import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
|
|
26
|
+
import type { ArcgisToolbarStack } from "../components/arcgis-toolbar-stack/customElement.js";
|
|
26
27
|
import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
|
|
27
28
|
import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
|
|
28
29
|
import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
|
|
@@ -153,6 +154,9 @@ interface StencilArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreB
|
|
|
153
154
|
interface StencilArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarSplitButton> {
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
interface StencilArcgisToolbarStack extends Partial<Pick<ArcgisToolbarStack, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, StencilJsx.HTMLAttributes<ArcgisToolbarStack> {
|
|
158
|
+
}
|
|
159
|
+
|
|
156
160
|
interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
|
|
157
161
|
onArcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
|
|
158
162
|
onArcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
|
|
@@ -210,6 +214,7 @@ interface ExposedElements {
|
|
|
210
214
|
"arcgis-toolbar-item": StencilArcgisToolbarItem;
|
|
211
215
|
"arcgis-toolbar-more-button": StencilArcgisToolbarMoreButton;
|
|
212
216
|
"arcgis-toolbar-split-button": StencilArcgisToolbarSplitButton;
|
|
217
|
+
"arcgis-toolbar-stack": StencilArcgisToolbarStack;
|
|
213
218
|
"arcgis-unique-values-list": StencilArcgisUniqueValuesList;
|
|
214
219
|
"arcgis-value-picker": StencilArcgisValuePicker;
|
|
215
220
|
"arcgis-value-picker-collection": StencilArcgisValuePickerCollection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.108",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
49
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
48
|
+
"@arcgis/lumina": "5.2.0-next.108",
|
|
49
|
+
"@arcgis/toolkit": "5.2.0-next.108",
|
|
50
50
|
"@esri/arcgis-html-sanitizer": "~4.1.0",
|
|
51
51
|
"@lit/task": "^1.0.3",
|
|
52
52
|
"lit": "^3.3.0",
|
|
53
53
|
"tslib": "^2.8.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@arcgis/core": "5.2.0-next.
|
|
56
|
+
"@arcgis/core": "5.2.0-next.108",
|
|
57
57
|
"@esri/calcite-components": "^5.2.0-next.65"
|
|
58
58
|
},
|
|
59
59
|
"css.customData": [
|
package/dist/cdn/4S7M7IP7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as d,d as h}from"./VCZLD7ZT.js";import{c as s}from"./VJDK62KV.js";import"./TWW63D32.js";import{I as i,J as n,P as l,h as r,j as e}from"./WJZHHIWO.js";var g=r`:host{--arcgis-internal-toolbar-action-kind-color: var(--calcite-action-text-color);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-action-text-color-press);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-action-text-color-press);--arcgis-internal-toolbar-action-kind-foreground-color: var(--calcite-color-text-inverse);--arcgis-internal-toolbar-action-transparent-background-color: var(--calcite-color-transparent);--arcgis-internal-toolbar-action-transparent-background-color-hover: var(--calcite-color-transparent-hover);--arcgis-internal-toolbar-action-transparent-background-color-press: var(--calcite-color-transparent-press)}calcite-action{--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);--calcite-color-focus: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-indicator-color: var(--arcgis-internal-toolbar-action-kind-color)}calcite-action:is([data-appearance=solid]){--calcite-offset-invert-focus: 1}calcite-action[data-appearance=outline]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-transparent-background-color);--calcite-action-background-color-hover: var(--arcgis-internal-toolbar-action-transparent-background-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-toolbar-action-transparent-background-color-press);--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color)}calcite-action[data-appearance=outline]:hover{box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color-hover)}calcite-action[data-appearance=outline]:active,calcite-action[data-appearance=outline][active]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-transparent-background-color-press);box-shadow:inset 0 0 0 var(--calcite-border-width-sm, 1px) var(--arcgis-internal-toolbar-action-kind-color-press)}calcite-action[data-appearance=solid]{--calcite-action-background-color: var(--arcgis-internal-toolbar-action-kind-color);--calcite-action-background-color-hover: var(--arcgis-internal-toolbar-action-kind-color-hover);--calcite-action-background-color-press: var(--arcgis-internal-toolbar-action-kind-color-press);--calcite-action-text-color: var(--arcgis-internal-toolbar-action-kind-foreground-color);--calcite-action-text-color-press: var(--arcgis-internal-toolbar-action-kind-foreground-color);--calcite-action-indicator-color: var(--arcgis-internal-toolbar-action-kind-foreground-color)}calcite-action:is([data-appearance=outline],[data-appearance=solid]):not([data-kind]){--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-inverse);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-inverse-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-inverse-press)}calcite-action:not([data-kind]){--calcite-action-indicator-color: var(--calcite-color-brand)}calcite-action[data-kind=brand]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-brand);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-brand-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-brand-press);--calcite-action-indicator-color: var(--calcite-color-text-1);&[data-appearance=solid]{--calcite-action-indicator-color: var(--calcite-color-text-inverse)}}calcite-action[data-kind=danger]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-danger);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-danger-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-danger-press)}calcite-action[data-kind=info]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-info);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-info-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-info-press)}calcite-action[data-kind=success]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-success);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-success-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-success-press)}calcite-action[data-kind=warning]{--arcgis-internal-toolbar-action-kind-color: var(--calcite-color-status-warning);--arcgis-internal-toolbar-action-kind-color-hover: var(--calcite-color-status-warning-hover);--arcgis-internal-toolbar-action-kind-color-press: var(--calcite-color-status-warning-press)}`,u=r`:host([layout="horizontal"]){calcite-action.split-anchor{min-width:24px;max-width:24px;&[scale=m]{--calcite-internal-action-spacing: .25rem}&[scale=l]{--calcite-internal-action-spacing: 0rem}}}:host([layout="vertical"]){calcite-action.split-anchor{--calcite-internal-action-min-height: unset;min-height:24px;max-height:24px}}.split-host{display:contents;cursor:pointer;calcite-action:has(~.split-menu[open]),calcite-action:has(~.split-menu:hover),calcite-action:has(~.split-menu:focus-within),calcite-action:hover~.split-menu calcite-action[slot=trigger],.split-menu[open] calcite-action[slot=trigger],.split-menu:hover calcite-action[slot=trigger],.split-menu:focus-within calcite-action[slot=trigger]{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}}:host([layout="horizontal"]){.split-host{calcite-action:has(+.split-menu){border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-bottom-right-radius:0}calcite-action[slot=trigger]{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-top-left-radius:0}calcite-action:dir(rtl):has(+.split-menu){border-radius:var(--calcite-action-corner-radius, 2px);border-top-left-radius:0;border-bottom-left-radius:0}calcite-action:dir(rtl)[slot=trigger]{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-right-radius:0;border-top-right-radius:0}.split-menu:dir(ltr){margin-left:calc(0px - var(--calcite-internal-action-bar-gap))}.split-menu:dir(rtl){margin-right:calc(0px - var(--calcite-internal-action-bar-gap))}}}:host([layout="vertical"]){.split-host{calcite-action:has(+.split-menu){border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-bottom-right-radius:0}calcite-action[slot=trigger]{border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-top-left-radius:0}.split-menu{margin-top:calc(0px - var(--calcite-internal-action-bar-gap))}}}`,v=r`:host{display:flex;max-inline-size:100%;max-block-size:100%;--arcgis-toolbar-tooltip-dark-background-color: #212121;--arcgis-toolbar-tooltip-dark-border-color: #404040;--arcgis-toolbar-tooltip-dark-text-color: #fff}:host([toolbar-kind="floating"]){display:inline-flex;.ruler{opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:min(100cqw - 32px,100vw - 32px);height:min(100cqh - 32px,100vh - 32px)}}:host([toolbar-kind="docked"]){.ruler{visibility:hidden;height:0;display:block;position:absolute;top:0;left:0;right:0;width:100%;height:100%}}:host([toolbar-kind="docked"][layout="horizontal"]){calcite-action-bar{min-width:100%}}:host([toolbar-kind="docked"][layout="vertical"]){min-height:100%;calcite-action-bar{min-height:100%}}:host([toolbar-kind="floating"][layout="horizontal"]){inline-size:max-content;overflow-x:auto}:host([toolbar-kind="floating"][layout="vertical"]){block-size:max-content;overflow-y:auto}calcite-tooltip.calcite-mode-dark{--calcite-tooltip-background-color: var(--arcgis-toolbar-tooltip-dark-background-color);--calcite-tooltip-border-color: var(--arcgis-toolbar-tooltip-dark-border-color);--calcite-tooltip-text-color: var(--arcgis-toolbar-tooltip-dark-text-color)}`,c=class extends n{constructor(){super(...arguments),this.#t=new ResizeObserver(t=>this._updateMeasurement(t)),this.#o=new MutationObserver(()=>this._syncGroups()),this.#i=s(),this._setRenderedBar=t=>{t==null&&(this._renderedBar=void 0,this._hydratedRenderedBar=void 0),!(t===this._renderedBar||t===this._hydratedRenderedBar)&&(this._renderedBar=t,this._hydratedRenderedBar=void 0,t&&t.componentOnReady().then(()=>{!this.isConnected||this._renderedBar!==t||(this._hydratedRenderedBar=t)}))},this._availableLength=0,this.layout="horizontal",this.scale="m",this.tooltipAppearance="native",this.relativePosition="top-left",this.toolbarKind="floating"}static{this.properties={_availableLength:16,_groups:16,_renderedBar:16,_hydratedRenderedBar:16,layout:3,scale:3,tooltipAppearance:1,relativePosition:1,toolbarKind:3,barElement:32,effectiveRelativeDirection:16}}static{this.styles=[v,g,u]}#t;#o;#r;#i;#a;get barElement(){return this._hydratedRenderedBar}get effectiveRelativeDirection(){let[t,a]=this.relativePosition.split("-"),o=this.#i;switch(a){case"left":case"right":return`${t}-${a}`;case"end":return`${t}-${o==="ltr"?"right":"left"}`;case"start":return`${t}-${o==="ltr"?"left":"right"}`}}connectedCallback(){super.connectedCallback(),this._connectMeasurement(this.#a),this.#o.observe(this.el,{childList:!0}),this._syncGroups()}disconnectedCallback(){this.#t.disconnect(),this.#o.disconnect(),super.disconnectedCallback()}_setRulerEl(t){this.#a!==t&&(this.#a=t,this.isConnected&&this._connectMeasurement(t))}_connectMeasurement(t){this.#t.disconnect(),t&&(this.#t.observe(t),this._updateMeasurement())}_updateMeasurement(t){let a=t?.at(0)?.contentRect??this.#a?.getBoundingClientRect();a&&(this._availableLength=this.layout==="horizontal"?a.width:a.height)}_syncGroups(){this.#r?.abort();let t=Array.from(this.el.children).filter(d),a=new AbortController;this.#r=a,Promise.all(t.map(o=>o.componentOnReady())).then(()=>{!this.isConnected||a.signal.aborted||(this._groups=t)})}render(){let t=this._groups;if(!t?.length)return;let a={layout:this.layout,relativePosition:this.effectiveRelativeDirection,scale:this.scale,tooltipAppearance:this.tooltipAppearance},o=h(t,a,this._availableLength);return e`<div class="ruler" ${i(this._setRulerEl)}></div><calcite-action-bar expand-disabled .floating=${this.toolbarKind==="floating"} .layout=${this.layout} overflow-actions-disabled .scale=${this.scale} ${i(this._setRenderedBar)}>${o.map(({group:p,budget:b})=>p.proxiedRender(a,b))}</calcite-action-bar>`}};l("arcgis-toolbar",c);export{c as ArcgisToolbar};
|
package/dist/cdn/A2QOOQYR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as x}from"./VOBBBIYC.js";import{a as y}from"./SM5735TW.js";import{a as b,b as _,c as A}from"./27EUJ42B.js";import{a as m}from"./VCZLD7ZT.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{I as u,J as g,K as $,M as f,P as C,j as p}from"./WJZHHIWO.js";var v=class extends g{constructor(){super(...arguments),this._elementReferenceController=new y(this),this._childrenObserver=new MutationObserver(()=>{this._syncChildren()}),this.priority=m.Medium,this.menuAppearance="action-menu",this.overflowActionLabel="More actions"}static{this.properties={_children:16,priority:9,menuAppearance:1,overflowActionLabel:1}}measure(e){let i=this._children?.length??0;if(!i)return[0];let o=b(e),l=i*o;if(!(this.priority<m.NeverCollapse&&i>2))return[l];let r=Math.min(i,2)*o,c=[r];if(i<=2||this.priority<=m.ForceCollapse)return c;for(let t=1;t<i-1;t++)c.push(r+o*t);return A(c)}proxiedRender(e,i){let o=this._children;if(!o)return;let{visible:l,hidden:r}=this._resolveActionsFromBudget(o,e,i),c="hamburger",t=this.overflowActionLabel,n=e.tooltipAppearance,s=n!=="native",d=this._elementReferenceController.element,w=n==="calcite-dark"?"calcite-mode-dark":void 0,h=_(e),R=this.menuAppearance==="action-menu"?p`<calcite-action-menu .label=${t} overlay-positioning=fixed .placement=${h}><calcite-action .icon=${c} .scale=${e.scale} slot=trigger .text=${t} title=${(n==="native"?t:"")??f} ${u(this._elementReferenceController.ref)}></calcite-action>${r.map(a=>a.proxiedRender(e,"expanded-action"))}</calcite-action-menu>`:p`<calcite-dropdown overlay-positioning=fixed .placement=${h}><calcite-action .icon=${c} .scale=${e.scale} slot=trigger .text=${t} title=${(n==="native"?t:"")??f} ${u(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown-group selection-mode=none>${r.map(a=>a.proxiedRender(e,"dropdown-item"))}</calcite-dropdown-group></calcite-dropdown>`;return p`${l.map(a=>a.proxiedRender(e,"collapsed-action"))}${r.length?R:void 0}${r.length&&s?p`<calcite-tooltip class=${$(w)} overlay-positioning=fixed .placement=${h} .referenceElement=${d}><span>${t}</span></calcite-tooltip>`:void 0}`}connectedCallback(){super.connectedCallback(),this._childrenObserver.observe(this.el,{childList:!0}),this._syncChildren()}disconnectedCallback(){this._childrenObserver.disconnect(),super.disconnectedCallback()}_syncChildren(){this._componentWaitAbortController?.abort();let e=Array.from(this.el.querySelectorAll("arcgis-toolbar-item")),i=new AbortController;this._componentWaitAbortController=i,Promise.all(e.map(o=>o.componentOnReady())).then(()=>{!this.isConnected||i.signal.aborted||(this._children=e)})}_resolveActionsFromBudget(e,i,o){let l=e.find(s=>s.active)??e?.toSorted(x)?.at(0),r=Math.floor(o/b(i));if(r>=e.length)return{visible:[...e],hidden:[]};let c=r-1,t=e.slice(0,c),n=e.slice(c);if(l&&n.includes(l)){let[s]=n.splice(n.indexOf(l),1),d=t.pop();t.push(s),d&&n.unshift(d)}return{visible:t,hidden:n}}};C("arcgis-toolbar-more-button",v);export{v as ArcgisToolbarMoreButton};
|
package/dist/cdn/DM57UJMG.js
DELETED
package/dist/cdn/EO2W4XX2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as g}from"./27EUJ42B.js";import{c as l}from"./VCZLD7ZT.js";import{I as h,J as m,K as p,M as a,P as u,h as d,j as o,t as c}from"./WJZHHIWO.js";var v=d`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`,r=class extends m{constructor(){super(...arguments),this.#e=t=>{if(t!==this._element){if(this.#t?.disconnect(),this._element=t,this._hydratedElement=void 0,this.isConnected&&this.arcgisRenderedActionChanged.emit({element:t}),!t){this._measuredWidth=0,this._measuredHeight=0;return}this._measureAction(),this.#t??=new ResizeObserver(e=>{!this.textEnabled||!this._element||this._measureAction(e)}),this.#t.observe(t),t.componentOnReady().then(()=>{!this.isConnected||this._element!==t||(this._hydratedElement=t,t.shadowRoot?.adoptedStyleSheets.push(v.styleSheet))})}},this._measuredWidth=0,this._measuredHeight=0,this.active=!1,this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.indicator=!1,this.textEnabled=!1,this.appearance="transparent",this.iconFlipRtl=!1,this.arcgisRenderedActionChanged=c(),this.arcgisToolbarItemSelected=c()}static{this.properties={_element:16,_hydratedElement:16,_measuredWidth:16,_measuredHeight:16,icon:1,active:7,tooltipText:1,labelText:1,disabled:5,loading:5,indicator:5,textEnabled:5,kind:3,appearance:3,iconFlipRtl:5,actionElement:32}}#t;#e;get actionElement(){return this._element}measure({layout:t,scale:e}){let s=l.actionPadding[e],i=l.action[e],n=t==="horizontal"?this._measuredWidth:this._measuredHeight;return[Math.max(i,n)+s]}proxiedRender(t){let{tooltipAppearance:e,scale:s}=t,i=this.tooltipText||this.labelText,n=this._hydratedElement,_=e!=="native"&&!!i&&n,b=e==="calcite-dark"?"calcite-mode-dark":void 0,x=g(t);return o`<calcite-action .active=${this.active} data-appearance=${this.appearance??a} data-kind=${this.kind??a} data-layout=${t.layout??a} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${i} .loading=${this.loading} @click=${$=>this._handleActionClick($)} .scale=${s} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e==="native"?i:void 0)??a} ${h(this.#e)}></calcite-action>${_?o`<calcite-tooltip class=${p(b)} overlay-positioning=fixed .placement=${x} .referenceElement=${n} .scale=${s}><span>${i}</span></calcite-tooltip>`:void 0}`}disconnectedCallback(){this.#t?.disconnect(),super.disconnectedCallback()}_handleActionClick(t){this.arcgisToolbarItemSelected?.emit({element:t.currentTarget})}_measureAction(t){let e=t?.at(0)?.contentRect??this._element?.getBoundingClientRect();e&&(this._measuredWidth=Math.round(e.width),this._measuredHeight=Math.round(e.height))}};u("arcgis-toolbar-action",r);export{r as ArcgisToolbarAction};
|
package/dist/cdn/HBTHCFTX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as N}from"./Y5Y7IXOV.js";import{a as K,b as Q}from"./H4B7RWSC.js";import{a as X}from"./DM57UJMG.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{a as _}from"./JLF6J4PV.js";import{A as V,B as z,C as S,D as $,E as U,F as j,G as I,H as w,I as u,J as q,K as E,L as k,M as v,N as P,P as J,h as H,j as a,l as R,o as b,p as G,t as F,z as W}from"./WJZHHIWO.js";var Y=(l,e,t)=>{let s=new Map;for(let i=e;i<=t;i++)s.set(l[i],i);return s},D=V(class extends z{constructor(l){if(super(l),l.type!==W.CHILD)throw Error("repeat() can only be used in text expressions")}dt(l,e,t){let s;t===void 0?t=e:e!==void 0&&(s=e);let i=[],o=[],n=0;for(let r of l)i[n]=s?s(r,n):n,o[n]=t(r,n),n++;return{values:o,keys:i}}render(l,e,t){return this.dt(l,e,t).values}update(l,[e,t,s]){let i=j(l),{values:o,keys:n}=this.dt(e,t,s);if(!Array.isArray(i))return this.ut=n,o;let r=this.ut??=[],f=[],x,A,d=0,p=i.length-1,c=0,m=o.length-1;for(;d<=p&&c<=m;)if(i[d]===null)d++;else if(i[p]===null)p--;else if(r[d]===n[c])f[c]=$(i[d],o[c]),d++,c++;else if(r[p]===n[m])f[m]=$(i[p],o[m]),p--,m--;else if(r[d]===n[m])f[m]=$(i[d],o[m]),S(l,f[m+1],i[d]),d++,m--;else if(r[p]===n[c])f[c]=$(i[p],o[c]),S(l,i[d],i[p]),p--,c++;else if(x===void 0&&(x=Y(n,c,m),A=Y(r,d,p)),x.has(r[d]))if(x.has(r[p])){let g=A.get(n[c]),T=g!==void 0?i[g]:null;if(T===null){let M=S(l,i[d]);$(M,o[c]),f[c]=M}else f[c]=$(T,o[c]),S(l,i[d],T),i[g]=null;c++}else I(i[p]),p--;else I(i[d]),d++;for(;c<=m;){let g=S(l,f[m+1]);$(g,o[c]),f[c++]=g}for(;d<=p;){let g=i[d++];g!==null&&I(g)}return this.ut=n,U(l,f),R}});var h=new Map;h.set("oid","key");h.set("guid","key");h.set("global-id","key");h.set("blob","binary");h.set("integer","integer");h.set("small-integer","integer");h.set("big-integer","integer");h.set("single","number");h.set("double","number");h.set("long","number");h.set("number","number");h.set("date","date-time");h.set("date-only","calendar");h.set("time-only","clock");h.set("timestamp-offset","time-zone");h.set("string","string");var Z=({fieldType:l})=>a`<calcite-icon scale=s .icon=${h.get(l)}></calcite-icon>`;function ee(l){return!!l.length&&"fields"in l[0]}function y(l){return!!l.length&&"subFieldInfos"in l[0]}function te(l){return l.filter(e=>y(e.fields))}function ie(l){return l.flatMap(e=>e.fields)}function se(l){return l.flatMap(e=>y(e.fields)?[]:e.fields)}function C(l){return l.flatMap(e=>y(e.fields)?e.fields.flatMap(t=>t.subFieldInfos):e.fields)}function le(l,e){return l.flatMap(t=>y(t.fields)?t.fields.flatMap(s=>s.subFieldInfos.filter(i=>L(i,e,!0))):t.fields.filter(s=>B(s,e)))}function B(l,e){return e?"subFieldInfos"in l?L(l,e)||l.subFieldInfos.some(t=>L(t,e,!0)):L(l,e):!0}function L(l,e,t=!1){return[t?l.name.split("/").pop():l.name,l.alias,l.description].some(s=>s?.toLocaleLowerCase().includes(e.toLocaleLowerCase()))}var oe=H`.panel{min-height:250px}.list-wrapper{max-height:50vh;overflow:auto}.list-controls{display:grid;grid-template-columns:1fr auto}.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}`,O=class extends q{constructor(){super(...arguments),this._messages=X({blocking:!0}),this.popoverNode=w(),this.listWrapper=w(),this.listNode=w(),this.flowElement=w(),this.panelElement=w(),this.dropdownNode=w(),this.fieldInfoFlowItemEl=w(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this.initialized=!1,this._propWatcherTask=new K(this,{task:async([e])=>{if(!this.listOnly&&!Q(e?.refElement))throw b("error",this,G("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=F(),this.arcgisClose=F(),this.arcgisDeleteField=F(),this.arcgisEditField=F(),this.arcgisFieldPickListChange=F(),this.arcgisFieldPickListDismissed=F(),this.arcgisFieldPickListSortByChange=F(),this.arcgisSortByChange=F()}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=oe}async reposition(){await this.popoverNode.value?.reposition()}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}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,b("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(),this.initialized=!0}willUpdate(e){this.initialized&&(e.has("fields")||e.has("sortBy")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&(e.has("sortBy")&&(this.lastSortBy=this.sortBy??this.lastSortBy),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.listWrapper.value?.getBoundingClientRect();t&&(this.listWrapper.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],s=t.filter(i=>i.type==="none");return t=t.filter(i=>i.type!=="none"),this.lastSortBy==="display"?t.sort((i,o)=>i.alias.localeCompare(o.alias)):this.lastSortBy==="field"?t.sort((i,o)=>i.name.localeCompare(o.name)):this.lastSortBy==="type"&&t.sort((i,o)=>i.type.localeCompare(o.type)),t=t.concat(s),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(N.expression)}canDeselectAll(){let e=C(this.allLists);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(N.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],ee(this.fields))for(let e of this.fields){if(this.listOnly&&y(e.fields)){b("error",this,"subFieldInfos are not supported if listOnly is true.");continue}this.allLists.push({title:e.title,fields:this.getSortedGroupFields(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)}]}getSortedGroupFields(e){return y(e)?this.getSortedList(e).map(t=>({...t,subFieldInfos:this.getSortedList(t.subFieldInfos).map(s=>({...s,name:`${t.name}/${s.name}`}))})):this.getSortedList(e)}addFieldInfoFlowItem(e,t){let s=this.flowElement.value,i=P(a`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${k(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${o=>{o.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${u(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??v} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);s.appendChild(i),this.panelElement.value.selected=!1,setTimeout(()=>this.fieldInfoFlowItemEl?.value.setFocus(),1)}addSubFieldInfoFlowItem(e,t){let s=this.flowElement.value,i=e.subFieldInfos.filter(n=>L(n,this.filterText,!0)),o=P(a`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.description??void 0} class="panel" style=${k(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${n=>{n.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${u(this.fieldInfoFlowItemEl)}><calcite-list .label=${e.alias??e.name} .selectionMode=${this.multiple?"multiple":"single"} @calciteListChange=${n=>{this.updateSelectedFieldsForList(n.currentTarget,e.subFieldInfos),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}))}}>${i.map(n=>this.renderCalciteListItem(n,!1))}</calcite-list>${this.filterText&&!i.length&&this.filterNoResultsText?.length!==0?a`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}</calcite-flow-item>`);s.appendChild(o),this.panelElement.value.selected=!1,setTimeout(()=>this.fieldInfoFlowItemEl.value?.setFocus(),1)}shouldRenderSelectionButton(e){return this.multiple&&this.showSelectionAll&&(!e||!this.filterText||!!this.filterFields?.length)}handleListSelectionChange(e){this.updateSelectedFieldsForList(this.listNode.value,e),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}))}updateSelectedFieldsForList(e,t){let s=new Set(t.map(r=>r.name)),i=e.selectedItems.map(r=>r.value),o=this.selectedFields.filter(r=>!s.has(r)||i.includes(r)),n=i.filter(r=>!this.selectedFields.includes(r));this.selectedFields=this.multiple?[...new Set([...o,...n])]:i,this.reorderSelectedFieldsByCurrentListOrder()}setSortBy(e){this.lastSortBy=e,this.updateGroupedLists(),this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy),this.reorderSelectedFieldsByCurrentListOrder()&&(this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}))}reorderSelectedFieldsByCurrentListOrder(){if(!this.selectedFields.length)return!1;let e=C(this.allLists).map(o=>o.name),t=new Set(this.selectedFields),s=e.filter(o=>t.has(o)),i=s.length!==this.selectedFields.length||s.some((o,n)=>o!==this.selectedFields[n]);return i&&(this.selectedFields=[...s]),i}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"),_(`${t.autoClose}`,a`<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()}} ${u(this.popoverNode)}><calcite-flow style=${k({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${u(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${u(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&a`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?a`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:a`${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=se(this.allLists),s=te(this.allLists),i=C(this.allLists).length>=this.showFilterLength;return t.length||s.length?s.length?this.renderSplitLists(t,s,i):this.renderTopLevelOnlyFieldList(e,t,i):a`<slot name=no-fields></slot>`}renderSplitLists(e,t,s){let i=C(this.allLists),o=ie(this.allLists).some(n=>B(n,this.filterText));return a`${s?a`<div class="list-controls"><calcite-filter .items=${i} .filterProps=${["name","alias","description"]} .placeholder=${this.filterPlaceholderText??this._messages.filter} @calciteFilterChange=${n=>{this.filterText=n.currentTarget.value,this.filterFields=this.filterText?le(this.allLists,this.filterText).map(r=>r.name):void 0}}></calcite-filter>${this.renderSortButton()}</div>`:null}<div class=${E(this.listOnly?"":"list-wrapper")} ${u(this.listWrapper)}>${this.shouldRenderSelectionButton(s)?this.renderSelectionButton():null}${this.renderSplitSubFieldLists(t)}${e.length?this.renderSplitTopLevelFieldList(e,!0):null}</div>${this.filterText&&!o&&this.filterNoResultsText?.length!==0?a`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSplitSubFieldLists(e){let t=e.map(s=>({...s,fields:s.fields.filter(i=>B(i,this.filterText))})).filter(s=>!!s.fields.length);return D(t,s=>s.title,s=>a`<calcite-list selection-mode=none .label=${s.title??this.heading??""}><calcite-list-item-group .heading=${s.title}>${D(s.fields,i=>i.name,i=>a`<calcite-list-item .label=${i.alias||i.name} .description=${this.multiple?this._messages.subFieldsSelected.replace("${count}",`${i.subFieldInfos.filter(o=>this.selectedFields.includes(o.name)).length}`):void 0} .value=${i.name} @click=${o=>this.addSubFieldInfoFlowItem(i,o.currentTarget)} @keydown=${o=>{o.key==="Enter"&&this.addSubFieldInfoFlowItem(i,o.currentTarget)}}><calcite-icon slot=actions-end icon=chevron-right flip-rtl scale=s></calcite-icon></calcite-list-item>`)}</calcite-list-item-group></calcite-list>`)}renderSplitTopLevelFieldList(e,t){return a`<calcite-list .label=${this.heading||(this.multiple?this._messages.headerSelect:this._messages.header)} .selectionMode=${this.multiple?"multiple":"single"} @calciteListChange=${()=>this.handleListSelectionChange(e)} ${u(this.listNode)}><slot name=content-center></slot>${this.renderGroupedListItems(t)}</calcite-list>`}renderTopLevelOnlyFieldList(e,t,s){return a`<div class=${E(this.listOnly?"":"list-wrapper")} ${u(this.listWrapper)}><calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>this.handleListSelectionChange(t)} @calciteListFilter=${i=>{i.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(o=>o.value),this.filterText=this.listNode.value.filterText}} ${u(this.listNode)}>${this.renderSortButton("filter-actions-end")}${this.shouldRenderSelectionButton(s)?this.renderSelectionButton():null}<slot name=content-center></slot>${this.renderGroupedListItems(!1)}</calcite-list></div>`}renderSortButton(e){let t=C(this.allLists);if(!(t.length>=this.showFilterLength&&!this.hideSort))return"";let s=t.every(i=>!!i.type);return a`<calcite-dropdown slot=${e??v} placement=bottom-end overlay-positioning=fixed @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${u(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort??""} title=${this._messages.sort??v}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @calciteDropdownItemSelect=${()=>this.setSortBy("default")}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @calciteDropdownItemSelect=${()=>this.setSortBy("display")}>${this._messages.displayName}</calcite-dropdown-item>${s&&a`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @calciteDropdownItemSelect=${()=>this.setSortBy("type")}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @calciteDropdownItemSelect=${()=>this.setSortBy("field")}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return a`<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=C(this.allLists);this.selectedFields=e.map(t=>t.name)}this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderGroupedListItems(e){let t=this.allLists.filter(s=>!!s.fields.length&&!y(s.fields)).map(s=>({...s,fields:e?s.fields.filter(i=>B(i,this.filterText)):s.fields})).filter(s=>!!s.fields.length);return t.length===1&&!t[0].title?this.renderListItems(t[0].fields):t.map(s=>a`<calcite-list-item-group .heading=${s.title}>${this.renderListItems(s.fields)}</calcite-list-item-group>`)}renderListItems(e){return e.map(t=>this.renderCalciteListItem(t))}renderCalciteListItem(e,t=!0){let s=t&&this.showFieldInfoCheck(e),i=this.showFieldTypeIcon&&!!e.type;return _(e.name,a`<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&&a`<div slot=actions-end class="field-icons">${Z({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,s)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:s}=this;return t?a`<calcite-action slot=actions-end .text=${s.info} title=${s.info??v} scale=s icon=information @click=${i=>{i.stopPropagation();let o=i.currentTarget;this.addFieldInfoFlowItem(e,o)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?a`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??v} scale=s icon=pencil @click=${s=>{s.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?a`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??v} scale=s icon=trash @click=${s=>{s.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?a`<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?"":a`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};J("arcgis-field-pick-list",O);export{O as ArcgisFieldPickList};
|
package/dist/cdn/K2W2X3P7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as R}from"./VOBBBIYC.js";import{a as x}from"./SM5735TW.js";import{a as v,b as A,c as w}from"./27EUJ42B.js";import{a as h,c as _}from"./VCZLD7ZT.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{I as f,J as y,K as s,M as d,P as C,j as c}from"./WJZHHIWO.js";var $=class extends y{constructor(){super(...arguments),this._elementReferenceController=new x(this),this._childrenObserver=new MutationObserver(()=>this._syncChildren()),this.priority=h.Medium,this.menuAppearance="dropdown",this.overflowActionLabel="More actions"}static{this.properties={_children:16,priority:9,menuAppearance:1,overflowActionLabel:1}}measure(e){let{priority:i,_children:r}=this,l=r?.length??0;if(!l)return[0];let o=v(e),n=l*o;if(!(i<h.NeverCollapse)||l<=1)return[n];let t=o+B(e);return i<=h.ForceCollapse?[t]:w([t,n])}proxiedRender(e,i){let r=this._children;if(!r)return;let{visible:l,hidden:o}=this._resolveActionsFromBudget(r,e,i,this.menuAppearance==="dropdown"),n=W(e),t=this.overflowActionLabel,m=e.tooltipAppearance,k=m!=="native",L=this._elementReferenceController.element,O=m==="calcite-dark"?"calcite-mode-dark":void 0,b="split-anchor",g=o.length?"split-menu":"",u=A(e),M=this.menuAppearance==="action-menu"?c`<calcite-action-menu .label=${t} overlay-positioning=fixed .placement=${u} class=${s(g)}><calcite-action .icon=${n} .scale=${e.scale} class=${s(b)} data-layout=${e.layout??d} slot=trigger title=${t??d} .label=${t} .text=${t} ${f(this._elementReferenceController.ref)}></calcite-action>${o.map(a=>a.proxiedRender(e,"expanded-action"))}</calcite-action-menu>`:c`<calcite-dropdown overlay-positioning=fixed .placement=${u} .scale=${e.scale} class=${s(g)}><calcite-action class=${s(b)} data-layout=${e.layout??d} .icon=${n} .label=${t} .scale=${e.scale} slot=trigger .text=${m==="native"?t:""} title=${t??d} ${f(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown-group selection-mode=single>${o.map(a=>a.proxiedRender(e,"dropdown-item",a===l.at(0)))}</calcite-dropdown-group></calcite-dropdown>`;return c`<div class="split-host">${l.map(a=>a.proxiedRender(e,"collapsed-action"))}${o.length?M:void 0}${o.length&&k?c`<calcite-tooltip class=${s(O)} overlay-positioning=fixed .placement=${u} .referenceElement=${L}><span>${t}</span></calcite-tooltip>`:void 0}</div>`}connectedCallback(){super.connectedCallback(),this._childrenObserver.observe(this.el,{childList:!0}),this._syncChildren()}disconnectedCallback(){this._childrenObserver.disconnect(),super.disconnectedCallback()}_resolveActionsFromBudget(e,i,r,l){let o=e.find(t=>t.active)??e?.toSorted(R)?.at(0);if(Math.floor(r/v(i))>=e.length)return{visible:[...e],hidden:[]};if(l)return{visible:[o??e[0]],hidden:[...e]};let n=[...e];return{visible:n.splice(n.indexOf(o),1),hidden:n}}_syncChildren(){this._componentWaitAbortController?.abort();let e=Array.from(this.el.querySelectorAll("arcgis-toolbar-item")),i=new AbortController;this._componentWaitAbortController=i,Promise.all(e.map(r=>r.componentOnReady())).then(()=>{!this.isConnected||i.signal.aborted||(this._children=e)})}};function W({layout:p,relativePosition:e}){return p==="horizontal"?e.startsWith("top")?"chevron-down":"chevron-up":e.endsWith("left")?"chevron-right":"chevron-left"}function B({layout:p,scale:e}){return _.splitButtonPart[p][e]}C("arcgis-toolbar-split-button",$);export{$ as ArcgisToolbarSplitButton};
|
package/dist/cdn/NUJU53OQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{c as b}from"./27EUJ42B.js";import{a as m,b as g,c as i,d as f}from"./VCZLD7ZT.js";import{J as d,M as h,P as u,j as p}from"./WJZHHIWO.js";var l=class extends d{constructor(){super(...arguments),this.#t=new MutationObserver(()=>this.#e()),this.preferEndSlot=!1,this.priority=m.Default}static{this.properties={_children:16,preferEndSlot:5,priority:9}}#r;#t;measure(t){let r=this._children;if(!r?.length)return[0];let o=i.groupSeparator+i.groupPadding[t.scale],s=r.map(e=>e.measure(t)).reduce((e,a)=>e.flatMap(n=>a.map(c=>n+c)),[0]);return b(s.map(e=>o+e))}proxiedRender(t,r){let o=this._children;if(!o)return;let s=this.preferEndSlot?"actions-end":void 0,e=r-i.groupPadding[t.scale]-i.groupSeparator,a=f(o,t,e);return p`<calcite-action-group .scale=${t.scale} .layout=${t.layout} slot=${s??h}>${a.map(({group:n,budget:c})=>n.proxiedRender(t,c))}</calcite-action-group>`}connectedCallback(){super.connectedCallback(),this.#t.observe(this.el,{childList:!0}),this.#e()}disconnectedCallback(){this.#t.disconnect(),super.disconnectedCallback()}#e(){this.#r?.abort();let t=Array.from(this.el.children).filter(g),r=new AbortController;this.#r=r,Promise.all(t.map(o=>o.componentOnReady())).then(()=>{!this.isConnected||r.signal.aborted||(this._children=t)})}};u("arcgis-toolbar-group",l);export{l as ArcgisToolbarGroup};
|
package/dist/cdn/RBBKKELV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as g}from"./SM5735TW.js";import{b as v}from"./27EUJ42B.js";import{c as s}from"./VCZLD7ZT.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{I as h,J as m,K as p,M as l,P as $,j as i,t as d}from"./WJZHHIWO.js";var n=class extends m{constructor(){super(...arguments),this._active=!1,this._elementReferenceController=new g(this),this.icon="question-mark",this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.iconFlipRtl=!1,this.arcgisItemSelected=d()}static{this.properties={icon:3,lastActivated:0,active:7,tooltipText:1,labelText:3,disabled:7,loading:7,iconFlipRtl:7,actionElement:32}}get active(){return this._active}set active(e){e!==this._active&&(this._active=e,e&&(this.lastActivated=new Date))}get actionElement(){return this._elementReferenceController.element}measure({scale:e}){return[s.action[e]+s.actionPadding[e]]}proxiedRender(e,a,b){let o=e.tooltipAppearance,r=this._elementReferenceController.element,f=o!=="native"&&a==="collapsed-action",x=o==="calcite-dark"?"calcite-mode-dark":void 0,u=v(e),t=this.tooltipText||this.labelText;return a==="dropdown-item"?i`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon??l} .iconFlipRtl=${this.iconFlipRtl?"both":void 0} .label=${t} @click=${c=>this._handleDropdownItemClick(c)} .selected=${this.active||b} title=${t??l}>${this.labelText}</calcite-dropdown-item>`:i`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${t} .loading=${this.loading} @click=${c=>this._handleActionClick(c)} .scale=${e.scale} .text=${this.labelText} .textEnabled=${a==="expanded-action"} title=${(o==="native"?t:void 0)??l} ${h(this._elementReferenceController.ref)}></calcite-action>${f&&r?i`<calcite-tooltip class=${p(x)} overlay-positioning=fixed .placement=${u} .referenceElement=${r}><span>${t}</span></calcite-tooltip>`:void 0}`}_handleActionClick(e){this.isConnected&&this.arcgisItemSelected?.emit({element:e.currentTarget})}_handleDropdownItemClick(e){this.isConnected&&this.arcgisItemSelected?.emit({element:e.currentTarget})}};$("arcgis-toolbar-item",n);export{n as ArcgisToolbarItem};
|
package/dist/cdn/RYTUSPBA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{e as w,g as x,o as E,p as D}from"./Z5QBBHLD.js";import{a as B,b as f,c as T}from"./H4B7RWSC.js";import{a as A}from"./DM57UJMG.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{a as C}from"./JLF6J4PV.js";import{H as R,I as U,J as H,P as _,h as O,j as Z,o as $,p as F,t as I}from"./WJZHHIWO.js";export default $arcgis.t(([{formatDate:N,convertDateFormatToIntlOptions:y,formatDateOnly:ie,formatTimeOnly:se,formatTimestamp:M,formatNumber:ae},ne,K,{clone:S}])=>{function W(i){return new Date(`1970-01-01T${i}Z`).getTime()}function P(i){return new Date(`${i} 00:00:00`).getTime()}function oe(i,e,s){let t;return e==="unknown"?t=N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=N(i,{...y("short-date-short-time"),timeZone:e}),t}function le(i){return i?ie(i,y("short-date")):""}function re(i){let e;return typeof i=="string"?e=se(i,y("short-date-long-time")):e=N(i,{...y("long-time"),timeZone:"utc"}),e}function ue(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?M(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):M(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):N(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!w(i)&&!D(i)&&!E(i)&&!x(i))return;let t;return T(i,s).fields.forEach(l=>{let a=l.name,c="domain"in l?l.domain:void 0;if(!x(i)&&i.subtypeField===a){let m;E(i)||w(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{D(i)&&i.subtypeCode!==r.code||(e.name===a&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(n=>{if(e.name===n){let o=r.domains[n];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push({code:u.code,name:u.name})})}}))})}if(e.name===a&&(w(i)||x(i))){let m=w(i)?i.typeIdField:void 0,r=w(i)?i.types:void 0;w(i)&&m&&r?(m===a?t=r.map(n=>({code:n.id,name:n.name})):(t=t||[],r.forEach(n=>{if(!n.domains?.[a]||n.domains[a].type==="inherited"){let o=c;o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push(S(u))})}else n.domains?.[a]?.codedValues&&n.domains[a].codedValues.forEach(o=>{let u=!1;t.forEach(d=>{d.code===o.code&&(u=!0,`| ${d.name} |`.includes(`| ${o.name} |`)||(d.name+=` | ${o.name}`))}),u||t.push(S(o))})})),!t?.length&&c?.codedValues&&(t=S(c.codedValues))):c?.codedValues&&(t=c.codedValues)}}),t}function L(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let a=s[l];a.code==i&&(t+=(t.length?" | ":"")+a.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(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 de=O`: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}`,k=class extends H{constructor(){super(...arguments),this.dropdownNode=R(),this.initialized=!1,this._messages=A({blocking:!0}),this._propWatcherTask=new B(this,{task:async([e,s,t])=>{let l=f(e)&&f(s)||f(t);if(!f(t)&&!f(e)&&!f(s)?$("error",this,F("uniqueValues")):f(t)||(f(e)||$("error",this,F("layer")),f(s)||$("error",this,F("fieldName"))),f(e)&&f(s)){let{visualizationSource:a}=this;if(!T(e,a).fields?.filter(c=>c.name===s))throw $("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=de}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(f(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}async willUpdate(e){this.initialized&&(e.has("layer")||e.has("visualizationSource")||e.has("fieldName")||e.has("uniqueValues"))&&(await this.processProps(),this.requestUpdate()),e.has("maxHeight")&&this.maxHeight&&this.listNode?.setAttribute("style",`max-height: ${this.maxHeight||400}px`)}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,a=(e?T(e,l):void 0)?.fields?.filter(c=>c.name===s)?.[0];if(!a){$("error",this,`Field '${s}' not found in layer`),this.fieldInfo={layerField:a,fieldDomains:void 0,simpleType:void 0,partialUniqueValues:!1,uniqueValueInfos:[]};return}if(f(this.uniqueValues))this.fieldInfo={layerField:a,fieldDomains:e&&a?j(e,a,l):void 0,simpleType:e&&a?J(a):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&a){this.fieldInfo={layerField:a,fieldDomains:j(e,a,l),simpleType:J(a),partialUniqueValues:!1};let{fieldInfo:c}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:l==="feature-reduction"}),r=G(a),n=m.uniqueValueInfos.filter(o=>f(o.value)?a.type==="string"&&!r||a.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(a)||a.type,o.value!=="<Null>"&&o.value!==""):!1);n.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),c.fieldDomains?.length&&c.fieldDomains.forEach(o=>{n.find(u=>u.value===o.code)||n.push({value:o.code,count:0})}),c.uniqueValueInfos=n,c.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.initialized||this.arcgisLoad.emit(),this.setUpTimeZoneHandle(),this.initialized=!0}catch(m){if($("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(c)){let r=[];c.fieldDomains.forEach(n=>{r.find(o=>o.value===n.code)||r.push({value:n.code,count:void 0})})}this.initialized=!0}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{view:e,fieldInfo:s}=this;s.simpleType&&["date","timestamp-offset"].includes(s.simpleType)&&(this.timeZoneHandle=K.watch(()=>e?.timeZone,()=>this.requestUpdate()))}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:a,showFilterLength:c,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:n,partialUniqueValues:o,layerField:u}=e,d=u?.type;if(!n?.length)return"";let g=d?["small-integer","big-integer","integer","single","double","long","oid"].includes(d):!1,Q=d?["date","date-only","time-only"].includes(d):!1,X=v=>{v.sort((h,p)=>h.count<=p.count?1:-1)},Y=v=>{let h=r?.length;v.sort((p,V)=>{if(!h&&g)return(typeof p.value=="string"?Number.parseFloat(p.value):p.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let q=h?L(p.value,r):p.label??p.value,b=h?L(V.value,r):V.label??V.value;return`${q}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${q}`.localeCompare(`${b}`)}})},ee=(v,h)=>{v.sort((p,V)=>{let q=h?.indexOf(p.value)??-1,b=h?.indexOf(V.value)??-1;return q===b||q>-1&&b>-1?0:q>b?-1:1})};Y(n),!t||t==="count"?X(n):t==="selected"&&ee(n,s);let te=n.map(v=>this.renderUniqueValue(v)),z;return o&&!a&&(z=Z`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),Z`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${n.length>=c} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.currentTarget.selectedItems.map(p=>p.value);!r&&d==="date-only"?h=h?.map(p=>P(p)):!r&&d==="time-only"?h=h?.map(p=>W(p)):d&&["date","oid","small-integer","big-integer","integer","long"].includes(d)?h=h?.map(p=>Number.parseInt(p)):d&&["single","double"].includes(d)&&(h=h?.map(p=>Number.parseFloat(p))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${U(this.setListRef)}>${n.length>=c&&!a?this.renderSort(g,Q):null}${te}</calcite-list>${z}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return Z`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${U(this.dropdownNode)}><calcite-action slot=trigger .label=${l.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!f(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:a,numberFormatOptions:c}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:n}=a,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?L(e.value,m):n==="date"?oe(e.value,o):n==="date-only"?le(e.value):n==="time-only"?re(e.value):n==="timestamp-offset"?ue(e.value,l):typeof e.value=="number"?ae(e.value,c):e.label??e.value,d=s?n==="date-only"?s.includes(m?.length?e.value:P(e.value)):n==="time-only"?s.includes(m?.length?e.value:W(e.value)):s.includes(e.value):!1;return C(`list-item_${e.value}`,Z`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${d}>${f(e.count)&&(r.length>200&&!t||r.length<=200)?Z`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/reactiveUtils","core/lang")
|
package/dist/cdn/SM5735TW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{u as t}from"./WJZHHIWO.js";var r=class extends t{constructor(s){super(s),this.ref=e=>{e!==this._referenceElement&&(this._referenceElement=e,this.exports=void 0,e&&e.componentOnReady().then(()=>{this._referenceElement===e&&(this.exports=e)}))},this.exports=void 0}get element(){return this.exports}};export{r as a};
|
package/dist/cdn/VCZLD7ZT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
var s={ForceCollapse:0,Default:1,Medium:100,NeverCollapse:1e3};function g(r){return!!(r&&typeof r=="object"&&"measure"in r&&"proxiedRender"in r&&"componentOnReady"in r)}var c={groupSeparator:1,groupPadding:{s:4,m:8,l:10},actionPadding:{s:4,m:8,l:10},action:{s:24,m:32,l:44},splitButtonPart:{horizontal:{s:24,m:24,l:24},vertical:{s:24,m:24,l:24}}};function d(r,l,p){let i=r.map((o,e)=>({group:o,index:e})).sort((o,e)=>(e.group.priority??s.Default)-(o.group.priority??s.Default)||o.index-e.index).map(({group:o})=>({group:o,lengthOptions:o.measure(l).values()})),n=new Map,t=0;for(let o of i){let e=o.lengthOptions.next().value??0;n.set(o.group,e),t+=e}for(let o of i)for(;t<p;){let e=n.get(o.group);if(!e||o.group.priority===s.ForceCollapse)break;let a=o.lengthOptions.next();if(a.value===void 0)break;let u=t-e+a.value;if(u>p||(n.set(o.group,a.value),t=u,a.done))break}return r.map(o=>({group:o,budget:n.get(o)??0}))}export{s as a,g as b,c,d};
|
package/dist/cdn/VOBBBIYC.js
DELETED
package/dist/cdn/XPZQ4XIH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as k,b as j,c as R,d as P,e as y,f as z,g as _,h as F,i as B,j as K,k as q,l as E,m as S,n as X,o as Y,p as L,q as V,r as T,s as A}from"./Z5QBBHLD.js";import{a as J,b as p}from"./H4B7RWSC.js";import{a as Q}from"./DM57UJMG.js";import"./VJDK62KV.js";import"./TWW63D32.js";import{a as $}from"./JLF6J4PV.js";import{I as b,J as U,K as I,P as G,h as H,j as u,o as N,p as D,t as x}from"./WJZHHIWO.js";export default $arcgis.t(([se,C,h,W,O,ae,re,ee,ne])=>{function oe(a){return a.associatedLayer?.url}var le={dateStyle:"short",timeStyle:"short"},de={timeStyle:"medium"};function ue(a){let{layer:e,fieldName:t}=a,i,r=W.supportsFieldConfiguration(e),s;"popupTemplate"in e&&(s=e.popupTemplate);let o=s?s.fieldInfos:[];return ie(a)?.filter(d=>d.name===t).forEach(d=>{let n=!r&&o?o.filter(c=>c.fieldName===d.name):void 0,m=r?e.getFieldAlias(t):n?.length?n[0].label:d.alias;/^raster.(item|service)pixelvalue/iu.test(t)&&(d.type="double");let l={layerField:d,label:m||d.name};l.codedValues=fe(t,a),pe(l),l.simpleFieldType&&(i=l)}),i}function ie(a){let{layer:e}=a;return F(e)||T(e)||_(e)&&e.rasterFields.length?e.rasterFields:e.fields}async function te(a){a.statisticsStatus="in-progress";let{layer:e,view:t}=a;if(F(e)||T(e)||S(e)||V(e))throw new Error("could not get feature count");try{return await ge(e,t)}catch{return}}async function ce(a){let{layer:e,view:t,fieldName:i,fieldInfo:r}=a;if(F(e)||T(e)||V(e))throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");if(!r||r.layerField.type==="oid"||r.layerField.type==="guid"||r.layerField.type==="global-id")return{totalCount:await te(a),nullcount:0};try{let s=await ae({layer:e,view:t,field:i,outStatisticTypes:{exclude:["median"]}});if(!p(s.count))throw new Error("could not get statistics");let o="sourceJSON"in e&&e.sourceJSON.maxRecordCount===s.count;if(p(s.nullcount)&&!o)return{...s,totalCount:s.count+s.nullcount};{let d=await te(a);return{...s,totalCount:d}}}catch{throw new Error("could not get statistics")}}async function me(a){let{layer:e,view:t,fieldName:i}=a;if(F(e)||T(e)||V(e))throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");P(e)&&(e.outFields=["*"]);try{return await re({layer:e,view:t,field:i})}catch{throw new Error("could not get unique values")}}function pe(a){switch(a.layerField.type){case"string":a.simpleFieldType="string";break;case"date":a.simpleFieldType="date";break;case"timestamp-offset":a.simpleFieldType="timestamp-offset";break;case"date-only":a.simpleFieldType="date-only";break;case"time-only":a.simpleFieldType="time-only";break;case"oid":a.simpleFieldType="oid";break;case"guid":case"global-id":a.simpleFieldType="guid";break;case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":a.simpleFieldType="number";break;default:a.simpleFieldType="string"}}function fe(a,e){let{layer:t}=e;if(L(t)&&t.subtypeField===a){let n=t.parent?.subtypes?.find(m=>m.code===t.subtypeCode);if(n)return[new ee({code:n.code,name:n.name})]}if(!y(t)&&!_(t))return;let i=y(t)?t.typeIdField:void 0,r=y(t)?t.types:void 0,s,o=ie(e)?.find(n=>n.name===a),d=o?.domain;return y(t)&&i&&r?(i===a?s=r.map(n=>new ee({code:n.id,name:n.name})):(s=[],r.forEach(n=>{if(!n.domains[a]||n.domains[a].type==="inherited"){let m=d;m?.codedValues&&m.codedValues.forEach(l=>{let c=!1;s.forEach(g=>{g.code===l.code&&(c=!0,`, ${g.name},`.includes(`, ${l.name},`)||(g.name+=`, ${l.name}`))}),c||s.push(O.clone(l))})}else n.domains[a].codedValues&&n.domains[a].codedValues.forEach(m=>{let l=!1;s.forEach(c=>{c.code===m.code&&(l=!0,`, ${c.name},`.includes(`, ${m.name},`)||(c.name+=`, ${m.name}`))}),l||s.push(O.clone(m))})})),!s.length&&d?.codedValues&&(s=O.clone(d.codedValues))):d?.codedValues&&(s=o?.domain?.codedValues),s?.length?s:void 0}async function he(a){let{view:e,layer:t}=a;if(_(t)||F(t)||T(t))throw new Error("could not get feature");if(y(t)&&!t.url||A(t)){let i=t.createQuery();i.start=0,i.num=5,i.outFields=["*"];let r=await t.queryFeatures(i);if(r.features.length)return r;throw new Error("could not get feature")}else{if(!e)return await Z(a);let i;if(L(t)||X(t)){let s=t.parent;for(;Y(s)||K(s);)s=s.parent;B(s)&&(i=await e.whenLayerView(s))}else i=await e.whenLayerView(t);let r=i.availableFields.length===t.fields.length;if(i&&(r||(S(t)||q(t))&&i.availableFields.length>0)){let s=i.createQuery();s.start=0,s.num=5,s.outFields=["*"];let o=await i.queryFeatures(s);return o.features?.length?o:await Z(a)}else return await Z(a)}}async function Z(a){let{layer:e}=a;if(_(e)||F(e)||S(e)||q(e))throw new Error("cannot get feature from service");let t=new ne({where:"1=1",outFields:["*"],returnGeometry:!1});return"sourceJSON"in e&&e.sourceJSON?.advancedQueryCapabilities?.supportsPagination&&(t.num=1),await e.queryFeatures(t)}async function ge(a,e){if(P(a))return await ve(a);if(y(a)||j(a)||E(a)||A(a)||z(a))return await a.queryFeatureCount();if(e&&(S(a)||q(a)))return await ye(a,e)}async function ve(a){let e=a.createQuery();e.outFields=["*"];let t=await a.queryFeatures(e);if(t.features.length)return t.features.length;throw new Error("could not get feature count")}async function ye(a,e){return await(await e.whenLayerView(a)).queryFeatureCount()}var Fe=H`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-surface-2)}.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}`,M=class extends U{constructor(){super(...arguments),this._messages=Q({blocking:!0}),this.initialized=!1,this._propWatcherTask=new J(this,{task:async([e,t])=>{let i=p(e)&&p(t);if(p(e)||N("error",this,D("layer")),p(t)||N("error",this,D("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=x(),this.arcgisFieldInfoComplete=x()}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=Fe}async refresh(){await this.processProps(),this.requestUpdate()}async willUpdate(e){this.initialized&&(e.has("fieldName")||e.has("layer"))&&await this.processProps()}disconnectedCallback(){super.disconnectedCallback(),this.timeZoneHandle?.remove()}async processProps(){let{view:e,layer:t,fieldName:i,hideStatistics:r}=this;if(!t||!i)return;let s;if(t.declaredClass==="esri.layers.support.Sublayer"){let o=t;e&&await C.whenOnce(()=>!e.updating),s=await o.createFeatureLayer(),await s?.load()}if(this.oneFeatureResponseStatus="missing",this.oneFeatureResponse=void 0,this.statisticsStatus="missing",this.statistics=void 0,this.uniqueValuesStatus="missing",this.uniqueValues=void 0,this.props={view:e,layer:s??t,fieldName:i,hideStatistics:r},this.props.fieldInfo=ue(this.props),!this.props.fieldInfo){N("error",this,`Field ${i} does not exist in layer.`);return}E(t)&&se.request.interceptors?.push({urls:`${oe(t)}/${t.layerId}`,before(o){o.requestOptions.authMode="no-prompt"}}),this.processPropsPart2()}async processPropsPart2(){let{layer:e,hideStatistics:t}=this;if(await this.requestOneFeature(),S(e)||k(e)||R(e)){this.uniqueValuesStatus="failed",this.statisticsStatus="failed";return}t?this.uniqueValuesStatus="failed":await this.requestUniqueValues(),t?this.statisticsStatus="failed":await this.requestStatistics(),this.setUpTimeZoneHandle(),this.initialized=!0}async requestOneFeature(){this.oneFeatureResponseStatus="in-progress";try{let e=await he(this.props);this.oneFeatureResponse=e,this.oneFeatureResponseStatus="success"}catch{this.oneFeatureResponseStatus="failed"}}async requestUniqueValues(){return this.uniqueValuesStatus="in-progress",await new Promise(async e=>{try{let t=await me(this.props);this.uniqueValues=t,t?.uniqueValueInfos?.length?this.uniqueValuesStatus="success":this.uniqueValuesStatus="failed"}catch{this.uniqueValuesStatus="failed"}finally{e()}})}async requestStatistics(){return await new Promise(async e=>{try{let t=await ce(this.props);if(!p(t.totalCount)&&p(t.count)&&this.uniqueValuesStatus==="success"){let i=this.uniqueValues?.uniqueValueInfos??[];for(let r=0;r<i.length;r++){let s=i[r];if(s.value===null){t.totalCount=s.count+t.count;break}}t.totalCount??=t.count}this.statistics=t,this.statisticsStatus="success"}catch{this.statisticsStatus="failed"}finally{e()}})}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{props:e}=this,{view:t,fieldInfo:i}=e;["date","timestamp-offset"].includes(this._getStatisticsType(i))&&(this.timeZoneHandle=C.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"url":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??void 0}}_getDisplayString(e,t){let{props:i}=this,{fieldInfo:r}=i;switch(r.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"?h.formatDate(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):h.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"?h.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:"utc"}):h.formatTimestamp(e,{...this.getIntlDateTimeFormattingOptions("short-date-short-time",t),timeZone:i?.timeZone||"system"}):this._getDateString(e,t)}_getDateOnlyString(e,t){return h.formatDateOnly(e,this.getIntlDateTimeFormattingOptions("short-date",t))}_getTimeOnlyString(e,t){return typeof e=="string"?h.formatTimeOnly(e,this.getIntlDateTimeFormattingOptions("short-date-long-time",t)):h.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 h.formatNumber(i,this.getIntlNumberFormattingOptions(t))}_printNumValue(e,t){return p(e)?this._getNumberString(e,t):"--"}_setCompleteRef(e){if(this.completeRefHandler&&clearInterval(this.completeRefHandler),e){let t=0;this.completeRefHandler=setInterval(()=>{(t>130||this.isFinished(this.uniqueValuesStatus)&&this.isFinished(this.statisticsStatus))&&(clearInterval(this.completeRefHandler),this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit()),t++},1e3)}}getCurrentFieldFormat(){let{props:e}=this,{layer:t,fieldName:i}=e;return(this.originalLayerSupportsFieldConfigs()?t.getFieldConfiguration(i):void 0)?.fieldFormat??void 0}getIntlNumberFormattingOptions(e){let t=this.getCurrentFieldFormat();if(!e?.useFieldFormatting)return t?{useGrouping:["always","auto"].includes(t.useGrouping)}:h.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 r=this.getPopupTemplateFieldInfo();return h.convertNumberFormatToIntlOptions({digitSeparator:r?.format?.digitSeparator??!0,places:r?.format?.places??2})}getIntlDateTimeFormattingOptions(e,t){let i=this.getCurrentFieldFormat();if(!t?.useFieldFormatting)return i?t?.isTimeOnly?de:le:h.convertDateFormatToIntlOptions(e);let r=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(r)return r;let s=this.getPopupTemplateFieldInfo();return h.convertDateFormatToIntlOptions(s?.format?.dateFormat??e)}originalLayerSupportsFieldConfigs(){let{layer:e}=this;return W.supportsFieldConfiguration(e)}getPopupTemplateFieldInfo(){let{props:e}=this,{layer:t,fieldName:i}=e;return("popupTemplate"in t?t.popupTemplate:void 0)?.fieldInfos?.find(r=>r.fieldName===i)}isFinished(e){return["success","failed"].includes(e)}render(){return this._propWatcherTask.render({pending:()=>u`<calcite-scrim loading></calcite-scrim>`,complete:()=>{let{props:e}=this,{fieldInfo:t}=e;return t?u`<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,r=this._getFieldTypeLabel(i.layerField.type);return u`<div class="section"><div class="title">${e.fieldType}</div><div>${r}</div></div>`}renderFieldAlias(){let{_messages:e,props:t,hideAlias:i}=this,{fieldInfo:r}=t;return i?"":u`<div class="section"><div class="title">${e.fieldAlias}</div><div>${r.label}</div></div>`}renderFieldDescription(){let{_messages:e,props:t}=this,{layer:i}=t;if(!y(i))return"";let{fieldInfo:r}=t,s=r.layerField.description;return u`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${I({missing:!s})}>${s||e.fieldDescriptionNotSet}</div></div>`}renderFieldValueType(){let{_messages:e,props:t}=this,{layer:i}=t;if(!y(i))return"";let{fieldInfo:r}=t,s=this._getFieldValueTypeCamelCase(r);return u`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${I(s?"":"missing")}>${s?e.fieldValueTypes[s]:e.fieldValueTypeNotSet}</div></div>`}renderFieldSampleValue(){let{oneFeatureResponse:e,oneFeatureResponseStatus:t,statisticsStatus:i,statistics:r,uniqueValuesStatus:s,uniqueValues:o,_messages:d,props:n}=this,{layer:m,fieldName:l,fieldInfo:c}=n,{statistics:g}=d,f;if(F(m)||V(m)||!S(m)&&["string","oid","guid"].includes(this._getStatisticsType(c))&&s!=="failed")return"";t==="success"?e.features.forEach(v=>{(f===void 0||f===null&&v.attributes[l]!==null)&&(f=v.attributes[l])}):i==="success"?f=r?.min??void 0:s==="success"&&(f=o?.uniqueValueInfos?.[0]?.value??o?.uniqueValueInfos?.[1]?.value??void 0);let w=c.codedValues;return p(f)&&(w?f=w.find(v=>f===v.code)?.name||f:f=this._getDisplayString(f,{useFieldFormatting:!0})),u`<div class="section"><div class="title">${d.fieldSampleValue}</div><div class=${I(t==="failed"&&i==="failed"&&s==="failed"||!p(f)?"missing":"")}>${t==="success"||i==="success"||s==="success"?f?.toString()??g.allNulls:t==="failed"&&i==="failed"&&s==="failed"?d.fieldSampleNotAvailable:d.fieldSampleRetrieving}</div></div>`}renderFieldNumericFormat(){let{_messages:e,props:t,hideNumericFormat:i}=this,{fieldName:r,fieldInfo:s,layer:o}=t;if(i||!["double","long","single"].includes(s.layerField.type))return"";let d=this.originalLayerSupportsFieldConfigs()?o.getFieldConfiguration(r):void 0;if(d?.fieldFormat){let{minimumFractionDigits:m,maximumFractionDigits:l}=d.fieldFormat;return u`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldMinimumFractionDigits.replace("${number}",m.toString())}</div><div>${e.fieldMaximumFractionDigits.replace("${number}",l.toString())}</div></div>`}let n="popupTemplate"in o?o.popupTemplate:void 0;if(n?.fieldInfos){let m=n.fieldInfos?.filter(l=>l.fieldName===r);if(m?.length){let l=m[0];if(p(l?.format?.places)){let c=l.format.places;return u`<div class="section"><div class="title">${e.fieldDecimalPlaces}</div><div>${e.fieldNumDecimalPlaces.replace("${number}",c.toString())}</div></div>`}}}return u`<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:r,props:s}=this,{layer:o,fieldInfo:d}=s;return i?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):k(o)||R(o)||S(o)||F(o)||V(o)||["long"].includes(d.layerField.type)?(this.arcgisComplete.emit(),this.arcgisFieldInfoComplete.emit(),""):u`<div class="section"><div class="title">${r.fieldStatistics}</div>${!this.isFinished(t)&&!this.isFinished(e)?this.renderWaitingForStatistics():e==="failed"&&t==="failed"?this.renderNoStatistics():this.renderStatistics()}</div>`}renderWaitingForStatistics(){let{_messages:e}=this;return $("field-info-statistics-content",u`<div class="missing">${e.fieldStatisticsRetrieving}</div>`)}renderNoStatistics(){let{_messages:e}=this;return $("field-info-statistics-content",u`<div class="missing" ${b(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,uniqueValuesStatus:t,statisticsStatus:i,_messages:r}=this;if(!e)return this.isFinished(t)&&this.isFinished(i)?this.renderNoStatistics():this.renderWaitingForStatistics();let{statistics:s}=r;return $("field-info-statistics-content",u`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${s.numberOfValues}</div><div class="data">${this._printNumValue(e.totalCount)}</div></div>${p(e.sum)?u`<div class="statistics-row"><div>${s.sumOfValues}</div><div class="data">${this._printNumValue(e.sum)}</div></div>`:null}${p(e.min)?u`<div class="statistics-row"><div>${s.minimum}</div><div class="data">${this._printNumValue(e.min)}</div></div>`:null}${p(e.max)?u`<div class="statistics-row"><div>${s.maximum}</div><div class="data">${this._printNumValue(e.max)}</div></div>`:null}${p(e.avg)?u`<div class="statistics-row"><div>${s.average}</div><div class="data">${this._printNumValue(e.avg)}</div></div>`:null}${p(e.stddev)?u`<div class="statistics-row"><div>${s.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:r}=i;return $("field-info-statistics-content",u`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${r.numberOfValues}</div>${t!=="success"?u`<div class="missing">--</div>`:u`<div class="data">${this._printNumValue(e?.totalCount)}</div>`}</div>${this.renderNullValues()}${this.renderTopValues()}</div>`)}renderDateStatistics(){let{statistics:e,view:t,props:i,uniqueValuesStatus:r,statisticsStatus:s,_messages:o}=this,{fieldInfo:d}=i;if(!e||!p(e.max)||!p(e.min))return this.isFinished(r)&&this.isFinished(s)?this.renderNoStatistics():this.renderWaitingForStatistics();let{statistics:n}=o,m=e.max-e.min,l=Math.floor(m/31536e6),c=Math.floor((m-l*31536e6)/2628e6),g=Math.ceil((m-c*2628e6)/864e5);g>=30&&(c+=1,g=0);let f=l===1?n.timeSpanOptions.year:l>1?n.timeSpanOptions.years.replace("${years}",l.toString()):"";f+=l>0&&(c>0||g>0)?", ":"",f+=c===1?n.timeSpanOptions.month:c>1?n.timeSpanOptions.months.replace("${months}",c.toString()):"",f+=c>0&&g>0?", ":"",f+=g===1?n.timeSpanOptions.day:g>1?n.timeSpanOptions.days.replace("${days}",g.toString()):"";let w=d.simpleFieldType!=="timestamp-offset"||!t||t.timeZone!=="unknown",v=d.simpleFieldType==="time-only";return $("field-info-statistics-content",u`<div ${b(this._setCompleteRef)}><div class="statistics-row"><div>${n.numberOfValues}</div><div class="data">${this._printNumValue(e?.totalCount)}</div></div>${w&&p(e.min)?u`<div class="statistics-row"><div>${v?n.minimumTime:n.minimumDate}</div><div class="data">${this._getDisplayString(e.min)}</div></div>`:null}${w&&p(e.max)?u`<div class="statistics-row"><div>${v?n.maximumTime:n.maximumDate}</div><div class="data">${this._getDisplayString(e.max)}</div></div>`:null}${w&&p(e.avg)?u`<div class="statistics-row"><div>${v?n.averageTime:n.averageDate}</div><div class="data">${this._getDisplayString(e.avg)}</div></div>`:null}${w&&!v&&p(e.min)&&p(e.max)&&m>0?u`<div class="statistics-row"><div>${n.timespan}</div><div class="data">${f}</div></div>`:null}${this.renderNullValues()}</div>`)}renderTopValues(){let{uniqueValues:e,uniqueValuesStatus:t,_messages:i,props:r}=this,{fieldInfo:s}=r,{statistics:o}=i;if(e?.uniqueValueInfos?.length){let d=e.uniqueValueInfos;d.sort((l,c)=>l.count<c.count?1:l.count>c.count?-1:0);let n=s.codedValues,m=d.filter(l=>l.value!==null).filter((l,c)=>l&&c<10).map(l=>{let c=l.value;return n?n.forEach(g=>{c===g.code&&(c=g.name)}):c=this._getDisplayString(c),u`<div class="statistics-row"><div class="data">${`${c}`}</div><div class="count">${this._printNumValue(l.count)}</div></div>`});return m.length?u`<div><div class="statistics-row-top-values"><div>${d.length>10?o.topTenValues:o.topValues}</div><div>${o.count}</div></div>${m}</div>`:""}else return u`<div><div class="statistics-row-top-values"><div>${o.topValues}</div><div>${o.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:r}=i,s=e?.nullcount;if(!p(s)&&t){let o=t.uniqueValueInfos;for(let d=0;d<o.length;d++){let n=o[d];if(n.value===null){s=n.count;break}}}return u`<div class="statistics-row"><div>${r.numberOfNulls}</div>${p(s)?u`<div class="data">${this._printNumValue(s)}</div>`:u`<div class="missing">--</div>`}</div>`}};G("arcgis-field-info",M);return M},"config","core/reactiveUtils","intl","applications/PortalApp/layerUtils","core/lang","smartMapping/statistics/summaryStatistics","smartMapping/statistics/uniqueValues","layers/support/CodedValue","rest/support/Query")
|