@arcgis/map-components 6.0.0-next.15 → 6.0.0-next.16
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/33B22YZ5.js +2 -0
- package/dist/cdn/{NWCS3WJE.js → 35YLXOQ5.js} +1 -1
- package/dist/cdn/4XEZYOW7.js +2 -0
- package/dist/cdn/{OL5Z5MUQ.js → 54252KWO.js} +1 -1
- package/dist/cdn/{IZ3VMFW6.js → 5VXEMMLV.js} +1 -1
- package/dist/cdn/{OS3TKP63.js → AQ4GVWNJ.js} +1 -1
- package/dist/cdn/AWB7XOHF.js +2 -0
- package/dist/cdn/BYYCKI2P.js +2 -0
- package/dist/cdn/DUKK2PHD.js +2 -0
- package/dist/cdn/{I2VQOWJL.js → ECYWLMDD.js} +1 -1
- package/dist/cdn/FFVPO4JB.js +2 -0
- package/dist/cdn/{OS736MCE.js → FUJYJKDU.js} +1 -1
- package/dist/cdn/{SWWJXGPV.js → GFYLYX2V.js} +1 -1
- package/dist/cdn/GMEXAEOI.js +2 -0
- package/dist/cdn/{CDCI4EQR.js → HZDWPWBH.js} +1 -1
- package/dist/cdn/JB6WQEFJ.js +2 -0
- package/dist/cdn/{KJNU4Q25.js → JVC5XNYJ.js} +1 -1
- package/dist/cdn/LYYBCY4N.js +2 -0
- package/dist/cdn/{TMQVC4YN.js → NMGC3KRM.js} +1 -1
- package/dist/cdn/{B2UZB5MB.js → NUZBBPNE.js} +2 -2
- package/dist/cdn/{JC24VBLE.js → ODSZ7JZM.js} +1 -1
- package/dist/cdn/{VWEJ2XSC.js → P3AEIHWE.js} +1 -1
- package/dist/cdn/QCYQNVPL.js +2 -0
- package/dist/cdn/{ARHQMHUP.js → SAIBFBPE.js} +1 -1
- package/dist/cdn/U6NHJKIM.js +2 -0
- package/dist/cdn/VYM3TR3Q.js +2 -0
- package/dist/cdn/WC2N2XG6.js +2 -0
- package/dist/cdn/{Y56CR5OU.js → ZS5IADYN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/loader-utils.js +41 -0
- package/dist/chunks/resources.js +10 -4
- package/dist/chunks/slots.js +3 -3
- package/dist/chunks/useArcgisViewReadyError.js +179 -130
- package/dist/components/arcgis-editor/customElement.d.ts +9 -17
- package/dist/components/arcgis-editor/customElement.js +18 -16
- package/dist/components/arcgis-feature-next/customElement.js +21 -14
- package/dist/components/arcgis-features-next/customElement.js +137 -116
- package/dist/components/arcgis-fullscreen/customElement.js +4 -4
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -6
- package/dist/components/arcgis-link-chart/customElement.js +24 -24
- package/dist/components/arcgis-map/customElement.js +16 -16
- package/dist/components/arcgis-scene/customElement.js +21 -21
- package/dist/components/arcgis-sketch/customElement.js +146 -178
- package/dist/components/arcgis-track/customElement.d.ts +2 -2
- package/dist/components/arcgis-track/types.d.ts +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/cdn/6RE5RWYP.js +0 -2
- package/dist/cdn/7JZU7XI4.js +0 -2
- package/dist/cdn/AL3PLZEE.js +0 -2
- package/dist/cdn/AT4PSRCX.js +0 -2
- package/dist/cdn/FINGRYZY.js +0 -2
- package/dist/cdn/JR3EXG25.js +0 -2
- package/dist/cdn/LISDXDCI.js +0 -2
- package/dist/cdn/LQNQSRG2.js +0 -2
- package/dist/cdn/LXLLMRNZ.js +0 -2
- package/dist/cdn/QAZ4W6K3.js +0 -2
- package/dist/cdn/QPR3KBLU.js +0 -2
- package/dist/cdn/YAPPIXWJ.js +0 -2
- /package/dist/cdn/{MGDY6SA3.js → 2JLC2JV7.js} +0 -0
- /package/dist/cdn/{ITSWOLPG.js → 37Z3E4ZM.js} +0 -0
- /package/dist/cdn/{SMCQ5457.js → 53PKFG2U.js} +0 -0
- /package/dist/cdn/{YZ23NKH4.js → 5ZLCMYZU.js} +0 -0
- /package/dist/cdn/{DXD3FSIB.js → 6MRDTILE.js} +0 -0
- /package/dist/cdn/{TTGAGK6Y.js → 72FJMPJ2.js} +0 -0
- /package/dist/cdn/{CIVCCENA.js → 7P23WI52.js} +0 -0
- /package/dist/cdn/{DU7MQDXJ.js → 7QUHJ4F6.js} +0 -0
- /package/dist/cdn/{PLRW457V.js → 7YXE3BUX.js} +0 -0
- /package/dist/cdn/{IYTA36WK.js → AE26KT54.js} +0 -0
- /package/dist/cdn/{OY2F5AX3.js → C4EAONGF.js} +0 -0
- /package/dist/cdn/{7RG4ZQP7.js → CTVCZ2FU.js} +0 -0
- /package/dist/cdn/{DVVXBWDN.js → EIQ3BKQI.js} +0 -0
- /package/dist/cdn/{J5PYSABF.js → EULM4L53.js} +0 -0
- /package/dist/cdn/{VHCJJ5FD.js → EVCKANRW.js} +0 -0
- /package/dist/cdn/{4U7C2G4R.js → GXIGMIXV.js} +0 -0
- /package/dist/cdn/{UAVE6R7W.js → JZSRPSRH.js} +0 -0
- /package/dist/cdn/{FSKKSFCQ.js → KDO2EJA3.js} +0 -0
- /package/dist/cdn/{B42Z3IQW.js → LCTJF3NT.js} +0 -0
- /package/dist/cdn/{LH3HGDD3.js → LGPNRKDT.js} +0 -0
- /package/dist/cdn/{5QBYMSV7.js → LNZRHKHG.js} +0 -0
- /package/dist/cdn/{SN3LTQAO.js → MM4N6C4V.js} +0 -0
- /package/dist/cdn/{A7G5RNN7.js → MQL4JTYG.js} +0 -0
- /package/dist/cdn/{4JRBTFMB.js → NUCXXE6V.js} +0 -0
- /package/dist/cdn/{XELSV7WY.js → O2VAKVIY.js} +0 -0
- /package/dist/cdn/{DYUSQ3OG.js → OLEIOWZX.js} +0 -0
- /package/dist/cdn/{3E6IBNWF.js → ORS7OWLJ.js} +0 -0
- /package/dist/cdn/{IHQ2C6NE.js → P3BAHG4Q.js} +0 -0
- /package/dist/cdn/{IPLEI5W5.js → QYMZT7OC.js} +0 -0
- /package/dist/cdn/{43JS3JXR.js → RENVCO3U.js} +0 -0
- /package/dist/cdn/{CJZCG74B.js → RGECACLD.js} +0 -0
- /package/dist/cdn/{HI7Y3XH5.js → SYIOPNRF.js} +0 -0
- /package/dist/cdn/{F2JEYWUA.js → T62G5MRK.js} +0 -0
- /package/dist/cdn/{AS55LGS3.js → TS32SDVT.js} +0 -0
- /package/dist/cdn/{W5QAG2HP.js → UCHDAO3V.js} +0 -0
- /package/dist/cdn/{HSYCQNEN.js → VNY7TNRC.js} +0 -0
- /package/dist/cdn/{KVN6NUH4.js → XJIILB3W.js} +0 -0
- /package/dist/cdn/{OHIZP5N4.js → Y4D3Q4G7.js} +0 -0
- /package/dist/cdn/{EMFLPMFZ.js → Y7KMV2PI.js} +0 -0
- /package/dist/cdn/{IBTIGEEQ.js → YASANB6O.js} +0 -0
- /package/dist/cdn/{L5L2SWJG.js → YMN2Q7CW.js} +0 -0
- /package/dist/cdn/{ZHP63EHR.js → YN6VG7UO.js} +0 -0
- /package/dist/cdn/{T6V5HDYH.js → YRYYWFPY.js} +0 -0
|
@@ -6,24 +6,25 @@ import { u as I } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { classes as M } from "@arcgis/toolkit/dom";
|
|
7
7
|
import { usePropertyChange as C } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { m as x } from "../../chunks/useViewModel.js";
|
|
9
|
-
import { LitElement as b, createEvent as F, nothing as _, safeClassMap as
|
|
10
|
-
import { substitute as
|
|
9
|
+
import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
|
|
10
|
+
import { substitute as A } from "@arcgis/core/intl.js";
|
|
11
11
|
import { renderingSanitizer as T } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
12
12
|
import { c as D, g as E, d as R, e as V, b as d, i as k, f as B } from "../../chunks/feature-utils.js";
|
|
13
13
|
import N from "@arcgis/core/core/Collection.js";
|
|
14
14
|
import { watch as P } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
15
|
import { stripHTML as H } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
16
|
import Z from "@arcgis/core/popup/FeatureModel.js";
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { c as z } from "../../chunks/loader-utils.js";
|
|
18
|
+
const U = y`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element[empty]{display:none}.content-element:not([empty]):only-child,.content-element:not([empty]):last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, O = x(Z);
|
|
19
|
+
class G extends b {
|
|
19
20
|
constructor() {
|
|
20
|
-
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel =
|
|
21
|
+
super(...arguments), this.messages = I(), this._rootFlowNode = null, this._loading = !1, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = O(this), this.actions = this.viewModel.actions, this.includeDefaultActions = this.viewModel.includeDefaultActions, this.focusTrapEnabled = !1, this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.heading, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideEmptyRelationshipContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = F();
|
|
21
22
|
}
|
|
22
23
|
static {
|
|
23
|
-
this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, actions: 0, includeDefaultActions: 5, focusTrapEnabled: 5, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, allActions: 32, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideEmptyRelationshipContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
24
|
+
this.properties = { _loading: 16, popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, actions: 0, includeDefaultActions: 5, focusTrapEnabled: 5, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, allActions: 32, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideEmptyRelationshipContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
24
25
|
}
|
|
25
26
|
static {
|
|
26
|
-
this.styles =
|
|
27
|
+
this.styles = U;
|
|
27
28
|
}
|
|
28
29
|
get popupTemplate() {
|
|
29
30
|
return D(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
|
|
@@ -67,6 +68,12 @@ class O extends b {
|
|
|
67
68
|
}
|
|
68
69
|
loaded() {
|
|
69
70
|
this.manager.onLifecycle(() => [
|
|
71
|
+
z({
|
|
72
|
+
getLoading: () => !this.flowItems && this.state === "loading",
|
|
73
|
+
setEffectiveLoading: (e) => {
|
|
74
|
+
this._loading = e;
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
70
77
|
P(() => [this.internalFlowItems?.length], () => this._setFocus())
|
|
71
78
|
]);
|
|
72
79
|
}
|
|
@@ -254,23 +261,23 @@ class O extends b {
|
|
|
254
261
|
return e instanceof HTMLElement ? e : null;
|
|
255
262
|
}
|
|
256
263
|
_renderContentContainer() {
|
|
257
|
-
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: a,
|
|
258
|
-
return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s
|
|
264
|
+
const { flowItems: e, hideContent: t, internalFlowItems: i, headingLevel: a, _loading: s, messages: o, heading: n, hideHeading: l } = this, c = t ? null : r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, h = o.returnToInitialFeature ?? "";
|
|
265
|
+
return e ? c : r`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} .loading=${s} .headingLevel=${a} .heading=${l ? void 0 : H(n)} .selected=${!i.length}>${!l && n ? r`<div slot=heading><div .innerHTML=${T.sanitize(n ?? "") ?? ""}></div></div>` : null}${c}</calcite-flow-item>${i.toArray().map((p, u) => r`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} @calciteFlowItemBack=${(f) => {
|
|
259
266
|
f.preventDefault(), this._handleDrillInBackClick();
|
|
260
|
-
}} .loading=${s
|
|
267
|
+
}} .loading=${s} .headingLevel=${a} .selected=${u === i.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${h} title=${h ?? _}></calcite-action>${p}</calcite-flow-item>`)}</calcite-flow>`;
|
|
261
268
|
}
|
|
262
269
|
_renderLastEditInfo() {
|
|
263
270
|
const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
|
|
264
271
|
if (!i || e)
|
|
265
272
|
return null;
|
|
266
|
-
const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n =
|
|
273
|
+
const { date: a, user: s } = i, o = i.type === "edit" ? s ? t.lastEditedByUser : t.lastEdited : s ? t.lastCreatedByUser : t.lastCreated, n = A(o ?? "", {
|
|
267
274
|
date: a,
|
|
268
275
|
user: s
|
|
269
276
|
});
|
|
270
|
-
return r`<div class=${
|
|
277
|
+
return r`<div class=${L(M("last-edited-info", "content-element"))}>${n}</div>`;
|
|
271
278
|
}
|
|
272
279
|
}
|
|
273
|
-
$("arcgis-feature-next",
|
|
280
|
+
$("arcgis-feature-next", G);
|
|
274
281
|
export {
|
|
275
|
-
|
|
282
|
+
G as ArcgisFeatureNext
|
|
276
283
|
};
|