@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
@@ -16,7 +16,7 @@ const openCloseComponent = require('./openCloseComponent-19a769d0.js');
|
|
16
16
|
const t9n = require('./t9n-993a84de.js');
|
17
17
|
const resources = require('./resources-dd8ff1b4.js');
|
18
18
|
const locale$1 = require('./locale-8c42ba7a.js');
|
19
|
-
const mapViewUtils = require('./mapViewUtils-
|
19
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
20
20
|
const popupUtils = require('./popupUtils-824d2f7c.js');
|
21
21
|
require('./guid-ae73cd27.js');
|
22
22
|
require('./resources-9447c777.js');
|
@@ -26,7 +26,7 @@ const Validation = require('./Validation-b02c6710.js');
|
|
26
26
|
const debounce = require('./debounce-30afab47.js');
|
27
27
|
const key = require('./key-c5504030.js');
|
28
28
|
const locale$1 = require('./locale-8c42ba7a.js');
|
29
|
-
const mapViewUtils = require('./mapViewUtils-
|
29
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
30
30
|
const publicNotificationStore = require('./publicNotificationStore-ef379d11.js');
|
31
31
|
require('./resources-9447c777.js');
|
32
32
|
require('./browser-d08a5f99.js');
|
@@ -16,7 +16,7 @@ const locale = require('./locale-d237c9d5.js');
|
|
16
16
|
const t9n = require('./t9n-993a84de.js');
|
17
17
|
const resources = require('./resources-3e593312.js');
|
18
18
|
const locale$1 = require('./locale-8c42ba7a.js');
|
19
|
-
const mapViewUtils = require('./mapViewUtils-
|
19
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
20
20
|
const popupUtils = require('./popupUtils-824d2f7c.js');
|
21
21
|
require('./guid-ae73cd27.js');
|
22
22
|
require('./resources-9447c777.js');
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-105cf2b9.js');
|
11
11
|
const locale = require('./locale-8c42ba7a.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
-
const downloadUtils = require('./downloadUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
13
|
+
const downloadUtils = require('./downloadUtils-82bc9a04.js');
|
14
14
|
require('./esri-loader-a91c0ec1.js');
|
15
15
|
require('./_commonjsHelpers-384729db.js');
|
16
16
|
require('./interfaces-7cd0a48a.js');
|
@@ -112,10 +112,6 @@ const LayerTable = class {
|
|
112
112
|
constructor(hostRef) {
|
113
113
|
index.registerInstance(this, hostRef);
|
114
114
|
this.featureSelectionChange = index.createEvent(this, "featureSelectionChange", 7);
|
115
|
-
/**
|
116
|
-
* number[]: A list of all IDs for the current layer
|
117
|
-
*/
|
118
|
-
this._allIds = [];
|
119
115
|
/**
|
120
116
|
* boolean: When true the ctrl key is currently pressed
|
121
117
|
*/
|
@@ -171,6 +167,7 @@ const LayerTable = class {
|
|
171
167
|
this.shareIncludeSocial = undefined;
|
172
168
|
this.showNewestFirst = undefined;
|
173
169
|
this.zoomAndScrollToSelected = undefined;
|
170
|
+
this._allIds = [];
|
174
171
|
this._controlsThatFit = undefined;
|
175
172
|
this._csvExporting = false;
|
176
173
|
this._fetchingData = false;
|
@@ -180,6 +177,7 @@ const LayerTable = class {
|
|
180
177
|
this._selectAllActive = false;
|
181
178
|
this._showHideOpen = false;
|
182
179
|
this._showOnlySelected = false;
|
180
|
+
this._toolInfos = undefined;
|
183
181
|
this._translations = undefined;
|
184
182
|
}
|
185
183
|
//--------------------------------------------------------------------------
|
@@ -264,15 +262,18 @@ const LayerTable = class {
|
|
264
262
|
* watch for changes in layer view and verify if it has editing enabled
|
265
263
|
*/
|
266
264
|
async _layerWatchHandler() {
|
267
|
-
var _a
|
265
|
+
var _a;
|
268
266
|
this._fetchingData = true;
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
267
|
+
await ((_a = this._layer) === null || _a === void 0 ? void 0 : _a.when(async () => {
|
268
|
+
var _a;
|
269
|
+
this._definitionExpression = this._layer.definitionExpression;
|
270
|
+
this._floorField = (_a = this._layer.floorInfo) === null || _a === void 0 ? void 0 : _a.floorField;
|
271
|
+
this._updateFloorDefinitionExpression();
|
272
|
+
await this._resetTable();
|
273
|
+
this._updateShareUrl();
|
274
|
+
this._initLayerExpressions();
|
275
|
+
this._fetchingData = false;
|
276
|
+
}));
|
276
277
|
}
|
277
278
|
/**
|
278
279
|
* watch for selection changes
|
@@ -442,7 +443,7 @@ const LayerTable = class {
|
|
442
443
|
*/
|
443
444
|
_getActions() {
|
444
445
|
const actions = this._getActionItems();
|
445
|
-
return actions.reduce((prev, cur) => {
|
446
|
+
return actions === null || actions === void 0 ? void 0 : actions.reduce((prev, cur) => {
|
446
447
|
if (cur && !cur.isOverflow) {
|
447
448
|
prev.push(cur.isDanger ?
|
448
449
|
this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
|
@@ -661,7 +662,7 @@ const LayerTable = class {
|
|
661
662
|
if (this._timeout) {
|
662
663
|
clearTimeout(this._timeout);
|
663
664
|
}
|
664
|
-
if (!this.isMobile) {
|
665
|
+
if (!this.isMobile && this._toolbar && this._toolInfos) {
|
665
666
|
this._timeout = setTimeout(() => {
|
666
667
|
clearTimeout(this._timeout);
|
667
668
|
this._setToolbarSizeInfos();
|
@@ -1068,7 +1069,6 @@ const LayerTable = class {
|
|
1068
1069
|
this._table.view = this.mapView;
|
1069
1070
|
this._checkEditEnabled();
|
1070
1071
|
this._table.editingEnabled = this._editEnabled && this.enableInlineEdit;
|
1071
|
-
this._initToolInfos();
|
1072
1072
|
await this.reactiveUtils.once(() => this._table.state === "loaded")
|
1073
1073
|
.then(async () => {
|
1074
1074
|
var _a, _b;
|
@@ -1094,6 +1094,7 @@ const LayerTable = class {
|
|
1094
1094
|
}
|
1095
1095
|
this._showOnlySelected = false;
|
1096
1096
|
await this._sortTable();
|
1097
|
+
this._initToolInfos();
|
1097
1098
|
this._updateToolbar();
|
1098
1099
|
});
|
1099
1100
|
}
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
const index = require('./index-105cf2b9.js');
|
11
11
|
const locale = require('./locale-8c42ba7a.js');
|
12
12
|
const interfaces = require('./interfaces-7cd0a48a.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
14
14
|
require('./esri-loader-a91c0ec1.js');
|
15
15
|
require('./_commonjsHelpers-384729db.js');
|
16
16
|
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-105cf2b9.js');
|
11
11
|
const locale = require('./locale-8c42ba7a.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
13
13
|
require('./esri-loader-a91c0ec1.js');
|
14
14
|
require('./_commonjsHelpers-384729db.js');
|
15
15
|
require('./interfaces-7cd0a48a.js');
|
@@ -8,7 +8,7 @@
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
9
|
const index = require('./index-105cf2b9.js');
|
10
10
|
const locale = require('./locale-8c42ba7a.js');
|
11
|
-
const mapViewUtils = require('./mapViewUtils-
|
11
|
+
const mapViewUtils = require('./mapViewUtils-3e0fa457.js');
|
12
12
|
require('./solution-resource-abec7452.js');
|
13
13
|
require('./index-f64944ad.js');
|
14
14
|
const restHelpersGet = require('./restHelpersGet-e0737480.js');
|
@@ -1510,7 +1510,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1510
1510
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1511
1511
|
* ====================================================================
|
1512
1512
|
*/
|
1513
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1513
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-79d8773c.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},
|
1514
1514
|
/** ====================================================================
|
1515
1515
|
* @license
|
1516
1516
|
* jsPDF XMP metadata plugin
|
@@ -6,11 +6,11 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
|
-
const downloadUtils = require('./downloadUtils-
|
9
|
+
const downloadUtils = require('./downloadUtils-82bc9a04.js');
|
10
10
|
require('./index-105cf2b9.js');
|
11
11
|
require('./locale-8c42ba7a.js');
|
12
12
|
require('./esri-loader-a91c0ec1.js');
|
13
|
-
require('./mapViewUtils-
|
13
|
+
require('./mapViewUtils-3e0fa457.js');
|
14
14
|
require('./interfaces-7cd0a48a.js');
|
15
15
|
require('./solution-resource-abec7452.js');
|
16
16
|
require('./index-f64944ad.js');
|