@esri/solutions-components 0.3.8 → 0.3.9
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/buffer-tools_6.cjs.entry.js +32 -31
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
- package/dist/cjs/{calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-d5d5499f.js → calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-cd8ad61e.js} +53 -19
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +2 -2
- package/dist/cjs/{index.es-43f519b3.js → index.es-e89ba2a1.js} +2 -2
- package/dist/cjs/layer-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{mapViewUtils-24d1d859.js → mapViewUtils-d250b1ed.js} +11 -6
- package/dist/cjs/public-notification.cjs.entry.js +3 -11
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +22 -20
- package/dist/collection/components/map-select-tools/map-select-tools.js +13 -0
- package/dist/collection/components/pdf-download/pdf-download.js +9 -19
- package/dist/collection/components/public-notification/public-notification.js +2 -30
- package/dist/collection/components/refine-selection/refine-selection.js +34 -14
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +34 -16
- package/dist/collection/demos/new-public-notification.html +1 -11
- package/dist/collection/utils/interfaces.ts +2 -0
- package/dist/collection/utils/mapViewUtils.js +11 -6
- package/dist/collection/utils/mapViewUtils.ts +11 -6
- package/dist/components/buffer-tools2.js +19 -16
- package/dist/components/map-layer-picker2.js +11 -6
- package/dist/components/map-select-tools2.js +11 -0
- package/dist/components/pdf-download2.js +9 -4
- package/dist/components/public-notification.js +2 -11
- package/dist/components/refine-selection-tools2.js +15 -16
- package/dist/components/refine-selection2.js +32 -15
- package/dist/esm/buffer-tools_6.entry.js +32 -31
- package/dist/esm/calcite-combobox_3.entry.js +1 -1
- package/dist/esm/{calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-b60306b8.js → calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-ddd74bd6.js} +53 -19
- package/dist/esm/calcite-input-message_5.entry.js +2 -2
- package/dist/esm/{index.es-4a2bee8f.js → index.es-8edafdb2.js} +2 -2
- package/dist/esm/layer-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mapViewUtils-c2fb048d.js → mapViewUtils-63e118f8.js} +11 -6
- package/dist/esm/public-notification.entry.js +3 -11
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/new-public-notification.html +1 -11
- package/dist/solutions-components/{p-21ae3f97.entry.js → p-117174e8.entry.js} +1 -1
- package/dist/solutions-components/p-15f9b0a0.entry.js +6 -0
- package/dist/solutions-components/{p-547cbe8a.js → p-238db156.js} +11 -11
- package/dist/solutions-components/{p-709c3f22.entry.js → p-2a96314a.entry.js} +2 -2
- package/dist/solutions-components/{p-b4be1c30.entry.js → p-6d28f991.entry.js} +1 -1
- package/dist/solutions-components/{p-1b7c13f8.js → p-98884f44.js} +1 -1
- package/dist/solutions-components/{p-c5f670fb.entry.js → p-c5341977.entry.js} +1 -1
- package/dist/solutions-components/p-cc2e20c8.js +36 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +2 -0
- package/dist/solutions-components/utils/mapViewUtils.ts +11 -6
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +2 -2
- package/dist/types/components/map-select-tools/map-select-tools.d.ts +6 -0
- package/dist/types/components/pdf-download/pdf-download.d.ts +0 -5
- package/dist/types/components/public-notification/public-notification.d.ts +1 -6
- package/dist/types/components/refine-selection/refine-selection.d.ts +6 -4
- package/dist/types/components/refine-selection-tools/refine-selection-tools.d.ts +5 -9
- package/dist/types/components.d.ts +19 -27
- package/dist/types/utils/interfaces.d.ts +2 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-b47d1a9a.entry.js +0 -6
- package/dist/solutions-components/p-cd7606eb.js +0 -36
- package/dist/types/components/json-editor/assets/monaco-editor/monaco.d.ts +0 -8262
@@ -20,7 +20,7 @@ const key = require('./key-55aca5c0.js');
|
|
20
20
|
const locale$1 = require('./locale-73cab8e8.js');
|
21
21
|
const publicNotificationStore = require('./publicNotificationStore-20e924f5.js');
|
22
22
|
const interfaces = require('./interfaces-17c631bf.js');
|
23
|
-
const mapViewUtils = require('./mapViewUtils-
|
23
|
+
const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
|
24
24
|
require('./_commonjsHelpers-384729db.js');
|
25
25
|
require('./resources-b56bce71.js');
|
26
26
|
require('./observers-5311faf8.js');
|
@@ -37,8 +37,8 @@ const BufferTools = class {
|
|
37
37
|
this.appearance = "text";
|
38
38
|
this.distance = 0;
|
39
39
|
this.geometries = [];
|
40
|
-
this.
|
41
|
-
this.
|
40
|
+
this.max = undefined;
|
41
|
+
this.min = 0;
|
42
42
|
this.sliderTicks = 10;
|
43
43
|
this.unionResults = true;
|
44
44
|
this.unit = "meters";
|
@@ -123,16 +123,19 @@ const BufferTools = class {
|
|
123
123
|
* @protected
|
124
124
|
*/
|
125
125
|
_setDistance(event) {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
this.
|
133
|
-
|
134
|
-
|
135
|
-
|
126
|
+
const v = parseInt(event.detail.value, 10);
|
127
|
+
if (this.distance !== v && v >= this.min) {
|
128
|
+
this.distanceChanged.emit({
|
129
|
+
oldValue: this.distance,
|
130
|
+
newValue: event.detail.value
|
131
|
+
});
|
132
|
+
this.distance = v;
|
133
|
+
if (this.distance > 0) {
|
134
|
+
this._buffer();
|
135
|
+
}
|
136
|
+
else {
|
137
|
+
this.bufferComplete.emit(undefined);
|
138
|
+
}
|
136
139
|
}
|
137
140
|
}
|
138
141
|
/**
|
@@ -175,7 +178,7 @@ const BufferTools = class {
|
|
175
178
|
* @protected
|
176
179
|
*/
|
177
180
|
_getTextBoxDisplay() {
|
178
|
-
return (index.h("div", { class: "c-container" }, index.h("calcite-input", { class: "padding-end-1", "number-button-type": "vertical", onCalciteInputInput: (evt) => this._setDistance(evt), placeholder: "0", type: "number", value: this.distance ? this.distance.toString() : undefined }), index.h("calcite-select", { class: "flex-1", label: "label", onCalciteSelectChange: () => this._setUnit(this._unitElement.value), ref: (el) => { this._unitElement = el; } }, this._getUnits())));
|
181
|
+
return (index.h("div", { class: "c-container" }, index.h("calcite-input", { class: "padding-end-1", max: this.max && this.max > 0 ? this.max : undefined, min: this.min, "number-button-type": "vertical", onCalciteInputInput: (evt) => this._setDistance(evt), placeholder: "0", type: "number", value: this.distance ? this.distance.toString() : undefined }), index.h("calcite-select", { class: "flex-1", label: "label", onCalciteSelectChange: () => this._setUnit(this._unitElement.value), ref: (el) => { this._unitElement = el; } }, this._getUnits())));
|
179
182
|
}
|
180
183
|
/**
|
181
184
|
* Render distance control as a slider
|
@@ -186,7 +189,7 @@ const BufferTools = class {
|
|
186
189
|
* @protected
|
187
190
|
*/
|
188
191
|
_getSliderDisplay() {
|
189
|
-
return (index.h("div", null, index.h("calcite-slider", { labelHandles: true, max: this.
|
192
|
+
return (index.h("div", null, index.h("calcite-slider", { labelHandles: true, max: this.max && this.max > 0 ? this.max : undefined, min: this.min, ticks: this.sliderTicks })));
|
190
193
|
}
|
191
194
|
/**
|
192
195
|
* Fetches the component's translations
|
@@ -1533,14 +1536,6 @@ const RefineSelectionTools = class {
|
|
1533
1536
|
* {<layer id>: Graphic[]}: Collection of graphics returned from queries to the layer
|
1534
1537
|
*/
|
1535
1538
|
this._featuresCollection = {};
|
1536
|
-
/**
|
1537
|
-
* IRefineOperation[]: Array to maintain the possible redo operations
|
1538
|
-
*/
|
1539
|
-
this._redoStack = [];
|
1540
|
-
/**
|
1541
|
-
* IRefineOperation[]: Array to maintain the possible undo operations
|
1542
|
-
*/
|
1543
|
-
this._undoStack = [];
|
1544
1539
|
this.active = false;
|
1545
1540
|
this.border = false;
|
1546
1541
|
this.enabledLayerIds = [];
|
@@ -1551,6 +1546,7 @@ const RefineSelectionTools = class {
|
|
1551
1546
|
this.mapView = undefined;
|
1552
1547
|
this.mode = undefined;
|
1553
1548
|
this.refineMode = undefined;
|
1549
|
+
this.refineSelectionSet = undefined;
|
1554
1550
|
this.useLayerPicker = true;
|
1555
1551
|
this._selectEnabled = false;
|
1556
1552
|
this._selectionMode = undefined;
|
@@ -1631,10 +1627,11 @@ const RefineSelectionTools = class {
|
|
1631
1627
|
* Renders the component.
|
1632
1628
|
*/
|
1633
1629
|
render() {
|
1630
|
+
var _a, _b;
|
1634
1631
|
const showLayerPickerClass = this.useLayerPicker ? "div-visible" : "div-not-visible";
|
1635
1632
|
const drawClass = this.border ? " border" : "";
|
1636
1633
|
const showUndoRedo = this.refineMode === interfaces.ERefineMode.ALL ? "div-visible" : "div-not-visible";
|
1637
|
-
return (index.h(index.Host, null, index.h("div", null, index.h("map-layer-picker", { class: showLayerPickerClass, enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }), index.h("div", { class: "margin-top-1" + drawClass }, index.h("div", { class: "esri-sketch esri-widget" }, index.h("div", { class: "esri-sketch__panel" }, index.h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: !this._selectEnabled, icon: "
|
1634
|
+
return (index.h(index.Host, null, index.h("div", null, index.h("map-layer-picker", { class: showLayerPickerClass, enabledLayerIds: this.enabledLayerIds, mapView: this.mapView, onLayerSelectionChange: (evt) => { void this._layerSelectionChange(evt); }, selectedLayerIds: this.layerViews.map(l => l.layer.id), selectionMode: "single" }), index.h("div", { class: "margin-top-1" + drawClass }, index.h("div", { class: "esri-sketch esri-widget" }, index.h("div", { class: "esri-sketch__panel" }, index.h("div", { class: "esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: !this._selectEnabled, icon: "pin", onClick: () => this._setSelectionMode(interfaces.ESelectionType.POINT), scale: "s", text: this._translations.select }), index.h("calcite-action", { disabled: !this._selectEnabled, icon: "line", onClick: () => this._setSelectionMode(interfaces.ESelectionType.LINE), scale: "s", text: this._translations.selectLine }), index.h("calcite-action", { disabled: !this._selectEnabled, icon: "polygon", onClick: () => this._setSelectionMode(interfaces.ESelectionType.POLY), scale: "s", text: this._translations.selectPolygon }), index.h("calcite-action", { disabled: !this._selectEnabled, icon: "rectangle", onClick: () => this._setSelectionMode(interfaces.ESelectionType.RECT), scale: "s", text: this._translations.selectRectangle })), index.h("div", { class: showUndoRedo + " esri-sketch__tool-section esri-sketch__section" }, index.h("calcite-action", { disabled: ((_a = this.refineSelectionSet) === null || _a === void 0 ? void 0 : _a.undoStack) ? this.refineSelectionSet.undoStack.length === 0 : true, icon: "undo", onClick: () => this._undo(), scale: "s", text: this._translations.undo }), index.h("calcite-action", { disabled: ((_b = this.refineSelectionSet) === null || _b === void 0 ? void 0 : _b.redoStack) ? this.refineSelectionSet.redoStack.length === 0 : true, icon: "redo", onClick: () => this._redo(), scale: "s", text: this._translations.redo }))))))));
|
1638
1635
|
}
|
1639
1636
|
//--------------------------------------------------------------------------
|
1640
1637
|
//
|
@@ -1824,7 +1821,7 @@ const RefineSelectionTools = class {
|
|
1824
1821
|
}
|
1825
1822
|
else {
|
1826
1823
|
const oids = Array.isArray(graphics) ? graphics.map(g => { var _a; return g.attributes[(_a = g === null || g === void 0 ? void 0 : g.layer) === null || _a === void 0 ? void 0 : _a.objectIdField]; }) : [];
|
1827
|
-
await this._updateIds(oids, this.mode, this.
|
1824
|
+
await this._updateIds(oids, this.mode, this.refineSelectionSet.undoStack, this.mode);
|
1828
1825
|
}
|
1829
1826
|
this._clear();
|
1830
1827
|
});
|
@@ -1867,12 +1864,16 @@ const RefineSelectionTools = class {
|
|
1867
1864
|
if (mode === interfaces.ESelectionMode.ADD) {
|
1868
1865
|
idUpdates.addIds = oids.filter(id => this.ids.indexOf(id) < 0);
|
1869
1866
|
this.ids = [...this.ids, ...idUpdates.addIds];
|
1870
|
-
|
1867
|
+
if (idUpdates.addIds.length > 0) {
|
1868
|
+
operationStack.push({ mode: operationMode, ids: idUpdates.addIds });
|
1869
|
+
}
|
1871
1870
|
}
|
1872
1871
|
else {
|
1873
1872
|
idUpdates.removeIds = oids.filter(id => this.ids.indexOf(id) > -1);
|
1874
1873
|
this.ids = this.ids.filter(id => idUpdates.removeIds.indexOf(id) < 0);
|
1875
|
-
|
1874
|
+
if (idUpdates.removeIds.length > 0) {
|
1875
|
+
operationStack.push({ mode: operationMode, ids: idUpdates.removeIds });
|
1876
|
+
}
|
1876
1877
|
}
|
1877
1878
|
await this._highlightFeatures(this.ids).then(() => {
|
1878
1879
|
this.refineSelectionIdsChange.emit(idUpdates);
|
@@ -1886,8 +1887,8 @@ const RefineSelectionTools = class {
|
|
1886
1887
|
* @protected
|
1887
1888
|
*/
|
1888
1889
|
_undo() {
|
1889
|
-
const undoOp = this.
|
1890
|
-
void this._updateIds(undoOp.ids, undoOp.mode === interfaces.ESelectionMode.ADD ? interfaces.ESelectionMode.REMOVE : interfaces.ESelectionMode.ADD, this.
|
1890
|
+
const undoOp = this.refineSelectionSet.undoStack.pop();
|
1891
|
+
void this._updateIds(undoOp.ids, undoOp.mode === interfaces.ESelectionMode.ADD ? interfaces.ESelectionMode.REMOVE : interfaces.ESelectionMode.ADD, this.refineSelectionSet.redoStack, undoOp.mode);
|
1891
1892
|
}
|
1892
1893
|
/**
|
1893
1894
|
* Redo the most current ADD or REMOVE operation
|
@@ -1897,8 +1898,8 @@ const RefineSelectionTools = class {
|
|
1897
1898
|
* @protected
|
1898
1899
|
*/
|
1899
1900
|
_redo() {
|
1900
|
-
const redoOp = this.
|
1901
|
-
void this._updateIds(redoOp.ids, redoOp.mode, this.
|
1901
|
+
const redoOp = this.refineSelectionSet.redoStack.pop();
|
1902
|
+
void this._updateIds(redoOp.ids, redoOp.mode, this.refineSelectionSet.undoStack, redoOp.mode);
|
1902
1903
|
}
|
1903
1904
|
/**
|
1904
1905
|
* Fetches the component's translations
|
@@ -20,7 +20,7 @@ const dom = require('./dom-4a580af6.js');
|
|
20
20
|
const openCloseComponent = require('./openCloseComponent-bf986132.js');
|
21
21
|
const debounce = require('./debounce-69c3bada.js');
|
22
22
|
const conditionalSlot = require('./conditionalSlot-baada7a3.js');
|
23
|
-
const mapViewUtils = require('./mapViewUtils-
|
23
|
+
const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
|
24
24
|
const publicNotificationStore = require('./publicNotificationStore-20e924f5.js');
|
25
25
|
require('./resources-b56bce71.js');
|
26
26
|
require('./interfaces-17c631bf.js');
|
@@ -10,7 +10,7 @@ const dom = require('./dom-4a580af6.js');
|
|
10
10
|
const interfaces = require('./interfaces-e76f31e9.js');
|
11
11
|
const conditionalSlot = require('./conditionalSlot-baada7a3.js');
|
12
12
|
const loadModules = require('./loadModules-918ff3e7.js');
|
13
|
-
const mapViewUtils = require('./mapViewUtils-
|
13
|
+
const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
|
14
14
|
const interfaces$1 = require('./interfaces-17c631bf.js');
|
15
15
|
const publicNotificationStore = require('./publicNotificationStore-20e924f5.js');
|
16
16
|
const locale = require('./locale-db1db902.js');
|
@@ -283,6 +283,16 @@ const MapSelectTools = class {
|
|
283
283
|
}
|
284
284
|
}
|
285
285
|
}
|
286
|
+
/**
|
287
|
+
* Called each time the searchConfiguration prop is changed.
|
288
|
+
*
|
289
|
+
* @returns Promise when complete
|
290
|
+
*/
|
291
|
+
async watchSearchConfigurationHandler(newValue, oldValue) {
|
292
|
+
if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {
|
293
|
+
this._initSearchWidget();
|
294
|
+
}
|
295
|
+
}
|
286
296
|
/**
|
287
297
|
* Called each time the workflowType prop is changed and emits the workflowTypeChange event.
|
288
298
|
*
|
@@ -701,6 +711,7 @@ const MapSelectTools = class {
|
|
701
711
|
get el() { return index.getElement(this); }
|
702
712
|
static get watchers() { return {
|
703
713
|
"geometries": ["watchGeometriesHandler"],
|
714
|
+
"searchConfiguration": ["watchSearchConfigurationHandler"],
|
704
715
|
"_workflowType": ["workflowTypeHandler"]
|
705
716
|
}; }
|
706
717
|
};
|
@@ -1925,7 +1936,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
|
|
1925
1936
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1926
1937
|
* ====================================================================
|
1927
1938
|
*/
|
1928
|
-
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-
|
1939
|
+
function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):Promise.resolve().then(function () { return require('./index.es-e89ba2a1.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},
|
1929
1940
|
/** ====================================================================
|
1930
1941
|
* @license
|
1931
1942
|
* jsPDF XMP metadata plugin
|
@@ -2953,7 +2964,6 @@ const PdfDownload = class {
|
|
2953
2964
|
constructor(hostRef) {
|
2954
2965
|
index.registerInstance(this, hostRef);
|
2955
2966
|
this.disabled = false;
|
2956
|
-
this.enabledSizeValues = [];
|
2957
2967
|
this.layerView = undefined;
|
2958
2968
|
this._translations = undefined;
|
2959
2969
|
}
|
@@ -3043,8 +3053,15 @@ const PdfDownload = class {
|
|
3043
3053
|
_convertPopupToLabelSpec(popupInfo) {
|
3044
3054
|
// Replace <br>, <br/> with |
|
3045
3055
|
popupInfo = popupInfo.replace(/<br\s*\/?>/gi, "|");
|
3046
|
-
// Remove remaining HTML tags
|
3047
|
-
|
3056
|
+
// Remove remaining HTML tags, replace 0xA0 that popup uses for spaces, replace some char representations,
|
3057
|
+
// and split the label back into individual lines
|
3058
|
+
let labelSpec = popupInfo
|
3059
|
+
.replace(/<[\s.]*[^<>]*\/?>/gi, "")
|
3060
|
+
.replace(/\xA0/gi, " ")
|
3061
|
+
.replace(/</gi, "<")
|
3062
|
+
.replace(/>/gi, ">")
|
3063
|
+
.replace(/ /gi, " ")
|
3064
|
+
.split("|");
|
3048
3065
|
// Trim lines and remove empties
|
3049
3066
|
labelSpec = labelSpec.map(line => line.trim()).filter(line => line.length > 0);
|
3050
3067
|
return labelSpec;
|
@@ -3158,6 +3175,19 @@ const RefineSelection = class {
|
|
3158
3175
|
this.SketchViewModel = undefined;
|
3159
3176
|
this._translations = undefined;
|
3160
3177
|
}
|
3178
|
+
//--------------------------------------------------------------------------
|
3179
|
+
//
|
3180
|
+
// Watch handlers
|
3181
|
+
//
|
3182
|
+
//--------------------------------------------------------------------------
|
3183
|
+
/**
|
3184
|
+
* Called each time the addresseeLayer is changed.
|
3185
|
+
* Add a new clean refine set for the new addressee layer.
|
3186
|
+
*/
|
3187
|
+
addresseeLayerWatchHandler() {
|
3188
|
+
const selectionSets = this.selectionSets.filter(ss => ss.workflowType !== interfaces$1.EWorkflowType.REFINE);
|
3189
|
+
this.selectionSets = this._initRefineSelectionSet(selectionSets);
|
3190
|
+
}
|
3161
3191
|
/**
|
3162
3192
|
* Handles changes to refine selection ids.
|
3163
3193
|
*
|
@@ -3179,12 +3209,16 @@ const RefineSelection = class {
|
|
3179
3209
|
*/
|
3180
3210
|
async componentWillLoad() {
|
3181
3211
|
await this._getTranslations();
|
3212
|
+
const refineSet = this._getRefineSelectionSet(this.selectionSets);
|
3213
|
+
if (!refineSet) {
|
3214
|
+
this.selectionSets = this._initRefineSelectionSet(this.selectionSets);
|
3215
|
+
}
|
3182
3216
|
}
|
3183
3217
|
/**
|
3184
3218
|
* Renders the component.
|
3185
3219
|
*/
|
3186
3220
|
render() {
|
3187
|
-
return (index.h(index.Host, null, index.h("div", { class: "padding-1" }, index.h("div", null, index.h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, index.h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.ADD), value: interfaces$1.ESelectionMode.ADD }, this._translations.add), index.h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.REMOVE), value: interfaces$1.ESelectionMode.REMOVE }, this._translations.remove)), index.h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: publicNotificationUtils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? interfaces$1.ESelectionMode.ADD : interfaces$1.ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, refineMode: interfaces$1.ERefineMode.ALL, useLayerPicker: false })), index.h("br", null), (index.h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
3221
|
+
return (index.h(index.Host, null, index.h("div", { class: "padding-1" }, index.h("div", null, index.h("calcite-radio-group", { class: "w-100", onCalciteRadioGroupChange: (evt) => this._modeChanged(evt) }, index.h("calcite-radio-group-item", { checked: this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.ADD), value: interfaces$1.ESelectionMode.ADD }, this._translations.add), index.h("calcite-radio-group-item", { checked: !this._addEnabled, class: "w-50", onClick: () => this._setSelectionMode(interfaces$1.ESelectionMode.REMOVE), value: interfaces$1.ESelectionMode.REMOVE }, this._translations.remove)), index.h("refine-selection-tools", { border: true, enabledLayerIds: this.enabledLayerIds, ids: publicNotificationUtils.getSelectionIds(this.selectionSets), layerViews: [this.addresseeLayer], mapView: this.mapView, mode: this._addEnabled ? interfaces$1.ESelectionMode.ADD : interfaces$1.ESelectionMode.REMOVE, ref: (el) => { this._refineTools = el; }, refineMode: interfaces$1.ERefineMode.ALL, refineSelectionSet: this._getRefineSelectionSet(this.selectionSets), useLayerPicker: false })), index.h("br", null), (index.h("calcite-list", { class: "list-border" }, this._getRefineSelectionSetList())))));
|
3188
3222
|
}
|
3189
3223
|
//--------------------------------------------------------------------------
|
3190
3224
|
//
|
@@ -3250,7 +3284,7 @@ const RefineSelection = class {
|
|
3250
3284
|
if (removeIds.length > 0) {
|
3251
3285
|
this.selectionSets = this.selectionSets.reduce((prev, cur) => {
|
3252
3286
|
cur.selectedIds = cur.selectedIds.filter(id => removeIds.indexOf(id) < 0);
|
3253
|
-
if (cur.selectedIds.length > 0) {
|
3287
|
+
if (cur.selectedIds.length > 0 || cur.workflowType === interfaces$1.EWorkflowType.REFINE) {
|
3254
3288
|
prev.push(cur);
|
3255
3289
|
}
|
3256
3290
|
return prev;
|
@@ -3269,9 +3303,7 @@ const RefineSelection = class {
|
|
3269
3303
|
*/
|
3270
3304
|
_updateRefineSelectionSet(addIds, removeIds) {
|
3271
3305
|
const selectionSet = this._getRefineSelectionSet(this.selectionSets);
|
3272
|
-
this.
|
3273
|
-
this._updateRefineIds(selectionSet, addIds, removeIds) :
|
3274
|
-
this._addRefineSelectionSet(addIds, removeIds);
|
3306
|
+
this._updateRefineIds(selectionSet, addIds, removeIds);
|
3275
3307
|
this.selectionSetsChanged.emit(this.selectionSets);
|
3276
3308
|
}
|
3277
3309
|
/**
|
@@ -3304,15 +3336,12 @@ const RefineSelection = class {
|
|
3304
3336
|
/**
|
3305
3337
|
* Add a new refine selection set
|
3306
3338
|
*
|
3307
|
-
* @param addIds any ids to add
|
3308
|
-
* @param removeIds any ids to remove
|
3309
|
-
*
|
3310
3339
|
* @returns updated selection sets
|
3311
3340
|
* @protected
|
3312
3341
|
*/
|
3313
|
-
|
3342
|
+
_initRefineSelectionSet(selectionSets) {
|
3314
3343
|
return [
|
3315
|
-
...
|
3344
|
+
...selectionSets,
|
3316
3345
|
({
|
3317
3346
|
buffer: undefined,
|
3318
3347
|
distance: 0,
|
@@ -3323,13 +3352,15 @@ const RefineSelection = class {
|
|
3323
3352
|
layerView: this.addresseeLayer,
|
3324
3353
|
refineSelectLayers: [],
|
3325
3354
|
searchResult: undefined,
|
3326
|
-
selectedIds:
|
3355
|
+
selectedIds: [],
|
3327
3356
|
unit: "feet",
|
3328
3357
|
workflowType: interfaces$1.EWorkflowType.REFINE,
|
3329
3358
|
refineIds: {
|
3330
|
-
addIds:
|
3331
|
-
removeIds:
|
3332
|
-
}
|
3359
|
+
addIds: [],
|
3360
|
+
removeIds: []
|
3361
|
+
},
|
3362
|
+
redoStack: [],
|
3363
|
+
undoStack: []
|
3333
3364
|
})
|
3334
3365
|
];
|
3335
3366
|
}
|
@@ -3370,6 +3401,9 @@ const RefineSelection = class {
|
|
3370
3401
|
return null;
|
3371
3402
|
}
|
3372
3403
|
get el() { return index.getElement(this); }
|
3404
|
+
static get watchers() { return {
|
3405
|
+
"addresseeLayer": ["addresseeLayerWatchHandler"]
|
3406
|
+
}; }
|
3373
3407
|
};
|
3374
3408
|
RefineSelection.style = refineSelectionCss;
|
3375
3409
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
9
9
|
|
10
|
-
const calciteInputMessage_calciteNotice_mapSelectTools_pdfDownload_refineSelection_entry = require('./calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-
|
10
|
+
const calciteInputMessage_calciteNotice_mapSelectTools_pdfDownload_refineSelection_entry = require('./calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-cd8ad61e.js');
|
11
11
|
require('./index-c6979cbb.js');
|
12
12
|
require('./dom-4a580af6.js');
|
13
13
|
require('./resources-b56bce71.js');
|
@@ -18,7 +18,7 @@ require('./observers-5311faf8.js');
|
|
18
18
|
require('./loadModules-918ff3e7.js');
|
19
19
|
require('./locale-db1db902.js');
|
20
20
|
require('./_commonjsHelpers-384729db.js');
|
21
|
-
require('./mapViewUtils-
|
21
|
+
require('./mapViewUtils-d250b1ed.js');
|
22
22
|
require('./interfaces-17c631bf.js');
|
23
23
|
require('./publicNotificationStore-20e924f5.js');
|
24
24
|
require('./index-763f87ac.js');
|
@@ -6,7 +6,7 @@
|
|
6
6
|
'use strict';
|
7
7
|
|
8
8
|
const _commonjsHelpers = require('./_commonjsHelpers-384729db.js');
|
9
|
-
const calciteInputMessage_calciteNotice_mapSelectTools_pdfDownload_refineSelection_entry = require('./calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-
|
9
|
+
const calciteInputMessage_calciteNotice_mapSelectTools_pdfDownload_refineSelection_entry = require('./calcite-input-message.calcite-notice.map-select-tools.pdf-download.refine-selection-cd8ad61e.js');
|
10
10
|
require('./index-c6979cbb.js');
|
11
11
|
require('./dom-4a580af6.js');
|
12
12
|
require('./resources-b56bce71.js');
|
@@ -16,7 +16,7 @@ require('./conditionalSlot-baada7a3.js');
|
|
16
16
|
require('./observers-5311faf8.js');
|
17
17
|
require('./loadModules-918ff3e7.js');
|
18
18
|
require('./locale-db1db902.js');
|
19
|
-
require('./mapViewUtils-
|
19
|
+
require('./mapViewUtils-d250b1ed.js');
|
20
20
|
require('./interfaces-17c631bf.js');
|
21
21
|
require('./publicNotificationStore-20e924f5.js');
|
22
22
|
require('./index-763f87ac.js');
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
10
10
|
const index = require('./index-c6979cbb.js');
|
11
11
|
const locale = require('./locale-db1db902.js');
|
12
|
-
const mapViewUtils = require('./mapViewUtils-
|
12
|
+
const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
|
13
13
|
const csvUtils = require('./csvUtils-3a56c6d8.js');
|
14
14
|
require('./_commonjsHelpers-384729db.js');
|
15
15
|
require('./interfaces-17c631bf.js');
|