@esri/solutions-components 0.7.36 → 0.7.38
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 +3 -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 +45 -12
- package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -5
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +29 -3
- package/dist/cjs/{downloadUtils-8ca56dfa.js → downloadUtils-c22a71da.js} +2 -2
- package/dist/cjs/{index.es-3c36cde7.js → index.es-8d317f5e.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-8aa325de.js → mapViewUtils-cd29b129.js} +2 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +3 -4
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +29 -3
- package/dist/collection/components/info-card/info-card.js +20 -0
- package/dist/collection/components/layer-table/layer-table.js +41 -8
- package/dist/collection/components/map-card/map-card.css +2 -1
- package/dist/collection/components/map-card/map-card.js +1 -1
- package/dist/collection/utils/mapViewUtils.js +2 -0
- package/dist/collection/utils/mapViewUtils.ts +2 -0
- package/dist/components/crowdsource-manager.js +3 -4
- package/dist/components/crowdsource-reporter.js +29 -3
- package/dist/components/info-card2.js +3 -0
- package/dist/components/layer-table2.js +41 -8
- package/dist/components/map-card2.js +2 -2
- package/dist/components/mapViewUtils.js +2 -0
- package/dist/esm/calcite-alert_4.entry.js +3 -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 +45 -12
- package/dist/esm/crowdsource-manager.entry.js +4 -5
- package/dist/esm/crowdsource-reporter.entry.js +29 -3
- package/dist/esm/{downloadUtils-8b83a40c.js → downloadUtils-985dcd1c.js} +2 -2
- package/dist/esm/{index.es-33e2ee2d.js → index.es-03d8386e.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-cf05e880.js → mapViewUtils-257bc9b3.js} +3 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-e4e59f16.js → p-00ba5a2a.js} +2 -2
- package/dist/solutions-components/{p-d3da7497.entry.js → p-12492469.entry.js} +1 -1
- package/dist/solutions-components/{p-cf24dd35.entry.js → p-20b206f3.entry.js} +1 -1
- package/dist/solutions-components/{p-8365664f.entry.js → p-23e58d7c.entry.js} +1 -1
- package/dist/solutions-components/p-2f840f08.entry.js +6 -0
- package/dist/solutions-components/{p-25894d7a.entry.js → p-34eaca46.entry.js} +1 -1
- package/dist/solutions-components/{p-c85ce035.entry.js → p-6419f8d7.entry.js} +2 -2
- package/dist/solutions-components/p-820e3d28.entry.js +6 -0
- package/dist/solutions-components/p-9161dca9.entry.js +6 -0
- package/dist/solutions-components/p-96f5be25.js +36 -0
- package/dist/solutions-components/{p-ee1e4df3.js → p-df048b47.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/mapViewUtils.ts +2 -0
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +14 -0
- package/dist/types/components/info-card/info-card.d.ts +4 -0
- package/dist/types/components/layer-table/layer-table.d.ts +10 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-2c382841.js +0 -36
- package/dist/solutions-components/p-3c5cae90.entry.js +0 -6
- package/dist/solutions-components/p-6d0203ed.entry.js +0 -6
- package/dist/solutions-components/p-922f2467.entry.js +0 -6
|
@@ -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,
|
|
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-257bc9b3.js';
|
|
9
|
+
import { d as downloadCSV } from './downloadUtils-985dcd1c.js';
|
|
10
10
|
import './esri-loader-eda07632.js';
|
|
11
11
|
import './_commonjsHelpers-d5f9d613.js';
|
|
12
12
|
import './interfaces-586e863c.js';
|
|
@@ -238,6 +238,7 @@ const LayerTable = class {
|
|
|
238
238
|
this._initToolInfos();
|
|
239
239
|
}
|
|
240
240
|
this._initLayerExpressions();
|
|
241
|
+
this._resetColumnTemplates();
|
|
241
242
|
}
|
|
242
243
|
/**
|
|
243
244
|
* watch for changes in map view and get the first layer
|
|
@@ -257,10 +258,10 @@ const LayerTable = class {
|
|
|
257
258
|
* watch for changes in layer view and verify if it has editing enabled
|
|
258
259
|
*/
|
|
259
260
|
async _layerWatchHandler() {
|
|
260
|
-
var _a, _b;
|
|
261
|
+
var _a, _b, _c;
|
|
261
262
|
this._fetchingData = true;
|
|
262
|
-
this._definitionExpression = this._layer.definitionExpression;
|
|
263
|
-
this._floorField = (
|
|
263
|
+
this._definitionExpression = (_a = this._layer) === null || _a === void 0 ? void 0 : _a.definitionExpression;
|
|
264
|
+
this._floorField = (_c = (_b = this._layer) === null || _b === void 0 ? void 0 : _b.floorInfo) === null || _c === void 0 ? void 0 : _c.floorField;
|
|
264
265
|
this._updateFloorDefinitionExpression();
|
|
265
266
|
await this._resetTable();
|
|
266
267
|
this._updateShareUrl();
|
|
@@ -398,12 +399,14 @@ const LayerTable = class {
|
|
|
398
399
|
* @protected
|
|
399
400
|
*/
|
|
400
401
|
async _initModules() {
|
|
401
|
-
const [FeatureTable, reactiveUtils] = await loadModules([
|
|
402
|
+
const [FeatureTable, reactiveUtils, TableTemplate] = await loadModules([
|
|
402
403
|
"esri/widgets/FeatureTable",
|
|
403
|
-
"esri/core/reactiveUtils"
|
|
404
|
+
"esri/core/reactiveUtils",
|
|
405
|
+
"esri/widgets/FeatureTable/support/TableTemplate"
|
|
404
406
|
]);
|
|
405
407
|
this.FeatureTable = FeatureTable;
|
|
406
408
|
this.reactiveUtils = reactiveUtils;
|
|
409
|
+
this.TableTemplate = TableTemplate;
|
|
407
410
|
}
|
|
408
411
|
/**
|
|
409
412
|
* Update the toolbar when its size changes
|
|
@@ -1040,6 +1043,20 @@ const LayerTable = class {
|
|
|
1040
1043
|
}
|
|
1041
1044
|
this.featureSelectionChange.emit(this.selectedIds);
|
|
1042
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Reset the tables column templates when we get new column config
|
|
1048
|
+
*/
|
|
1049
|
+
_resetColumnTemplates() {
|
|
1050
|
+
var _a, _b;
|
|
1051
|
+
const columnTemplates = this._getColumnTemplates((_a = this._layer) === null || _a === void 0 ? void 0 : _a.id, (_b = this._layer) === null || _b === void 0 ? void 0 : _b.fields);
|
|
1052
|
+
if (this._table && columnTemplates) {
|
|
1053
|
+
this._table.tableTemplate = new this.TableTemplate({
|
|
1054
|
+
columnTemplates
|
|
1055
|
+
});
|
|
1056
|
+
const fieldNames = columnTemplates.map(f => f.fieldName);
|
|
1057
|
+
this._initColumnsInfo(fieldNames);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1043
1060
|
/**
|
|
1044
1061
|
* Reset basic table props
|
|
1045
1062
|
*/
|
|
@@ -1090,12 +1107,28 @@ const LayerTable = class {
|
|
|
1090
1107
|
}
|
|
1091
1108
|
/**
|
|
1092
1109
|
* Store the column names and current hidden status to support show/hide of columns
|
|
1110
|
+
* @param fieldNames optional list of names from new config options
|
|
1093
1111
|
*/
|
|
1094
|
-
_initColumnsInfo() {
|
|
1095
|
-
|
|
1096
|
-
|
|
1112
|
+
_initColumnsInfo(fieldNames) {
|
|
1113
|
+
var _a, _b;
|
|
1114
|
+
// this._table.columns is not reflecting correct list when new
|
|
1115
|
+
// tableTemplate.columnTemplates have been defined on an existing FeatureTable
|
|
1116
|
+
// TODO review for better solution post 2024 R01 release
|
|
1117
|
+
const columnsInfo = (_a = this._table) === null || _a === void 0 ? void 0 : _a.columns.reduce((prev, cur) => {
|
|
1118
|
+
if (!fieldNames || ((fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.indexOf(cur.name)) > -1)) {
|
|
1119
|
+
prev[cur.name] = !cur.hidden;
|
|
1120
|
+
}
|
|
1097
1121
|
return prev;
|
|
1098
1122
|
}, {});
|
|
1123
|
+
const oldColumnNames = (_b = this._table) === null || _b === void 0 ? void 0 : _b.columns.map((c) => c.name);
|
|
1124
|
+
const newColumnNames = fieldNames ? fieldNames.filter(n => oldColumnNames.indexOf(n) < 0) : [];
|
|
1125
|
+
newColumnNames.forEach(c => {
|
|
1126
|
+
columnsInfo[c] = true;
|
|
1127
|
+
});
|
|
1128
|
+
this._columnsInfo = fieldNames ? fieldNames.reduce((prev, cur) => {
|
|
1129
|
+
prev[cur] = columnsInfo[cur];
|
|
1130
|
+
return prev;
|
|
1131
|
+
}, {}) : columnsInfo;
|
|
1099
1132
|
}
|
|
1100
1133
|
/**
|
|
1101
1134
|
* Select the feature that was specified via url params
|
|
@@ -1475,7 +1508,7 @@ const LayerTable = class {
|
|
|
1475
1508
|
};
|
|
1476
1509
|
LayerTable.style = layerTableCss;
|
|
1477
1510
|
|
|
1478
|
-
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden{visibility:hidden}.display-none{display:none}";
|
|
1511
|
+
const mapCardCss = ":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 51px)}.height-full{height:100%}.box-shadow{box-shadow:none !important}.visibility-hidden-1{visibility:hidden;height:1px;}.display-none{display:none}";
|
|
1479
1512
|
|
|
1480
1513
|
const MapCard = class {
|
|
1481
1514
|
constructor(hostRef) {
|
|
@@ -1547,7 +1580,7 @@ const MapCard = class {
|
|
|
1547
1580
|
*/
|
|
1548
1581
|
render() {
|
|
1549
1582
|
var _a, _b;
|
|
1550
|
-
const mapClass = this.hidden ? "visibility-hidden" : "";
|
|
1583
|
+
const mapClass = this.hidden ? "visibility-hidden-1" : "";
|
|
1551
1584
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
|
1552
1585
|
const mapPickerClass = ((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) > 1 ? "" : "display-none";
|
|
1553
1586
|
const mapHeightClass = ((_b = this.mapInfos) === null || _b === void 0 ? void 0 : _b.length) > 1 ? "map-height" : "height-full";
|
|
@@ -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-257bc9b3.js';
|
|
10
10
|
import './esri-loader-eda07632.js';
|
|
11
11
|
import './_commonjsHelpers-d5f9d613.js';
|
|
12
12
|
|
|
@@ -327,7 +327,7 @@ const CrowdsourceManager = class {
|
|
|
327
327
|
*/
|
|
328
328
|
_getMapAndCard(layoutMode, panelOpen, hideTable) {
|
|
329
329
|
const mapSizeClass = this._getMapSizeClass(layoutMode, panelOpen, hideTable);
|
|
330
|
-
return (h("div", { class: `${mapSizeClass} overflow-hidden` }, this._getMapNode(
|
|
330
|
+
return (h("div", { class: `${mapSizeClass} overflow-hidden` }, this._getMapNode(panelOpen), this._getPopupExpandNode()));
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
333
|
* Get the map node based for the current layout options
|
|
@@ -338,11 +338,10 @@ const CrowdsourceManager = class {
|
|
|
338
338
|
* @returns the map node
|
|
339
339
|
* @protected
|
|
340
340
|
*/
|
|
341
|
-
_getMapNode(
|
|
341
|
+
_getMapNode(panelOpen) {
|
|
342
342
|
var _a;
|
|
343
|
-
const mapDisplayClass = layoutMode === ELayoutMode.HORIZONTAL ? "" : layoutMode === ELayoutMode.GRID ? "" : "visibility-hidden";
|
|
344
343
|
const mapContainerClass = this._layoutMode === ELayoutMode.HORIZONTAL && (!this._isMobile || panelOpen) ? "" : "adjusted-height-50";
|
|
345
|
-
return (h("div", { class: `${mapContainerClass} overflow-hidden
|
|
344
|
+
return (h("div", { class: `${mapContainerClass} overflow-hidden` }, h("map-card", { basemapConfig: this.basemapConfig, class: "width-full", defaultWebmapId: this.defaultWebmap, enableBasemap: this.enableBasemap, enableFloorFilter: this.enableFloorFilter, enableFullscreen: this.enableFullscreen, enableHome: this.enableHome, enableLegend: this.enableLegend, enableSearch: this.enableSearch, enableSingleExpand: true, hidden: this._expandPopup && !this._isMobile, homeZoomIndex: 3, homeZoomPosition: "top-left", homeZoomToolsSize: "s", mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), mapWidgetsIndex: 0, mapWidgetsPosition: "top-right", mapWidgetsSize: "m", stackTools: true, theme: this.theme, toolOrder: ["legend", "search", "fullscreen", "basemap", "floorfilter"] })));
|
|
346
345
|
}
|
|
347
346
|
/**
|
|
348
347
|
* Get the expand node for the popup information
|
|
@@ -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, 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-257bc9b3.js';
|
|
9
9
|
import './esri-loader-eda07632.js';
|
|
10
10
|
import './_commonjsHelpers-d5f9d613.js';
|
|
11
11
|
import './interfaces-586e863c.js';
|
|
@@ -304,6 +304,7 @@ const CrowdsourceReporter = class {
|
|
|
304
304
|
backFromSelectedPanel() {
|
|
305
305
|
const updatedFlowItems = [...this._flowItems];
|
|
306
306
|
updatedFlowItems.pop();
|
|
307
|
+
this.clearHighlights();
|
|
307
308
|
//Back to layer list, and return as the flowItems will be reset in navigateToHomePage
|
|
308
309
|
if (updatedFlowItems.length === 1) {
|
|
309
310
|
this.navigateToHomePage();
|
|
@@ -336,14 +337,14 @@ const CrowdsourceReporter = class {
|
|
|
336
337
|
*/
|
|
337
338
|
getFeatureListFlowItem(layerId, layerName) {
|
|
338
339
|
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports &&
|
|
339
|
-
h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { class: "height-full",
|
|
340
|
+
h("calcite-button", { appearance: "solid", onClick: this.navigateToCreateFeature.bind(this), slot: "footer", width: "full" }, this.reportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { class: "height-full", mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 30, selectedLayerId: layerId }))));
|
|
340
341
|
}
|
|
341
342
|
/**
|
|
342
343
|
* Returns the calcite-flow item for feature details
|
|
343
344
|
* @returns Node
|
|
344
345
|
*/
|
|
345
346
|
getFeatureDetailsFlowItem() {
|
|
346
|
-
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedFeature, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: this.featureDetailsChanged.bind(this), zoomAndScrollToSelected: true }))));
|
|
347
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromSelectedPanel.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("instant-apps-social-share", { autoUpdateShareUrl: false, embed: false, popoverButtonIconScale: "s", ref: el => this._shareNode = el, scale: "m", shareButtonColor: "neutral", shareButtonType: "action", slot: "header-actions-end", socialMedia: true, view: this.mapView }), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedFeature, highlightEnabled: false, isLoading: false, isMobile: false, mapView: this.mapView, onSelectionChanged: this.featureDetailsChanged.bind(this), zoomAndScrollToSelected: true }))));
|
|
347
348
|
}
|
|
348
349
|
/**
|
|
349
350
|
* Sets the selected features and updates the first feature as the current selected feature
|
|
@@ -375,6 +376,30 @@ const CrowdsourceReporter = class {
|
|
|
375
376
|
*/
|
|
376
377
|
featureDetailsChanged(evt) {
|
|
377
378
|
this.setCurrentFeature(evt.detail[0]);
|
|
379
|
+
void this.highlightOnMap(evt.detail[0]);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Highlights the feature on map
|
|
383
|
+
* @param selectedFeature Graphic currently shown in feature details
|
|
384
|
+
*/
|
|
385
|
+
async highlightOnMap(selectedFeature) {
|
|
386
|
+
// if a feature is already highlighted, remove the previous highlight
|
|
387
|
+
this.clearHighlights();
|
|
388
|
+
// highlight the newly selected feature only when it has valid geometry
|
|
389
|
+
if (selectedFeature && selectedFeature.geometry && selectedFeature.layer) {
|
|
390
|
+
const selectedLayerView = await getFeatureLayerView(this.mapView, selectedFeature.layer.id);
|
|
391
|
+
this._highlightHandle = await highlightFeatures([selectedFeature.getObjectId()], selectedLayerView, this.mapView, true);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Clears the highlight
|
|
396
|
+
* @protected
|
|
397
|
+
*/
|
|
398
|
+
clearHighlights() {
|
|
399
|
+
//if a feature is already highlighted, then remove the highlight
|
|
400
|
+
if (this._highlightHandle) {
|
|
401
|
+
this._highlightHandle.remove();
|
|
402
|
+
}
|
|
378
403
|
}
|
|
379
404
|
/**
|
|
380
405
|
* Returns the action button to Expand/Collapse side panel in mobile mode
|
|
@@ -442,6 +467,7 @@ const CrowdsourceReporter = class {
|
|
|
442
467
|
}
|
|
443
468
|
else {
|
|
444
469
|
this._flowItems = [...this._flowItems];
|
|
470
|
+
void this.highlightOnMap(clickedGraphics[0]);
|
|
445
471
|
}
|
|
446
472
|
}
|
|
447
473
|
}
|
|
@@ -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-257bc9b3.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-03d8386e.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-985dcd1c.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-257bc9b3.js';
|
|
12
12
|
import './interfaces-586e863c.js';
|
|
13
13
|
import './solution-resource-7b8d302d.js';
|
|
14
14
|
import './index-a1e91462.js';
|