@arcgis/map-components 6.0.0-next.29 → 6.0.0-next.30

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 (38) hide show
  1. package/dist/cdn/{T4DVKA6R.js → 5IPRYM2C.js} +1 -1
  2. package/dist/cdn/66TZB3H3.js +3 -0
  3. package/dist/cdn/6FJUKYNB.js +2 -0
  4. package/dist/cdn/BEICGIY5.js +2 -0
  5. package/dist/cdn/{4LO7PNX7.js → BJUFDQGX.js} +1 -1
  6. package/dist/cdn/{FAPDKS2C.js → CDHP7WRH.js} +1 -1
  7. package/dist/cdn/FROWRLYW.js +2 -0
  8. package/dist/cdn/{IYMK2NGU.js → KWF72M5Z.js} +1 -1
  9. package/dist/cdn/{Q7CJUHNT.js → M7GAVFT6.js} +1 -1
  10. package/dist/cdn/OKOOKG4L.js +2 -0
  11. package/dist/cdn/{SI6RI664.js → PYEOGYQ3.js} +1 -1
  12. package/dist/cdn/{CGGVQCCL.js → WZWVZD7I.js} +1 -1
  13. package/dist/cdn/{WEMTOBBB.js → YCKZUQ7P.js} +1 -1
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/chunks/chart-utils.js +12 -12
  16. package/dist/chunks/slots.js +4 -4
  17. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +2 -2
  18. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  19. package/dist/components/arcgis-daylight/customElement.js +134 -131
  20. package/dist/components/arcgis-feature-media/customElement.js +254 -210
  21. package/dist/components/arcgis-popup/customElement.js +115 -109
  22. package/dist/components/arcgis-selection-list/customElement.js +1 -1
  23. package/dist/components/arcgis-sketch/customElement.d.ts +17 -5
  24. package/dist/components/arcgis-sketch/customElement.js +33 -34
  25. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +9 -9
  26. package/dist/docs/api.json +1 -1
  27. package/dist/docs/docs.json +1 -1
  28. package/dist/docs/web-types.json +1 -1
  29. package/package.json +6 -6
  30. package/dist/cdn/7RO6N4XQ.js +0 -2
  31. package/dist/cdn/A6DDWCVW.js +0 -2
  32. package/dist/cdn/JWHVCBA3.js +0 -2
  33. package/dist/cdn/LXTP2MVM.js +0 -2
  34. package/dist/cdn/NXLWTRS6.js +0 -3
  35. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
  36. package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
  37. package/dist/components/arcgis-sketch/support.d.ts +0 -17
  38. package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +0 -96
@@ -1,96 +0,0 @@
1
- import type SketchViewModel from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
2
- import type { LitElement } from "@arcgis/lumina";
3
- import type { GenericController } from "@arcgis/lumina/controllers";
4
-
5
- /**
6
- * Offers Sketch's toolbar a main-axis budget when Sketch is directly slotted into a map or scene corner.
7
- * The toolbar's own responsive layout decides how to arrange its tools within that budget.
8
- *
9
- * This controller measures the size of all of the view's slotted content, figures out which items would
10
- * potentially overlap the toolbar, and uses that information to determine the actual available space.
11
- *
12
- * @internal
13
- */
14
- export class ToolbarSizingController extends GenericController<void, HostElement> {
15
- constructor(component: HostElement);
16
- /**
17
- * JSX ref for Sketch's toolbar stack.
18
- *
19
- * @param element
20
- */
21
- ref(element?: HTMLElement): void;
22
- }
23
-
24
- /**
25
- * Calculates the available space (budget) along the toolbar's main axis within its given slot.
26
- *
27
- * budget = view length - (a) anchored inset - (b) same-slot reserve - (c) opposite reserve - optional opposite gap.
28
- *
29
- * The anchored inset includes preceding same-slot controls. The same-slot reserve covers following controls.
30
- * Opposite-slot controls reserve space only if they overlap the toolbar on its cross axis.
31
- *
32
- * ```text
33
- * Horizontal Sketch in the bottom-left corner; main axis ->
34
- *
35
- * +------------------------------ VIEW ----------------------------------+
36
- * | +-------------------------------------+ |
37
- * | | DOES NOT BLOCK SKETCH | |
38
- * | +-------------------------------------+ |
39
- * | |
40
- * | +========================+ |
41
- * | +--------+ | SKETCH'S SPACE | +-------+ +----------+ |
42
- * | | BEFORE | | tools fit / wrap here | | AFTER | | OBSTACLE | |
43
- * | +--------+ +========================+ +-------+ +----------+ |
44
- * +----------------------------------------------------------------------+
45
- * preceding available budget following opposite
46
- * controls controls control
47
- *
48
- * |<---- (a) --->|<------ budget --------->|<- (b) ->| gap |<-- (c) -->| |
49
- * |<------------------------- view length ------------------------------>|
50
- *
51
- * (a) Anchored inset: view edge -> Sketch, including preceding controls.
52
- * (b) Same-slot reserve: following controls and trailing margins.
53
- * (c) Opposite reserve: obstacle -> far view edge, including its outer inset.
54
- * ```
55
- *
56
- * Right/bottom anchoring mirrors the main-axis accounting; vertical layout uses height instead of width.
57
- * The diagram shows the maximum budget, not the toolbar's actual rendered length.
58
- *
59
- * @param parameter0
60
- * @returns A nonnegative length in CSS pixels, including zero when obstacles exhaust the available space.
61
- * @internal
62
- */
63
- export function calculateAvailableToolbarSpace(parameter0: ToolbarSizingMeasurements): number;
64
-
65
- /** The Sketch component that owns the toolbar stack. */
66
- export type HostElement = LitElement
67
- & {
68
- el: HTMLElement;
69
- layout: Layout;
70
- view?: SketchViewModel["view"];
71
- };
72
-
73
- export type ToolbarSizingMeasurements = {
74
- /** Other-slot content; same-slot siblings are accounted for separately. */
75
- content: ContentSizeAndPosition[];
76
- /** Separation from overlapping opposite-corner content, not the view's outer margin. */
77
- gap: number;
78
- layout: Layout;
79
- position: ScreenPosition;
80
- /** Space occupied after Sketch in its slot's main-axis flow, including margins. */
81
- sameSlotReserve: number;
82
- toolbarBounds: Bounds;
83
- viewBounds: Bounds;
84
- };
85
-
86
- export type Layout = "horizontal" | "vertical";
87
-
88
- export type ScreenPosition = "bottom-left" | "bottom-right" | "top-left" | "top-right";
89
-
90
- export type Bounds = Pick<DOMRect, "bottom" | "height" | "left" | "right" | "top" | "width">;
91
-
92
- /** An obstacle in another view slot. */
93
- export type ContentSizeAndPosition = {
94
- bounds: Bounds;
95
- position: ScreenPosition;
96
- };