@arcgis/common-components 6.0.0-next.12 → 6.0.0-next.13

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.
Files changed (72) hide show
  1. package/dist/cdn/{IECXEZNI.js → 22OC775Z.js} +1 -1
  2. package/dist/cdn/{LLATF73T.js → 2OMDJUYT.js} +1 -1
  3. package/dist/cdn/5CQKFXDS.js +2 -0
  4. package/dist/cdn/{JTQN5KMG.js → 5WWEXHDR.js} +1 -1
  5. package/dist/cdn/{B33S3YBM.js → 6JKHK66F.js} +1 -1
  6. package/dist/cdn/{EM4OQXFS.js → 6LRG5YEX.js} +1 -1
  7. package/dist/cdn/{TXQKK4DJ.js → 72S3MJKW.js} +1 -1
  8. package/dist/cdn/{XUPA27AW.js → 76HVVNE3.js} +1 -1
  9. package/dist/cdn/BFFJQ2IG.js +2 -0
  10. package/dist/cdn/{BCN6LPOG.js → BL4Q6JRN.js} +1 -1
  11. package/dist/cdn/DAAON2UO.js +3 -0
  12. package/dist/cdn/{TO3YFXVJ.js → DX3QGPAC.js} +1 -1
  13. package/dist/cdn/{3AFEXHZ5.js → EFYVPG7M.js} +1 -1
  14. package/dist/cdn/{IOFMXI5N.js → EKHLAV7L.js} +1 -1
  15. package/dist/cdn/{735FTIBP.js → ES6WYESD.js} +1 -1
  16. package/dist/cdn/{OMROUY3L.js → ET27CKKN.js} +1 -1
  17. package/dist/cdn/{YEFEVEP6.js → ETFRMXNK.js} +1 -1
  18. package/dist/cdn/F6D3766O.js +2 -0
  19. package/dist/cdn/{HYFFUYAU.js → HEFF76VU.js} +1 -1
  20. package/dist/cdn/HKDMFWES.js +8207 -0
  21. package/dist/cdn/{D4UHHQ35.js → HZO56Z3W.js} +1 -1
  22. package/dist/cdn/{GDRW3MIZ.js → JV64QIOC.js} +1 -1
  23. package/dist/cdn/{OIGA7XBZ.js → KMS3AH3W.js} +1 -1
  24. package/dist/cdn/KYVFCENZ.js +2 -0
  25. package/dist/cdn/{EB5MDEWF.js → LGD2DXGC.js} +1 -1
  26. package/dist/cdn/{LNXO5YIS.js → M6MFH7MG.js} +1 -1
  27. package/dist/cdn/M7BRP53Y.js +2 -0
  28. package/dist/cdn/{QCUF7B3I.js → MKJ57BCX.js} +1 -1
  29. package/dist/cdn/{KDCSDIUQ.js → NIMSDZZQ.js} +1 -1
  30. package/dist/cdn/{7QVNHEMF.js → O4PEZZOX.js} +1 -1
  31. package/dist/cdn/{MFGUTQRR.js → OAYL3MXB.js} +1 -1
  32. package/dist/cdn/{X6DNIKWY.js → OKSZVS6W.js} +1 -1
  33. package/dist/cdn/{34AP2EEB.js → RY2ZJUVG.js} +1 -1
  34. package/dist/cdn/{CKGWDI7B.js → TBRWMQFM.js} +1 -1
  35. package/dist/cdn/TJALLRDF.js +2 -0
  36. package/dist/cdn/{OTWADB4M.js → TJEQHMTU.js} +1 -1
  37. package/dist/cdn/{HJ3EJZFF.js → TTTO2AVT.js} +1 -1
  38. package/dist/cdn/TWDJBHNJ.js +2 -0
  39. package/dist/cdn/{BZFAYVKR.js → W6NRLV34.js} +1 -1
  40. package/dist/cdn/{IYJAPMC5.js → YWAIH52M.js} +1 -1
  41. package/dist/cdn/index.js +1 -1
  42. package/dist/cdn/main.css +1 -1
  43. package/dist/chunks/sharedCacheDirective.js +74 -0
  44. package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
  45. package/dist/components/arcgis-html-content/customElement.js +71 -0
  46. package/dist/components/arcgis-html-content/index.d.ts +1 -0
  47. package/dist/components/arcgis-html-content/index.js +1 -0
  48. package/dist/components/arcgis-toolbar-stack/customElement.js +48 -114
  49. package/dist/components/arcgis-value-picker/customElement.js +14 -14
  50. package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
  51. package/dist/components/arcgis-value-picker-label/customElement.js +5 -5
  52. package/dist/components/arcgis-value-picker-slider/customElement.js +17 -17
  53. package/dist/docs/api.json +1 -1
  54. package/dist/docs/docs.json +1 -1
  55. package/dist/docs/vscode.html-custom-data.json +1 -1
  56. package/dist/docs/web-types.json +1 -1
  57. package/dist/index.d.ts +5 -0
  58. package/dist/index.js +8 -5
  59. package/dist/loader.js +1 -0
  60. package/dist/types/lumina.d.ts +5 -0
  61. package/dist/types/preact.d.ts +6 -0
  62. package/dist/types/react.d.ts +7 -0
  63. package/dist/types/stencil.d.ts +5 -0
  64. package/dist/utils/sharedCacheDirective.d.ts +68 -0
  65. package/package.json +5 -5
  66. package/dist/cdn/5XRYXPOX.js +0 -2
  67. package/dist/cdn/DR2THZQU.js +0 -8208
  68. package/dist/cdn/M2J3GPM4.js +0 -2
  69. package/dist/cdn/M3SFEFPX.js +0 -2
  70. package/dist/cdn/S4XOD4YS.js +0 -2
  71. package/dist/cdn/UIBTY5FF.js +0 -2
  72. package/dist/cdn/ZGYD3GAS.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,6 +55,7 @@ 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";
