@esri/solutions-components 0.7.24 → 0.7.25
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/{info-card_4.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +410 -324
- package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
- package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +296 -3
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -2
- package/dist/cjs/calcite-flow_4.cjs.entry.js +3 -4
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -2
- package/dist/cjs/{card-manager_2.cjs.entry.js → card-manager_3.cjs.entry.js} +182 -5
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -2
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +32 -90
- package/dist/cjs/{downloadUtils-401356b5.js → downloadUtils-83c6d3c3.js} +6 -6
- package/dist/cjs/{index.es-a9a4ff08.js → index.es-bd1a93b2.js} +2 -2
- package/dist/cjs/layout-manager.cjs.entry.js +1 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{locale-1ff119f5.js → locale-a476e15d.js} +24 -3
- package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
- package/dist/cjs/{popupUtils-8d5b6e94.js → popupUtils-a73902a6.js} +2 -2
- package/dist/cjs/public-notification.cjs.entry.js +3 -4
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -2
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +5 -27
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +69 -95
- package/dist/collection/demos/crowdsource-reporter.html +96 -45
- package/dist/components/crowdsource-reporter.js +95 -209
- package/dist/esm/{info-card_4.entry.js → basemap-gallery_7.entry.js} +406 -323
- package/dist/esm/buffer-tools_3.entry.js +1 -2
- package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +295 -3
- package/dist/esm/calcite-combobox_6.entry.js +1 -2
- package/dist/esm/calcite-flow_4.entry.js +3 -4
- package/dist/esm/calcite-shell-panel_14.entry.js +1 -2
- package/dist/esm/{card-manager_2.entry.js → card-manager_3.entry.js} +181 -5
- package/dist/esm/crowdsource-manager.entry.js +1 -2
- package/dist/esm/crowdsource-reporter.entry.js +32 -90
- package/dist/esm/{downloadUtils-067dc2ff.js → downloadUtils-a301c193.js} +2 -2
- package/dist/esm/{index.es-92e46d8b.js → index.es-37a9907e.js} +2 -2
- package/dist/esm/layout-manager.entry.js +1 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{locale-13e3c96c.js → locale-731e75a8.js} +22 -2
- package/dist/esm/map-select-tools_3.entry.js +2 -3
- package/dist/esm/{popupUtils-b71f30fc.js → popupUtils-a593bd78.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -3
- package/dist/esm/solution-configuration.entry.js +1 -2
- package/dist/esm/solution-contents_3.entry.js +1 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -2
- package/dist/solutions-components/demos/crowdsource-reporter.html +96 -45
- package/dist/solutions-components/{p-36cbf14f.js → p-0587972d.js} +1 -1
- package/dist/solutions-components/p-0b4f4b0e.entry.js +6 -0
- package/dist/solutions-components/{p-f54f3719.entry.js → p-0b619197.entry.js} +1 -1
- package/dist/solutions-components/{p-d50f34c4.entry.js → p-2656c6e4.entry.js} +1 -1
- package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
- package/dist/solutions-components/{p-01032eec.entry.js → p-29f661f5.entry.js} +2 -2
- package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
- package/dist/solutions-components/{p-d9061e5d.entry.js → p-7116f96d.entry.js} +1 -1
- package/dist/solutions-components/p-7c13406e.entry.js +6 -0
- package/dist/solutions-components/{p-685257d1.entry.js → p-7dbccc10.entry.js} +1 -1
- package/dist/solutions-components/p-8308f64c.entry.js +6 -0
- package/dist/solutions-components/{p-ca4023f4.entry.js → p-891682da.entry.js} +1 -1
- package/dist/solutions-components/{p-14ff1465.js → p-a603e673.js} +2 -2
- package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
- package/dist/solutions-components/{p-fec77450.js → p-db868283.js} +1 -1
- package/dist/solutions-components/{p-fb1c6811.entry.js → p-dded59a7.entry.js} +1 -1
- package/dist/solutions-components/p-e88a64be.entry.js +6 -0
- package/dist/solutions-components/p-e902ba19.js +36 -0
- package/dist/solutions-components/p-fe295e9d.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +14 -28
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/basemap-gallery_5.cjs.entry.js +0 -573
- package/dist/cjs/loadModules-46d14e81.js +0 -30
- package/dist/esm/basemap-gallery_5.entry.js +0 -565
- package/dist/esm/loadModules-cea493da.js +0 -28
- package/dist/solutions-components/p-3606c4b8.entry.js +0 -6
- package/dist/solutions-components/p-48ff9cea.js +0 -21
- package/dist/solutions-components/p-5e832d65.entry.js +0 -6
- package/dist/solutions-components/p-8fc072ca.entry.js +0 -6
- package/dist/solutions-components/p-a2d3df14.entry.js +0 -6
- package/dist/solutions-components/p-ab006ace.js +0 -21
- package/dist/solutions-components/p-ba56035f.entry.js +0 -6
- package/dist/solutions-components/p-c0ed2b83.entry.js +0 -6
- package/dist/solutions-components/p-cc88bb42.entry.js +0 -6
- package/dist/solutions-components/p-db69f4ba.entry.js +0 -6
- package/dist/solutions-components/p-e3061220.entry.js +0 -6
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-7183ce4a.js';
|
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
|
8
|
-
import './loadModules-cea493da.js';
|
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-731e75a8.js';
|
|
9
8
|
import './esri-loader-eda07632.js';
|
|
10
9
|
import './_commonjsHelpers-d5f9d613.js';
|
|
11
10
|
|
|
12
|
-
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-0{width:0}.height-full{height:100%}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.map-container{position:absolute;width:calc(100% - 390px);left:390px}.side-panel{padding:2px;width:390px;height:100%;position:absolute;top:0;left:0;z-index:60}.error-msg{padding:10px}
|
|
11
|
+
const crowdsourceReporterCss = ":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.map-container{position:absolute;width:calc(100% - 390px);left:390px}.side-panel{padding:2px;width:390px;height:100%;position:absolute;top:0;left:0;z-index:60}.error-msg{padding:10px}.collapsed-side-panel{top:calc(100% - 55px);height:54px}";
|
|
13
12
|
|
|
14
13
|
const CrowdsourceReporter = class {
|
|
15
14
|
constructor(hostRef) {
|
|
16
15
|
registerInstance(this, hostRef);
|
|
17
16
|
this.description = undefined;
|
|
17
|
+
this.isMobile = undefined;
|
|
18
18
|
this.enableAnonymousAccess = undefined;
|
|
19
19
|
this.enableAnonymousComments = undefined;
|
|
20
20
|
this.enableComments = undefined;
|
|
@@ -22,6 +22,7 @@ const CrowdsourceReporter = class {
|
|
|
22
22
|
this.enableNewReports = undefined;
|
|
23
23
|
this.layers = undefined;
|
|
24
24
|
this.loginTitle = undefined;
|
|
25
|
+
this.mapView = undefined;
|
|
25
26
|
this.reportButtonText = undefined;
|
|
26
27
|
this.reportsHeader = undefined;
|
|
27
28
|
this.reportSubmittedMessage = undefined;
|
|
@@ -34,8 +35,6 @@ const CrowdsourceReporter = class {
|
|
|
34
35
|
this.theme = "light";
|
|
35
36
|
this.enableZoom = true;
|
|
36
37
|
this._mapInfo = undefined;
|
|
37
|
-
this._mapView = undefined;
|
|
38
|
-
this._isMobile = false;
|
|
39
38
|
this._flowItems = ["layer-list"];
|
|
40
39
|
this._sidePanelCollapsed = false;
|
|
41
40
|
this._translations = undefined;
|
|
@@ -46,6 +45,22 @@ const CrowdsourceReporter = class {
|
|
|
46
45
|
// Watch handlers
|
|
47
46
|
//
|
|
48
47
|
//--------------------------------------------------------------------------
|
|
48
|
+
/**
|
|
49
|
+
* Called each time the mapView prop is changed.
|
|
50
|
+
*/
|
|
51
|
+
async isMobileWatchHandler() {
|
|
52
|
+
if (this.isMobile) {
|
|
53
|
+
this._sidePanelCollapsed = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Called each time the mapView prop is changed.
|
|
58
|
+
*/
|
|
59
|
+
async mapViewWatchHandler() {
|
|
60
|
+
await this.mapView.when(async () => {
|
|
61
|
+
await this.setMapView();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
49
64
|
//--------------------------------------------------------------------------
|
|
50
65
|
//
|
|
51
66
|
// Methods (public)
|
|
@@ -56,15 +71,6 @@ const CrowdsourceReporter = class {
|
|
|
56
71
|
// Events (public)
|
|
57
72
|
//
|
|
58
73
|
//--------------------------------------------------------------------------
|
|
59
|
-
/**
|
|
60
|
-
* Listen for mapChanged event to be fired then store the new mapView so components will be updated
|
|
61
|
-
*/
|
|
62
|
-
async mapChanged(evt) {
|
|
63
|
-
this._mapChange = evt.detail;
|
|
64
|
-
await this._mapChange.mapView.when(async () => {
|
|
65
|
-
await this.setMapView();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
74
|
//--------------------------------------------------------------------------
|
|
69
75
|
//
|
|
70
76
|
// Functions (lifecycle)
|
|
@@ -77,27 +83,12 @@ const CrowdsourceReporter = class {
|
|
|
77
83
|
*/
|
|
78
84
|
async componentWillLoad() {
|
|
79
85
|
await this._getTranslations();
|
|
80
|
-
const mediaQueryList = window.matchMedia("screen and (max-width: 600px)");
|
|
81
|
-
this._isMobile = mediaQueryList.matches;
|
|
82
|
-
//on change update the state for is mobile and the sidePanelCollapsed
|
|
83
|
-
mediaQueryList.onchange = (e) => {
|
|
84
|
-
this._isMobile = e.matches;
|
|
85
|
-
this._sidePanelCollapsed = false;
|
|
86
|
-
};
|
|
87
86
|
}
|
|
88
87
|
/**
|
|
89
88
|
* Renders the component.
|
|
90
89
|
*/
|
|
91
90
|
render() {
|
|
92
|
-
|
|
93
|
-
let validConfiguration = true;
|
|
94
|
-
//Check if webMap id is configured
|
|
95
|
-
if (!this.mapInfos || this.mapInfos.length <= 0 || (((_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.length) > 0 && !((_b = this.mapInfos[0]) === null || _b === void 0 ? void 0 : _b.id))) {
|
|
96
|
-
validConfiguration = false;
|
|
97
|
-
}
|
|
98
|
-
return (h(Host, null, h("div", null, validConfiguration &&
|
|
99
|
-
h("calcite-shell", { "content-behind": true }, this._getReporter(), this._getMapNode()), !validConfiguration &&
|
|
100
|
-
h("calcite-notice", { class: "error-msg", icon: "configure", kind: "danger", open: true }, h("div", { slot: "title" }, this._translations.error), h("div", { slot: "message" }, this._translations.invalidConfigurationErrorMsg)))));
|
|
91
|
+
return (h(Host, null, h("div", null, h("calcite-shell", { "content-behind": true }, this._getReporter()))));
|
|
101
92
|
}
|
|
102
93
|
//--------------------------------------------------------------------------
|
|
103
94
|
//
|
|
@@ -125,11 +116,11 @@ const CrowdsourceReporter = class {
|
|
|
125
116
|
});
|
|
126
117
|
let sidePanelClass = "side-panel";
|
|
127
118
|
//in case of mobile handle for collapsed styles of the panel
|
|
128
|
-
if (this.
|
|
119
|
+
if (this.isMobile && this._sidePanelCollapsed) {
|
|
129
120
|
sidePanelClass += " collapsed-side-panel";
|
|
130
121
|
}
|
|
131
122
|
const themeClass = this.theme === "dark" ? "calcite-mode-dark" : "calcite-mode-light";
|
|
132
|
-
return (h("calcite-panel", { class: sidePanelClass + " " + themeClass }, this.
|
|
123
|
+
return (h("calcite-panel", { class: sidePanelClass + " width-full " + themeClass }, this.mapView
|
|
133
124
|
? h("calcite-flow", null, (renderLists === null || renderLists === void 0 ? void 0 : renderLists.length) > 0 && renderLists)
|
|
134
125
|
: h("calcite-loader", { scale: "m" })));
|
|
135
126
|
}
|
|
@@ -139,7 +130,7 @@ const CrowdsourceReporter = class {
|
|
|
139
130
|
* @protected
|
|
140
131
|
*/
|
|
141
132
|
getLayerListFlowItem() {
|
|
142
|
-
return (h("calcite-flow-item", { collapsed: this.
|
|
133
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this.reportsHeader }, this._hasValidLayers && h("calcite-action", { icon: "sort-ascending-arrow", slot: this.isMobile ? "header-menu-actions" : "header-actions-end", text: this._translations.sort, "text-enabled": this.isMobile }), this._hasValidLayers && h("calcite-action", { icon: "filter", slot: this.isMobile ? "header-menu-actions" : "header-actions-end", text: this._translations.filter, "text-enabled": this.isMobile }), this.isMobile && this.getActionToExpandCollapsePanel(), this._hasValidLayers && this.enableNewReports && h("calcite-button", { appearance: "secondary", slot: "footer", width: "full" }, this.reportButtonText), h("calcite-panel", { "full-height": true, "full-width": true }, h("layer-list", { class: "height-full", layers: this.layers, mapView: this.mapView, noLayerErrorMsg: this._translations.noLayerToDisplayErrorMsg, onLayerSelect: this.displayFeaturesList.bind(this), onLayersListLoaded: this.layerListLoaded.bind(this) }))));
|
|
143
134
|
}
|
|
144
135
|
/**
|
|
145
136
|
* When layer list is loaded, we will receive the list of layers, if its means we don't have any valid layer to be listed
|
|
@@ -190,14 +181,14 @@ const CrowdsourceReporter = class {
|
|
|
190
181
|
* @protected
|
|
191
182
|
*/
|
|
192
183
|
getFeatureListFlowItem(layerId, layerName) {
|
|
193
|
-
return (h("calcite-flow-item", { collapsed: this.
|
|
184
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: layerName, onCalciteFlowItemBack: this.backFromFeatureList.bind(this) }, h("calcite-action", { icon: "sort-ascending-arrow", slot: this.isMobile ? "header-menu-actions" : "header-actions-end", text: this._translations.sort, "text-enabled": this.isMobile }), h("calcite-action", { icon: "filter", slot: this.isMobile ? "header-menu-actions" : "header-actions-end", text: this._translations.filter, "text-enabled": this.isMobile }), this.isMobile && this.getActionToExpandCollapsePanel(), this.enableNewReports && h("calcite-button", { appearance: "secondary", slot: "footer", width: "full" }, this.reportButtonText), h("calcite-panel", { "full-height": true }, h("feature-list", { class: "height-full", highlightOnMap: true, mapView: this.mapView, noFeaturesFoundMsg: this._translations.featureErrorMsg, onFeatureSelect: this.onFeatureSelectFromList.bind(this), pageSize: 100, selectedLayerId: layerId }))));
|
|
194
185
|
}
|
|
195
186
|
/**
|
|
196
187
|
* Returns the calcite-flow item for feature details
|
|
197
188
|
* @returns Node
|
|
198
189
|
*/
|
|
199
190
|
getFeatureDetailsFlowItem() {
|
|
200
|
-
return (h("calcite-flow-item", { collapsed: this.
|
|
191
|
+
return (h("calcite-flow-item", { collapsed: this.isMobile && this._sidePanelCollapsed, heading: this._selectedLayerName, onCalciteFlowItemBack: this.backFromFeatureList.bind(this) }, this.isMobile && this.getActionToExpandCollapsePanel(), h("calcite-action", { icon: "share", slot: "header-actions-end", text: this._translations.share }), h("calcite-panel", { "full-height": true }, h("info-card", { allowEditing: false, graphics: this._selectedFeature, isLoading: false, isMobile: false, mapView: this.mapView, zoomAndScrollToSelected: true }))));
|
|
201
192
|
}
|
|
202
193
|
/**
|
|
203
194
|
* Returns the action button to Expand/Collapse side panel in mobile mode
|
|
@@ -205,51 +196,14 @@ const CrowdsourceReporter = class {
|
|
|
205
196
|
getActionToExpandCollapsePanel() {
|
|
206
197
|
return (h("calcite-action", { icon: this._sidePanelCollapsed ? "chevrons-up" : "chevrons-down", onClick: this.toggleSidePanel.bind(this), slot: "header-actions-end", text: this._sidePanelCollapsed ? this._translations.expand : this._translations.collapse }));
|
|
207
198
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Get the map node based for the current layout options
|
|
210
|
-
* @returns the map node
|
|
211
|
-
* @protected
|
|
212
|
-
*/
|
|
213
|
-
_getMapNode() {
|
|
214
|
-
var _a;
|
|
215
|
-
let mapContainerClass = "overflow-hidden map-container";
|
|
216
|
-
if (this._isMobile) {
|
|
217
|
-
if (this._sidePanelCollapsed) {
|
|
218
|
-
mapContainerClass += " map-container-mobile";
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
mapContainerClass += " height-full";
|
|
223
|
-
}
|
|
224
|
-
return (h("div", { class: mapContainerClass }, h("map-card", { class: "width-full", defaultWebmapId: this.defaultWebmap, enableBasemap: false, enableFloorFilter: false, enableFullscreen: false, enableHome: this.enableHome, enableLegend: true, enableSearch: this.enableSearch, enableSingleExpand: false, hidden: false, homeZoomIndex: 0, homeZoomPosition: "top-left", homeZoomToolsSize: "s", mapInfos: (_a = this.mapInfos) === null || _a === void 0 ? void 0 : _a.filter(mapInfo => mapInfo.visible !== false), mapWidgetsIndex: this.enableHome ? 4 : 3, mapWidgetsPosition: "top-left", mapWidgetsSize: "s", stackTools: false, theme: this.theme, toolOrder: ["search", "legend", "fullscreen", "basemap", "floorfilter"] })));
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Get the current map info (configuration details) when maps change
|
|
228
|
-
* @param id Id of the map to be returned
|
|
229
|
-
* @returns IMapInfo for the provided id
|
|
230
|
-
* @protected
|
|
231
|
-
*/
|
|
232
|
-
getMapInfo(id) {
|
|
233
|
-
let mapInfo;
|
|
234
|
-
this.mapInfos.some(mi => {
|
|
235
|
-
if (mi.id === id) {
|
|
236
|
-
mapInfo = mi;
|
|
237
|
-
return true;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
return Object.assign({}, mapInfo);
|
|
241
|
-
}
|
|
242
199
|
/**
|
|
243
200
|
* Set the current map info when maps change
|
|
244
201
|
* @protected
|
|
245
202
|
*/
|
|
246
203
|
async setMapView() {
|
|
247
|
-
this.
|
|
248
|
-
this._mapView = this._mapChange.mapView;
|
|
249
|
-
this.initMapZoom();
|
|
250
|
-
this._mapView.popupEnabled = false;
|
|
204
|
+
this.mapView.popupEnabled = false;
|
|
251
205
|
if (this._defaultCenter && this._defaultLevel) {
|
|
252
|
-
await this.
|
|
206
|
+
await this.mapView.goTo({
|
|
253
207
|
center: this._defaultCenter,
|
|
254
208
|
zoom: this._defaultLevel
|
|
255
209
|
});
|
|
@@ -257,22 +211,6 @@ const CrowdsourceReporter = class {
|
|
|
257
211
|
this._defaultLevel = undefined;
|
|
258
212
|
}
|
|
259
213
|
}
|
|
260
|
-
/**
|
|
261
|
-
* Add/remove zoom tools based on enableZoom prop
|
|
262
|
-
* @protected
|
|
263
|
-
*/
|
|
264
|
-
initMapZoom() {
|
|
265
|
-
if (!this.enableZoom) {
|
|
266
|
-
this._mapView.ui.remove("zoom");
|
|
267
|
-
}
|
|
268
|
-
else if (this.enableZoom) {
|
|
269
|
-
this._mapView.ui.add({
|
|
270
|
-
component: "zoom",
|
|
271
|
-
position: "top-left",
|
|
272
|
-
index: 0
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
214
|
/**
|
|
277
215
|
* Fetches the component's translations
|
|
278
216
|
* @returns Promise when complete
|
|
@@ -283,6 +221,10 @@ const CrowdsourceReporter = class {
|
|
|
283
221
|
this._translations = messages[0];
|
|
284
222
|
}
|
|
285
223
|
get el() { return getElement(this); }
|
|
224
|
+
static get watchers() { return {
|
|
225
|
+
"isMobile": ["isMobileWatchHandler"],
|
|
226
|
+
"mapView": ["mapViewWatchHandler"]
|
|
227
|
+
}; }
|
|
286
228
|
};
|
|
287
229
|
CrowdsourceReporter.style = crowdsourceReporterCss;
|
|
288
230
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
|
|
7
7
|
import { a as getAssetPath } from './index-7183ce4a.js';
|
|
8
|
-
import { l as loadModules } from './
|
|
8
|
+
import { l as loadModules } from './locale-731e75a8.js';
|
|
9
9
|
import { q as queryFeaturesByID } from './mapViewUtils-6daedef8.js';
|
|
10
10
|
import './solution-resource-7b8d302d.js';
|
|
11
11
|
import './index-a1e91462.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-37a9907e.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,9 +4,9 @@
|
|
|
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-a301c193.js';
|
|
8
8
|
import './index-7183ce4a.js';
|
|
9
|
-
import './
|
|
9
|
+
import './locale-731e75a8.js';
|
|
10
10
|
import './esri-loader-eda07632.js';
|
|
11
11
|
import './mapViewUtils-6daedef8.js';
|
|
12
12
|
import './interfaces-586e863c.js';
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7183ce4a.js';
|
|
7
|
-
import { g as getLocaleComponentStrings } from './locale-
|
|
7
|
+
import { g as getLocaleComponentStrings } from './locale-731e75a8.js';
|
|
8
8
|
import { E as ELayoutMode } from './interfaces-586e863c.js';
|
|
9
|
-
import './loadModules-cea493da.js';
|
|
10
9
|
import './esri-loader-eda07632.js';
|
|
11
10
|
import './_commonjsHelpers-d5f9d613.js';
|
|
12
11
|
|