@arcgis/common-components 6.0.0-next.2 → 6.0.0-next.21
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/2S4SSY4K.js +2 -0
- package/dist/cdn/{YEFEVEP6.js → 3UAY23XT.js} +1 -1
- package/dist/cdn/{OTWADB4M.js → 3ZTHRAIZ.js} +1 -1
- package/dist/cdn/{TXQKK4DJ.js → 4D35RDOE.js} +1 -1
- package/dist/cdn/4H4SDFQK.js +2 -0
- package/dist/cdn/4IMLX5B4.js +4 -0
- package/dist/cdn/6LZNNXUL.js +2 -0
- package/dist/cdn/74TVQE6W.js +2 -0
- package/dist/cdn/ANK7TFWV.js +2 -0
- package/dist/cdn/{X6DNIKWY.js → BAALW3SQ.js} +1 -1
- package/dist/cdn/{LNXO5YIS.js → BDIGRQ2U.js} +1 -1
- package/dist/cdn/BMR5AH6W.js +2 -0
- package/dist/cdn/DAAON2UO.js +3 -0
- package/dist/cdn/DMEXDZ2R.js +2 -0
- package/dist/cdn/{OMROUY3L.js → FESNPMRM.js} +1 -1
- package/dist/cdn/{OIGA7XBZ.js → FVFYAK24.js} +1 -1
- package/dist/cdn/{D4UHHQ35.js → IOAVVVNO.js} +1 -1
- package/dist/cdn/IZD4AM2W.js +2 -0
- package/dist/cdn/{MFGUTQRR.js → J4AV4EAC.js} +1 -1
- package/dist/cdn/JYWWX277.js +2 -0
- package/dist/cdn/{TO3YFXVJ.js → LLLQXE2U.js} +1 -1
- package/dist/cdn/{KDCSDIUQ.js → M7F7EBFY.js} +1 -1
- package/dist/cdn/OUPGMHLD.js +2 -0
- package/dist/cdn/{IECXEZNI.js → OZIHA5AQ.js} +1 -1
- package/dist/cdn/{JTQN5KMG.js → PIXY2HTI.js} +1 -1
- package/dist/cdn/{BZFAYVKR.js → PJGWH4LW.js} +1 -1
- package/dist/cdn/RQGPWDYU.js +8207 -0
- package/dist/cdn/SIB7LGF5.js +2 -0
- package/dist/cdn/SRO2CZ77.js +2 -0
- package/dist/cdn/T57JKNGO.js +2 -0
- package/dist/cdn/{EB5MDEWF.js → TE77L77R.js} +1 -1
- package/dist/cdn/TWPYXZ2O.js +2 -0
- package/dist/cdn/{735FTIBP.js → U6OGOB7D.js} +1 -1
- package/dist/cdn/V5FMQXMU.js +2 -0
- package/dist/cdn/{HYFFUYAU.js → VNC7X43V.js} +1 -1
- package/dist/cdn/W2W34T5K.js +2 -0
- package/dist/cdn/W7CWMG2O.js +2 -0
- package/dist/cdn/XAWHSQBN.js +2 -0
- package/dist/cdn/XMMFL5H3.js +2 -0
- package/dist/cdn/XQ65BGER.js +2 -0
- package/dist/cdn/YXN6CFSE.js +2 -0
- package/dist/cdn/ZJMMAZFG.js +2 -0
- package/dist/cdn/ZLVMV6TP.js +2 -0
- package/dist/cdn/{34AP2EEB.js → ZMYTELNC.js} +1 -1
- package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/sharedCacheDirective.js +74 -0
- package/dist/chunks/toolbar.js +3 -3
- package/dist/components/arcgis-histogram/customElement.d.ts +8 -0
- package/dist/components/arcgis-histogram/customElement.js +103 -98
- package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
- package/dist/components/arcgis-html-content/customElement.js +71 -0
- package/dist/components/arcgis-html-content/index.d.ts +1 -0
- package/dist/components/arcgis-html-content/index.js +1 -0
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
- package/dist/components/arcgis-layer-replace/customElement.js +376 -0
- package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
- package/dist/components/arcgis-layer-replace/index.js +7 -0
- package/dist/components/arcgis-slider/customElement.js +522 -443
- package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
- package/dist/components/arcgis-slider-field/customElement.js +45 -39
- package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
- package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
- package/dist/components/arcgis-ticks/customElement.js +8 -8
- package/dist/components/arcgis-toolbar/customElement.d.ts +6 -3
- package/dist/components/arcgis-toolbar/customElement.js +30 -29
- package/dist/components/arcgis-toolbar/types.d.ts +1 -0
- package/dist/components/arcgis-toolbar-group/customElement.js +7 -7
- package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-stack/customElement.js +51 -116
- package/dist/components/arcgis-value-picker/customElement.d.ts +8 -1
- package/dist/components/arcgis-value-picker/customElement.js +25 -21
- package/dist/components/arcgis-value-picker/index.js +1 -1
- package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
- package/dist/components/arcgis-value-picker-label/customElement.d.ts +6 -0
- package/dist/components/arcgis-value-picker-label/customElement.js +6 -6
- package/dist/components/arcgis-value-picker-slider/customElement.js +18 -18
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +15 -0
- package/dist/index.js +8 -5
- package/dist/loader.js +9 -7
- package/dist/types/lumina.d.ts +16 -5
- package/dist/types/preact.d.ts +18 -5
- package/dist/types/react.d.ts +20 -5
- package/dist/types/stencil.d.ts +16 -5
- package/dist/utils/sharedCacheDirective.d.ts +68 -0
- package/package.json +6 -6
- package/dist/cdn/3AFEXHZ5.js +0 -2
- package/dist/cdn/5EA7SGHX.js +0 -2
- package/dist/cdn/7TCQ52FG.js +0 -2
- package/dist/cdn/ATLXGXTH.js +0 -2
- package/dist/cdn/BCN6LPOG.js +0 -4
- package/dist/cdn/CKGWDI7B.js +0 -2
- package/dist/cdn/DR2THZQU.js +0 -8208
- package/dist/cdn/EM4OQXFS.js +0 -2
- package/dist/cdn/GDRW3MIZ.js +0 -2
- package/dist/cdn/HJ3EJZFF.js +0 -2
- package/dist/cdn/LLATF73T.js +0 -2
- package/dist/cdn/M2J3GPM4.js +0 -2
- package/dist/cdn/PJCRMKAM.js +0 -2
- package/dist/cdn/QCUF7B3I.js +0 -2
- package/dist/cdn/S4XOD4YS.js +0 -2
- package/dist/cdn/UIBTY5FF.js +0 -2
- package/dist/cdn/WQW7S2RI.js +0 -2
- package/dist/cdn/XUPA27AW.js +0 -2
- package/dist/cdn/XX2ZCFWI.js +0 -2
- package/dist/cdn/ZCVP2N2O.js +0 -2
- package/dist/cdn/ZZ4YJXPK.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PopoverProps as PopoverPropsAlias, PickListFieldInfo as PickListFieldInfoAlias, PickListGroupInfo as PickListGroupInfoAlias } from "./utils/types.js";
|
|
2
2
|
|
|
3
3
|
export { LayoutPriorities } from "./components/arcgis-toolbar/types.js";
|
|
4
|
+
export { sharedCache, SharedCacheStore } from "./utils/sharedCacheDirective.js";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated import { PopoverProps } from "@arcgis/common-components/utils/types" instead
|
|
@@ -54,7 +55,9 @@ import type { ArcgisCoordinateSystemPickerTree } from "./components/arcgis-coord
|
|
|
54
55
|
import type { ArcgisFieldInfo } from "./components/arcgis-field-info/customElement.js";
|
|
55
56
|
import type { ArcgisFieldPickList } from "./components/arcgis-field-pick-list/customElement.js";
|
|
56
57
|
import type { ArcgisHistogram } from "./components/arcgis-histogram/customElement.js";
|
|
58
|
+
import type { ArcgisHtmlContent } from "./components/arcgis-html-content/customElement.js";
|
|
57
59
|
import type { ArcgisLabelInput } from "./components/arcgis-label-input/customElement.js";
|
|
60
|
+
import type { ArcgisLayerReplace } from "./components/arcgis-layer-replace/customElement.js";
|
|
58
61
|
import type { ArcgisPickerInput } from "./components/arcgis-picker-input/customElement.js";
|
|
59
62
|
import type { ArcgisRampColor } from "./components/arcgis-ramp-color/customElement.js";
|
|
60
63
|
import type { ArcgisRampColorBreak } from "./components/arcgis-ramp-color-break/customElement.js";
|
|
@@ -120,6 +123,11 @@ export interface ArcgisLabelInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
120
123
|
target: ArcgisLabelInput;
|
|
121
124
|
currentTarget: ArcgisLabelInput;
|
|
122
125
|
}
|
|
126
|
+
export interface ArcgisLayerReplaceCustomEvent<T> extends CustomEvent<T> {
|
|
127
|
+
detail: T;
|
|
128
|
+
target: ArcgisLayerReplace;
|
|
129
|
+
currentTarget: ArcgisLayerReplace;
|
|
130
|
+
}
|
|
123
131
|
export interface ArcgisPickerInputCustomEvent<T> extends CustomEvent<T> {
|
|
124
132
|
detail: T;
|
|
125
133
|
target: ArcgisPickerInput;
|
|
@@ -202,7 +210,9 @@ declare global {
|
|
|
202
210
|
"arcgis-field-info": ArcgisFieldInfo;
|
|
203
211
|
"arcgis-field-pick-list": ArcgisFieldPickList;
|
|
204
212
|
"arcgis-histogram": ArcgisHistogram;
|
|
213
|
+
"arcgis-html-content": ArcgisHtmlContent;
|
|
205
214
|
"arcgis-label-input": ArcgisLabelInput;
|
|
215
|
+
"arcgis-layer-replace": ArcgisLayerReplace;
|
|
206
216
|
"arcgis-picker-input": ArcgisPickerInput;
|
|
207
217
|
"arcgis-ramp-color": ArcgisRampColor;
|
|
208
218
|
"arcgis-ramp-color-break": ArcgisRampColorBreak;
|
|
@@ -251,9 +261,14 @@ declare global {
|
|
|
251
261
|
|
|
252
262
|
type HTMLArcgisHistogramElement = ArcgisHistogram;
|
|
253
263
|
|
|
264
|
+
type HTMLArcgisHtmlContentElement = ArcgisHtmlContent;
|
|
265
|
+
|
|
254
266
|
type HTMLArcgisLabelInputElementEventMap = ArcgisLabelInput["@eventTypes"];
|
|
255
267
|
type HTMLArcgisLabelInputElement = ArcgisLabelInput;
|
|
256
268
|
|
|
269
|
+
type HTMLArcgisLayerReplaceElementEventMap = ArcgisLayerReplace["@eventTypes"];
|
|
270
|
+
type HTMLArcgisLayerReplaceElement = ArcgisLayerReplace;
|
|
271
|
+
|
|
257
272
|
type HTMLArcgisPickerInputElementEventMap = ArcgisPickerInput["@eventTypes"];
|
|
258
273
|
type HTMLArcgisPickerInputElement = ArcgisPickerInput;
|
|
259
274
|
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import { L as
|
|
2
|
+
import { g as a, s as t } from "./chunks/runtime.js";
|
|
3
|
+
import { L as o } from "./chunks/types.js";
|
|
4
|
+
import { S as f, s as i } from "./chunks/sharedCacheDirective.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
a as
|
|
6
|
+
o as LayoutPriorities,
|
|
7
|
+
f as SharedCacheStore,
|
|
8
|
+
a as getAssetPath,
|
|
9
|
+
t as setAssetPath,
|
|
10
|
+
i as sharedCache
|
|
8
11
|
};
|
package/dist/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { r as e } from "./chunks/runtime.js";
|
|
3
3
|
import { makeDefineCustomElements as a } from "@arcgis/lumina";
|
|
4
|
-
const
|
|
4
|
+
const l = a(e, {
|
|
5
5
|
"arcgis-ckeditor5": [() => import("./components/arcgis-ckeditor5/customElement.js"), "canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],
|
|
6
6
|
"arcgis-ckeditor5-popover": [() => import("./components/arcgis-ckeditor5-popover/customElement.js"), "guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],
|
|
7
7
|
"arcgis-color-input": [() => import("./components/arcgis-color-input/customElement.js"), "_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],
|
|
@@ -9,15 +9,17 @@ const s = a(e, {
|
|
|
9
9
|
"arcgis-coordinate-system-picker-tree": [() => import("./components/arcgis-coordinate-system-picker-tree/customElement.js"), "data:,value"],
|
|
10
10
|
"arcgis-field-info": [() => import("./components/arcgis-field-info/customElement.js"), "_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],
|
|
11
11
|
"arcgis-field-pick-list": [() => import("./components/arcgis-field-pick-list/customElement.js"), "_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],
|
|
12
|
-
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,standardDeviation,standardDeviationCount"],
|
|
12
|
+
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,mirrored,standardDeviation,standardDeviationCount"],
|
|
13
|
+
"arcgis-html-content": [() => import("./components/arcgis-html-content/customElement.js"), "content,sanitizerOptions:"],
|
|
13
14
|
"arcgis-label-input": [() => import("./components/arcgis-label-input/customElement.js"), "alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],
|
|
15
|
+
"arcgis-layer-replace": [() => import("./components/arcgis-layer-replace/customElement.js"), "additionalSourceFields:,allowDuplicateReplacementFields,fieldMatcher:,getFieldDisplayInfo:,getLayerDisplayInfo:,mapping:,messageOverrides:,messages:,mode,replacement:,replacementCandidates:,replacementFieldFilter:,showFieldAliases,source:,sourceFieldFilter:;matchFields"],
|
|
14
16
|
"arcgis-picker-input": [() => import("./components/arcgis-picker-input/customElement.js"), "disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],
|
|
15
17
|
"arcgis-ramp-color": [() => import("./components/arcgis-ramp-color/customElement.js"), "layout,max,min,stops:"],
|
|
16
18
|
"arcgis-ramp-color-break": [() => import("./components/arcgis-ramp-color-break/customElement.js"), "layout,max,min,stops:"],
|
|
17
19
|
"arcgis-ramp-opacity": [() => import("./components/arcgis-ramp-opacity/customElement.js"), "fillColor,layout,max,min,stops:"],
|
|
18
20
|
"arcgis-slider": [() => import("./components/arcgis-slider/customElement.js"), "activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverDisplay,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values,valuesDraggingDisabled;destroy"],
|
|
19
|
-
"arcgis-slider-field": [() => import("./components/arcgis-slider-field/customElement.js"), "activeValue:,disabled,fieldType,fillPlacement,label,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values
|
|
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
|
+
"arcgis-slider-field": [() => import("./components/arcgis-slider-field/customElement.js"), "activeValue:,disabled,fieldType,fillPlacement,label,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,rangeLabelsEditingEnabled,rangeLabelsPlacement,showRangeLabels,value,valueAsDateOnly:,valueAsFieldType:,valueAsNumbers:,valueAsTimeOnly:,valueAsTimestampOffset:,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values"],
|
|
22
|
+
"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,value,valueLabelsDisplay,valueLabelsEditingEnabled,values;destroy,generateWhereClause,updateFromHistogramResult"],
|
|
21
23
|
"arcgis-slider-input": [() => import("./components/arcgis-slider-input/customElement.js"), "disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],
|
|
22
24
|
"arcgis-ticks": [() => import("./components/arcgis-ticks/customElement.js"), "_messages:,autoDestroyDisabled,interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values;destroy"],
|
|
23
25
|
"arcgis-toolbar": [() => import("./components/arcgis-toolbar/customElement.js"), "barElement:,layout,relativePosition,scale,toolbarKind,tooltipAppearance;;allocate,measure,proxiedRender"],
|
|
@@ -28,12 +30,12 @@ const s = a(e, {
|
|
|
28
30
|
"arcgis-toolbar-split-button": [() => import("./components/arcgis-toolbar-split-button/customElement.js"), "menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],
|
|
29
31
|
"arcgis-toolbar-stack": [() => import("./components/arcgis-toolbar-stack/customElement.js"), "layout,relativePosition,scale,toolbarKind,tooltipAppearance"],
|
|
30
32
|
"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"],
|
|
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"],
|
|
33
|
+
"arcgis-value-picker": [() => import("./components/arcgis-value-picker/customElement.js"), "autoDestroyDisabled,disabled,floating,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],
|
|
32
34
|
"arcgis-value-picker-collection": [() => import("./components/arcgis-value-picker-collection/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],
|
|
33
35
|
"arcgis-value-picker-combobox": [() => import("./components/arcgis-value-picker-combobox/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],
|
|
34
|
-
"arcgis-value-picker-label": [() => import("./components/arcgis-value-picker-label/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],
|
|
36
|
+
"arcgis-value-picker-label": [() => import("./components/arcgis-value-picker-label/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:;destroy;reset,step"],
|
|
35
37
|
"arcgis-value-picker-slider": [() => import("./components/arcgis-value-picker-slider/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]
|
|
36
38
|
});
|
|
37
39
|
export {
|
|
38
|
-
|
|
40
|
+
l as defineCustomElements
|
|
39
41
|
};
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coor
|
|
|
7
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
8
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
9
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
10
|
+
import type { ArcgisHtmlContent } from "../components/arcgis-html-content/customElement.js";
|
|
10
11
|
import type { ArcgisLabelInput } from "../components/arcgis-label-input/customElement.js";
|
|
12
|
+
import type { ArcgisLayerReplace } from "../components/arcgis-layer-replace/customElement.js";
|
|
11
13
|
import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
|
|
12
14
|
import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
|
|
13
15
|
import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
|
|
@@ -81,13 +83,20 @@ interface LuminaArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
|
|
|
81
83
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
82
84
|
}
|
|
83
85
|
|
|
84
|
-
interface LuminaArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, h.JSX.HTMLAttributes<ArcgisHistogram> {
|
|
86
|
+
interface LuminaArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, h.JSX.HTMLAttributes<ArcgisHistogram> {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface LuminaArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, h.JSX.HTMLAttributes<ArcgisHtmlContent> {
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
interface LuminaArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, h.JSX.HTMLAttributes<ArcgisLabelInput> {
|
|
88
93
|
onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
|
|
89
94
|
}
|
|
90
95
|
|
|
96
|
+
interface LuminaArcgisLayerReplace extends Required<Pick<ArcgisLayerReplace, "source">>, Partial<Pick<ArcgisLayerReplace, "additionalSourceFields" | "allowDuplicateReplacementFields" | "fieldMatcher" | "getFieldDisplayInfo" | "getLayerDisplayInfo" | "messageOverrides" | "mode" | "replacement" | "replacementCandidates" | "replacementFieldFilter" | "showFieldAliases" | "sourceFieldFilter">>, h.JSX.HTMLAttributes<ArcgisLayerReplace> {
|
|
97
|
+
onarcgisChange?: EventHandler<ArcgisLayerReplace["arcgisChange"]>;
|
|
98
|
+
}
|
|
99
|
+
|
|
91
100
|
interface LuminaArcgisPickerInput extends Partial<Pick<ArcgisPickerInput, "disabled" | "heading" | "iconEnd" | "intlDone" | "label" | "popoverProps">>, h.JSX.HTMLAttributes<ArcgisPickerInput> {
|
|
92
101
|
onarcgisPopoverClose?: EventHandler<ArcgisPickerInput["arcgisPopoverClose"]>;
|
|
93
102
|
onarcgisPopoverOpen?: EventHandler<ArcgisPickerInput["arcgisPopoverOpen"]>;
|
|
@@ -109,14 +118,14 @@ interface LuminaArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
|
|
|
109
118
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
interface LuminaArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, h.JSX.HTMLAttributes<ArcgisSliderField> {
|
|
121
|
+
interface LuminaArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, h.JSX.HTMLAttributes<ArcgisSliderField> {
|
|
113
122
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
|
|
114
123
|
onarcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
|
|
115
124
|
onarcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
|
|
116
125
|
onarcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
|
|
117
126
|
}
|
|
118
127
|
|
|
119
|
-
interface LuminaArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, h.JSX.HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
128
|
+
interface LuminaArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, h.JSX.HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
120
129
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderHistogramRange["arcgisActiveValueChange"]>;
|
|
121
130
|
onarcgisChange?: EventHandler<ArcgisSliderHistogramRange["arcgisChange"]>;
|
|
122
131
|
onarcgisInput?: EventHandler<ArcgisSliderHistogramRange["arcgisInput"]>;
|
|
@@ -162,7 +171,7 @@ interface LuminaArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLi
|
|
|
162
171
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
163
172
|
}
|
|
164
173
|
|
|
165
|
-
interface LuminaArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, h.JSX.HTMLAttributes<ArcgisValuePicker> {
|
|
174
|
+
interface LuminaArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, h.JSX.HTMLAttributes<ArcgisValuePicker> {
|
|
166
175
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
167
176
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
168
177
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -180,7 +189,7 @@ interface LuminaArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicker
|
|
|
180
189
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
181
190
|
}
|
|
182
191
|
|
|
183
|
-
interface LuminaArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, h.JSX.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
192
|
+
interface LuminaArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, h.JSX.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
184
193
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
185
194
|
}
|
|
186
195
|
|
|
@@ -199,7 +208,9 @@ declare module "@arcgis/lumina" {
|
|
|
199
208
|
"arcgis-field-info": LuminaArcgisFieldInfo;
|
|
200
209
|
"arcgis-field-pick-list": LuminaArcgisFieldPickList;
|
|
201
210
|
"arcgis-histogram": LuminaArcgisHistogram;
|
|
211
|
+
"arcgis-html-content": LuminaArcgisHtmlContent;
|
|
202
212
|
"arcgis-label-input": LuminaArcgisLabelInput;
|
|
213
|
+
"arcgis-layer-replace": LuminaArcgisLayerReplace;
|
|
203
214
|
"arcgis-picker-input": LuminaArcgisPickerInput;
|
|
204
215
|
"arcgis-ramp-color": LuminaArcgisRampColor;
|
|
205
216
|
"arcgis-ramp-color-break": LuminaArcgisRampColorBreak;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coor
|
|
|
7
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
8
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
9
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
10
|
+
import type { ArcgisHtmlContent } from "../components/arcgis-html-content/customElement.js";
|
|
10
11
|
import type { ArcgisLabelInput } from "../components/arcgis-label-input/customElement.js";
|
|
12
|
+
import type { ArcgisLayerReplace } from "../components/arcgis-layer-replace/customElement.js";
|
|
11
13
|
import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
|
|
12
14
|
import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
|
|
13
15
|
import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
|
|
@@ -82,13 +84,20 @@ interface PreactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
|
|
|
82
84
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
interface PreactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, HTMLAttributes<ArcgisHistogram> {
|
|
87
|
+
interface PreactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLAttributes<ArcgisHistogram> {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface PreactArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, HTMLAttributes<ArcgisHtmlContent> {
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
interface PreactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLAttributes<ArcgisLabelInput> {
|
|
89
94
|
onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
|
|
90
95
|
}
|
|
91
96
|
|
|
97
|
+
interface PreactArcgisLayerReplace extends Required<Pick<ArcgisLayerReplace, "source">>, Partial<Pick<ArcgisLayerReplace, "additionalSourceFields" | "allowDuplicateReplacementFields" | "fieldMatcher" | "getFieldDisplayInfo" | "getLayerDisplayInfo" | "messageOverrides" | "mode" | "replacement" | "replacementCandidates" | "replacementFieldFilter" | "showFieldAliases" | "sourceFieldFilter">>, HTMLAttributes<ArcgisLayerReplace> {
|
|
98
|
+
onarcgisChange?: EventHandler<ArcgisLayerReplace["arcgisChange"]>;
|
|
99
|
+
}
|
|
100
|
+
|
|
92
101
|
interface PreactArcgisPickerInput extends Partial<Pick<ArcgisPickerInput, "disabled" | "heading" | "iconEnd" | "intlDone" | "label" | "popoverProps">>, HTMLAttributes<ArcgisPickerInput> {
|
|
93
102
|
onarcgisPopoverClose?: EventHandler<ArcgisPickerInput["arcgisPopoverClose"]>;
|
|
94
103
|
onarcgisPopoverOpen?: EventHandler<ArcgisPickerInput["arcgisPopoverOpen"]>;
|
|
@@ -110,14 +119,14 @@ interface PreactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOver
|
|
|
110
119
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
111
120
|
}
|
|
112
121
|
|
|
113
|
-
interface PreactArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, HTMLAttributes<ArcgisSliderField> {
|
|
122
|
+
interface PreactArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, HTMLAttributes<ArcgisSliderField> {
|
|
114
123
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
|
|
115
124
|
onarcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
|
|
116
125
|
onarcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
|
|
117
126
|
onarcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
|
|
118
127
|
}
|
|
119
128
|
|
|
120
|
-
interface PreactArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
129
|
+
interface PreactArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
121
130
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderHistogramRange["arcgisActiveValueChange"]>;
|
|
122
131
|
onarcgisChange?: EventHandler<ArcgisSliderHistogramRange["arcgisChange"]>;
|
|
123
132
|
onarcgisInput?: EventHandler<ArcgisSliderHistogramRange["arcgisInput"]>;
|
|
@@ -163,7 +172,7 @@ interface PreactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLi
|
|
|
163
172
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
interface PreactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLAttributes<ArcgisValuePicker> {
|
|
175
|
+
interface PreactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLAttributes<ArcgisValuePicker> {
|
|
167
176
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
177
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
178
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +190,7 @@ interface PreactArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicker
|
|
|
181
190
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
191
|
}
|
|
183
192
|
|
|
184
|
-
interface PreactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLAttributes<ArcgisValuePickerLabel> {
|
|
193
|
+
interface PreactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, HTMLAttributes<ArcgisValuePickerLabel> {
|
|
185
194
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
195
|
}
|
|
187
196
|
|
|
@@ -200,7 +209,9 @@ declare module 'preact' {
|
|
|
200
209
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
201
210
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
202
211
|
"arcgis-histogram": PreactArcgisHistogram;
|
|
212
|
+
"arcgis-html-content": PreactArcgisHtmlContent;
|
|
203
213
|
"arcgis-label-input": PreactArcgisLabelInput;
|
|
214
|
+
"arcgis-layer-replace": PreactArcgisLayerReplace;
|
|
204
215
|
"arcgis-picker-input": PreactArcgisPickerInput;
|
|
205
216
|
"arcgis-ramp-color": PreactArcgisRampColor;
|
|
206
217
|
"arcgis-ramp-color-break": PreactArcgisRampColorBreak;
|
|
@@ -235,7 +246,9 @@ declare module 'preact' {
|
|
|
235
246
|
"arcgis-field-info": PreactArcgisFieldInfo;
|
|
236
247
|
"arcgis-field-pick-list": PreactArcgisFieldPickList;
|
|
237
248
|
"arcgis-histogram": PreactArcgisHistogram;
|
|
249
|
+
"arcgis-html-content": PreactArcgisHtmlContent;
|
|
238
250
|
"arcgis-label-input": PreactArcgisLabelInput;
|
|
251
|
+
"arcgis-layer-replace": PreactArcgisLayerReplace;
|
|
239
252
|
"arcgis-picker-input": PreactArcgisPickerInput;
|
|
240
253
|
"arcgis-ramp-color": PreactArcgisRampColor;
|
|
241
254
|
"arcgis-ramp-color-break": PreactArcgisRampColorBreak;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coor
|
|
|
7
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
8
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
9
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
10
|
+
import type { ArcgisHtmlContent } from "../components/arcgis-html-content/customElement.js";
|
|
10
11
|
import type { ArcgisLabelInput } from "../components/arcgis-label-input/customElement.js";
|
|
12
|
+
import type { ArcgisLayerReplace } from "../components/arcgis-layer-replace/customElement.js";
|
|
11
13
|
import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
|
|
12
14
|
import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
|
|
13
15
|
import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
|
|
@@ -82,13 +84,20 @@ interface ReactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "cu
|
|
|
82
84
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
|
|
87
|
+
interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface ReactArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, HTMLProps<ArcgisHtmlContent> {
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
interface ReactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLProps<ArcgisLabelInput> {
|
|
89
94
|
onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
|
|
90
95
|
}
|
|
91
96
|
|
|
97
|
+
interface ReactArcgisLayerReplace extends Required<Pick<ArcgisLayerReplace, "source">>, Partial<Pick<ArcgisLayerReplace, "additionalSourceFields" | "allowDuplicateReplacementFields" | "fieldMatcher" | "getFieldDisplayInfo" | "getLayerDisplayInfo" | "messageOverrides" | "mode" | "replacement" | "replacementCandidates" | "replacementFieldFilter" | "showFieldAliases" | "sourceFieldFilter">>, HTMLProps<ArcgisLayerReplace> {
|
|
98
|
+
onarcgisChange?: EventHandler<ArcgisLayerReplace["arcgisChange"]>;
|
|
99
|
+
}
|
|
100
|
+
|
|
92
101
|
interface ReactArcgisPickerInput extends Partial<Pick<ArcgisPickerInput, "disabled" | "heading" | "iconEnd" | "intlDone" | "label" | "popoverProps">>, HTMLProps<ArcgisPickerInput> {
|
|
93
102
|
onarcgisPopoverClose?: EventHandler<ArcgisPickerInput["arcgisPopoverClose"]>;
|
|
94
103
|
onarcgisPopoverOpen?: EventHandler<ArcgisPickerInput["arcgisPopoverOpen"]>;
|
|
@@ -110,14 +119,14 @@ interface ReactArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverl
|
|
|
110
119
|
onarcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
111
120
|
}
|
|
112
121
|
|
|
113
|
-
interface ReactArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, HTMLProps<ArcgisSliderField> {
|
|
122
|
+
interface ReactArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, HTMLProps<ArcgisSliderField> {
|
|
114
123
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
|
|
115
124
|
onarcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
|
|
116
125
|
onarcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
|
|
117
126
|
onarcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
|
|
118
127
|
}
|
|
119
128
|
|
|
120
|
-
interface ReactArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, HTMLProps<ArcgisSliderHistogramRange> {
|
|
129
|
+
interface ReactArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, HTMLProps<ArcgisSliderHistogramRange> {
|
|
121
130
|
onarcgisActiveValueChange?: EventHandler<ArcgisSliderHistogramRange["arcgisActiveValueChange"]>;
|
|
122
131
|
onarcgisChange?: EventHandler<ArcgisSliderHistogramRange["arcgisChange"]>;
|
|
123
132
|
onarcgisInput?: EventHandler<ArcgisSliderHistogramRange["arcgisInput"]>;
|
|
@@ -163,7 +172,7 @@ interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLis
|
|
|
163
172
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
interface ReactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLProps<ArcgisValuePicker> {
|
|
175
|
+
interface ReactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLProps<ArcgisValuePicker> {
|
|
167
176
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
177
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
178
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +190,7 @@ interface ReactArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePickerC
|
|
|
181
190
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
191
|
}
|
|
183
192
|
|
|
184
|
-
interface ReactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLProps<ArcgisValuePickerLabel> {
|
|
193
|
+
interface ReactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, HTMLProps<ArcgisValuePickerLabel> {
|
|
185
194
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
195
|
}
|
|
187
196
|
|
|
@@ -200,7 +209,9 @@ declare module "react" {
|
|
|
200
209
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
201
210
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
202
211
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
212
|
+
"arcgis-html-content": ReactArcgisHtmlContent;
|
|
203
213
|
"arcgis-label-input": ReactArcgisLabelInput;
|
|
214
|
+
"arcgis-layer-replace": ReactArcgisLayerReplace;
|
|
204
215
|
"arcgis-picker-input": ReactArcgisPickerInput;
|
|
205
216
|
"arcgis-ramp-color": ReactArcgisRampColor;
|
|
206
217
|
"arcgis-ramp-color-break": ReactArcgisRampColorBreak;
|
|
@@ -237,7 +248,9 @@ declare module "react/jsx-runtime" {
|
|
|
237
248
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
238
249
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
239
250
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
251
|
+
"arcgis-html-content": ReactArcgisHtmlContent;
|
|
240
252
|
"arcgis-label-input": ReactArcgisLabelInput;
|
|
253
|
+
"arcgis-layer-replace": ReactArcgisLayerReplace;
|
|
241
254
|
"arcgis-picker-input": ReactArcgisPickerInput;
|
|
242
255
|
"arcgis-ramp-color": ReactArcgisRampColor;
|
|
243
256
|
"arcgis-ramp-color-break": ReactArcgisRampColorBreak;
|
|
@@ -274,7 +287,9 @@ declare module "react/jsx-dev-runtime" {
|
|
|
274
287
|
"arcgis-field-info": ReactArcgisFieldInfo;
|
|
275
288
|
"arcgis-field-pick-list": ReactArcgisFieldPickList;
|
|
276
289
|
"arcgis-histogram": ReactArcgisHistogram;
|
|
290
|
+
"arcgis-html-content": ReactArcgisHtmlContent;
|
|
277
291
|
"arcgis-label-input": ReactArcgisLabelInput;
|
|
292
|
+
"arcgis-layer-replace": ReactArcgisLayerReplace;
|
|
278
293
|
"arcgis-picker-input": ReactArcgisPickerInput;
|
|
279
294
|
"arcgis-ramp-color": ReactArcgisRampColor;
|
|
280
295
|
"arcgis-ramp-color-break": ReactArcgisRampColorBreak;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import type { ArcgisCoordinateSystemPickerTree } from "../components/arcgis-coor
|
|
|
7
7
|
import type { ArcgisFieldInfo } from "../components/arcgis-field-info/customElement.js";
|
|
8
8
|
import type { ArcgisFieldPickList } from "../components/arcgis-field-pick-list/customElement.js";
|
|
9
9
|
import type { ArcgisHistogram } from "../components/arcgis-histogram/customElement.js";
|
|
10
|
+
import type { ArcgisHtmlContent } from "../components/arcgis-html-content/customElement.js";
|
|
10
11
|
import type { ArcgisLabelInput } from "../components/arcgis-label-input/customElement.js";
|
|
12
|
+
import type { ArcgisLayerReplace } from "../components/arcgis-layer-replace/customElement.js";
|
|
11
13
|
import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
|
|
12
14
|
import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
|
|
13
15
|
import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
|
|
@@ -82,13 +84,20 @@ interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "
|
|
|
82
84
|
onArcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
|
|
87
|
+
interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface StencilArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, StencilJsx.HTMLAttributes<ArcgisHtmlContent> {
|
|
86
91
|
}
|
|
87
92
|
|
|
88
93
|
interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
|
|
89
94
|
onArcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
|
|
90
95
|
}
|
|
91
96
|
|
|
97
|
+
interface StencilArcgisLayerReplace extends Required<Pick<ArcgisLayerReplace, "source">>, Partial<Pick<ArcgisLayerReplace, "additionalSourceFields" | "allowDuplicateReplacementFields" | "fieldMatcher" | "getFieldDisplayInfo" | "getLayerDisplayInfo" | "messageOverrides" | "mode" | "replacement" | "replacementCandidates" | "replacementFieldFilter" | "showFieldAliases" | "sourceFieldFilter">>, StencilJsx.HTMLAttributes<ArcgisLayerReplace> {
|
|
98
|
+
onArcgisChange?: EventHandler<ArcgisLayerReplace["arcgisChange"]>;
|
|
99
|
+
}
|
|
100
|
+
|
|
92
101
|
interface StencilArcgisPickerInput extends Partial<Pick<ArcgisPickerInput, "disabled" | "heading" | "iconEnd" | "intlDone" | "label" | "popoverProps">>, StencilJsx.HTMLAttributes<ArcgisPickerInput> {
|
|
93
102
|
onArcgisPopoverClose?: EventHandler<ArcgisPickerInput["arcgisPopoverClose"]>;
|
|
94
103
|
onArcgisPopoverOpen?: EventHandler<ArcgisPickerInput["arcgisPopoverOpen"]>;
|
|
@@ -110,14 +119,14 @@ interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOve
|
|
|
110
119
|
onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
|
|
111
120
|
}
|
|
112
121
|
|
|
113
|
-
interface StencilArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderField> {
|
|
122
|
+
interface StencilArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderField> {
|
|
114
123
|
onArcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
|
|
115
124
|
onArcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
|
|
116
125
|
onArcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
|
|
117
126
|
onArcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
|
|
118
127
|
}
|
|
119
128
|
|
|
120
|
-
interface StencilArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
129
|
+
interface StencilArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "value" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderHistogramRange> {
|
|
121
130
|
onArcgisActiveValueChange?: EventHandler<ArcgisSliderHistogramRange["arcgisActiveValueChange"]>;
|
|
122
131
|
onArcgisChange?: EventHandler<ArcgisSliderHistogramRange["arcgisChange"]>;
|
|
123
132
|
onArcgisInput?: EventHandler<ArcgisSliderHistogramRange["arcgisInput"]>;
|
|
@@ -163,7 +172,7 @@ interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesL
|
|
|
163
172
|
onArcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
173
|
}
|
|
165
174
|
|
|
166
|
-
interface StencilArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, StencilJsx.HTMLAttributes<ArcgisValuePicker> {
|
|
175
|
+
interface StencilArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, StencilJsx.HTMLAttributes<ArcgisValuePicker> {
|
|
167
176
|
onArcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
177
|
onArcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
178
|
onArcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +190,7 @@ interface StencilArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicke
|
|
|
181
190
|
onArcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
191
|
}
|
|
183
192
|
|
|
184
|
-
interface StencilArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
193
|
+
interface StencilArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
185
194
|
onArcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
195
|
}
|
|
187
196
|
|
|
@@ -198,7 +207,9 @@ interface ExposedElements {
|
|
|
198
207
|
"arcgis-field-info": StencilArcgisFieldInfo;
|
|
199
208
|
"arcgis-field-pick-list": StencilArcgisFieldPickList;
|
|
200
209
|
"arcgis-histogram": StencilArcgisHistogram;
|
|
210
|
+
"arcgis-html-content": StencilArcgisHtmlContent;
|
|
201
211
|
"arcgis-label-input": StencilArcgisLabelInput;
|
|
212
|
+
"arcgis-layer-replace": StencilArcgisLayerReplace;
|
|
202
213
|
"arcgis-picker-input": StencilArcgisPickerInput;
|
|
203
214
|
"arcgis-ramp-color": StencilArcgisRampColor;
|
|
204
215
|
"arcgis-ramp-color-break": StencilArcgisRampColorBreak;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { ChildPart, RootPart } from "lit";
|
|
2
|
+
import type { AsyncDirective } from "lit/async-directive.js";
|
|
3
|
+
import type { DirectiveParameters, PartInfo } from "lit/directive.js";
|
|
4
|
+
import type { JsxNode } from "@arcgis/lumina";
|
|
5
|
+
|
|
6
|
+
/** @internal */
|
|
7
|
+
export class SharedCacheStore {
|
|
8
|
+
constructor(cachedParts?: Map<unknown, RootPart>, directives?: Set<SharedCacheDirective>);
|
|
9
|
+
moveAllToCache(): void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* **Summary**: Directive enables using a shared element cache to avoid re-creating
|
|
14
|
+
* DOM elements when they are moved from one position on page to another.
|
|
15
|
+
*
|
|
16
|
+
* **Justification**:
|
|
17
|
+
*
|
|
18
|
+
* This is primarily used for the toolbar-stack, which needs to re-order DOM elements
|
|
19
|
+
* for accessibility and layout reasons; moving a calcite-action-bar
|
|
20
|
+
* is more efficient than destroying and re-creating, which otherwise might happen a lot.
|
|
21
|
+
*
|
|
22
|
+
* Beyond efficiency, this is necessary to avoid user-visible flickering due to
|
|
23
|
+
* how calcite handles icons in actions.
|
|
24
|
+
*
|
|
25
|
+
* **How it works**:
|
|
26
|
+
*
|
|
27
|
+
* - The directive is a persistent object in the render tree that has its own state
|
|
28
|
+
* - Similar to the `cache` directive, this one will move DOM elements into and out of cache before
|
|
29
|
+
* re-rendering.
|
|
30
|
+
* - Unlike `cache`, instead of alternating between templates, this directive uses an external cache
|
|
31
|
+
* to allow content to be moved around between directive instances. Because the Lit-managed
|
|
32
|
+
* container part is moved around, when re-render happens, diffing can work as if the element was always
|
|
33
|
+
* in the same place.
|
|
34
|
+
*
|
|
35
|
+
* There is a small catch: to ensure that the parts are available to be pulled from the cache, there is
|
|
36
|
+
* a pre-processing step that needs to be called before each round of rendering; this moves all the parts
|
|
37
|
+
* into the cache to ensure that each render call can access the needed elements.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export class SharedCacheDirective extends AsyncDirective {
|
|
42
|
+
constructor(partInfo: PartInfo);
|
|
43
|
+
protected disconnected(): void;
|
|
44
|
+
/**
|
|
45
|
+
* During the update phase, a toolbar may need to be pulled from the cache in a situation
|
|
46
|
+
* where it was still on the page from the previous render.
|
|
47
|
+
*
|
|
48
|
+
* To work around this problem, during parent component render phase a pre-caching
|
|
49
|
+
* step moves all cacheable elements into the cache. This is the method called by
|
|
50
|
+
* that pre-caching step.
|
|
51
|
+
*/
|
|
52
|
+
moveToCache(): void;
|
|
53
|
+
protected reconnected(): void;
|
|
54
|
+
/**
|
|
55
|
+
* @param _store - Shared store backing this and other caching directives with the shared cache
|
|
56
|
+
* @param _key - Uniquely identifies the element being rendered
|
|
57
|
+
* @param value - The content to render
|
|
58
|
+
*/
|
|
59
|
+
render(_store: SharedCacheStore, _key: unknown, value: JsxNode): unknown[];
|
|
60
|
+
/**
|
|
61
|
+
* @param containerPart
|
|
62
|
+
* @param parameter1
|
|
63
|
+
*/
|
|
64
|
+
update(containerPart: ChildPart, parameter1: DirectiveParameters<this>): unknown;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const sharedCache: (_store: SharedCacheStore, _key: unknown, value: JsxNode) => never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.21",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arcgis/lumina": "6.0.0-next.
|
|
49
|
-
"@arcgis/lumina-toolkit": "6.0.0-next.
|
|
50
|
-
"@arcgis/toolkit": "6.0.0-next.
|
|
48
|
+
"@arcgis/lumina": "6.0.0-next.21",
|
|
49
|
+
"@arcgis/lumina-toolkit": "6.0.0-next.21",
|
|
50
|
+
"@arcgis/toolkit": "6.0.0-next.21",
|
|
51
51
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
52
52
|
"@lit/task": "^1.0.3",
|
|
53
53
|
"lit": "^3.3.0",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@arcgis/core": "6.0.0-next.
|
|
58
|
-
"@esri/calcite-components": "^5.2.0
|
|
57
|
+
"@arcgis/core": "6.0.0-next.21",
|
|
58
|
+
"@esri/calcite-components": "^5.2.0"
|
|
59
59
|
},
|
|
60
60
|
"css.customData": [
|
|
61
61
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/3AFEXHZ5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{h as a}from"./BCN6LPOG.js";var r=a`:host([toolbar-kind="floating"]){.ruler{opacity:0;pointer-events:none;position:absolute;visibility:hidden;flex-direction:column;height:min(100cqh - var(--arcgis-internal-attribution-space-top) - 2 * var(--calcite-space-lg),100vh - 2 * var(--calcite-space-lg));width:min(100cqw - 2 * var(--calcite-space-lg),100vw - 2 * var(--calcite-space-lg))}}:host([toolbar-kind="docked"]){.ruler{visibility:hidden;height:0;display:block;position:absolute;top:0;left:0;right:0;width:100%;height:100%}}`,t=a`: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)}`,c=a`:host([layout="horizontal"]){.split-anchor{min-width:24px;max-width:24px;&[scale=m]{--calcite-internal-action-spacing: .25rem}&[scale=l]{--calcite-internal-action-spacing: 0rem}}.split-host:has(.split-menu){>calcite-action{border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-bottom-right-radius:0}.split-anchor{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-top-left-radius:0}>calcite-action:dir(rtl){border-radius:var(--calcite-action-corner-radius, 2px);border-top-left-radius:0;border-bottom-left-radius:0}.split-anchor:dir(rtl){border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-right-radius:0;border-top-right-radius:0}.split-anchor:dir(ltr){margin-left:calc(0px - var(--calcite-internal-action-bar-gap));margin-right:calc(0px - var(--calcite-internal-action-bar-padding))}.split-anchor:dir(rtl){margin-right:calc(0px - var(--calcite-internal-action-bar-gap));margin-left:calc(0px - var(--calcite-internal-action-bar-padding))}}}:host([layout="vertical"]){.split-anchor{--calcite-internal-action-min-height: unset;min-height:24px;max-height:24px}.split-host:has(.split-menu){>calcite-action{border-radius:var(--calcite-action-corner-radius, 2px);border-bottom-left-radius:0;border-bottom-right-radius:0}.split-anchor{border-radius:var(--calcite-action-corner-radius, 2px);border-top-right-radius:0;border-top-left-radius:0;margin-top:calc(0px - var(--calcite-internal-action-bar-gap));margin-bottom:calc(0px - var(--calcite-internal-action-bar-padding))}}}.split-host:has(.split-menu):hover,.split-host:has(calcite-action-menu[open]),.split-host:has(calcite-dropdown[open]){.split-anchor,>calcite-action{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}}.split-host{display:contents;cursor:pointer}`,i=a`:host{max-inline-size:100%;max-block-size:100%;min-inline-size:0;min-block-size:0;--arcgis-toolbar-tooltip-dark-background-color: #212121;--arcgis-toolbar-tooltip-dark-border-color: #404040;--arcgis-toolbar-tooltip-dark-text-color: #fff}calcite-action-bar{-webkit-user-select:none;user-select:none;pointer-events:auto}: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%}}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)}:host([toolbar-kind="floating"][layout="vertical"]) .toolbar-shadow-wrapper{overflow-y:auto}:host([toolbar-kind="floating"][layout="horizontal"]) .toolbar-shadow-wrapper{overflow-x:auto}.toolbar-grid-wrapper{display:grid;max-inline-size:100%;max-block-size:100%;min-inline-size:0;min-block-size:0}:host([layout="horizontal"]) .toolbar-grid-wrapper{grid-template-columns:minmax(0,1fr)}:host([layout="vertical"]) .toolbar-grid-wrapper{grid-template-rows:minmax(0,1fr)}:host([toolbar-kind="floating"]) .toolbar-shadow-wrapper{box-shadow:var(--calcite-shadow-md);background-color:var(--calcite-action-bar-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-action-bar-corner-radius, var(--calcite-corner-radius-round));min-inline-size:0;min-block-size:0}`;export{r as a,t as b,c,i as d};
|