58
60
  import type { ArcgisPickerInput } from "./components/arcgis-picker-input/customElement.js";
59
61
  import type { ArcgisRampColor } from "./components/arcgis-ramp-color/customElement.js";
@@ -202,6 +204,7 @@ declare global {
202
204
  "arcgis-field-info": ArcgisFieldInfo;
203
205
  "arcgis-field-pick-list": ArcgisFieldPickList;
204
206
  "arcgis-histogram": ArcgisHistogram;
207
+ "arcgis-html-content": ArcgisHtmlContent;
205
208
  "arcgis-label-input": ArcgisLabelInput;
206
209
  "arcgis-picker-input": ArcgisPickerInput;
207
210
  "arcgis-ramp-color": ArcgisRampColor;
@@ -251,6 +254,8 @@ declare global {
251
254
 
252
255
  type HTMLArcgisHistogramElement = ArcgisHistogram;
253
256
 
257
+ type HTMLArcgisHtmlContentElement = ArcgisHtmlContent;
258
+
254
259
  type HTMLArcgisLabelInputElementEventMap = ArcgisLabelInput["@eventTypes"];
255
260
  type HTMLArcgisLabelInputElement = ArcgisLabelInput;
256
261
 
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 e, s as a } from "./chunks/runtime.js";
3
- import { L as r } from "./chunks/types.js";
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
- r as LayoutPriorities,
6
- e as getAssetPath,
7
- a as setAssetPath
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
@@ -10,6 +10,7 @@ const s = a(e, {
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
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"],
14
15
  "arcgis-picker-input": [() => import("./components/arcgis-picker-input/customElement.js"), "disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],
15
16
  "arcgis-ramp-color": [() => import("./components/arcgis-ramp-color/customElement.js"), "layout,max,min,stops:"],
@@ -7,6 +7,7 @@ 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";
11
12
  import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
12
13
  import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
@@ -84,6 +85,9 @@ interface LuminaArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
84
85
  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> {
85
86
  }
86
87
 
88
+ interface LuminaArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, h.JSX.HTMLAttributes<ArcgisHtmlContent> {
89
+ }
90
+
87
91
  interface LuminaArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, h.JSX.HTMLAttributes<ArcgisLabelInput> {
88
92
  onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
89
93
  }
@@ -199,6 +203,7 @@ declare module "@arcgis/lumina" {
199
203
  "arcgis-field-info": LuminaArcgisFieldInfo;
200
204
  "arcgis-field-pick-list": LuminaArcgisFieldPickList;
201
205
  "arcgis-histogram": LuminaArcgisHistogram;
206
+ "arcgis-html-content": LuminaArcgisHtmlContent;
202
207
  "arcgis-label-input": LuminaArcgisLabelInput;
203
208
  "arcgis-picker-input": LuminaArcgisPickerInput;
204
209
  "arcgis-ramp-color": LuminaArcgisRampColor;
@@ -7,6 +7,7 @@ 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";
11
12
  import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
12
13
  import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
@@ -85,6 +86,9 @@ interface PreactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
85
86
  interface PreactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLAttributes<ArcgisHistogram> {
86
87
  }
87
88
 
89
+ interface PreactArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, HTMLAttributes<ArcgisHtmlContent> {
90
+ }
91
+
88
92
  interface PreactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLAttributes<ArcgisLabelInput> {
89
93
  onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
90
94
  }
@@ -200,6 +204,7 @@ declare module 'preact' {
200
204
  "arcgis-field-info": PreactArcgisFieldInfo;
201
205
  "arcgis-field-pick-list": PreactArcgisFieldPickList;
202
206
  "arcgis-histogram": PreactArcgisHistogram;
207
+ "arcgis-html-content": PreactArcgisHtmlContent;
203
208
  "arcgis-label-input": PreactArcgisLabelInput;
204
209
  "arcgis-picker-input": PreactArcgisPickerInput;
205
210
  "arcgis-ramp-color": PreactArcgisRampColor;
@@ -235,6 +240,7 @@ declare module 'preact' {
235
240
  "arcgis-field-info": PreactArcgisFieldInfo;
236
241
  "arcgis-field-pick-list": PreactArcgisFieldPickList;
237
242
  "arcgis-histogram": PreactArcgisHistogram;
243
+ "arcgis-html-content": PreactArcgisHtmlContent;
238
244
  "arcgis-label-input": PreactArcgisLabelInput;
239
245
  "arcgis-picker-input": PreactArcgisPickerInput;
240
246
  "arcgis-ramp-color": PreactArcgisRampColor;
@@ -7,6 +7,7 @@ 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";
11
12
  import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
12
13
  import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
@@ -85,6 +86,9 @@ interface ReactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "cu
85
86
  interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
86
87
  }
87
88
 
89
+ interface ReactArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, HTMLProps<ArcgisHtmlContent> {
90
+ }
91
+
88
92
  interface ReactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLProps<ArcgisLabelInput> {
89
93
  onarcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
90
94
  }
@@ -200,6 +204,7 @@ declare module "react" {
200
204
  "arcgis-field-info": ReactArcgisFieldInfo;
201
205
  "arcgis-field-pick-list": ReactArcgisFieldPickList;
202
206
  "arcgis-histogram": ReactArcgisHistogram;
207
+ "arcgis-html-content": ReactArcgisHtmlContent;
203
208
  "arcgis-label-input": ReactArcgisLabelInput;
204
209
  "arcgis-picker-input": ReactArcgisPickerInput;
205
210
  "arcgis-ramp-color": ReactArcgisRampColor;
@@ -237,6 +242,7 @@ declare module "react/jsx-runtime" {
237
242
  "arcgis-field-info": ReactArcgisFieldInfo;
238
243
  "arcgis-field-pick-list": ReactArcgisFieldPickList;
239
244
  "arcgis-histogram": ReactArcgisHistogram;
245
+ "arcgis-html-content": ReactArcgisHtmlContent;
240
246
  "arcgis-label-input": ReactArcgisLabelInput;
241
247
  "arcgis-picker-input": ReactArcgisPickerInput;
242
248
  "arcgis-ramp-color": ReactArcgisRampColor;
@@ -274,6 +280,7 @@ declare module "react/jsx-dev-runtime" {
274
280
  "arcgis-field-info": ReactArcgisFieldInfo;
275
281
  "arcgis-field-pick-list": ReactArcgisFieldPickList;
276
282
  "arcgis-histogram": ReactArcgisHistogram;
283
+ "arcgis-html-content": ReactArcgisHtmlContent;
277
284
  "arcgis-label-input": ReactArcgisLabelInput;
278
285
  "arcgis-picker-input": ReactArcgisPickerInput;
279
286
  "arcgis-ramp-color": ReactArcgisRampColor;
@@ -7,6 +7,7 @@ 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";
11
12
  import type { ArcgisPickerInput } from "../components/arcgis-picker-input/customElement.js";
12
13
  import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElement.js";
@@ -85,6 +86,9 @@ interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "
85
86
  interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
86
87
  }
87
88
 
89
+ interface StencilArcgisHtmlContent extends Partial<Pick<ArcgisHtmlContent, "content" | "sanitizerOptions">>, StencilJsx.HTMLAttributes<ArcgisHtmlContent> {
90
+ }
91
+
88
92
  interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
89
93
  onArcgisChange?: EventHandler<ArcgisLabelInput["arcgisChange"]>;
90
94
  }
@@ -198,6 +202,7 @@ interface ExposedElements {
198
202
  "arcgis-field-info": StencilArcgisFieldInfo;
199
203
  "arcgis-field-pick-list": StencilArcgisFieldPickList;
200
204
  "arcgis-histogram": StencilArcgisHistogram;
205
+ "arcgis-html-content": StencilArcgisHtmlContent;
201
206
  "arcgis-label-input": StencilArcgisLabelInput;
202
207
  "arcgis-picker-input": StencilArcgisPickerInput;
203
208
  "arcgis-ramp-color": StencilArcgisRampColor;
@@ -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.12",
3
+ "version": "6.0.0-next.13",
4
4
  "description": "ArcGIS Maps SDK for JavaScript common components",
5
5
  "keywords": [
6
6
  "2D",
@@ -45,16 +45,16 @@
45
45
  ],
46
46
  "license": "SEE LICENSE IN LICENSE.md",
47
47
  "dependencies": {
48
- "@arcgis/lumina": "6.0.0-next.12",
49
- "@arcgis/lumina-toolkit": "6.0.0-next.12",
50
- "@arcgis/toolkit": "6.0.0-next.12",
48
+ "@arcgis/lumina": "6.0.0-next.13",
49
+ "@arcgis/lumina-toolkit": "6.0.0-next.13",
50
+ "@arcgis/toolkit": "6.0.0-next.13",
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.12",
57
+ "@arcgis/core": "6.0.0-next.13",
58
58
  "@esri/calcite-components": "^5.2.0-next.89"
59
59
  },
60
60
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{e as n}from"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as r,R as c,h as s,j as a}from"./BCN6LPOG.js";var o=s`:host{display:flex;flex:auto;min-width:300px;padding:var(--calcite-space-sm)}:host([disabled]){opacity:var(--calcite-opacity-disabled);pointer-events:none}.container{align-items:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-3);display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}.text{color:var(--calcite-color-text-1);flex:auto;font-family:inherit;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--calcite-space-none)}`,i=class extends r{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.disabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=n()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,disabled:7,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}static{this.styles=o}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.[0]}step(e){if(!this.items||!this.currentValue)return;let t=this.items.findIndex(({value:l})=>l===this.currentValue?.value)+(e==="next"?1:-1);t>=this.items.length||t<0||(this.currentValue=this.items[t],this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(e){(e.has("currentValue")||e.has("items"))&&this.items?.length&&!this.currentValue&&(this.currentValue=this.items[0]),this.el.hidden=!this.items?.length,this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let e=this.items.findIndex(({value:t})=>t===this.currentValue?.value);this.canNext=e<this.items.length-1,this.canPrevious=e>0}render(){return a`<div class="container"><div class="text">${this.currentValue?.label}</div></div>`}};c("arcgis-value-picker-label",i);export{i as ArcgisValuePickerLabel};