qwc2 2026.8.24 → 2026.8.28
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/components/AttributeForm.js +68 -59
- package/components/AttributeTableWidget.js +26 -25
- package/components/IdentifyViewer.js +75 -334
- package/components/ImportLayer.js +56 -9
- package/components/LinkFeatureForm.js +3 -8
- package/components/QtDesignerForm.js +103 -75
- package/components/ResizeableWindow.js +2 -1
- package/components/style/ImportLayer.css +22 -0
- package/components/style/QtDesignerForm.css +3 -2
- package/components/style/ResizeableWindow.css +10 -16
- package/components/widgets/ComboBox.js +10 -5
- package/components/widgets/NavBar.js +5 -4
- package/components/widgets/PopupMenu.js +17 -4
- package/components/widgets/style/ComboBox.css +6 -1
- package/package.json +2 -1
- package/plugins/Identify.js +250 -83
- package/plugins/MapDropImport.js +3 -1
- package/plugins/MapExport.js +10 -6
- package/plugins/MapFilter.js +2 -8
- package/plugins/Redlining.js +45 -14
- package/plugins/map/LocateSupport.js +1 -1
- package/static/translations/bg-BG.json +6 -3
- package/static/translations/ca-ES.json +6 -3
- package/static/translations/cs-CZ.json +5 -2
- package/static/translations/de-CH.json +7 -4
- package/static/translations/de-DE.json +7 -4
- package/static/translations/en-US.json +7 -4
- package/static/translations/es-ES.json +6 -3
- package/static/translations/fi-FI.json +5 -2
- package/static/translations/fr-FR.json +7 -4
- package/static/translations/hu-HU.json +5 -2
- package/static/translations/it-IT.json +7 -4
- package/static/translations/ja-JP.json +6 -3
- package/static/translations/nl-NL.json +5 -2
- package/static/translations/no-NO.json +5 -2
- package/static/translations/pl-PL.json +5 -2
- package/static/translations/pt-BR.json +5 -2
- package/static/translations/pt-PT.json +5 -2
- package/static/translations/ro-RO.json +6 -3
- package/static/translations/ru-RU.json +5 -2
- package/static/translations/sv-SE.json +5 -2
- package/static/translations/tr-TR.json +6 -3
- package/static/translations/tsconfig.json +5 -2
- package/static/translations/uk-UA.json +5 -2
- package/utils/DataServiceExprUtils.js +38 -10
- package/utils/DxfUtils.js +192 -36
- package/utils/FileImportUtils.js +137 -43
- package/utils/IdentifyExporters.js +305 -0
- package/utils/IdentifyUtils.js +98 -7
- package/utils/LayerUtils.js +27 -7
- package/utils/PermaLinkUtils.js +33 -50
|
@@ -257,50 +257,67 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
|
-
_defineProperty(_this, "addRelationRecord", function (
|
|
260
|
+
_defineProperty(_this, "addRelationRecord", function (dataset) {
|
|
261
261
|
var initialProperties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
262
|
-
var
|
|
263
|
-
var
|
|
262
|
+
var action = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
263
|
+
var layer = dataset.slice(_this.props.editContext.mapPrefix.length + 1);
|
|
264
|
+
var editConfig = _this.props.editConfigs[_this.props.editContext.mapPrefix][layer];
|
|
264
265
|
getFeatureTemplate(editConfig, {
|
|
265
266
|
type: "Feature",
|
|
266
267
|
properties: _objectSpread({}, initialProperties)
|
|
267
268
|
}, _this.props.iface, _this.props.editContext.mapPrefix, _this.props.map.projection, function (newRelFeature) {
|
|
268
|
-
newRelFeature.__status__ = "
|
|
269
|
+
newRelFeature.__status__ = "new";
|
|
269
270
|
if (editConfig.geomType === null) {
|
|
270
271
|
newRelFeature.geometry = null;
|
|
271
272
|
}
|
|
272
273
|
// If feature id is known, i.e. not when drawing new feature, set foreign key
|
|
273
274
|
if (_this.props.editContext.action !== "Draw") {
|
|
274
|
-
var relTable = _this.state.relationTables[
|
|
275
|
+
var relTable = _this.state.relationTables[dataset];
|
|
275
276
|
var fkVal = relTable.pkField ? _this.props.editContext.feature.properties[relTable.pkField] : _this.props.editContext.feature.id;
|
|
276
277
|
newRelFeature.properties[relTable.fkField] = fkVal;
|
|
277
278
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
279
|
+
if (action) {
|
|
280
|
+
var childEdit = {
|
|
281
|
+
action: action,
|
|
282
|
+
editConfig: editConfig,
|
|
283
|
+
editContextId: ':' + dataset,
|
|
284
|
+
idx: null,
|
|
285
|
+
feature: newRelFeature,
|
|
286
|
+
finishCallback: _this.finishEditRelationRecord,
|
|
287
|
+
hideDelete: true
|
|
288
|
+
};
|
|
289
|
+
_this.setState({
|
|
290
|
+
childEdit: childEdit
|
|
291
|
+
});
|
|
292
|
+
} else {
|
|
293
|
+
var newRelationValues = _objectSpread({}, _this.props.editContext.feature.relationValues);
|
|
294
|
+
newRelationValues[dataset] = _objectSpread({}, newRelationValues[dataset]);
|
|
295
|
+
newRelationValues[dataset].features = newRelationValues[dataset].features.concat([newRelFeature]);
|
|
296
|
+
var newFeature = _objectSpread(_objectSpread({}, _this.props.editContext.feature), {}, {
|
|
297
|
+
relationValues: newRelationValues
|
|
298
|
+
});
|
|
299
|
+
_this.props.setEditContext(_this.props.editContext.id, {
|
|
300
|
+
feature: newFeature,
|
|
301
|
+
changed: true
|
|
302
|
+
});
|
|
303
|
+
}
|
|
287
304
|
});
|
|
288
305
|
});
|
|
289
|
-
_defineProperty(_this, "reorderRelationRecord", function (
|
|
290
|
-
var nFeatures = _this.props.editContext.feature.relationValues[
|
|
306
|
+
_defineProperty(_this, "reorderRelationRecord", function (dataset, idx, dir) {
|
|
307
|
+
var nFeatures = _this.props.editContext.feature.relationValues[dataset].features.length;
|
|
291
308
|
if (dir < 0 && idx === 0 || dir > 0 && idx >= nFeatures - 1) {
|
|
292
309
|
return;
|
|
293
310
|
}
|
|
294
311
|
var newRelationValues = _objectSpread({}, _this.props.editContext.feature.relationValues);
|
|
295
|
-
newRelationValues[
|
|
296
|
-
var newFeatures = newRelationValues[
|
|
312
|
+
newRelationValues[dataset] = _objectSpread({}, newRelationValues[dataset]);
|
|
313
|
+
var newFeatures = newRelationValues[dataset].features.slice(0);
|
|
297
314
|
var offset = dir < 0 ? 0 : 1;
|
|
298
315
|
newFeatures.splice(idx - 1 + offset, 2, newFeatures[idx + offset], newFeatures[idx - 1 + offset]);
|
|
299
316
|
newFeatures[idx - 1 + offset].properties = _objectSpread({}, newFeatures[idx - 1 + offset].properties);
|
|
300
317
|
newFeatures[idx + offset].properties = _objectSpread({}, newFeatures[idx + offset].properties);
|
|
301
|
-
newFeatures[idx - 1 + offset].__status__ =
|
|
302
|
-
newFeatures[idx + offset].__status__ =
|
|
303
|
-
newRelationValues[
|
|
318
|
+
newFeatures[idx - 1 + offset].__status__ = newFeatures[idx - 1 + offset].__status__ === "new" ? "new" : "changed";
|
|
319
|
+
newFeatures[idx + offset].__status__ = newFeatures[idx + offset].__status__ === "new" ? "new" : "changed";
|
|
320
|
+
newRelationValues[dataset].features = newFeatures;
|
|
304
321
|
var newFeature = _objectSpread(_objectSpread({}, _this.props.editContext.feature), {}, {
|
|
305
322
|
relationValues: newRelationValues
|
|
306
323
|
});
|
|
@@ -309,16 +326,16 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
309
326
|
changed: true
|
|
310
327
|
});
|
|
311
328
|
});
|
|
312
|
-
_defineProperty(_this, "removeRelationRecord", function (
|
|
329
|
+
_defineProperty(_this, "removeRelationRecord", function (dataset, idx) {
|
|
313
330
|
var newRelationValues = _objectSpread({}, _this.props.editContext.feature.relationValues);
|
|
314
|
-
newRelationValues[
|
|
315
|
-
newRelationValues[
|
|
316
|
-
var fieldStatus = newRelationValues[
|
|
331
|
+
newRelationValues[dataset] = _objectSpread({}, newRelationValues[dataset]);
|
|
332
|
+
newRelationValues[dataset].features = newRelationValues[dataset].features.slice(0);
|
|
333
|
+
var fieldStatus = newRelationValues[dataset].features[idx].__status__ || "";
|
|
317
334
|
// If field was new, delete it directly, else mark it as deleted
|
|
318
|
-
if (
|
|
319
|
-
newRelationValues[
|
|
335
|
+
if (fieldStatus === "new") {
|
|
336
|
+
newRelationValues[dataset].features.splice(idx, 1);
|
|
320
337
|
} else {
|
|
321
|
-
newRelationValues[
|
|
338
|
+
newRelationValues[dataset].features[idx] = _objectSpread(_objectSpread({}, newRelationValues[dataset].features[idx]), {}, {
|
|
322
339
|
__status__: fieldStatus.startsWith("deleted") ? fieldStatus.substr(8) : "deleted:" + fieldStatus
|
|
323
340
|
});
|
|
324
341
|
}
|
|
@@ -330,13 +347,13 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
330
347
|
changed: true
|
|
331
348
|
});
|
|
332
349
|
});
|
|
333
|
-
_defineProperty(_this, "updateRelationField", function (
|
|
350
|
+
_defineProperty(_this, "updateRelationField", function (dataset, idx, key, value) {
|
|
334
351
|
var newRelationValues = _objectSpread({}, _this.props.editContext.feature.relationValues);
|
|
335
|
-
newRelationValues[
|
|
336
|
-
newRelationValues[
|
|
337
|
-
newRelationValues[
|
|
338
|
-
properties: _objectSpread(_objectSpread({}, newRelationValues[
|
|
339
|
-
__status__:
|
|
352
|
+
newRelationValues[dataset] = _objectSpread({}, newRelationValues[dataset]);
|
|
353
|
+
newRelationValues[dataset].features = newRelationValues[dataset].features.slice(0);
|
|
354
|
+
newRelationValues[dataset].features[idx] = _objectSpread(_objectSpread({}, newRelationValues[dataset].features[idx]), {}, {
|
|
355
|
+
properties: _objectSpread(_objectSpread({}, newRelationValues[dataset].features[idx].properties), {}, _defineProperty({}, key, value)),
|
|
356
|
+
__status__: newRelationValues[dataset].features[idx].__status__ === "new" ? "new" : "changed"
|
|
340
357
|
});
|
|
341
358
|
var newFeature = _objectSpread(_objectSpread({}, _this.props.editContext.feature), {}, {
|
|
342
359
|
relationValues: newRelationValues
|
|
@@ -346,19 +363,17 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
346
363
|
changed: true
|
|
347
364
|
});
|
|
348
365
|
});
|
|
349
|
-
_defineProperty(_this, "editRelationRecord", function (
|
|
350
|
-
var
|
|
366
|
+
_defineProperty(_this, "editRelationRecord", function (dataset, idx) {
|
|
367
|
+
var layer = dataset.slice(_this.props.editContext.mapPrefix.length + 1);
|
|
351
368
|
var editConfig = _this.props.editConfigs[_this.props.editContext.mapPrefix][layer];
|
|
352
|
-
var feature = _this.props.editContext.feature.relationValues[
|
|
369
|
+
var feature = _this.props.editContext.feature.relationValues[editConfig.editDataset].features[idx];
|
|
353
370
|
var childEdit = {
|
|
354
|
-
action:
|
|
371
|
+
action: feature.__status__ === 'new' ? 'Create' : 'Edit',
|
|
355
372
|
editConfig: editConfig,
|
|
356
|
-
editContextId: ':' +
|
|
357
|
-
dataset: dataset,
|
|
373
|
+
editContextId: ':' + dataset,
|
|
358
374
|
idx: idx,
|
|
359
375
|
feature: feature,
|
|
360
376
|
finishCallback: _this.finishEditRelationRecord,
|
|
361
|
-
displayField: displayField,
|
|
362
377
|
hideDelete: true
|
|
363
378
|
};
|
|
364
379
|
_this.setState({
|
|
@@ -368,22 +383,22 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
368
383
|
_defineProperty(_this, "finishEditRelationRecord", function (feature) {
|
|
369
384
|
_this.props.clearEditContext(_this.state.childEdit.editContextId, _this.props.editContext.id);
|
|
370
385
|
if (feature) {
|
|
371
|
-
var
|
|
372
|
-
var
|
|
386
|
+
var _this$state$childEdit;
|
|
387
|
+
var dataset = _this.state.childEdit.editConfig.editDataset;
|
|
373
388
|
var newRelationValues = _objectSpread({}, _this.props.editContext.feature.relationValues);
|
|
374
|
-
|
|
375
|
-
newRelationValues[
|
|
376
|
-
newRelationValues[
|
|
377
|
-
|
|
389
|
+
var idx = (_this$state$childEdit = _this.state.childEdit.idx) !== null && _this$state$childEdit !== void 0 ? _this$state$childEdit : newRelationValues[dataset].features.length;
|
|
390
|
+
newRelationValues[dataset] = _objectSpread({}, newRelationValues[dataset]);
|
|
391
|
+
newRelationValues[dataset].features = newRelationValues[dataset].features.slice(0);
|
|
392
|
+
newRelationValues[dataset].features[idx] = _objectSpread(_objectSpread({}, feature), {}, {
|
|
393
|
+
__status__: "changed"
|
|
378
394
|
});
|
|
379
395
|
// If feature id is known, i.e. not when drawing new feature, set foreign key
|
|
380
396
|
var changed = _this.props.editContext.changed;
|
|
381
|
-
var relTable = _this.state.relationTables[
|
|
397
|
+
var relTable = _this.state.relationTables[dataset];
|
|
382
398
|
var fkVal = relTable.pkField ? _this.props.editContext.feature.properties[relTable.pkField] : _this.props.editContext.feature.id;
|
|
383
|
-
var fkField = _this.state.relationTables[
|
|
399
|
+
var fkField = _this.state.relationTables[dataset].fkField;
|
|
384
400
|
if (_this.props.editContext.action !== "Draw" && feature.properties[fkField] !== fkVal) {
|
|
385
|
-
newRelationValues[
|
|
386
|
-
newRelationValues[table].features[idx].__status__ = "changed";
|
|
401
|
+
newRelationValues[dataset].features[idx].properties = _objectSpread(_objectSpread({}, newRelationValues[dataset].features[idx].properties), {}, _defineProperty({}, fkField, fkVal));
|
|
387
402
|
changed = true;
|
|
388
403
|
}
|
|
389
404
|
var newFeature = _objectSpread(_objectSpread({}, _this.props.editContext.feature), {}, {
|
|
@@ -586,9 +601,6 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
586
601
|
relationValues[datasetname].features[index].defaultedProperties = [].concat(_toConsumableArray(relationValues[datasetname].features[index].defaultedProperties || []), [field]);
|
|
587
602
|
}
|
|
588
603
|
relationValues[datasetname].features[index].properties[field] = value;
|
|
589
|
-
if (relationValues[datasetname].features[index].__status__ === "empty") {
|
|
590
|
-
relationValues[datasetname].features[index].__status__ = "new";
|
|
591
|
-
}
|
|
592
604
|
if (element.type === "file" && element.files.length > 0) {
|
|
593
605
|
relationUploads[name] = element.files[0];
|
|
594
606
|
relationValues[datasetname].features[index].properties[field] = "";
|
|
@@ -684,9 +696,7 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
684
696
|
|
|
685
697
|
// Set relation values CRS and sort index if necessary
|
|
686
698
|
Object.keys(relationValues).forEach(function (relTable) {
|
|
687
|
-
relationValues[relTable].features = relationValues[relTable].features.
|
|
688
|
-
return relFeature.__status__ !== "empty";
|
|
689
|
-
}).map(function (relFeature, idx) {
|
|
699
|
+
relationValues[relTable].features = relationValues[relTable].features.map(function (relFeature, idx) {
|
|
690
700
|
var newRelFeature = _objectSpread(_objectSpread({}, relFeature), {}, {
|
|
691
701
|
crs: {
|
|
692
702
|
type: "name",
|
|
@@ -857,7 +867,7 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
857
867
|
type: mimeString
|
|
858
868
|
});
|
|
859
869
|
});
|
|
860
|
-
_defineProperty(_this, "startChildEdit", function (action, layer, featureId, updateField
|
|
870
|
+
_defineProperty(_this, "startChildEdit", function (action, layer, featureId, updateField) {
|
|
861
871
|
var editConfig = _this.props.editConfigs[_this.props.editContext.mapPrefix][layer];
|
|
862
872
|
if (!editConfig) {
|
|
863
873
|
// eslint-disable-next-line
|
|
@@ -867,7 +877,6 @@ var AttributeForm = /*#__PURE__*/function (_React$Component) {
|
|
|
867
877
|
action: action,
|
|
868
878
|
editConfig: editConfig,
|
|
869
879
|
editContextId: ':' + layer,
|
|
870
|
-
displayField: displayField,
|
|
871
880
|
featureId: featureId,
|
|
872
881
|
updateField: updateField,
|
|
873
882
|
finishCallback: _this.finishChildEdit,
|
|
@@ -56,6 +56,7 @@ import LayerUtils from '../utils/LayerUtils';
|
|
|
56
56
|
import LocaleUtils from '../utils/LocaleUtils';
|
|
57
57
|
import MapUtils from '../utils/MapUtils';
|
|
58
58
|
import VectorLayerUtils from '../utils/VectorLayerUtils';
|
|
59
|
+
import ComboBox from './widgets/ComboBox';
|
|
59
60
|
import FeaturesTable from './widgets/FeaturesTable';
|
|
60
61
|
import './style/AttributeTableWidget.css';
|
|
61
62
|
var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
@@ -827,17 +828,17 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
827
828
|
if (fieldConfig.constraints.keyvalrel) {
|
|
828
829
|
values = KeyValCache.getSync(this.props.iface, fieldConfig.constraints.keyvalrel);
|
|
829
830
|
}
|
|
830
|
-
valueInput = /*#__PURE__*/React.createElement(
|
|
831
|
+
valueInput = /*#__PURE__*/React.createElement(ComboBox, {
|
|
831
832
|
className: "attribtable-filter-value",
|
|
832
833
|
disabled: footbarDisabled,
|
|
833
|
-
onChange: function onChange(
|
|
834
|
-
return _this2.updateFilter("filterVal",
|
|
834
|
+
onChange: function onChange(value) {
|
|
835
|
+
return _this2.updateFilter("filterVal", value);
|
|
835
836
|
},
|
|
836
837
|
value: this.state.filterVal
|
|
837
|
-
}, /*#__PURE__*/React.createElement("
|
|
838
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
838
839
|
value: ""
|
|
839
840
|
}, LocaleUtils.tr("common.select")), values.map(function (entry) {
|
|
840
|
-
return /*#__PURE__*/React.createElement("
|
|
841
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
841
842
|
key: entry.value,
|
|
842
843
|
value: entry.value
|
|
843
844
|
}, entry.label);
|
|
@@ -874,16 +875,16 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
874
875
|
className: "attribtable-filter controlgroup"
|
|
875
876
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
876
877
|
icon: "filter"
|
|
877
|
-
}), /*#__PURE__*/React.createElement(
|
|
878
|
+
}), /*#__PURE__*/React.createElement(ComboBox, {
|
|
878
879
|
disabled: footbarDisabled,
|
|
879
|
-
onChange: function onChange(
|
|
880
|
-
return _this2.updateFilter("filterField",
|
|
880
|
+
onChange: function onChange(value) {
|
|
881
|
+
return _this2.updateFilter("filterField", value);
|
|
881
882
|
},
|
|
882
883
|
value: this.state.filterField
|
|
883
|
-
}, /*#__PURE__*/React.createElement("
|
|
884
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
884
885
|
disabled: true,
|
|
885
886
|
value: ""
|
|
886
|
-
}, LocaleUtils.tr("common.select")), showIdColumn ? /*#__PURE__*/React.createElement("
|
|
887
|
+
}, LocaleUtils.tr("common.select")), showIdColumn ? /*#__PURE__*/React.createElement("div", {
|
|
887
888
|
value: "<id>"
|
|
888
889
|
}, this.translateFieldName(primaryKey)) : null, this.state.curFields.map(function (field) {
|
|
889
890
|
if (field.id !== primaryKey) {
|
|
@@ -893,25 +894,25 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
893
894
|
}, _this2.translateFieldName(field.name));
|
|
894
895
|
}
|
|
895
896
|
return null;
|
|
896
|
-
})), /*#__PURE__*/React.createElement(
|
|
897
|
+
})), /*#__PURE__*/React.createElement(ComboBox, {
|
|
897
898
|
disabled: footbarDisabled,
|
|
898
|
-
onChange: function onChange(
|
|
899
|
-
return _this2.updateFilter("filterOp",
|
|
899
|
+
onChange: function onChange(value) {
|
|
900
|
+
return _this2.updateFilter("filterOp", value);
|
|
900
901
|
},
|
|
901
902
|
value: this.state.filterOp
|
|
902
|
-
}, /*#__PURE__*/React.createElement("
|
|
903
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
903
904
|
value: "~"
|
|
904
|
-
}, "~"), /*#__PURE__*/React.createElement("
|
|
905
|
+
}, "~"), /*#__PURE__*/React.createElement("div", {
|
|
905
906
|
value: "="
|
|
906
|
-
}, "="), /*#__PURE__*/React.createElement("
|
|
907
|
+
}, "="), /*#__PURE__*/React.createElement("div", {
|
|
907
908
|
value: "!="
|
|
908
|
-
}, "!="), /*#__PURE__*/React.createElement("
|
|
909
|
+
}, "!="), /*#__PURE__*/React.createElement("div", {
|
|
909
910
|
value: ">"
|
|
910
|
-
}, ">"), /*#__PURE__*/React.createElement("
|
|
911
|
+
}, ">"), /*#__PURE__*/React.createElement("div", {
|
|
911
912
|
value: ">="
|
|
912
|
-
}, ">="), /*#__PURE__*/React.createElement("
|
|
913
|
+
}, ">="), /*#__PURE__*/React.createElement("div", {
|
|
913
914
|
value: "<="
|
|
914
|
-
}, "<="), /*#__PURE__*/React.createElement("
|
|
915
|
+
}, "<="), /*#__PURE__*/React.createElement("div", {
|
|
915
916
|
value: "<"
|
|
916
917
|
}, "<")), valueInput), this.props.showLimitToExtent ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("input", {
|
|
917
918
|
checked: this.state.limitToExtent,
|
|
@@ -988,19 +989,19 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
988
989
|
className: "AttributeTable"
|
|
989
990
|
}, /*#__PURE__*/React.createElement("div", {
|
|
990
991
|
className: "attribtable-toolbar"
|
|
991
|
-
}, this.props.showLayerSelection ? /*#__PURE__*/React.createElement(
|
|
992
|
+
}, this.props.showLayerSelection ? /*#__PURE__*/React.createElement(ComboBox, {
|
|
992
993
|
disabled: loading || editing,
|
|
993
|
-
onChange: function onChange(
|
|
994
|
+
onChange: function onChange(value) {
|
|
994
995
|
return _this2.setState({
|
|
995
|
-
selectedLayer:
|
|
996
|
+
selectedLayer: value
|
|
996
997
|
});
|
|
997
998
|
},
|
|
998
999
|
value: this.state.selectedLayer || ""
|
|
999
|
-
}, /*#__PURE__*/React.createElement("
|
|
1000
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1000
1001
|
disabled: true,
|
|
1001
1002
|
value: ""
|
|
1002
1003
|
}, LocaleUtils.tr("common.selectlayer")), editLayers.map(function (entry) {
|
|
1003
|
-
return /*#__PURE__*/React.createElement("
|
|
1004
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1004
1005
|
key: entry.value,
|
|
1005
1006
|
value: entry.value
|
|
1006
1007
|
}, entry.title);
|