@esri/solutions-components 0.6.14 → 0.6.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -1
- package/dist/cjs/edit-card_2.cjs.entry.js +24 -18
- package/dist/collection/components/edit-card/edit-card.js +25 -21
- package/dist/collection/components/map-layer-picker/map-layer-picker.css +2 -0
- package/dist/collection/demos/crowdsource-manager.html +2 -2
- package/dist/collection/demos/new-public-notification.html +3 -3
- package/dist/collection/utils/interfaces.ts +1 -1
- package/dist/components/edit-card2.js +24 -18
- package/dist/components/map-layer-picker2.js +1 -1
- package/dist/esm/calcite-combobox_6.entry.js +1 -1
- package/dist/esm/edit-card_2.entry.js +24 -18
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/solutions-components/demos/crowdsource-manager.html +2 -2
- package/dist/solutions-components/demos/new-public-notification.html +3 -3
- package/dist/solutions-components/{p-e76949eb.entry.js → p-83a52f9e.entry.js} +1 -1
- package/dist/solutions-components/p-ef6ec812.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +1 -1
- package/dist/types/components/edit-card/edit-card.d.ts +2 -9
- package/dist/types/utils/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/dist/solutions-components/p-b1c8c6d7.entry.js +0 -6
@@ -1681,7 +1681,7 @@ const DropdownItem = class {
|
|
1681
1681
|
};
|
1682
1682
|
DropdownItem.style = dropdownItemCss;
|
1683
1683
|
|
1684
|
-
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
1684
|
+
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%;height:100%}.map-layer-picker{position:relative;width:100%;display:inline-block;height:100%}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
1685
1685
|
|
1686
1686
|
const MapLayerPicker = class {
|
1687
1687
|
constructor(hostRef) {
|
@@ -37,20 +37,25 @@ const EditCard = class {
|
|
37
37
|
/**
|
38
38
|
* Watch for changes to the graphics and update the feature widget
|
39
39
|
*/
|
40
|
-
|
41
|
-
this.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
*/
|
46
|
-
graphicsWatchHandler() {
|
47
|
-
this._initEditorWidget();
|
40
|
+
async graphicsWatchHandler() {
|
41
|
+
if (this.graphics.length === 0) {
|
42
|
+
this._shouldClose = false;
|
43
|
+
this.closeEdit.emit();
|
44
|
+
}
|
48
45
|
}
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
46
|
+
async openWatchHandler(v) {
|
47
|
+
var _a;
|
48
|
+
if (v && ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphicIndex > -1) {
|
49
|
+
this._initEditorWidget();
|
50
|
+
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
51
|
+
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
52
|
+
this._shouldClose = true;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
if (!v) {
|
56
|
+
this._shouldClose = false;
|
57
|
+
this.closeEdit.emit();
|
58
|
+
}
|
54
59
|
}
|
55
60
|
//--------------------------------------------------------------------------
|
56
61
|
//
|
@@ -141,15 +146,17 @@ const EditCard = class {
|
|
141
146
|
this._attachmentHandle.remove();
|
142
147
|
this._activeWorkflowHandle.remove();
|
143
148
|
}
|
144
|
-
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
149
|
+
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
150
|
+
this._editor.viewModel.state === "editing-attachment" ||
|
151
|
+
this._editor.viewModel.state === "creating-features", () => {
|
145
152
|
this._shouldClose = false;
|
146
153
|
});
|
147
154
|
this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
|
148
155
|
if (this._shouldClose) {
|
149
|
-
this.closeEdit.emit();
|
150
156
|
this._shouldClose = false;
|
157
|
+
this.closeEdit.emit();
|
151
158
|
}
|
152
|
-
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
159
|
+
else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
153
160
|
void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
154
161
|
this._shouldClose = true;
|
155
162
|
}
|
@@ -174,9 +181,8 @@ const EditCard = class {
|
|
174
181
|
}
|
175
182
|
get el() { return index.getElement(this); }
|
176
183
|
static get watchers() { return {
|
177
|
-
"graphicIndex": ["graphicIndexWatchHandler"],
|
178
184
|
"graphics": ["graphicsWatchHandler"],
|
179
|
-
"
|
185
|
+
"open": ["openWatchHandler"]
|
180
186
|
}; }
|
181
187
|
};
|
182
188
|
EditCard.style = editCardCss;
|
@@ -41,20 +41,25 @@ export class EditCard {
|
|
41
41
|
/**
|
42
42
|
* Watch for changes to the graphics and update the feature widget
|
43
43
|
*/
|
44
|
-
|
45
|
-
this.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
*/
|
50
|
-
graphicsWatchHandler() {
|
51
|
-
this._initEditorWidget();
|
44
|
+
async graphicsWatchHandler() {
|
45
|
+
if (this.graphics.length === 0) {
|
46
|
+
this._shouldClose = false;
|
47
|
+
this.closeEdit.emit();
|
48
|
+
}
|
52
49
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
async openWatchHandler(v) {
|
51
|
+
var _a;
|
52
|
+
if (v && ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphicIndex > -1) {
|
53
|
+
this._initEditorWidget();
|
54
|
+
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
55
|
+
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
56
|
+
this._shouldClose = true;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
if (!v) {
|
60
|
+
this._shouldClose = false;
|
61
|
+
this.closeEdit.emit();
|
62
|
+
}
|
58
63
|
}
|
59
64
|
//--------------------------------------------------------------------------
|
60
65
|
//
|
@@ -145,15 +150,17 @@ export class EditCard {
|
|
145
150
|
this._attachmentHandle.remove();
|
146
151
|
this._activeWorkflowHandle.remove();
|
147
152
|
}
|
148
|
-
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
153
|
+
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
154
|
+
this._editor.viewModel.state === "editing-attachment" ||
|
155
|
+
this._editor.viewModel.state === "creating-features", () => {
|
149
156
|
this._shouldClose = false;
|
150
157
|
});
|
151
158
|
this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
|
152
159
|
if (this._shouldClose) {
|
153
|
-
this.closeEdit.emit();
|
154
160
|
this._shouldClose = false;
|
161
|
+
this.closeEdit.emit();
|
155
162
|
}
|
156
|
-
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
163
|
+
else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
157
164
|
void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
158
165
|
this._shouldClose = true;
|
159
166
|
}
|
@@ -308,14 +315,11 @@ export class EditCard {
|
|
308
315
|
static get elementRef() { return "el"; }
|
309
316
|
static get watchers() {
|
310
317
|
return [{
|
311
|
-
"propName": "graphicIndex",
|
312
|
-
"methodName": "graphicIndexWatchHandler"
|
313
|
-
}, {
|
314
318
|
"propName": "graphics",
|
315
319
|
"methodName": "graphicsWatchHandler"
|
316
320
|
}, {
|
317
|
-
"propName": "
|
318
|
-
"methodName": "
|
321
|
+
"propName": "open",
|
322
|
+
"methodName": "openWatchHandler"
|
319
323
|
}];
|
320
324
|
}
|
321
325
|
}
|
@@ -30,12 +30,12 @@
|
|
30
30
|
|
31
31
|
<link
|
32
32
|
rel="stylesheet"
|
33
|
-
href="https://
|
33
|
+
href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
|
34
34
|
/>
|
35
35
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
36
36
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
37
37
|
|
38
|
-
<script src="https://
|
38
|
+
<script src="https://jsdev.arcgis.com/4.28/"></script>
|
39
39
|
<script type="module" src="../solutions-components.esm.js"></script>
|
40
40
|
|
41
41
|
<script>
|
@@ -55,16 +55,16 @@
|
|
55
55
|
|
56
56
|
<link
|
57
57
|
rel="stylesheet"
|
58
|
-
href="https://
|
58
|
+
href="https://jsdev.arcgis.com/4.28/esri/themes/light/main.css"
|
59
59
|
/>
|
60
60
|
<!-- <link
|
61
61
|
rel="stylesheet"
|
62
|
-
href="https://
|
62
|
+
href="https://jsdev.arcgis.com/4.28/esri/themes/dark/main.css"
|
63
63
|
/> -->
|
64
64
|
<link rel="stylesheet" href="https://webapps-cdn.esri.com/CDN/fonts/v1.4.1/fonts.css" />
|
65
65
|
<link rel="stylesheet" href="../solutions-components.css" type="text/css">
|
66
66
|
|
67
|
-
<script src="https://
|
67
|
+
<script src="https://jsdev.arcgis.com/4.28/"></script>
|
68
68
|
<script type="module" src="../solutions-components.esm.js"></script>
|
69
69
|
|
70
70
|
<script>
|
@@ -450,7 +450,7 @@ export interface IMapInfo {
|
|
450
450
|
filters?: any[]; // TODO generate an interface for this once we know how it will be passed in
|
451
451
|
layerInfos?: ILayerInfo[];
|
452
452
|
_hasValidLayers?: boolean;
|
453
|
-
visible
|
453
|
+
visible?: boolean;
|
454
454
|
}
|
455
455
|
|
456
456
|
export interface ILayerInfo {
|
@@ -35,20 +35,25 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
35
35
|
/**
|
36
36
|
* Watch for changes to the graphics and update the feature widget
|
37
37
|
*/
|
38
|
-
|
39
|
-
this.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
*/
|
44
|
-
graphicsWatchHandler() {
|
45
|
-
this._initEditorWidget();
|
38
|
+
async graphicsWatchHandler() {
|
39
|
+
if (this.graphics.length === 0) {
|
40
|
+
this._shouldClose = false;
|
41
|
+
this.closeEdit.emit();
|
42
|
+
}
|
46
43
|
}
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
44
|
+
async openWatchHandler(v) {
|
45
|
+
var _a;
|
46
|
+
if (v && ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphicIndex > -1) {
|
47
|
+
this._initEditorWidget();
|
48
|
+
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
49
|
+
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
50
|
+
this._shouldClose = true;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
if (!v) {
|
54
|
+
this._shouldClose = false;
|
55
|
+
this.closeEdit.emit();
|
56
|
+
}
|
52
57
|
}
|
53
58
|
//--------------------------------------------------------------------------
|
54
59
|
//
|
@@ -139,15 +144,17 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
139
144
|
this._attachmentHandle.remove();
|
140
145
|
this._activeWorkflowHandle.remove();
|
141
146
|
}
|
142
|
-
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
147
|
+
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
148
|
+
this._editor.viewModel.state === "editing-attachment" ||
|
149
|
+
this._editor.viewModel.state === "creating-features", () => {
|
143
150
|
this._shouldClose = false;
|
144
151
|
});
|
145
152
|
this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
|
146
153
|
if (this._shouldClose) {
|
147
|
-
this.closeEdit.emit();
|
148
154
|
this._shouldClose = false;
|
155
|
+
this.closeEdit.emit();
|
149
156
|
}
|
150
|
-
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
157
|
+
else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
151
158
|
void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
152
159
|
this._shouldClose = true;
|
153
160
|
}
|
@@ -172,9 +179,8 @@ const EditCard = /*@__PURE__*/ proxyCustomElement(class EditCard extends HTMLEle
|
|
172
179
|
}
|
173
180
|
get el() { return this; }
|
174
181
|
static get watchers() { return {
|
175
|
-
"graphicIndex": ["graphicIndexWatchHandler"],
|
176
182
|
"graphics": ["graphicsWatchHandler"],
|
177
|
-
"
|
183
|
+
"open": ["openWatchHandler"]
|
178
184
|
}; }
|
179
185
|
static get style() { return editCardCss; }
|
180
186
|
}, [0, "edit-card", {
|
@@ -22,7 +22,7 @@ import { d as defineCustomElement$3 } from './option.js';
|
|
22
22
|
import { d as defineCustomElement$2 } from './select.js';
|
23
23
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
24
24
|
|
25
|
-
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
25
|
+
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%;height:100%}.map-layer-picker{position:relative;width:100%;display:inline-block;height:100%}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
26
26
|
|
27
27
|
const MapLayerPicker = /*@__PURE__*/ proxyCustomElement(class MapLayerPicker extends HTMLElement {
|
28
28
|
constructor() {
|
@@ -1677,7 +1677,7 @@ const DropdownItem = class {
|
|
1677
1677
|
};
|
1678
1678
|
DropdownItem.style = dropdownItemCss;
|
1679
1679
|
|
1680
|
-
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
1680
|
+
const mapLayerPickerCss = ":host{display:block}.map-layer-picker-container{width:100%;height:100%}.map-layer-picker{position:relative;width:100%;display:inline-block;height:100%}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}";
|
1681
1681
|
|
1682
1682
|
const MapLayerPicker = class {
|
1683
1683
|
constructor(hostRef) {
|
@@ -33,20 +33,25 @@ const EditCard = class {
|
|
33
33
|
/**
|
34
34
|
* Watch for changes to the graphics and update the feature widget
|
35
35
|
*/
|
36
|
-
|
37
|
-
this.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
*/
|
42
|
-
graphicsWatchHandler() {
|
43
|
-
this._initEditorWidget();
|
36
|
+
async graphicsWatchHandler() {
|
37
|
+
if (this.graphics.length === 0) {
|
38
|
+
this._shouldClose = false;
|
39
|
+
this.closeEdit.emit();
|
40
|
+
}
|
44
41
|
}
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
42
|
+
async openWatchHandler(v) {
|
43
|
+
var _a;
|
44
|
+
if (v && ((_a = this.graphics) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.graphicIndex > -1) {
|
45
|
+
this._initEditorWidget();
|
46
|
+
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
47
|
+
await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
48
|
+
this._shouldClose = true;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
if (!v) {
|
52
|
+
this._shouldClose = false;
|
53
|
+
this.closeEdit.emit();
|
54
|
+
}
|
50
55
|
}
|
51
56
|
//--------------------------------------------------------------------------
|
52
57
|
//
|
@@ -137,15 +142,17 @@ const EditCard = class {
|
|
137
142
|
this._attachmentHandle.remove();
|
138
143
|
this._activeWorkflowHandle.remove();
|
139
144
|
}
|
140
|
-
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
145
|
+
this._attachmentHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "adding-attachment" ||
|
146
|
+
this._editor.viewModel.state === "editing-attachment" ||
|
147
|
+
this._editor.viewModel.state === "creating-features", () => {
|
141
148
|
this._shouldClose = false;
|
142
149
|
});
|
143
150
|
this._editHandle = this.reactiveUtils.when(() => this._editor.viewModel.state === "ready", () => {
|
144
151
|
if (this._shouldClose) {
|
145
|
-
this.closeEdit.emit();
|
146
152
|
this._shouldClose = false;
|
153
|
+
this.closeEdit.emit();
|
147
154
|
}
|
148
|
-
if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
155
|
+
else if (this.graphicIndex > -1 && this.graphics.length > 0 && this.open && !this._shouldClose) {
|
149
156
|
void this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]);
|
150
157
|
this._shouldClose = true;
|
151
158
|
}
|
@@ -170,9 +177,8 @@ const EditCard = class {
|
|
170
177
|
}
|
171
178
|
get el() { return getElement(this); }
|
172
179
|
static get watchers() { return {
|
173
|
-
"graphicIndex": ["graphicIndexWatchHandler"],
|
174
180
|
"graphics": ["graphicsWatchHandler"],
|
175
|
-
"
|
181
|
+
"open": ["openWatchHandler"]
|
176
182
|
}; }
|
177
183
|
};
|
178
184
|
EditCard.style = editCardCss;
|