@esri/solutions-components 0.7.39 → 0.7.40
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/calcite-alert_4.cjs.entry.js +1 -1
- package/dist/cjs/calcite-combobox_5.cjs.entry.js +1 -1
- package/dist/cjs/calcite-flow_5.cjs.entry.js +1 -1
- package/dist/cjs/calcite-input-date-picker_3.cjs.entry.js +70 -31
- package/dist/cjs/card-manager_3.cjs.entry.js +29 -13
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +3 -1
- package/dist/cjs/{downloadUtils-c22a71da.js → downloadUtils-b10e3b8c.js} +2 -2
- package/dist/cjs/{index.es-8d317f5e.js → index.es-b9d6eff6.js} +2 -2
- package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -4
- package/dist/cjs/instant-apps-export.cjs.entry.js +20 -21
- package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
- package/dist/cjs/instant-apps-language-translator.cjs.entry.js +1 -1
- package/dist/cjs/instant-apps-splash.cjs.entry.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-cd29b129.js → mapViewUtils-290dbc9e.js} +4 -0
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
- package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +36 -0
- package/dist/collection/components/layer-table/layer-table.js +28 -11
- package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
- package/dist/collection/components/map-legend/map-legend.css +3 -3
- package/dist/collection/utils/interfaces.ts +1 -0
- package/dist/collection/utils/queryUtils.js +4 -0
- package/dist/collection/utils/queryUtils.ts +5 -0
- package/dist/components/crowdsource-reporter.js +4 -0
- package/dist/components/instant-apps-export.js +20 -21
- package/dist/components/instant-apps-filter-list2.js +70 -31
- package/dist/components/instant-apps-header2.js +1 -1
- package/dist/components/instant-apps-language-switcher.js +3 -3
- package/dist/components/instant-apps-language-translator-item2.js +5 -4
- package/dist/components/instant-apps-language-translator2.js +1 -1
- package/dist/components/instant-apps-splash.js +3 -7
- package/dist/components/layer-table2.js +28 -11
- package/dist/components/queryUtils.js +4 -0
- package/dist/esm/calcite-alert_4.entry.js +1 -1
- package/dist/esm/calcite-combobox_5.entry.js +1 -1
- package/dist/esm/calcite-flow_5.entry.js +1 -1
- package/dist/esm/calcite-input-date-picker_3.entry.js +70 -31
- package/dist/esm/card-manager_3.entry.js +29 -13
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +3 -1
- package/dist/esm/{downloadUtils-985dcd1c.js → downloadUtils-20d22198.js} +2 -2
- package/dist/esm/{index.es-03d8386e.js → index.es-8b85f68d.js} +2 -2
- package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -4
- package/dist/esm/instant-apps-export.entry.js +20 -21
- package/dist/esm/instant-apps-header.entry.js +1 -1
- package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
- package/dist/esm/instant-apps-language-translator.entry.js +1 -1
- package/dist/esm/instant-apps-splash.entry.js +3 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-257bc9b3.js → mapViewUtils-a177d4f9.js} +4 -0
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solutions-components.js +1 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-filter-list/instant-apps-filter-list.css +8 -1
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-header/instant-apps-header.css +3 -0
- package/dist/node_modules/@esri/instant-apps-components/dist/collection/components/instant-apps-splash/instant-apps-splash.css +3 -0
- package/dist/solutions-components/{p-8571c89f.entry.js → p-044cd52c.entry.js} +1 -1
- package/dist/solutions-components/{p-df048b47.js → p-17e328bb.js} +1 -1
- package/dist/solutions-components/p-207fd378.entry.js +6 -0
- package/dist/solutions-components/{p-12492469.entry.js → p-2283ae14.entry.js} +1 -1
- package/dist/solutions-components/p-2f017ad2.entry.js +6 -0
- package/dist/solutions-components/{p-20b206f3.entry.js → p-32adb2cc.entry.js} +1 -1
- package/dist/solutions-components/p-3eedaead.js +36 -0
- package/dist/solutions-components/{p-2f840f08.entry.js → p-42233edc.entry.js} +1 -1
- package/dist/solutions-components/p-4742efa8.entry.js +6 -0
- package/dist/solutions-components/p-57087d57.entry.js +17 -0
- package/dist/solutions-components/{p-23e58d7c.entry.js → p-59c6f63f.entry.js} +1 -1
- package/dist/solutions-components/{p-34eaca46.entry.js → p-69a1df0f.entry.js} +1 -1
- package/dist/solutions-components/{p-6419f8d7.entry.js → p-6fe5e1d5.entry.js} +1 -1
- package/dist/solutions-components/p-7480ac64.entry.js +6 -0
- package/dist/solutions-components/p-aecf92f4.entry.js +6 -0
- package/dist/solutions-components/p-cacd0307.entry.js +6 -0
- package/dist/solutions-components/p-e2b0b3fa.entry.js +6 -0
- package/dist/solutions-components/{p-00ba5a2a.js → p-f6536eae.js} +2 -2
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/interfaces.ts +1 -0
- package/dist/solutions-components/utils/queryUtils.ts +5 -0
- package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -0
- package/dist/types/components/layer-table/layer-table.d.ts +9 -1
- package/dist/types/components.d.ts +16 -0
- package/dist/types/utils/interfaces.d.ts +1 -0
- package/dist/types/utils/queryUtils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/solutions-components/p-09b48b1b.entry.js +0 -6
- package/dist/solutions-components/p-32fed23c.entry.js +0 -17
- package/dist/solutions-components/p-6a61c742.entry.js +0 -6
- package/dist/solutions-components/p-9161dca9.entry.js +0 -6
- package/dist/solutions-components/p-93369c9f.entry.js +0 -6
- package/dist/solutions-components/p-96f5be25.js +0 -36
- package/dist/solutions-components/p-97425481.entry.js +0 -6
- package/dist/solutions-components/p-ae4c8b8c.entry.js +0 -6
- package/dist/solutions-components/p-eb0f4ede.entry.js +0 -6
@@ -1,19 +1,19 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
:host {
|
18
|
-
display: block;
|
19
|
-
}
|
1
|
+
/** @license
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
:host {
|
18
|
+
display: block;
|
19
|
+
}
|
@@ -37,6 +37,8 @@ export class CrowdsourceReporter {
|
|
37
37
|
this.mapView = undefined;
|
38
38
|
this.layerId = undefined;
|
39
39
|
this.objectId = undefined;
|
40
|
+
this.center = undefined;
|
41
|
+
this.level = undefined;
|
40
42
|
this.reportButtonText = undefined;
|
41
43
|
this.reportsHeader = undefined;
|
42
44
|
this.reportSubmittedMessage = undefined;
|
@@ -760,6 +762,40 @@ export class CrowdsourceReporter {
|
|
760
762
|
"attribute": "object-id",
|
761
763
|
"reflect": false
|
762
764
|
},
|
765
|
+
"center": {
|
766
|
+
"type": "string",
|
767
|
+
"mutable": false,
|
768
|
+
"complexType": {
|
769
|
+
"original": "string",
|
770
|
+
"resolved": "string",
|
771
|
+
"references": {}
|
772
|
+
},
|
773
|
+
"required": false,
|
774
|
+
"optional": false,
|
775
|
+
"docs": {
|
776
|
+
"tags": [],
|
777
|
+
"text": "string: Semicolon delimited numbers that will be used as the maps center point from URL params"
|
778
|
+
},
|
779
|
+
"attribute": "center",
|
780
|
+
"reflect": false
|
781
|
+
},
|
782
|
+
"level": {
|
783
|
+
"type": "string",
|
784
|
+
"mutable": false,
|
785
|
+
"complexType": {
|
786
|
+
"original": "string",
|
787
|
+
"resolved": "string",
|
788
|
+
"references": {}
|
789
|
+
},
|
790
|
+
"required": false,
|
791
|
+
"optional": false,
|
792
|
+
"docs": {
|
793
|
+
"tags": [],
|
794
|
+
"text": "string: Id of the zoom level from URL params"
|
795
|
+
},
|
796
|
+
"attribute": "level",
|
797
|
+
"reflect": false
|
798
|
+
},
|
763
799
|
"reportButtonText": {
|
764
800
|
"type": "string",
|
765
801
|
"mutable": false,
|
@@ -91,6 +91,7 @@ export class LayerTable {
|
|
91
91
|
this.showNewestFirst = undefined;
|
92
92
|
this.zoomAndScrollToSelected = undefined;
|
93
93
|
this._controlsThatFit = undefined;
|
94
|
+
this._csvExporting = false;
|
94
95
|
this._fetchingData = false;
|
95
96
|
this._filterActive = false;
|
96
97
|
this._filterOpen = false;
|
@@ -367,8 +368,8 @@ export class LayerTable {
|
|
367
368
|
if (cur && !cur.isOverflow) {
|
368
369
|
prev.push(cur.isDanger ?
|
369
370
|
this._getDangerAction(cur.icon, cur.label, cur.func, cur.disabled) :
|
370
|
-
cur.isSublist ? (h("calcite-dropdown", { closeOnSelectDisabled: true, id: this._getId(cur.icon), onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._showHideDropdown = el }, this._getAction(cur.active, this._showHideOpen ? "chevron-down" : cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, "trigger"), this._showHideOpen ? this._getFieldlist() : undefined)) :
|
371
|
-
this._getAction(cur.active, cur.icon, cur.indicator, cur.label, cur.func, cur.disabled));
|
371
|
+
cur.isSublist ? (h("calcite-dropdown", { closeOnSelectDisabled: true, id: this._getId(cur.icon), onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._showHideDropdown = el }, this._getAction(cur.active, this._showHideOpen ? "chevron-down" : cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, cur.loading, "trigger"), this._showHideOpen ? this._getFieldlist() : undefined)) :
|
372
|
+
this._getAction(cur.active, cur.icon, cur.indicator, cur.label, cur.func, cur.disabled, cur.loading));
|
372
373
|
}
|
373
374
|
return prev;
|
374
375
|
}, []);
|
@@ -520,6 +521,7 @@ export class LayerTable {
|
|
520
521
|
indicator: false,
|
521
522
|
func: () => void this._exportToCSV(),
|
522
523
|
label: this._translations.exportCSV,
|
524
|
+
loading: this._csvExporting,
|
523
525
|
disabled: featuresEmpty,
|
524
526
|
isOverflow: false
|
525
527
|
} : undefined, {
|
@@ -704,7 +706,7 @@ export class LayerTable {
|
|
704
706
|
_getDropdown(id) {
|
705
707
|
const dropdownItems = this._getDropdownItems();
|
706
708
|
return dropdownItems.length > 0 ? (h("calcite-dropdown", { closeOnSelectDisabled: true, disabled: this._layer === undefined, id: "solutions-more", onCalciteDropdownBeforeClose: () => this._forceShowHide(), ref: (el) => this._moreDropdown = el }, h("calcite-action", { appearance: "solid", id: id, label: "", onClick: () => this._closeShowHide(), slot: "trigger", text: "" }, h("calcite-button", { appearance: "transparent", iconEnd: "chevron-down", kind: "neutral" }, this._translations.more)), h("calcite-dropdown-group", { "selection-mode": "none" }, dropdownItems.map(item => {
|
707
|
-
return (h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: item.disabled ? "none" : "single" }, h("calcite-dropdown-item", { iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.label)));
|
709
|
+
return (h("calcite-dropdown-group", { class: item.disabled ? "disabled" : "", selectionMode: item.disabled ? "none" : "single" }, h("calcite-dropdown-item", { disabled: item.loading, iconStart: item.isSublist && this._showHideOpen ? "chevron-down" : item.loading ? "" : item.icon, id: "solutions-subset-list", onClick: item.func }, item.loading ? (h("div", { class: "display-flex" }, h("calcite-loader", { inline: true, label: item.label, scale: "m" }), item.label)) : item.label)));
|
708
710
|
})), this._showHideOpen ? this._getFieldlist() : undefined)) : undefined;
|
709
711
|
}
|
710
712
|
/**
|
@@ -726,9 +728,9 @@ export class LayerTable {
|
|
726
728
|
*
|
727
729
|
* @returns VNode The node representing the DOM element that will contain the action
|
728
730
|
*/
|
729
|
-
_getAction(active, icon, indicator, label, func, disabled, slot) {
|
731
|
+
_getAction(active, icon, indicator, label, func, disabled, loading, slot) {
|
730
732
|
const _disabled = this._layer === undefined ? true : disabled;
|
731
|
-
return (h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: icon, indicator: indicator, label: label, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
|
733
|
+
return (h("div", { class: "display-flex", id: this._getId(icon), slot: slot }, h("calcite-action", { active: active, appearance: "solid", disabled: _disabled, icon: icon, id: icon, indicator: indicator, label: label, loading: loading, onClick: func, text: label, textEnabled: true }), this._getToolTip("bottom", icon, label)));
|
732
734
|
}
|
733
735
|
/**
|
734
736
|
* Get an action and tooltip for share
|
@@ -1182,13 +1184,9 @@ export class LayerTable {
|
|
1182
1184
|
const hitTestResult = await this.mapView.hitTest(evt.screenPoint, opts);
|
1183
1185
|
if (hitTestResult.results.length > 0) {
|
1184
1186
|
hitTestResult.results.forEach((result) => {
|
1185
|
-
this._clearSelection();
|
1186
1187
|
const id = result.graphic.getObjectId();
|
1187
1188
|
const index = this._table.highlightIds.indexOf(id);
|
1188
|
-
if (index
|
1189
|
-
this._table.highlightIds.removeAt(index);
|
1190
|
-
}
|
1191
|
-
else {
|
1189
|
+
if (index < 0) {
|
1192
1190
|
this._table.highlightIds.add(id);
|
1193
1191
|
}
|
1194
1192
|
});
|
@@ -1196,6 +1194,9 @@ export class LayerTable {
|
|
1196
1194
|
this._table.filterBySelection();
|
1197
1195
|
}
|
1198
1196
|
}
|
1197
|
+
else {
|
1198
|
+
this._clearSelection();
|
1199
|
+
}
|
1199
1200
|
}
|
1200
1201
|
/**
|
1201
1202
|
* Select or deselect all rows
|
@@ -1284,11 +1285,26 @@ export class LayerTable {
|
|
1284
1285
|
}
|
1285
1286
|
return prev;
|
1286
1287
|
}, []);
|
1287
|
-
|
1288
|
+
this._updateToolInfoLoading("export", true);
|
1289
|
+
this._csvExporting = true;
|
1290
|
+
await downloadUtils.downloadCSV(null, //???
|
1288
1291
|
exportInfos, false, // formatUsingLayerPopup
|
1289
1292
|
false, // removeDuplicates
|
1290
1293
|
true, // addColumnTitle
|
1291
1294
|
fields, true);
|
1295
|
+
this._updateToolInfoLoading("export", false);
|
1296
|
+
this._csvExporting = false;
|
1297
|
+
}
|
1298
|
+
/**
|
1299
|
+
* Set the loading prop in the stored toolInfos
|
1300
|
+
*/
|
1301
|
+
_updateToolInfoLoading(name, isLoading) {
|
1302
|
+
this._toolInfos.some(tool => {
|
1303
|
+
if ((tool === null || tool === void 0 ? void 0 : tool.icon) === name) {
|
1304
|
+
tool.loading = isLoading;
|
1305
|
+
return true;
|
1306
|
+
}
|
1307
|
+
});
|
1292
1308
|
}
|
1293
1309
|
/**
|
1294
1310
|
* Refreshes the table and maintains the curent scroll position
|
@@ -1744,6 +1760,7 @@ export class LayerTable {
|
|
1744
1760
|
static get states() {
|
1745
1761
|
return {
|
1746
1762
|
"_controlsThatFit": {},
|
1763
|
+
"_csvExporting": {},
|
1747
1764
|
"_fetchingData": {},
|
1748
1765
|
"_filterActive": {},
|
1749
1766
|
"_filterOpen": {},
|
@@ -1,19 +1,19 @@
|
|
1
|
-
/** @license
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
:host {
|
18
|
-
display: block;
|
19
|
-
}
|
1
|
+
/** @license
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
:host {
|
18
|
+
display: block;
|
19
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
1
|
+
:host {
|
2
|
+
display: block;
|
3
|
+
}
|
@@ -95,6 +95,7 @@ export async function queryObjectIds(geometries, layer) {
|
|
95
95
|
}
|
96
96
|
/**
|
97
97
|
* Query the layer for features that have the provided OIDs
|
98
|
+
* If no ids are provided all features will be returned
|
98
99
|
*
|
99
100
|
* @param ids array of ObjectIDs to be used to query for features in a layer
|
100
101
|
* @param layer the layer to retrieve features from
|
@@ -119,6 +120,9 @@ export async function queryFeaturesByID(ids, layer, graphics, returnGeometry, ou
|
|
119
120
|
if (fields) {
|
120
121
|
q.outFields = fields;
|
121
122
|
}
|
123
|
+
if (ids.length === 0) {
|
124
|
+
ids = await layer.queryObjectIds();
|
125
|
+
}
|
122
126
|
const result = await layer.queryFeatures(q);
|
123
127
|
graphics = graphics.concat(result.features);
|
124
128
|
const remainingIds = ids.slice(num, ids.length);
|
@@ -114,6 +114,7 @@ export async function queryObjectIds(
|
|
114
114
|
|
115
115
|
/**
|
116
116
|
* Query the layer for features that have the provided OIDs
|
117
|
+
* If no ids are provided all features will be returned
|
117
118
|
*
|
118
119
|
* @param ids array of ObjectIDs to be used to query for features in a layer
|
119
120
|
* @param layer the layer to retrieve features from
|
@@ -146,6 +147,10 @@ export async function queryFeaturesByID(
|
|
146
147
|
q.outFields = fields;
|
147
148
|
}
|
148
149
|
|
150
|
+
if (ids.length === 0) {
|
151
|
+
ids = await layer.queryObjectIds();
|
152
|
+
}
|
153
|
+
|
149
154
|
const result = await layer.queryFeatures(q);
|
150
155
|
|
151
156
|
graphics = graphics.concat(
|
@@ -59,6 +59,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
59
59
|
this.mapView = undefined;
|
60
60
|
this.layerId = undefined;
|
61
61
|
this.objectId = undefined;
|
62
|
+
this.center = undefined;
|
63
|
+
this.level = undefined;
|
62
64
|
this.reportButtonText = undefined;
|
63
65
|
this.reportsHeader = undefined;
|
64
66
|
this.reportSubmittedMessage = undefined;
|
@@ -583,6 +585,8 @@ const CrowdsourceReporter$1 = /*@__PURE__*/ proxyCustomElement(class Crowdsource
|
|
583
585
|
"mapView": [16],
|
584
586
|
"layerId": [1, "layer-id"],
|
585
587
|
"objectId": [1, "object-id"],
|
588
|
+
"center": [1],
|
589
|
+
"level": [1],
|
586
590
|
"reportButtonText": [1, "report-button-text"],
|
587
591
|
"reportsHeader": [1, "reports-header"],
|
588
592
|
"reportSubmittedMessage": [1, "report-submitted-message"],
|
@@ -115,7 +115,7 @@ const printStyling = `
|
|
115
115
|
flex-flow: row wrap;
|
116
116
|
}
|
117
117
|
|
118
|
-
.instant-apps-export-print .esri-widget > *:not(.
|
118
|
+
.instant-apps-export-print .esri-widget > *:not(.esri-scale-bar.esri-widget > *) {
|
119
119
|
background: #fff;
|
120
120
|
color: #323232;
|
121
121
|
}
|
@@ -200,6 +200,10 @@ const printStyling = `
|
|
200
200
|
left: 15px;
|
201
201
|
}
|
202
202
|
|
203
|
+
.instant-apps-export-print__scale-bar-container .esri-scale-bar__label {
|
204
|
+
font-size: 10px;
|
205
|
+
}
|
206
|
+
|
203
207
|
.instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {
|
204
208
|
display: none;
|
205
209
|
}
|
@@ -436,8 +440,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
436
440
|
return (h("div", { ref: (el) => (this.printContainerEl = el) }, h("div", { class: CSS.print.base, ref: (el) => (this.printEl = el) }, printMap, legend, h("div", { class: CSS.print.contentContainer }, popup, extraContent))));
|
437
441
|
}
|
438
442
|
renderPrintMap() {
|
439
|
-
|
440
|
-
return (h("div", { class: CSS.print.viewContainer, ref: (el) => (this.viewContainerEl = el) }, h("div", { class: CSS.print.viewWrapper, ref: (el) => (this.viewWrapperEl = el) }, this.headerTitle ? h("instant-apps-header", { titleText: this.headerTitle, backgroundColor: "#fff", textColor: "#323232" }) : null, h("img", { class: CSS.print.view, ref: (el) => (this.viewEl = el) }), scaleBar)));
|
443
|
+
return (h("div", { class: CSS.print.viewContainer, ref: (el) => (this.viewContainerEl = el) }, h("div", { class: CSS.print.viewWrapper, ref: (el) => (this.viewWrapperEl = el) }, this.headerTitle ? h("instant-apps-header", { titleText: this.headerTitle, backgroundColor: "#fff", textColor: "#323232" }) : null, h("img", { class: CSS.print.view, ref: (el) => (this.viewEl = el) }), h("div", { class: CSS.print.scaleBarContainer, ref: this.handleScaleBarContainerEl.bind(this) }))));
|
441
444
|
}
|
442
445
|
renderLegend() {
|
443
446
|
return h("div", { class: CSS.print.legendContainer, ref: (el) => (this.legendContainerEl = el) });
|
@@ -445,9 +448,6 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
445
448
|
renderCompass() {
|
446
449
|
return h("div", { class: CSS.print.compassContainer, ref: (el) => (this.compassContainerEl = el) });
|
447
450
|
}
|
448
|
-
renderScaleBar() {
|
449
|
-
return h("div", { class: CSS.print.scaleBarContainer, ref: (el) => (this.scaleBarContainerEl = el) });
|
450
|
-
}
|
451
451
|
renderPopup() {
|
452
452
|
return (h("div", { class: CSS.print.popupContainer, ref: (el) => (this.popupContainerEl = el) }, h("div", { ref: (el) => (this.popupTitleEl = el), class: CSS.print.popupTitle }), h("div", { ref: (el) => (this.popupContentEl = el), class: CSS.print.popupContent })));
|
453
453
|
}
|
@@ -591,7 +591,6 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
591
591
|
handleWidgetCreation() {
|
592
592
|
this.handleLegendCreation();
|
593
593
|
this.handleCompassCreation();
|
594
|
-
this.handleScaleBarCreation();
|
595
594
|
}
|
596
595
|
handleLegendCreation() {
|
597
596
|
var _a, _b;
|
@@ -646,24 +645,12 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
646
645
|
this.compass = new Compass({ container, view });
|
647
646
|
});
|
648
647
|
}
|
649
|
-
handleScaleBarCreation() {
|
650
|
-
var _a, _b;
|
651
|
-
if (this.showScaleBar && this.includeMap && this.view != null && this.view.type === '2d' && this.scaleBarContainerEl != null) {
|
652
|
-
const map = this.view.map;
|
653
|
-
const scaleBarMap = (_b = (_a = this.scaleBar) === null || _a === void 0 ? void 0 : _a.view) === null || _b === void 0 ? void 0 : _b.map;
|
654
|
-
const checkId = (map === null || map === void 0 ? void 0 : map.portalItem.id) === (scaleBarMap === null || scaleBarMap === void 0 ? void 0 : scaleBarMap.portalItem.id) && this.scaleBarContainerEl.innerHTML;
|
655
|
-
if (!checkId) {
|
656
|
-
this.updateScaleBar();
|
657
|
-
}
|
658
|
-
}
|
659
|
-
}
|
660
648
|
updateScaleBar() {
|
661
649
|
var _a;
|
662
650
|
(_a = this.view) === null || _a === void 0 ? void 0 : _a.when(async (view) => {
|
663
651
|
var _a;
|
664
652
|
(_a = this.scaleBar) === null || _a === void 0 ? void 0 : _a.destroy();
|
665
653
|
this.scaleBar = null;
|
666
|
-
this.scaleBarContainerEl.innerHTML = '';
|
667
654
|
const [ScaleBar] = await loadModules(['esri/widgets/ScaleBar']);
|
668
655
|
this.scaleBar = new ScaleBar({ container: this.scaleBarContainerEl, unit: 'dual', view });
|
669
656
|
});
|
@@ -844,7 +831,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
844
831
|
}
|
845
832
|
handleScaleBarSize() {
|
846
833
|
var _a;
|
847
|
-
if (((_a = this.view) === null || _a === void 0 ? void 0 : _a.type) === '2d') {
|
834
|
+
if (this.showScaleBar && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.type) === '2d') {
|
848
835
|
if (this.scaleBarContainerEl != null) {
|
849
836
|
const topBar = this.scaleBarContainerEl.querySelector('.esri-scale-bar__line--top');
|
850
837
|
const bottomBar = this.scaleBarContainerEl.querySelector('.esri-scale-bar__line--bottom');
|
@@ -854,7 +841,7 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
854
841
|
}
|
855
842
|
}
|
856
843
|
setScalebarWidth(bar, position) {
|
857
|
-
if (
|
844
|
+
if (bar != null && this.screenshot != null) {
|
858
845
|
const width = this.screenshot.data.width / 2;
|
859
846
|
const barWidth = Number(bar.style.width.replace('px', ''));
|
860
847
|
const widthPercentage = (barWidth / width) * 100;
|
@@ -866,6 +853,18 @@ const InstantAppsExport$1 = /*@__PURE__*/ proxyCustomElement(class InstantAppsEx
|
|
866
853
|
(_a = this.screenshotPreview) === null || _a === void 0 ? void 0 : _a.remove();
|
867
854
|
(_b = this.screenshotStyle) === null || _b === void 0 ? void 0 : _b.remove();
|
868
855
|
}
|
856
|
+
handleScaleBarContainerEl(el) {
|
857
|
+
var _a, _b, _c;
|
858
|
+
if (this.showScaleBar && ((_a = this.view) === null || _a === void 0 ? void 0 : _a.type) === '2d') {
|
859
|
+
const map = this.view.map;
|
860
|
+
const scaleBarMap = (_c = (_b = this.scaleBar) === null || _b === void 0 ? void 0 : _b.view) === null || _c === void 0 ? void 0 : _c.map;
|
861
|
+
this.scaleBarContainerEl = el;
|
862
|
+
const checkId = (map === null || map === void 0 ? void 0 : map.portalItem.id) === (scaleBarMap === null || scaleBarMap === void 0 ? void 0 : scaleBarMap.portalItem.id);
|
863
|
+
if (!checkId) {
|
864
|
+
this.updateScaleBar();
|
865
|
+
}
|
866
|
+
}
|
867
|
+
}
|
869
868
|
get el() { return this; }
|
870
869
|
static get watchers() { return {
|
871
870
|
"includeMap": ["watchIncludeMap"]
|
@@ -65,7 +65,7 @@ function resetDatePicker(datePicker) {
|
|
65
65
|
}
|
66
66
|
}
|
67
67
|
|
68
|
-
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100
|
68
|
+
const instantAppsFilterListCss = ":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;--calcite-font-size--1:16px}.instant-apps-filter-list__item-container--user-input calcite-combobox-item{--calcite-font-size--1:12px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:-moz-min-content;width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";
|
69
69
|
|
70
70
|
const CSS = {
|
71
71
|
base: 'instant-apps-filter-list',
|
@@ -154,6 +154,7 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
154
154
|
this.geometryJsonUtils = geometryJsonUtils;
|
155
155
|
this.reactiveUtils = reactiveUtils;
|
156
156
|
this.locale = intl.getLocale();
|
157
|
+
this.intl = intl;
|
157
158
|
return Promise.resolve();
|
158
159
|
}
|
159
160
|
render() {
|
@@ -185,24 +186,13 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
185
186
|
}
|
186
187
|
renderCombobox(layerExpression, expression) {
|
187
188
|
var _a;
|
188
|
-
return (h("label", { key: "combo-select", class: CSS.filterUIItemContainer }, h("span", null, expression.name), h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder,
|
189
|
+
return (h("label", { key: "combo-select", class: CSS.filterUIItemContainer }, h("span", null, expression.name), h("calcite-combobox", { id: expression.id.toString(), onCalciteComboboxChange: this.handleComboSelect.bind(this, expression, layerExpression), label: expression.name, placeholder: expression.placeholder, selectionMode: "multiple", "max-items": "6" }, (_a = expression.fields) === null || _a === void 0 ? void 0 : _a.map((value, index) => this.renderComboboxItem(expression, value, index)))));
|
189
190
|
}
|
190
191
|
renderComboboxItem(expression, value, index) {
|
191
|
-
var _a
|
192
|
-
|
193
|
-
if (expression.type === 'coded-value') {
|
194
|
-
label = (_a = expression.codedValues) === null || _a === void 0 ? void 0 : _a[value];
|
195
|
-
}
|
196
|
-
else if (expression.type === 'number' && typeof value === 'number' && expression.format != null) {
|
197
|
-
if (expression.format.places != null) {
|
198
|
-
label = this.roundNumber(value, expression.format.places);
|
199
|
-
}
|
200
|
-
if (expression.format.digitSeparator) {
|
201
|
-
label = this.numberWithCommas(label);
|
202
|
-
}
|
203
|
-
}
|
192
|
+
var _a;
|
193
|
+
const label = this.createLabel(expression, value);
|
204
194
|
const selectedFields = expression === null || expression === void 0 ? void 0 : expression.selectedFields;
|
205
|
-
const selected = (
|
195
|
+
const selected = (_a = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.includes(value)) !== null && _a !== void 0 ? _a : false;
|
206
196
|
return h("calcite-combobox-item", { key: `${label}-${index}`, value: value, textLabel: `${label}`, selected: selected });
|
207
197
|
}
|
208
198
|
initFilterConfig() {
|
@@ -234,11 +224,10 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
234
224
|
}
|
235
225
|
renderDatePicker(layerExpression, expression) {
|
236
226
|
var _a, _b, _c, _d;
|
237
|
-
const min =
|
238
|
-
const max = convertToDate(expression.max);
|
227
|
+
const { min, max } = expression;
|
239
228
|
const value = [(_a = expression === null || expression === void 0 ? void 0 : expression.range) === null || _a === void 0 ? void 0 : _a.min, (_b = expression === null || expression === void 0 ? void 0 : expression.range) === null || _b === void 0 ? void 0 : _b.max];
|
240
229
|
const check = min != null && max != null;
|
241
|
-
return check ? (h("label", { class: CSS.filterUIItemContainer }, h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), h("div", { class: CSS.dateInputContainer }, h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max,
|
230
|
+
return check ? (h("label", { class: CSS.filterUIItemContainer }, h("span", null, expression === null || expression === void 0 ? void 0 : expression.name), h("div", { class: CSS.dateInputContainer }, h("calcite-input-date-picker", { id: expression === null || expression === void 0 ? void 0 : expression.id.toString(), onCalciteInputDatePickerChange: this.handleDatePickerRangeChange.bind(this, expression, layerExpression), min: min, max: max, "overlay-positioning": "fixed", lang: (_c = this.locale) !== null && _c !== void 0 ? _c : 'en', layout: "vertical", value: value, range: true }), h("calcite-action", { onClick: this.handleResetDatePicker.bind(this, expression, layerExpression), icon: "reset", text: (_d = this.messages) === null || _d === void 0 ? void 0 : _d.resetDatePicker, scale: "s" })))) : null;
|
242
231
|
}
|
243
232
|
renderFooter() {
|
244
233
|
var _a;
|
@@ -308,7 +297,12 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
308
297
|
this.resetCombobox(expression);
|
309
298
|
}
|
310
299
|
else if (type === 'date') {
|
311
|
-
|
300
|
+
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
301
|
+
this.resetCombobox(expression);
|
302
|
+
}
|
303
|
+
else {
|
304
|
+
this.resetDatePicker(expression);
|
305
|
+
}
|
312
306
|
}
|
313
307
|
else if (type === 'number' || type === 'range') {
|
314
308
|
if ((expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
@@ -384,9 +378,15 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
384
378
|
});
|
385
379
|
}
|
386
380
|
async updateStringExpression(layerExpression, expression) {
|
387
|
-
const { field } = expression;
|
381
|
+
const { field, type } = expression;
|
388
382
|
const layer = this.findFilterLayer(layerExpression);
|
389
383
|
expression.fields = await this.getFeatureAttributes(layer, field);
|
384
|
+
if (type === 'date') {
|
385
|
+
const layerField = layer.fields.find(({ name }) => name === field);
|
386
|
+
if ((layerField === null || layerField === void 0 ? void 0 : layerField.type) === 'date-only') {
|
387
|
+
expression.dateOnly = true;
|
388
|
+
}
|
389
|
+
}
|
390
390
|
if (expression === null || expression === void 0 ? void 0 : expression.selectedFields) {
|
391
391
|
const selectedFields = expression.selectedFields.map((field) => (typeof field === 'number' ? field : `'${handleSingleQuote(field)}'`));
|
392
392
|
expression.definitionExpression = `${field} IN (${selectedFields.join(',')})`;
|
@@ -647,12 +647,18 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
647
647
|
handleComboSelect(expression, layerExpression, event) {
|
648
648
|
const combobox = event.target;
|
649
649
|
const items = combobox.selectedItems;
|
650
|
-
const { field } = expression;
|
650
|
+
const { field, type } = expression;
|
651
651
|
if (items && items.length) {
|
652
652
|
const values = items.map(({ value }) => (typeof value === 'number' ? value : `'${handleSingleQuote(value)}'`));
|
653
|
-
|
654
|
-
|
655
|
-
|
653
|
+
if (type === 'date') {
|
654
|
+
expression.selectedFields = items.map(({ value }) => value);
|
655
|
+
expression.definitionExpression = values.map(value => this.buildDateExpression(value, field)).join(' OR ');
|
656
|
+
}
|
657
|
+
else {
|
658
|
+
expression.selectedFields = items.map(({ value }) => value);
|
659
|
+
const definitionExpression = `${field} IN (${values.join(',')})`;
|
660
|
+
expression.definitionExpression = definitionExpression;
|
661
|
+
}
|
656
662
|
expression.active = true;
|
657
663
|
}
|
658
664
|
else {
|
@@ -709,20 +715,20 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
709
715
|
}
|
710
716
|
createURLParamExpression(layerExpression, expression) {
|
711
717
|
const { id, range, selectedFields, type } = expression;
|
712
|
-
if (type === '
|
718
|
+
if (type === 'string' || type === 'coded-value' || (expression === null || expression === void 0 ? void 0 : expression.numDisplayOption) === 'drop-down' || (expression === null || expression === void 0 ? void 0 : expression.displayOption) === 'drop-down') {
|
713
719
|
return {
|
714
|
-
type: '
|
720
|
+
type: 'select',
|
715
721
|
layerId: layerExpression.id,
|
716
722
|
expressionId: id.toString(),
|
717
|
-
|
723
|
+
selectedFields,
|
718
724
|
};
|
719
725
|
}
|
720
|
-
else if (type === '
|
726
|
+
else if (type === 'number' || type === 'range' || type === 'date') {
|
721
727
|
return {
|
722
|
-
type: '
|
728
|
+
type: 'range',
|
723
729
|
layerId: layerExpression.id,
|
724
730
|
expressionId: id.toString(),
|
725
|
-
|
731
|
+
range,
|
726
732
|
};
|
727
733
|
}
|
728
734
|
else {
|
@@ -1018,6 +1024,39 @@ const InstantAppsFilterList = /*@__PURE__*/ proxyCustomElement(class InstantApps
|
|
1018
1024
|
return layer;
|
1019
1025
|
}
|
1020
1026
|
}
|
1027
|
+
createLabel(expression, value) {
|
1028
|
+
var _a;
|
1029
|
+
let label = value;
|
1030
|
+
if (expression.type === 'coded-value') {
|
1031
|
+
label = (_a = expression.codedValues) === null || _a === void 0 ? void 0 : _a[value];
|
1032
|
+
}
|
1033
|
+
else if (expression.type === 'number' && typeof value === 'number' && expression.format != null) {
|
1034
|
+
if (expression.format.places != null) {
|
1035
|
+
label = this.roundNumber(value, expression.format.places);
|
1036
|
+
}
|
1037
|
+
if (expression.format.digitSeparator) {
|
1038
|
+
label = this.numberWithCommas(label);
|
1039
|
+
}
|
1040
|
+
}
|
1041
|
+
else if (expression.type === 'date' && !expression.dateOnly) {
|
1042
|
+
const format = expression.dateOnly ? this.intl.convertDateFormatToIntlOptions('short-date-long-time') : undefined;
|
1043
|
+
label = this.intl.formatDate(value, format);
|
1044
|
+
}
|
1045
|
+
return label;
|
1046
|
+
}
|
1047
|
+
buildDateExpression(date, field) {
|
1048
|
+
if (date) {
|
1049
|
+
const tmpDate = new Date(date);
|
1050
|
+
const tmpCompareDate = new Date(date);
|
1051
|
+
const tmpCompareDate1 = new Date(tmpCompareDate.setDate(tmpDate.getDate() + 1));
|
1052
|
+
const formattedDate = `${tmpDate.getFullYear()}-${tmpDate.getMonth() + 1}-${tmpDate.getDate()}`;
|
1053
|
+
const time = `${tmpDate.getHours()}:${tmpDate.getMinutes()}:${tmpDate.getSeconds()}`;
|
1054
|
+
const compareTime = `${tmpCompareDate1.getHours()}:${tmpCompareDate1.getMinutes()}:${tmpCompareDate1.getSeconds()}`;
|
1055
|
+
const compareFormattedDate = `${tmpCompareDate1.getFullYear()}-${tmpCompareDate1.getMonth() + 1}-${tmpCompareDate1.getDate()}`;
|
1056
|
+
return `${field} BETWEEN '${formattedDate} ${time}' AND '${compareFormattedDate} ${compareTime}'`;
|
1057
|
+
}
|
1058
|
+
return;
|
1059
|
+
}
|
1021
1060
|
get el() { return this; }
|
1022
1061
|
static get watchers() { return {
|
1023
1062
|
"view": ["watchViewHandler"],
|
@@ -12,7 +12,7 @@ import { d as defineCustomElement$3 } from './button.js';
|
|
12
12
|
import { d as defineCustomElement$2 } from './icon.js';
|
13
13
|
import { d as defineCustomElement$1 } from './loader.js';
|
14
14
|
|
15
|
-
const instantAppsHeaderCss = ":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;-webkit-text-decoration:var(--instant-apps-header-title-text-link-decoration);text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__logo-height--s,:host .instant-apps-header__logo-height--m,:host .instant-apps-header__logo-height--l{padding-right:10px}:host .instant-apps-header--rtl.instant-apps-header__logo-height--s,:host .instant-apps-header--rtl.instant-apps-header__logo-height--m,:host .instant-apps-header--rtl.instant-apps-header__logo-height--l{padding-right:0;padding-left:10px}";
|
15
|
+
const instantAppsHeaderCss = ":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;-webkit-text-decoration:var(--instant-apps-header-title-text-link-decoration);text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__logo-height--s,:host .instant-apps-header__logo-height--m,:host .instant-apps-header__logo-height--l{padding-right:10px}:host .instant-apps-header--rtl.instant-apps-header__logo-height--s,:host .instant-apps-header--rtl.instant-apps-header__logo-height--m,:host .instant-apps-header--rtl.instant-apps-header__logo-height--l{padding-right:0;padding-left:10px}";
|
16
16
|
|
17
17
|
const CSS = {
|
18
18
|
base: 'instant-apps-header--standard',
|