@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.
- package/dist/cdn/{T4DVKA6R.js → 5IPRYM2C.js} +1 -1
- package/dist/cdn/66TZB3H3.js +3 -0
- package/dist/cdn/6FJUKYNB.js +2 -0
- package/dist/cdn/BEICGIY5.js +2 -0
- package/dist/cdn/{4LO7PNX7.js → BJUFDQGX.js} +1 -1
- package/dist/cdn/{FAPDKS2C.js → CDHP7WRH.js} +1 -1
- package/dist/cdn/FROWRLYW.js +2 -0
- package/dist/cdn/{IYMK2NGU.js → KWF72M5Z.js} +1 -1
- package/dist/cdn/{Q7CJUHNT.js → M7GAVFT6.js} +1 -1
- package/dist/cdn/OKOOKG4L.js +2 -0
- package/dist/cdn/{SI6RI664.js → PYEOGYQ3.js} +1 -1
- package/dist/cdn/{CGGVQCCL.js → WZWVZD7I.js} +1 -1
- package/dist/cdn/{WEMTOBBB.js → YCKZUQ7P.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/chart-utils.js +12 -12
- package/dist/chunks/slots.js +4 -4
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
- package/dist/components/arcgis-daylight/customElement.js +134 -131
- package/dist/components/arcgis-feature-media/customElement.js +254 -210
- package/dist/components/arcgis-popup/customElement.js +115 -109
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +17 -5
- package/dist/components/arcgis-sketch/customElement.js +33 -34
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +9 -9
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/7RO6N4XQ.js +0 -2
- package/dist/cdn/A6DDWCVW.js +0 -2
- package/dist/cdn/JWHVCBA3.js +0 -2
- package/dist/cdn/LXTP2MVM.js +0 -2
- package/dist/cdn/NXLWTRS6.js +0 -3
- package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
- package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
- package/dist/components/arcgis-sketch/support.d.ts +0 -17
- package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +0 -96
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import F from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { c as P } from "../../chunks/runtime.js";
|
|
3
|
+
import S from "@arcgis/core/popup/FeaturesModel.js";
|
|
4
|
+
import { u as F } from "../../chunks/useT9n.js";
|
|
5
|
+
import { useDirection as $, usePropertyChange as N } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { m as T } from "../../chunks/useViewModel.js";
|
|
7
|
+
import { LitElement as L, createEvent as w, safeStyleMap as V, safeClassMap as _ } from "@arcgis/lumina";
|
|
8
|
+
import { css as H, html as y } from "lit";
|
|
9
9
|
import { stripHTML as B } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
10
10
|
import { classes as x } from "@arcgis/toolkit/dom";
|
|
11
11
|
import { createRef as m, ref as f } from "lit/directives/ref.js";
|
|
@@ -13,20 +13,20 @@ import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
13
13
|
import I from "@arcgis/core/support/actions/ActionButton.js";
|
|
14
14
|
import { t as R } from "../../chunks/screenLocation.js";
|
|
15
15
|
import "../arcgis-search-result-renderer/customElement.js";
|
|
16
|
-
const W =
|
|
16
|
+
const W = H`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{--arcgis-internal-popup-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-popup-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-popup-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-popup-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-space-lg) var(--calcite-space-lg) var(--calcite-spacing-xxxl) var(--calcite-space-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right,.is-docked-top-start,.is-docked-top-end{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right,.is-docked-bottom-start,.is-docked-bottom-end{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left,.is-docked-top-start,.is-docked-bottom-start{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right,.is-docked-top-end,.is-docked-bottom-end{justify-content:flex-end}.is-docked-top-left.is-rtl,.is-docked-top-right.is-rtl,.is-docked-bottom-left.is-rtl,.is-docked-bottom-right.is-rtl{flex-direction:row-reverse}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container,.is-docked-top-start .main-container,.is-docked-top-end .main-container,.is-docked-bottom-start .main-container,.is-docked-bottom-end .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-space-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-space-xs));opacity:0}to{transform:translate(0);opacity:1}}`, D = /* @__PURE__ */ new WeakSet();
|
|
17
17
|
function j(h) {
|
|
18
|
-
const
|
|
19
|
-
if (!(!
|
|
20
|
-
for (const
|
|
18
|
+
const e = h.defaultView;
|
|
19
|
+
if (!(!e || D.has(h))) {
|
|
20
|
+
for (const t of ["top", "right", "bottom", "left"])
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
name: `--arcgis-internal-popup-overlay-space-${
|
|
22
|
+
e.CSS.registerProperty({
|
|
23
|
+
name: `--arcgis-internal-popup-overlay-space-${t}`,
|
|
24
24
|
syntax: "<length>",
|
|
25
25
|
inherits: !1,
|
|
26
26
|
initialValue: "0px"
|
|
27
27
|
});
|
|
28
28
|
} catch (i) {
|
|
29
|
-
if (!(i instanceof
|
|
29
|
+
if (!(i instanceof e.DOMException && i.name === "InvalidModificationError"))
|
|
30
30
|
throw i;
|
|
31
31
|
}
|
|
32
32
|
D.add(h);
|
|
@@ -35,21 +35,21 @@ function j(h) {
|
|
|
35
35
|
function v(h) {
|
|
36
36
|
return h && Number.parseInt(h.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
37
37
|
}
|
|
38
|
-
const Y =
|
|
38
|
+
const Y = T(S), M = {
|
|
39
39
|
buttonEnabled: !0,
|
|
40
40
|
position: "auto",
|
|
41
41
|
breakpoint: {
|
|
42
42
|
width: 544
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
class
|
|
45
|
+
class U extends L {
|
|
46
46
|
constructor() {
|
|
47
|
-
super(...arguments), this._direction =
|
|
47
|
+
super(...arguments), this._direction = $(), this._headingText = { html: "", text: "" }, this._featuresComponent = m(), this._dockAction = new I({ id: "popup-dock-action" }), this._mainContainerNode = m(), this._pointerNode = m(), this.messages = F(), this.viewModel = Y(this), this._containerNode = m(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
48
48
|
this.positionStyle = this._calculatePositionStyle();
|
|
49
|
-
}, this.screenLocation = R(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = !1, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.features = this.viewModel.features, this.featureStream = this.viewModel.featureStream, this.focusTrapDisabled = !1, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideEmptyRelationshipContent = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.open = this.viewModel.open, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange =
|
|
49
|
+
}, this._messageOverrides = {}, this.screenLocation = R(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = !1, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.diagnostics = this.viewModel.diagnostics, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.features = this.viewModel.features, this.featureStream = this.viewModel.featureStream, this.focusTrapDisabled = !1, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideEmptyRelationshipContent = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.open = this.viewModel.open, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = N()("active", "collapsed", "currentAlignment", "dockEnabled", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = w(), this.arcgisClose = w(), this.arcgisTriggerAction = w();
|
|
50
50
|
}
|
|
51
51
|
static {
|
|
52
|
-
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, _effectiveDockEnabled: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, diagnostics: 32, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, featureStream: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideEmptyRelationshipContent: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
52
|
+
this.properties = { _messageOverrides: 16, screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, _effectiveDockEnabled: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, diagnostics: 32, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, featureStream: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideEmptyRelationshipContent: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
53
53
|
}
|
|
54
54
|
static {
|
|
55
55
|
this.styles = W;
|
|
@@ -58,8 +58,8 @@ class X extends V {
|
|
|
58
58
|
return this.active && !this._effectiveDockEnabled;
|
|
59
59
|
}
|
|
60
60
|
get _featureNavigationTop() {
|
|
61
|
-
const { currentAlignment:
|
|
62
|
-
return
|
|
61
|
+
const { currentAlignment: e, currentDockPosition: t } = this;
|
|
62
|
+
return e === "bottom-left" || e === "bottom-center" || e === "bottom-right" || e === "bottom-start" || e === "bottom-end" || t === "top-left" || t === "top-center" || t === "top-right" || t === "top-start" || t === "top-end";
|
|
63
63
|
}
|
|
64
64
|
get _effectiveDockEnabled() {
|
|
65
65
|
return this.viewModel?.view?.focusRegionVisible ? !0 : this.dockEnabled;
|
|
@@ -73,10 +73,10 @@ class X extends V {
|
|
|
73
73
|
get dockOptions() {
|
|
74
74
|
return this._dockOptions || M;
|
|
75
75
|
}
|
|
76
|
-
set dockOptions(
|
|
77
|
-
const
|
|
76
|
+
set dockOptions(e) {
|
|
77
|
+
const t = { ...M }, i = this.viewModel?.view?.breakpoints, o = {};
|
|
78
78
|
i && (o.width = i.xsmall, o.height = i.xsmall);
|
|
79
|
-
const n = { ...
|
|
79
|
+
const n = { ...t, ...e }, s = { ...t.breakpoint, ...o }, { breakpoint: a } = n;
|
|
80
80
|
typeof a == "object" ? n.breakpoint = { ...s, ...a } : a && (n.breakpoint = s), this._dockOptions = n;
|
|
81
81
|
}
|
|
82
82
|
get selectedDrillInFeature() {
|
|
@@ -91,8 +91,8 @@ class X extends V {
|
|
|
91
91
|
async destroy() {
|
|
92
92
|
await this.manager.destroy(), this._dockAction.destroy(), this._popupResizeObserver.disconnect();
|
|
93
93
|
}
|
|
94
|
-
async openFeatureStream(
|
|
95
|
-
this.viewModel.openFeatureStream(
|
|
94
|
+
async openFeatureStream(e) {
|
|
95
|
+
this.viewModel.openFeatureStream(e);
|
|
96
96
|
}
|
|
97
97
|
async next() {
|
|
98
98
|
this.viewModel.next();
|
|
@@ -103,6 +103,16 @@ class X extends V {
|
|
|
103
103
|
async setFocus() {
|
|
104
104
|
this._featuresComponent.value?.setFocus();
|
|
105
105
|
}
|
|
106
|
+
willUpdate(e) {
|
|
107
|
+
if (!this.hasUpdated || e.has("messageOverrides") || e.has("messages")) {
|
|
108
|
+
const t = this.messages._original ?? this.messages;
|
|
109
|
+
this._messageOverrides = {
|
|
110
|
+
...this.messageOverrides,
|
|
111
|
+
collapse: this.messageOverrides?.collapse ?? t.collapse,
|
|
112
|
+
expand: this.messageOverrides?.expand ?? t.expand
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
106
116
|
connectedCallback() {
|
|
107
117
|
j(this.el.ownerDocument), super.connectedCallback(), this._syncPopupResizeObserver();
|
|
108
118
|
}
|
|
@@ -111,8 +121,8 @@ class X extends V {
|
|
|
111
121
|
p(() => [this.viewModel?.view?.widthBreakpoint, this._effectiveDockEnabled, this._direction], () => this._handleDockIcon(), { initial: !0 }),
|
|
112
122
|
p(() => [this._effectiveDockEnabled, this.messages?.undock, this.messages?.dock], () => this._handleDockEnabled(), { initial: !0 }),
|
|
113
123
|
p(() => [this.dockOptions, this._featuresComponent.value, this.viewModel?.view?.focusRegionVisible], () => {
|
|
114
|
-
const { _dockAction:
|
|
115
|
-
i?.remove(
|
|
124
|
+
const { _dockAction: e, dockOptions: t } = this, i = this._featuresComponent.value?.headerActions;
|
|
125
|
+
i?.remove(e), t.buttonEnabled && !this.viewModel?.view?.focusRegionVisible && i?.add(e);
|
|
116
126
|
}, { initial: !0 }),
|
|
117
127
|
p(() => [
|
|
118
128
|
this._pointerNode.value,
|
|
@@ -125,15 +135,15 @@ class X extends V {
|
|
|
125
135
|
this.viewModel?.location,
|
|
126
136
|
this.viewModel?.view?.size
|
|
127
137
|
], () => this._positionContainer(), { initial: !0 }),
|
|
128
|
-
p(() => this._mainContainerNode.value, (
|
|
129
|
-
this._syncPopupResizeObserver(
|
|
138
|
+
p(() => this._mainContainerNode.value, (e) => {
|
|
139
|
+
this._syncPopupResizeObserver(e);
|
|
130
140
|
}, { initial: !0 }),
|
|
131
|
-
p(() => this.viewModel?.view?.size, (
|
|
141
|
+
p(() => this.viewModel?.view?.size, (e, t) => this._updateDockEnabledForViewSize(e, t)),
|
|
132
142
|
p(() => this.viewModel?.view?.ready, () => this._setDockEnabledForViewSize(this.dockOptions), { initial: !0 }),
|
|
133
|
-
p(() => this.view?.map, (
|
|
134
|
-
this.viewModel.map =
|
|
143
|
+
p(() => this.view?.map, (e) => {
|
|
144
|
+
this.viewModel.map = e;
|
|
135
145
|
}, { initial: !0 }),
|
|
136
|
-
p(() => this.screenLocation, (
|
|
146
|
+
p(() => this.screenLocation, (e, t) => this._autoClose(e, t)),
|
|
137
147
|
p(() => [this.active, this._containerNode.value, this._effectiveDockEnabled, this.topLayerDisabled], () => this._togglePopover(), { initial: !0 })
|
|
138
148
|
]);
|
|
139
149
|
}
|
|
@@ -143,26 +153,26 @@ class X extends V {
|
|
|
143
153
|
_togglePopover() {
|
|
144
154
|
this._containerNode.value?.togglePopover(this.active && !this._effectiveDockEnabled && !this.topLayerDisabled);
|
|
145
155
|
}
|
|
146
|
-
_syncPopupResizeObserver(
|
|
147
|
-
this._popupResizeObserver.disconnect(),
|
|
156
|
+
_syncPopupResizeObserver(e = this._mainContainerNode.value) {
|
|
157
|
+
this._popupResizeObserver.disconnect(), e && this._popupResizeObserver.observe(e);
|
|
148
158
|
}
|
|
149
|
-
_handleClose(
|
|
150
|
-
|
|
159
|
+
_handleClose(e) {
|
|
160
|
+
e.stopPropagation(), this.arcgisClose.emit();
|
|
151
161
|
}
|
|
152
|
-
_autoClose(
|
|
153
|
-
this.autoCloseEnabled &&
|
|
162
|
+
_autoClose(e, t) {
|
|
163
|
+
this.autoCloseEnabled && e != null && t != null && (this.open = !1);
|
|
154
164
|
}
|
|
155
|
-
_handleArcgisPropertyChange(
|
|
156
|
-
|
|
165
|
+
_handleArcgisPropertyChange(e) {
|
|
166
|
+
e.detail.name === "collapsed" && (this.collapsed = e.target.collapsed);
|
|
157
167
|
}
|
|
158
|
-
_handleArcgisTriggerAction(
|
|
159
|
-
|
|
168
|
+
_handleArcgisTriggerAction(e) {
|
|
169
|
+
e.stopPropagation(), e.detail.action === this._dockAction && (this.dockEnabled = !this.dockEnabled), this.arcgisTriggerAction.emit({ action: e.detail.action });
|
|
160
170
|
}
|
|
161
|
-
_isOutsideView(
|
|
162
|
-
const { popupHeight: i, popupWidth: o, screenLocation: n, side: s, view: a } =
|
|
171
|
+
_isOutsideView(e, t) {
|
|
172
|
+
const { popupHeight: i, popupWidth: o, screenLocation: n, side: s, view: a } = e;
|
|
163
173
|
if (Number.isNaN(o) || Number.isNaN(i) || !a || !n)
|
|
164
174
|
return !1;
|
|
165
|
-
const l =
|
|
175
|
+
const l = t ? Number.parseFloat(t.getPropertyValue(`--arcgis-internal-popup-overlay-space-${s}`)) : 0;
|
|
166
176
|
switch (s) {
|
|
167
177
|
case "right":
|
|
168
178
|
return n.x + o / 2 > a.width - l;
|
|
@@ -175,30 +185,30 @@ class X extends V {
|
|
|
175
185
|
}
|
|
176
186
|
}
|
|
177
187
|
_getPointerSize() {
|
|
178
|
-
const { _pointerNode:
|
|
188
|
+
const { _pointerNode: e } = this, t = e.value ? window.getComputedStyle(e.value) : null, i = v(t?.height), o = v(t?.width);
|
|
179
189
|
return Math.hypot(i, o);
|
|
180
190
|
}
|
|
181
191
|
_getHeadingText() {
|
|
182
|
-
const
|
|
183
|
-
return this._headingText.html !==
|
|
184
|
-
}
|
|
185
|
-
_calculateAutoAlignment(
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
188
|
-
const { _mainContainerNode:
|
|
189
|
-
if (s == null || !n || !i || !
|
|
192
|
+
const e = this.heading ?? "";
|
|
193
|
+
return this._headingText.html !== e && (this._headingText = { html: e, text: B(e) }), this._headingText.text;
|
|
194
|
+
}
|
|
195
|
+
_calculateAutoAlignment(e) {
|
|
196
|
+
if (e !== "auto")
|
|
197
|
+
return e;
|
|
198
|
+
const { _mainContainerNode: t, _popupRect: i, viewModel: o } = this, { view: n } = o, { screenLocation: s } = this;
|
|
199
|
+
if (s == null || !n || !i || !t.value)
|
|
190
200
|
return "top-center";
|
|
191
|
-
const a = window.getComputedStyle(
|
|
192
|
-
return A ? k ? "bottom-right" : "top-right" : E ? k ? "bottom-left" : "top-left" : k ?
|
|
201
|
+
const a = window.getComputedStyle(t.value), l = v(a.maxHeight), r = v(a.height), d = this._getPointerSize(), { height: c, width: b } = i, z = b + d, u = { popupHeight: Math.max(c, l, r) + d, popupWidth: z, screenLocation: s, view: n }, C = this._containerNode.value, g = C ? window.getComputedStyle(C) : null, E = this._isOutsideView({ ...u, side: "right" }, g), A = this._isOutsideView({ ...u, side: "left" }, g), k = this._isOutsideView({ ...u, side: "top" }, g), O = this._isOutsideView({ ...u, side: "bottom" }, g);
|
|
202
|
+
return A ? k ? "bottom-right" : "top-right" : E ? k ? "bottom-left" : "top-left" : k ? O ? "top-center" : "bottom-center" : "top-center";
|
|
193
203
|
}
|
|
194
|
-
_callCurrentAlignment(
|
|
195
|
-
return typeof
|
|
204
|
+
_callCurrentAlignment(e) {
|
|
205
|
+
return typeof e == "function" ? e.call(this) : e;
|
|
196
206
|
}
|
|
197
207
|
_getCurrentAlignment() {
|
|
198
208
|
return this._effectiveDockEnabled || !this.active || !this._mainContainerNode.value ? null : this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment));
|
|
199
209
|
}
|
|
200
|
-
_callDockPosition(
|
|
201
|
-
return typeof
|
|
210
|
+
_callDockPosition(e) {
|
|
211
|
+
return typeof e == "function" ? e.call(this) : e;
|
|
202
212
|
}
|
|
203
213
|
_getDockPosition() {
|
|
204
214
|
return this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position));
|
|
@@ -206,20 +216,20 @@ class X extends V {
|
|
|
206
216
|
_getCurrentDockPosition() {
|
|
207
217
|
return this._effectiveDockEnabled && this.active ? this._getDockPosition() : null;
|
|
208
218
|
}
|
|
209
|
-
_calculateAutoDockPosition(
|
|
210
|
-
if (
|
|
211
|
-
return
|
|
212
|
-
const
|
|
213
|
-
if (!
|
|
219
|
+
_calculateAutoDockPosition(e) {
|
|
220
|
+
if (e !== "auto")
|
|
221
|
+
return e;
|
|
222
|
+
const t = this.viewModel?.view, i = "top-end";
|
|
223
|
+
if (!t)
|
|
214
224
|
return i;
|
|
215
|
-
const { breakpoints: o } =
|
|
216
|
-
return o?.xsmall &&
|
|
225
|
+
const { breakpoints: o } = t;
|
|
226
|
+
return o?.xsmall && t.width <= o.xsmall ? "bottom-center" : i;
|
|
217
227
|
}
|
|
218
228
|
_getDockIcon() {
|
|
219
|
-
const
|
|
229
|
+
const e = this._getDockPosition(), { _direction: t } = this;
|
|
220
230
|
if (this._effectiveDockEnabled)
|
|
221
231
|
return "minimize";
|
|
222
|
-
switch (
|
|
232
|
+
switch (e) {
|
|
223
233
|
case "top-left":
|
|
224
234
|
case "bottom-left":
|
|
225
235
|
return "dock-left";
|
|
@@ -232,9 +242,9 @@ class X extends V {
|
|
|
232
242
|
return "dock-right";
|
|
233
243
|
case "top-start":
|
|
234
244
|
case "bottom-start":
|
|
235
|
-
return
|
|
245
|
+
return t === "rtl" ? "dock-right" : "dock-left";
|
|
236
246
|
default:
|
|
237
|
-
return
|
|
247
|
+
return t === "rtl" ? "dock-left" : "dock-right";
|
|
238
248
|
}
|
|
239
249
|
}
|
|
240
250
|
_handleDockIcon() {
|
|
@@ -243,10 +253,10 @@ class X extends V {
|
|
|
243
253
|
_handleDockEnabled() {
|
|
244
254
|
this._dockAction.title = this._effectiveDockEnabled ? this.messages?.undock : this.messages?.dock;
|
|
245
255
|
}
|
|
246
|
-
_calculateAlignmentPosition(
|
|
247
|
-
if (
|
|
256
|
+
_calculateAlignmentPosition(e, t, i, o) {
|
|
257
|
+
if (e < 0 || t < 0 || !i || !o || e > i.width || t > i.height)
|
|
248
258
|
return;
|
|
249
|
-
const { topLayerDisabled: n } = this, s = n ?
|
|
259
|
+
const { topLayerDisabled: n } = this, s = n ? e : e + i.x, a = n ? t : t + i.y, { _direction: l, currentAlignment: r } = this, d = this._getPointerSize(), c = d / 2;
|
|
250
260
|
if (r === "top-left" || r === "top-start" && l === "ltr" || r === "top-end" && l === "rtl")
|
|
251
261
|
return {
|
|
252
262
|
top: a - (o.height + c),
|
|
@@ -278,52 +288,52 @@ class X extends V {
|
|
|
278
288
|
left: s + c
|
|
279
289
|
};
|
|
280
290
|
}
|
|
281
|
-
_getPositionStyleValue(
|
|
282
|
-
return
|
|
291
|
+
_getPositionStyleValue(e) {
|
|
292
|
+
return e != null ? `${e}px` : "auto";
|
|
283
293
|
}
|
|
284
294
|
_calculatePositionStyle() {
|
|
285
295
|
if (this._effectiveDockEnabled)
|
|
286
296
|
return;
|
|
287
|
-
const { screenLocation:
|
|
288
|
-
if (
|
|
297
|
+
const { screenLocation: e } = this;
|
|
298
|
+
if (e == null)
|
|
289
299
|
return;
|
|
290
|
-
const
|
|
300
|
+
const t = this.view?.container?.getBoundingClientRect(), i = this._mainContainerNode.value?.getBoundingClientRect();
|
|
291
301
|
this._popupRect = i;
|
|
292
|
-
const o = this._calculateAlignmentPosition(
|
|
302
|
+
const o = this._calculateAlignmentPosition(e.x, e.y, t, i);
|
|
293
303
|
if (o)
|
|
294
304
|
return `inset: ${this._getPositionStyleValue(o.top)} ${this._getPositionStyleValue(o.right)} ${this._getPositionStyleValue(o.bottom)} ${this._getPositionStyleValue(o.left)};`;
|
|
295
305
|
}
|
|
296
|
-
_dockingThresholdCrossed(
|
|
297
|
-
const [o, n] =
|
|
306
|
+
_dockingThresholdCrossed(e, t, i) {
|
|
307
|
+
const [o, n] = e, [s, a] = t, { width: l = 0, height: r = 0 } = i ?? {};
|
|
298
308
|
return o <= l && s > l || o > l && s <= l || n <= r && a > r || n > r && a <= r;
|
|
299
309
|
}
|
|
300
|
-
_updateDockEnabledForViewSize(
|
|
301
|
-
if (!
|
|
310
|
+
_updateDockEnabledForViewSize(e, t) {
|
|
311
|
+
if (!e || !t || !this.viewModel?.view?.ready)
|
|
302
312
|
return;
|
|
303
313
|
const { dockOptions: i } = this, o = i.breakpoint;
|
|
304
|
-
typeof o == "object" && this._dockingThresholdCrossed(
|
|
314
|
+
typeof o == "object" && this._dockingThresholdCrossed(e, t, o) && this._setDockEnabledForViewSize(i);
|
|
305
315
|
}
|
|
306
|
-
_shouldDockAtCurrentViewSize(
|
|
307
|
-
const
|
|
316
|
+
_shouldDockAtCurrentViewSize(e) {
|
|
317
|
+
const t = e.breakpoint, i = this.viewModel?.view?.ui;
|
|
308
318
|
if (!i)
|
|
309
319
|
return !1;
|
|
310
320
|
const { width: o, height: n } = i;
|
|
311
|
-
if (Number.isNaN(o) || Number.isNaN(n) || typeof
|
|
321
|
+
if (Number.isNaN(o) || Number.isNaN(n) || typeof t != "object")
|
|
312
322
|
return !1;
|
|
313
|
-
const s = typeof
|
|
323
|
+
const s = typeof t.width == "number" && o <= (t.width ?? 0), a = typeof t.height == "number" && n <= (t.height ?? 0);
|
|
314
324
|
return s || a;
|
|
315
325
|
}
|
|
316
|
-
_setDockEnabledForViewSize(
|
|
317
|
-
this.viewModel?.view?.ready && typeof
|
|
326
|
+
_setDockEnabledForViewSize(e) {
|
|
327
|
+
this.viewModel?.view?.ready && typeof e.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(e));
|
|
318
328
|
}
|
|
319
329
|
render() {
|
|
320
|
-
const { _direction:
|
|
330
|
+
const { _direction: e, _effectiveDockEnabled: t, currentAlignment: i, currentDockPosition: o, positionStyle: n } = this, { active: s, view: a } = this.viewModel, l = s && t, r = s && !t, d = a?.widthBreakpoint, c = a?.heightBreakpoint, b = {
|
|
321
331
|
"aligned-top-center": i === "top-center",
|
|
322
332
|
"aligned-bottom-center": i === "bottom-center",
|
|
323
|
-
"aligned-top-left": i === "top-left" || i === "top-start" &&
|
|
324
|
-
"aligned-bottom-left": i === "bottom-left" || i === "bottom-start" &&
|
|
325
|
-
"aligned-top-right": i === "top-right" || i === "top-end" &&
|
|
326
|
-
"aligned-bottom-right": i === "bottom-right" || i === "bottom-end" &&
|
|
333
|
+
"aligned-top-left": i === "top-left" || i === "top-start" && e === "ltr" || i === "top-end" && e === "rtl",
|
|
334
|
+
"aligned-bottom-left": i === "bottom-left" || i === "bottom-start" && e === "ltr" || i === "bottom-end" && e === "rtl",
|
|
335
|
+
"aligned-top-right": i === "top-right" || i === "top-end" && e === "ltr" || i === "top-start" && e === "rtl",
|
|
336
|
+
"aligned-bottom-right": i === "bottom-right" || i === "bottom-end" && e === "ltr" || i === "bottom-start" && e === "rtl",
|
|
327
337
|
"is-docked": l,
|
|
328
338
|
shadow: r,
|
|
329
339
|
"is-rtl": this._direction === "rtl",
|
|
@@ -348,25 +358,21 @@ class X extends V {
|
|
|
348
358
|
"is-sm-height-breakpoint": c === "small",
|
|
349
359
|
"is-xs-height-breakpoint": c === "xsmall"
|
|
350
360
|
};
|
|
351
|
-
return
|
|
352
|
-
hidden: !s || !n && !
|
|
361
|
+
return y`<div style=${V(n)} class=${_(x("root", b, {
|
|
362
|
+
hidden: !s || !n && !t
|
|
353
363
|
}))} .ariaHidden=${!s} .ariaLabel=${this._getHeadingText()} popover=manual ${f(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
354
364
|
}
|
|
355
365
|
_renderPointer() {
|
|
356
|
-
return !this._effectiveDockEnabled || !this.active ?
|
|
366
|
+
return !this._effectiveDockEnabled || !this.active ? y`<div class="pointer" role=presentation><div class=${_(x("pointer-direction", "shadow"))} ${f(this._pointerNode)}></div></div>` : null;
|
|
357
367
|
}
|
|
358
368
|
_renderMainContainer() {
|
|
359
|
-
const
|
|
369
|
+
const e = {
|
|
360
370
|
shadow: this._effectiveDockEnabled
|
|
361
|
-
}, e = {
|
|
362
|
-
...this.messageOverrides,
|
|
363
|
-
collapse: this.messageOverrides?.collapse ?? this.messages.collapse,
|
|
364
|
-
expand: this.messageOverrides?.expand ?? this.messages.expand
|
|
365
371
|
};
|
|
366
|
-
return
|
|
372
|
+
return y`<div class=${_(x("main-container", e))} ${f(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .focusTrapEnabled=${!this.focusTrapDisabled} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${this._messageOverrides} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${f(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
367
373
|
}
|
|
368
374
|
}
|
|
369
|
-
|
|
375
|
+
P("arcgis-popup", U);
|
|
370
376
|
export {
|
|
371
|
-
|
|
377
|
+
U as ArcgisPopup
|
|
372
378
|
};
|
|
@@ -217,7 +217,7 @@ class k extends x {
|
|
|
217
217
|
return this.activeLayerItem ? this.#l(this.activeLayerItem) : e.map((t) => b(t) ? this.#v(t) : v(t) ? this.#l(t) : null).filter((t) => t != null);
|
|
218
218
|
}
|
|
219
219
|
#m() {
|
|
220
|
-
if (!(this.disabled || this.visibleFeatureCount > 0 || this.hideFilter || this.hideFilterNotice))
|
|
220
|
+
if (!(this.disabled || this.isUpdating || this.visibleFeatureCount > 0 || this.hideFilter || this.hideFilterNotice))
|
|
221
221
|
return a`<calcite-notice class=${c(r.notice)} icon=exclamation-mark-triangle kind=info open .scale=${this.visualScale} width=full><div slot=message>${this.messages.noMatchingFeatures}</div></calcite-notice>`;
|
|
222
222
|
}
|
|
223
223
|
#p(e) {
|
|
@@ -20,9 +20,7 @@ import type Tooltip from "@arcgis/core/views/interactive/Tooltip.js";
|
|
|
20
20
|
import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
21
21
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
22
22
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
23
|
-
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, CreationMode, UpdateOptions, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol } from "@arcgis/core/widgets/Sketch/types.js";
|
|
24
|
-
import type { RelativePosition } from "./support.js";
|
|
25
|
-
import type { SketchComponentViewModel } from "./SketchComponentViewModel.js";
|
|
23
|
+
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SelectionTool, SketchTool, CreationMode, UpdateOptions, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol } from "@arcgis/core/widgets/Sketch/types.js";
|
|
26
24
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
27
25
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
28
26
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -268,7 +266,7 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
268
266
|
* To opt in to freehandPolyline and freehandPolygon tools, include them when setting availableCreateTools,
|
|
269
267
|
* and hideCreateTools* properties.
|
|
270
268
|
*/
|
|
271
|
-
get activeTool():
|
|
269
|
+
get activeTool(): SelectionTool | SketchTool | undefined;
|
|
272
270
|
/**
|
|
273
271
|
* The tooltip currently being displayed for [activeTool](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-sketch/#activeTool).
|
|
274
272
|
* Returns `null` when no tooltip is visible.
|
|
@@ -1139,4 +1137,18 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
1139
1137
|
arcgisUndo: ArcgisSketch["arcgisUndo"]["detail"];
|
|
1140
1138
|
arcgisUpdate: ArcgisSketch["arcgisUpdate"]["detail"];
|
|
1141
1139
|
};
|
|
1142
|
-
}
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/** @since 5.2 */
|
|
1143
|
+
export type RelativePosition = (typeof relativePositions)[number];
|
|
1144
|
+
|
|
1145
|
+
export const relativePositions: readonly [
|
|
1146
|
+
"bottom-end",
|
|
1147
|
+
"bottom-start",
|
|
1148
|
+
"bottom-left",
|
|
1149
|
+
"bottom-right",
|
|
1150
|
+
"top-end",
|
|
1151
|
+
"top-start",
|
|
1152
|
+
"top-left",
|
|
1153
|
+
"top-right"
|
|
1154
|
+
];
|