@electral-io/webspa 1.0.0 → 1.0.2
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/README.md +5 -3
- package/dist/index.css +53 -232
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/web-spa-css-custom-data.json +2 -2
- package/package.json +3 -2
- package/dist/GoogleSansFlex24pt-Black.55bc5c5a.woff +0 -0
- package/dist/GoogleSansFlex24pt-Bold.d908201f.woff +0 -0
- package/dist/GoogleSansFlex24pt-ExtraBold.e526e9db.woff +0 -0
- package/dist/GoogleSansFlex24pt-ExtraLight.8108859d.woff +0 -0
- package/dist/GoogleSansFlex24pt-Light.bb140a25.woff +0 -0
- package/dist/GoogleSansFlex24pt-Medium.ddbc6d6f.woff +0 -0
- package/dist/GoogleSansFlex24pt-Regular.c26e9621.woff +0 -0
- package/dist/GoogleSansFlex24pt-SemiBold.535d1221.woff +0 -0
- package/dist/GoogleSansFlex24pt-Thin.1494da19.woff +0 -0
- package/dist/subset-Inter18pt-Black.564e4f6e.woff2 +0 -0
- package/dist/subset-Inter18pt-BlackItalic.69ce2c78.woff2 +0 -0
- package/dist/subset-Inter18pt-Bold.5d1d6992.woff2 +0 -0
- package/dist/subset-Inter18pt-BoldItalic.e6156b59.woff2 +0 -0
- package/dist/subset-Inter18pt-ExtraBold.2dfd989d.woff2 +0 -0
- package/dist/subset-Inter18pt-ExtraBoldItalic.68baab79.woff2 +0 -0
- package/dist/subset-Inter18pt-ExtraLight.91d746d9.woff2 +0 -0
- package/dist/subset-Inter18pt-ExtraLightItalic.f44c7f9a.woff2 +0 -0
- package/dist/subset-Inter18pt-Italic.7408decc.woff2 +0 -0
- package/dist/subset-Inter18pt-Light.f595f92d.woff2 +0 -0
- package/dist/subset-Inter18pt-LightItalic.f713d0f0.woff2 +0 -0
- package/dist/subset-Inter18pt-Medium.a680afd7.woff2 +0 -0
- package/dist/subset-Inter18pt-MediumItalic.f0c8bf8a.woff2 +0 -0
- package/dist/subset-Inter18pt-Regular.987ab761.woff2 +0 -0
- package/dist/subset-Inter18pt-SemiBold.e24d9ca5.woff2 +0 -0
- package/dist/subset-Inter18pt-SemiBoldItalic.fb6755ec.woff2 +0 -0
- package/dist/subset-Inter18pt-Thin.04cc6264.woff2 +0 -0
- package/dist/subset-Inter18pt-ThinItalic.5faec1bb.woff2 +0 -0
- package/dist/subset-Quicksand-Bold.78e1b5e6.woff2 +0 -0
- package/dist/subset-Quicksand-Light.dc2d2856.woff2 +0 -0
- package/dist/subset-Quicksand-Medium.6263fcab.woff2 +0 -0
- package/dist/subset-Quicksand-Regular.06f2ca43.woff2 +0 -0
- package/dist/subset-Quicksand-SemiBold.4c169654.woff2 +0 -0
package/dist/index.js
CHANGED
|
@@ -19675,6 +19675,7 @@ class $d0155a1ad54c7a5e$var$AgsMapServiceLayer extends (0, $b45fbefffcc29e8d$exp
|
|
|
19675
19675
|
constructor(definition, channel, layer){
|
|
19676
19676
|
super(definition);
|
|
19677
19677
|
this.identifyType = 'remote';
|
|
19678
|
+
this._legendInfos = [];
|
|
19678
19679
|
this.onAction = (id)=>{
|
|
19679
19680
|
super.onAction(id);
|
|
19680
19681
|
if (id === 'zoom-to-layer') {
|
|
@@ -19699,7 +19700,6 @@ class $d0155a1ad54c7a5e$var$AgsMapServiceLayer extends (0, $b45fbefffcc29e8d$exp
|
|
|
19699
19700
|
this._layer = layer;
|
|
19700
19701
|
this._channel = channel;
|
|
19701
19702
|
this.children = new (0, $a7f480cadac1bf41$export$54c2e3dc7acea9f5)();
|
|
19702
|
-
this._legendInfos = this._createLegendInfos();
|
|
19703
19703
|
this._canIdentify = true;
|
|
19704
19704
|
this._createActions();
|
|
19705
19705
|
this.eventService.listen((0, $83f178a55d00223f$export$3b3923acac36255a).MapIdentifyRequest, this.onIdentifyRequested);
|
|
@@ -19712,8 +19712,11 @@ class $d0155a1ad54c7a5e$var$AgsMapServiceLayer extends (0, $b45fbefffcc29e8d$exp
|
|
|
19712
19712
|
});
|
|
19713
19713
|
}
|
|
19714
19714
|
initialize() {
|
|
19715
|
-
|
|
19715
|
+
var _a, _b;
|
|
19716
|
+
this._allSubLayers = (_a = this._getAllSubLayers()) !== null && _a !== void 0 ? _a : [];
|
|
19716
19717
|
this._calcVisSubLayerIds();
|
|
19718
|
+
this._legendInfos = this._createLegendInfos();
|
|
19719
|
+
if ((_b = this._definition.props.hiddenSubLayers) === null || _b === void 0 ? void 0 : _b.length) this._updateLayerProps();
|
|
19717
19720
|
}
|
|
19718
19721
|
getLegendInfos() {
|
|
19719
19722
|
return this._legendInfos;
|
|
@@ -19806,7 +19809,9 @@ class $d0155a1ad54c7a5e$var$AgsMapServiceLayer extends (0, $b45fbefffcc29e8d$exp
|
|
|
19806
19809
|
_createLegendInfos() {
|
|
19807
19810
|
if (!this._channel.ok) return [];
|
|
19808
19811
|
const arr = [];
|
|
19812
|
+
const ids = new Set(this._allSubLayers.map((sl)=>sl.serviceId));
|
|
19809
19813
|
for (const lyr of this._channel.legendInfo.layers){
|
|
19814
|
+
if (!ids.has(lyr.layerId)) continue;
|
|
19810
19815
|
const li = {
|
|
19811
19816
|
layerId: this._definition.key + '-' + lyr.layerId.toString(),
|
|
19812
19817
|
title: lyr.layerName,
|
|
@@ -20389,11 +20394,14 @@ class $f341c2cc2e9afa94$export$70cc7c4c8953dde9 {
|
|
|
20389
20394
|
});
|
|
20390
20395
|
}
|
|
20391
20396
|
_buildSubLayers(srvInfo, layer) {
|
|
20397
|
+
var _a;
|
|
20392
20398
|
const slMap = new Map();
|
|
20393
20399
|
const capas = srvInfo.capabilities.split(',');
|
|
20394
20400
|
const canQuery = capas.includes('Query');
|
|
20395
20401
|
const maxRecords = srvInfo.maxRecordCount;
|
|
20402
|
+
const hidden = (_a = layer.definition.props.hiddenSubLayers) !== null && _a !== void 0 ? _a : [];
|
|
20396
20403
|
for (const slInfo of srvInfo.layers){
|
|
20404
|
+
if (hidden.includes(slInfo.id)) continue;
|
|
20397
20405
|
const slCaps = {
|
|
20398
20406
|
hasAttributeTable: canQuery && !slInfo.subLayerIds,
|
|
20399
20407
|
maxRecords: maxRecords
|
|
@@ -24872,6 +24880,11 @@ let $52212022f33a16f5$export$8f16e9c3e7703006 = class MapSearchComponent extends
|
|
|
24872
24880
|
});
|
|
24873
24881
|
this._dropDownResults = new (0, $4eb86fb8e262138f$export$931cbfb6bfb85fc)(resultList, 'parent');
|
|
24874
24882
|
this.appendChildren(topRow, this._dropDownResults);
|
|
24883
|
+
icon.addEventListener('click', ()=>{
|
|
24884
|
+
const expanded = this.classList.toggle('expanded');
|
|
24885
|
+
if (expanded) this._textBox.focus();
|
|
24886
|
+
else this._dropDownResults.visible = false;
|
|
24887
|
+
});
|
|
24875
24888
|
cmb.onValueChanged.register(()=>{
|
|
24876
24889
|
var _a;
|
|
24877
24890
|
const key = cmb.value;
|