@esri/solutions-components 0.7.44 → 0.7.46
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/cjs/calcite-alert_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_5.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_5.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +18 -17
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-abf7decd.js → downloadUtils-82bc9a04.js} +2 -2
- package/dist/cjs/{index.es-478ec781.js → index.es-79d8773c.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-290dbc9e.js → mapViewUtils-3e0fa457.js} +4 -8
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/layer-table/layer-table.js +18 -15
- package/dist/collection/utils/queryUtils.js +4 -8
- package/dist/collection/utils/queryUtils.ts +6 -9
- package/dist/components/layer-table2.js +18 -15
- package/dist/components/queryUtils.js +4 -8
- package/dist/esm/calcite-alert_4.entry.js +1 -1
- package/dist/esm/calcite-combobox_5.entry.js +1 -1
- package/dist/esm/calcite-flow_5.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +18 -17
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{downloadUtils-be13a13d.js → downloadUtils-3bab4b5f.js} +2 -2
- package/dist/esm/{index.es-623fddee.js → index.es-be703f2b.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-a177d4f9.js → mapViewUtils-20504620.js} +4 -8
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/p-26764dd7.entry.js +6 -0
- package/dist/solutions-components/{p-42233edc.entry.js → p-766c0b57.entry.js} +1 -1
- package/dist/solutions-components/{p-2bec3d88.js → p-91d3732f.js} +1 -1
- package/dist/solutions-components/{p-0c427d9a.entry.js → p-a4bb0787.entry.js} +1 -1
- package/dist/solutions-components/{p-c6af6407.entry.js → p-c05467fd.entry.js} +1 -1
- package/dist/solutions-components/p-c897e3eb.js +36 -0
- package/dist/solutions-components/{p-9294f273.entry.js → p-d561c970.entry.js} +1 -1
- package/dist/solutions-components/{p-dc4fcddc.js → p-d9995b7e.js} +2 -2
- package/dist/solutions-components/{p-32adb2cc.entry.js → p-dbb6f1e2.entry.js} +1 -1
- package/dist/solutions-components/{p-6fe5e1d5.entry.js → p-e46617d1.entry.js} +2 -2
- package/dist/solutions-components/{p-6c86a392.entry.js → p-e8cd89c2.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/queryUtils.ts +6 -9
- package/dist/types/components/layer-table/layer-table.d.ts +8 -8
- package/package.json +1 -1
- package/dist/solutions-components/p-3eedaead.js +0 -36
- package/dist/solutions-components/p-f053c268.entry.js +0 -6
@@ -27,10 +27,6 @@ import * as downloadUtils from "../../utils/downloadUtils";
|
|
27
27
|
import "@esri/instant-apps-components/dist/components/instant-apps-social-share";
|
28
28
|
export class LayerTable {
|
29
29
|
constructor() {
|
30
|
-
/**
|
31
|
-
* number[]: A list of all IDs for the current layer
|
32
|
-
*/
|
33
|
-
this._allIds = [];
|
34
30
|
/**
|
35
31
|
* boolean: When true the ctrl key is currently pressed
|
36
32
|
*/
|
@@ -86,6 +82,7 @@ export class LayerTable {
|
|
86
82
|
this.shareIncludeSocial = undefined;
|
87
83
|
this.showNewestFirst = undefined;
|
88
84
|
this.zoomAndScrollToSelected = undefined;
|
85
|
+
this._allIds = [];
|
89
86
|
this._controlsThatFit = undefined;
|
90
87
|
this._csvExporting = false;
|
91
88
|
this._fetchingData = false;
|
@@ -95,6 +92,7 @@ export class LayerTable {
|
|
95
92
|
this._selectAllActive = false;
|
96
93
|
this._showHideOpen = false;
|
97
94
|
this._showOnlySelected = false;
|
95
|
+
this._toolInfos = undefined;
|
98
96
|
this._translations = undefined;
|
99
97
|
}
|
100
98
|
//--------------------------------------------------------------------------
|
@@ -179,15 +177,18 @@ export class LayerTable {
|
|
179
177
|
* watch for changes in layer view and verify if it has editing enabled
|
180
178
|
*/
|
181
179
|
async _layerWatchHandler() {
|
182
|
-
var _a
|
180
|
+
var _a;
|
183
181
|
this._fetchingData = true;
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
182
|
+
await ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
183
|
+
var _a;
|
184
|
+
this._definitionExpression = this._layer.definitionExpression;
|
185
|
+
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
186
|
+
this._updateFloorDefinitionExpression();
|
187
|
+
await this._resetTable();
|
188
|
+
this._updateShareUrl();
|
189
|
+
this._initLayerExpressions();
|
190
|
+
this._fetchingData = false;
|
191
|
+
}));
|
191
192
|
}
|
192
193
|
/**
|
193
194
|
* watch for selection changes
|
@@ -357,7 +358,7 @@ export class LayerTable {
|
|
357
358
|
*/
|
358
359
|
_getActions() {
|
359
360
|
const actions = this._getActionItems();
|
360
|
-
return actions.reduce((prev, cur) => {
|
361
|
+
return actions === null || actions === void 0 ? void 0 : actions.reduce((prev, cur) => {
|
361
362
|
if (cur && !cur.isOverflow) {
|
362
363
|
prev.push(cur.isDanger ?
|
363
364
|
this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
|
@@ -576,7 +577,7 @@ export class LayerTable {
|
|
576
577
|
if (this._timeout) {
|
577
578
|
clearTimeout(this._timeout);
|
578
579
|
}
|
579
|
-
if (!this.isMobile) {
|
580
|
+
if (!this.isMobile && this._toolbar && this._toolInfos) {
|
580
581
|
this._timeout = setTimeout(() => {
|
581
582
|
clearTimeout(this._timeout);
|
582
583
|
this._setToolbarSizeInfos();
|
@@ -983,7 +984,6 @@ export class LayerTable {
|
|
983
984
|
this._table.view = this.mapView;
|
984
985
|
this._checkEditEnabled();
|
985
986
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
986
|
-
this._initToolInfos();
|
987
987
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
988
988
|
.then(async () => {
|
989
989
|
var _a, _b;
|
@@ -1009,6 +1009,7 @@ export class LayerTable {
|
|
1009
1009
|
}
|
1010
1010
|
this._showOnlySelected = false;
|
1011
1011
|
await this._sortTable();
|
1012
|
+
this._initToolInfos();
|
1012
1013
|
this._updateToolbar();
|
1013
1014
|
});
|
1014
1015
|
}
|
@@ -1740,6 +1741,7 @@ export class LayerTable {
|
|
1740
1741
|
}
|
1741
1742
|
static get states() {
|
1742
1743
|
return {
|
1744
|
+
"_allIds": {},
|
1743
1745
|
"_controlsThatFit": {},
|
1744
1746
|
"_csvExporting": {},
|
1745
1747
|
"_fetchingData": {},
|
@@ -1749,6 +1751,7 @@ export class LayerTable {
|
|
1749
1751
|
"_selectAllActive": {},
|
1750
1752
|
"_showHideOpen": {},
|
1751
1753
|
"_showOnlySelected": {},
|
1754
|
+
"_toolInfos": {},
|
1752
1755
|
"_translations": {}
|
1753
1756
|
};
|
1754
1757
|
}
|
@@ -107,27 +107,23 @@ export async function queryFeaturesByID(ids, layer, graphics, returnGeometry, ou
|
|
107
107
|
var _a;
|
108
108
|
const num = (_a = layer.capabilities) === null || _a === void 0 ? void 0 : _a.query.maxRecordCount;
|
109
109
|
const start = 0;
|
110
|
+
if (ids.length === 0) {
|
111
|
+
ids = await layer.queryObjectIds();
|
112
|
+
}
|
110
113
|
const q = layer.createQuery();
|
111
|
-
q.start = start;
|
112
114
|
q.returnGeometry = returnGeometry;
|
113
115
|
q.objectIds = ids.slice(start, num);
|
114
|
-
if (num) {
|
115
|
-
q.num = num;
|
116
|
-
}
|
117
116
|
if (outSpatialReference) {
|
118
117
|
q.outSpatialReference = outSpatialReference;
|
119
118
|
}
|
120
119
|
if (fields) {
|
121
120
|
q.outFields = fields;
|
122
121
|
}
|
123
|
-
if (ids.length === 0) {
|
124
|
-
ids = await layer.queryObjectIds();
|
125
|
-
}
|
126
122
|
const result = await layer.queryFeatures(q);
|
127
123
|
graphics = graphics.concat(result.features);
|
128
124
|
const remainingIds = ids.slice(num, ids.length);
|
129
125
|
return remainingIds.length > 0 ?
|
130
|
-
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference) :
|
126
|
+
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference, fields) :
|
131
127
|
Promise.resolve(graphics);
|
132
128
|
}
|
133
129
|
/**
|
@@ -133,13 +133,14 @@ export async function queryFeaturesByID(
|
|
133
133
|
const num = layer.capabilities?.query.maxRecordCount;
|
134
134
|
const start = 0;
|
135
135
|
|
136
|
+
if (ids.length === 0) {
|
137
|
+
ids = await layer.queryObjectIds();
|
138
|
+
}
|
139
|
+
|
136
140
|
const q = layer.createQuery();
|
137
|
-
q.start = start;
|
138
141
|
q.returnGeometry = returnGeometry;
|
139
142
|
q.objectIds = ids.slice(start, num);
|
140
|
-
|
141
|
-
q.num = num;
|
142
|
-
}
|
143
|
+
|
143
144
|
if (outSpatialReference) {
|
144
145
|
q.outSpatialReference = outSpatialReference;
|
145
146
|
}
|
@@ -147,10 +148,6 @@ export async function queryFeaturesByID(
|
|
147
148
|
q.outFields = fields;
|
148
149
|
}
|
149
150
|
|
150
|
-
if (ids.length === 0) {
|
151
|
-
ids = await layer.queryObjectIds();
|
152
|
-
}
|
153
|
-
|
154
151
|
const result = await layer.queryFeatures(q);
|
155
152
|
|
156
153
|
graphics = graphics.concat(
|
@@ -159,7 +156,7 @@ export async function queryFeaturesByID(
|
|
159
156
|
|
160
157
|
const remainingIds = ids.slice(num, ids.length);
|
161
158
|
return remainingIds.length > 0 ?
|
162
|
-
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference) :
|
159
|
+
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference, fields) :
|
163
160
|
Promise.resolve(graphics);
|
164
161
|
}
|
165
162
|
|
@@ -56,10 +56,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
56
56
|
super();
|
57
57
|
this.__registerHost();
|
58
58
|
this.featureSelectionChange = createEvent(this, "featureSelectionChange", 7);
|
59
|
-
/**
|
60
|
-
* number[]: A list of all IDs for the current layer
|
61
|
-
*/
|
62
|
-
this._allIds = [];
|
63
59
|
/**
|
64
60
|
* boolean: When true the ctrl key is currently pressed
|
65
61
|
*/
|
@@ -115,6 +111,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
115
111
|
this.shareIncludeSocial = undefined;
|
116
112
|
this.showNewestFirst = undefined;
|
117
113
|
this.zoomAndScrollToSelected = undefined;
|
114
|
+
this._allIds = [];
|
118
115
|
this._controlsThatFit = undefined;
|
119
116
|
this._csvExporting = false;
|
120
117
|
this._fetchingData = false;
|
@@ -124,6 +121,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
124
121
|
this._selectAllActive = false;
|
125
122
|
this._showHideOpen = false;
|
126
123
|
this._showOnlySelected = false;
|
124
|
+
this._toolInfos = undefined;
|
127
125
|
this._translations = undefined;
|
128
126
|
}
|
129
127
|
//--------------------------------------------------------------------------
|
@@ -208,15 +206,18 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
208
206
|
* watch for changes in layer view and verify if it has editing enabled
|
209
207
|
*/
|
210
208
|
async _layerWatchHandler() {
|
211
|
-
var _a
|
209
|
+
var _a;
|
212
210
|
this._fetchingData = true;
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
211
|
+
await ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
212
|
+
var _a;
|
213
|
+
this._definitionExpression = this._layer.definitionExpression;
|
214
|
+
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
215
|
+
this._updateFloorDefinitionExpression();
|
216
|
+
await this._resetTable();
|
217
|
+
this._updateShareUrl();
|
218
|
+
this._initLayerExpressions();
|
219
|
+
this._fetchingData = false;
|
220
|
+
}));
|
220
221
|
}
|
221
222
|
/**
|
222
223
|
* watch for selection changes
|
@@ -386,7 +387,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
386
387
|
*/
|
387
388
|
_getActions() {
|
388
389
|
const actions = this._getActionItems();
|
389
|
-
return actions.reduce((prev, cur) => {
|
390
|
+
return actions === null || actions === void 0 ? void 0 : actions.reduce((prev, cur) => {
|
390
391
|
if (cur && !cur.isOverflow) {
|
391
392
|
prev.push(cur.isDanger ?
|
392
393
|
this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
|
@@ -605,7 +606,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
605
606
|
if (this._timeout) {
|
606
607
|
clearTimeout(this._timeout);
|
607
608
|
}
|
608
|
-
if (!this.isMobile) {
|
609
|
+
if (!this.isMobile && this._toolbar && this._toolInfos) {
|
609
610
|
this._timeout = setTimeout(() => {
|
610
611
|
clearTimeout(this._timeout);
|
611
612
|
this._setToolbarSizeInfos();
|
@@ -1012,7 +1013,6 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1012
1013
|
this._table.view = this.mapView;
|
1013
1014
|
this._checkEditEnabled();
|
1014
1015
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1015
|
-
this._initToolInfos();
|
1016
1016
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1017
1017
|
.then(async () => {
|
1018
1018
|
var _a, _b;
|
@@ -1038,6 +1038,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1038
1038
|
}
|
1039
1039
|
this._showOnlySelected = false;
|
1040
1040
|
await this._sortTable();
|
1041
|
+
this._initToolInfos();
|
1041
1042
|
this._updateToolbar();
|
1042
1043
|
});
|
1043
1044
|
}
|
@@ -1471,6 +1472,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1471
1472
|
"shareIncludeSocial": [4, "share-include-social"],
|
1472
1473
|
"showNewestFirst": [4, "show-newest-first"],
|
1473
1474
|
"zoomAndScrollToSelected": [4, "zoom-and-scroll-to-selected"],
|
1475
|
+
"_allIds": [32],
|
1474
1476
|
"_controlsThatFit": [32],
|
1475
1477
|
"_csvExporting": [32],
|
1476
1478
|
"_fetchingData": [32],
|
@@ -1480,6 +1482,7 @@ const LayerTable = /*@__PURE__*/ proxyCustomElement(class LayerTable extends HTM
|
|
1480
1482
|
"_selectAllActive": [32],
|
1481
1483
|
"_showHideOpen": [32],
|
1482
1484
|
"_showOnlySelected": [32],
|
1485
|
+
"_toolInfos": [32],
|
1483
1486
|
"_translations": [32]
|
1484
1487
|
}, [[8, "selectionChanged", "selectionChanged"], [8, "editsComplete", "editsComplete"], [8, "levelChanged", "levelChanged"], [8, "noLayersFound", "noLayersFound"]], {
|
1485
1488
|
"enableCSV": ["enableCSVWatchHandler"],
|
@@ -64,27 +64,23 @@ async function queryFeaturesByID(ids, layer, graphics, returnGeometry, outSpatia
|
|
64
64
|
var _a;
|
65
65
|
const num = (_a = layer.capabilities) === null || _a === void 0 ? void 0 : _a.query.maxRecordCount;
|
66
66
|
const start = 0;
|
67
|
+
if (ids.length === 0) {
|
68
|
+
ids = await layer.queryObjectIds();
|
69
|
+
}
|
67
70
|
const q = layer.createQuery();
|
68
|
-
q.start = start;
|
69
71
|
q.returnGeometry = returnGeometry;
|
70
72
|
q.objectIds = ids.slice(start, num);
|
71
|
-
if (num) {
|
72
|
-
q.num = num;
|
73
|
-
}
|
74
73
|
if (outSpatialReference) {
|
75
74
|
q.outSpatialReference = outSpatialReference;
|
76
75
|
}
|
77
76
|
if (fields) {
|
78
77
|
q.outFields = fields;
|
79
78
|
}
|
80
|
-
if (ids.length === 0) {
|
81
|
-
ids = await layer.queryObjectIds();
|
82
|
-
}
|
83
79
|
const result = await layer.queryFeatures(q);
|
84
80
|
graphics = graphics.concat(result.features);
|
85
81
|
const remainingIds = ids.slice(num, ids.length);
|
86
82
|
return remainingIds.length > 0 ?
|
87
|
-
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference) :
|
83
|
+
queryFeaturesByID(remainingIds, layer, graphics, returnGeometry, outSpatialReference, fields) :
|
88
84
|
Promise.resolve(graphics);
|
89
85
|
}
|
90
86
|
/**
|
@@ -12,7 +12,7 @@ import { o as onToggleOpenCloseComponent } from './openCloseComponent-9f90f493.j
|
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-436fb2b1.js';
|
13
13
|
import { K as KindIcons } from './resources-88a48c5c.js';
|
14
14
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-25a5ae3e.js';
|
15
|
-
import { a as getAllLayers } from './mapViewUtils-
|
15
|
+
import { a as getAllLayers } from './mapViewUtils-20504620.js';
|
16
16
|
import { P as PopupUtils } from './popupUtils-23fe3c9f.js';
|
17
17
|
import './guid-b75a5f7b.js';
|
18
18
|
import './resources-8834f920.js';
|
@@ -22,7 +22,7 @@ import { V as Validation } from './Validation-ea480265.js';
|
|
22
22
|
import { d as debounce } from './debounce-229b1a22.js';
|
23
23
|
import { i as isActivationKey } from './key-c83d835f.js';
|
24
24
|
import { g as getLocaleComponentStrings } from './locale-25a5ae3e.js';
|
25
|
-
import { d as getMapLayerHash, o as getMapTableHash } from './mapViewUtils-
|
25
|
+
import { d as getMapLayerHash, o as getMapTableHash } from './mapViewUtils-20504620.js';
|
26
26
|
import { s as state } from './publicNotificationStore-3bf4de75.js';
|
27
27
|
import './resources-8834f920.js';
|
28
28
|
import './browser-d60104bd.js';
|
@@ -12,7 +12,7 @@ import { c as connectLocalized, d as disconnectLocalized } from './locale-904407
|
|
12
12
|
import { c as connectMessages, s as setUpMessages, d as disconnectMessages, u as updateMessages } from './t9n-436fb2b1.js';
|
13
13
|
import { S as SLOTS$1 } from './resources-00983bd3.js';
|
14
14
|
import { l as loadModules, g as getLocaleComponentStrings, f as formatNumber } from './locale-25a5ae3e.js';
|
15
|
-
import { a as getAllLayers, g as getLayerOrTable, b as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash } from './mapViewUtils-
|
15
|
+
import { a as getAllLayers, g as getLayerOrTable, b as getFeatureLayerView, h as highlightFeatures, d as getMapLayerHash } from './mapViewUtils-20504620.js';
|
16
16
|
import { P as PopupUtils } from './popupUtils-23fe3c9f.js';
|
17
17
|
import './guid-b75a5f7b.js';
|
18
18
|
import './resources-8834f920.js';
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-164d485a.js';
|
7
7
|
import { g as getLocaleComponentStrings, l as loadModules } from './locale-25a5ae3e.js';
|
8
|
-
import { q as queryFeaturesByID, g as getLayerOrTable, c as goToSelection, e as queryAllIds, f as queryFeatureIds, i as queryFeaturesByGlobalID } from './mapViewUtils-
|
9
|
-
import { d as downloadCSV } from './downloadUtils-
|
8
|
+
import { q as queryFeaturesByID, g as getLayerOrTable, c as goToSelection, e as queryAllIds, f as queryFeatureIds, i as queryFeaturesByGlobalID } from './mapViewUtils-20504620.js';
|
9
|
+
import { d as downloadCSV } from './downloadUtils-3bab4b5f.js';
|
10
10
|
import './esri-loader-eda07632.js';
|
11
11
|
import './_commonjsHelpers-d5f9d613.js';
|
12
12
|
import './interfaces-586e863c.js';
|
@@ -108,10 +108,6 @@ const LayerTable = class {
|
|
108
108
|
constructor(hostRef) {
|
109
109
|
registerInstance(this, hostRef);
|
110
110
|
this.featureSelectionChange = createEvent(this, "featureSelectionChange", 7);
|
111
|
-
/**
|
112
|
-
* number[]: A list of all IDs for the current layer
|
113
|
-
*/
|
114
|
-
this._allIds = [];
|
115
111
|
/**
|
116
112
|
* boolean: When true the ctrl key is currently pressed
|
117
113
|
*/
|
@@ -167,6 +163,7 @@ const LayerTable = class {
|
|
167
163
|
this.shareIncludeSocial = undefined;
|
168
164
|
this.showNewestFirst = undefined;
|
169
165
|
this.zoomAndScrollToSelected = undefined;
|
166
|
+
this._allIds = [];
|
170
167
|
this._controlsThatFit = undefined;
|
171
168
|
this._csvExporting = false;
|
172
169
|
this._fetchingData = false;
|
@@ -176,6 +173,7 @@ const LayerTable = class {
|
|
176
173
|
this._selectAllActive = false;
|
177
174
|
this._showHideOpen = false;
|
178
175
|
this._showOnlySelected = false;
|
176
|
+
this._toolInfos = undefined;
|
179
177
|
this._translations = undefined;
|
180
178
|
}
|
181
179
|
//--------------------------------------------------------------------------
|
@@ -260,15 +258,18 @@ const LayerTable = class {
|
|
260
258
|
* watch for changes in layer view and verify if it has editing enabled
|
261
259
|
*/
|
262
260
|
async _layerWatchHandler() {
|
263
|
-
var _a
|
261
|
+
var _a;
|
264
262
|
this._fetchingData = true;
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
263
|
+
await ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
264
|
+
var _a;
|
265
|
+
this._definitionExpression = this._layer.definitionExpression;
|
266
|
+
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
267
|
+
this._updateFloorDefinitionExpression();
|
268
|
+
await this._resetTable();
|
269
|
+
this._updateShareUrl();
|
270
|
+
this._initLayerExpressions();
|
271
|
+
this._fetchingData = false;
|
272
|
+
}));
|
272
273
|
}
|
273
274
|
/**
|
274
275
|
* watch for selection changes
|
@@ -438,7 +439,7 @@ const LayerTable = class {
|
|
438
439
|
*/
|
439
440
|
_getActions() {
|
440
441
|
const actions = this._getActionItems();
|
441
|
-
return actions.reduce((prev, cur) => {
|
442
|
+
return actions === null || actions === void 0 ? void 0 : actions.reduce((prev, cur) => {
|
442
443
|
if (cur && !cur.isOverflow) {
|
443
444
|
prev.push(cur.isDanger ?
|
444
445
|
this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
|
@@ -657,7 +658,7 @@ const LayerTable = class {
|
|
657
658
|
if (this._timeout) {
|
658
659
|
clearTimeout(this._timeout);
|
659
660
|
}
|
660
|
-
if (!this.isMobile) {
|
661
|
+
if (!this.isMobile && this._toolbar && this._toolInfos) {
|
661
662
|
this._timeout = setTimeout(() => {
|
662
663
|
clearTimeout(this._timeout);
|
663
664
|
this._setToolbarSizeInfos();
|
@@ -1064,7 +1065,6 @@ const LayerTable = class {
|
|
1064
1065
|
this._table.view = this.mapView;
|
1065
1066
|
this._checkEditEnabled();
|
1066
1067
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1067
|
-
this._initToolInfos();
|
1068
1068
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1069
1069
|
.then(async () => {
|
1070
1070
|
var _a, _b;
|
@@ -1090,6 +1090,7 @@ const LayerTable = class {
|
|
1090
1090
|
}
|
1091
1091
|
this._showOnlySelected = false;
|
1092
1092
|
await this._sortTable();
|
1093
|
+
this._initToolInfos();
|
1093
1094
|
this._updateToolbar();
|
1094
1095
|
});
|
1095
1096
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-164d485a.js';
|
7
7
|
import { g as getLocaleComponentStrings } from './locale-25a5ae3e.js';
|
8
8
|
import { E as ELayoutMode } from './interfaces-586e863c.js';
|
9
|
-
import { g as getLayerOrTable } from './mapViewUtils-
|
9
|
+
import { g as getLayerOrTable } from './mapViewUtils-20504620.js';
|
10
10
|
import './esri-loader-eda07632.js';
|
11
11
|
import './_commonjsHelpers-d5f9d613.js';
|
12
12
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-164d485a.js';
|
7
7
|
import { l as loadModules, g as getLocaleComponentStrings } from './locale-25a5ae3e.js';
|
8
|
-
import { a as getAllLayers, b as getFeatureLayerView, h as highlightFeatures, g as getLayerOrTable, q as queryFeaturesByID } from './mapViewUtils-
|
8
|
+
import { a as getAllLayers, b as getFeatureLayerView, h as highlightFeatures, g as getLayerOrTable, q as queryFeaturesByID } from './mapViewUtils-20504620.js';
|
9
9
|
import './esri-loader-eda07632.js';
|
10
10
|
import './_commonjsHelpers-d5f9d613.js';
|
11
11
|
import './interfaces-586e863c.js';
|
@@ -6,7 +6,7 @@
|
|
6
6
|
import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
|
7
7
|
import { a as getAssetPath } from './index-164d485a.js';
|
8
8
|
import { l as loadModules } from './locale-25a5ae3e.js';
|
9
|
-
import { q as queryFeaturesByID } from './mapViewUtils-
|
9
|
+
import { q as queryFeaturesByID } from './mapViewUtils-20504620.js';
|
10
10
|
import './solution-resource-7b8d302d.js';
|
11
11
|
import './index-a1e91462.js';
|
12
12
|
import { _ as __assign$1, r as request, c as cleanUrl, g as getJson } from './restHelpersGet-af032ab2.js';
|
@@ -1508,7 +1508,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1508
1508
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1509
1509
|
* ====================================================================
|
1510
1510
|
*/
|
1511
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-
|
1511
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-be703f2b.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
|
1512
1512
|
/** ====================================================================
|
1513
1513
|
* @license
|
1514
1514
|
* jsPDF XMP metadata plugin
|
@@ -4,11 +4,11 @@
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
6
|
import { a as commonjsGlobal, c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
|
7
|
-
import { _ as _typeof_1 } from './downloadUtils-
|
7
|
+
import { _ as _typeof_1 } from './downloadUtils-3bab4b5f.js';
|
8
8
|
import './index-164d485a.js';
|
9
9
|
import './locale-25a5ae3e.js';
|
10
10
|
import './esri-loader-eda07632.js';
|
11
|
-
import './mapViewUtils-
|
11
|
+
import './mapViewUtils-20504620.js';
|
12
12
|
import './interfaces-586e863c.js';
|
13
13
|
import './solution-resource-7b8d302d.js';
|
14
14
|
import './index-a1e91462.js';
|