qwc2 2026.8.28 → 2026.9.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/components/AttributeTableWidget.js +10 -13
- package/components/EditComboField.js +1 -0
- package/components/IdentifyTool.js +887 -0
- package/components/IdentifyViewer.js +66 -66
- package/components/PrintSelection.js +27 -1
- package/components/SearchBox.js +3 -2
- package/components/style/EditComboField.css +5 -0
- package/components/widgets/ComboBox.js +0 -1
- package/components/widgets/DateTimeInput.js +5 -2
- package/components/widgets/style/ComboBox.css +7 -0
- package/components/widgets/style/DateTimeInput.css +10 -0
- package/extra/plugins/PlotInfoTool.js +1 -1
- package/package.json +1 -1
- package/plugins/FeatureSelection.js +162 -0
- package/plugins/Identify.js +41 -793
- package/plugins/MapExport.js +4 -0
- package/plugins/MapFilter.js +3 -6
- package/static/translations/bg-BG.json +2 -0
- package/static/translations/ca-ES.json +2 -0
- package/static/translations/cs-CZ.json +2 -0
- package/static/translations/de-CH.json +2 -0
- package/static/translations/de-DE.json +2 -0
- package/static/translations/en-US.json +3 -1
- package/static/translations/es-ES.json +2 -0
- package/static/translations/fi-FI.json +2 -0
- package/static/translations/fr-FR.json +2 -0
- package/static/translations/hu-HU.json +2 -0
- package/static/translations/it-IT.json +2 -0
- package/static/translations/ja-JP.json +2 -0
- package/static/translations/nl-NL.json +2 -0
- package/static/translations/no-NO.json +2 -0
- package/static/translations/pl-PL.json +2 -0
- package/static/translations/pt-BR.json +2 -0
- package/static/translations/pt-PT.json +2 -0
- package/static/translations/ro-RO.json +2 -0
- package/static/translations/ru-RU.json +2 -0
- package/static/translations/sv-SE.json +2 -0
- package/static/translations/tr-TR.json +2 -0
- package/static/translations/tsconfig.json +2 -0
- package/static/translations/uk-UA.json +2 -0
- package/utils/DxfUtils.js +60 -0
- package/utils/EditingUtils.js +2 -2
- package/utils/FeatureStyles.js +27 -12
- package/utils/FileImportUtils.js +25 -18
- package/utils/IdentifyUtils.js +9 -3
- package/utils/MapUtils.js +23 -16
- package/utils/ServiceLayerUtils.js +2 -2
- /package/{plugins/style/Identify.css → components/style/IdentifyTool.css} +0 -0
|
@@ -216,7 +216,7 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
216
216
|
var forceReload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
217
217
|
var stateChange = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
218
218
|
_this.setState(function (state) {
|
|
219
|
-
var _this$props$filter$fi, _newState$curEditConf, _fieldMap$newState$fi, _fieldMap$newState$so, _newState$sortField;
|
|
219
|
+
var _this$props$layers$fi, _this$props$layers$fi2, _this$props$filter$fi, _newState$curEditConf, _fieldMap$newState$fi, _fieldMap$newState$so, _newState$sortField;
|
|
220
220
|
selectedLayer = selectedLayer || state.selectedLayer;
|
|
221
221
|
var _selectedLayer$split = selectedLayer.split("#"),
|
|
222
222
|
_selectedLayer$split2 = _slicedToArray(_selectedLayer$split, 2),
|
|
@@ -224,27 +224,27 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
224
224
|
layerName = _selectedLayer$split2[1];
|
|
225
225
|
var newState = _objectSpread(_objectSpread({}, state), stateChange);
|
|
226
226
|
var editConfig = _this.props.editConfigs[wmsName][layerName];
|
|
227
|
+
var fieldTranslations = (_this$props$layers$fi = (_this$props$layers$fi2 = _this.props.layers.find(function (layer) {
|
|
228
|
+
return layer.wms_name === wmsName;
|
|
229
|
+
})) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2.translations) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2.layers) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2[layerName]) === null || _this$props$layers$fi2 === void 0 ? void 0 : _this$props$layers$fi2.fields) !== null && _this$props$layers$fi !== void 0 ? _this$props$layers$fi : {};
|
|
227
230
|
var fields = (_this.props.showDisplayFieldOnly ? editConfig.fields.filter(function (field) {
|
|
228
231
|
return field.name === editConfig.displayField;
|
|
229
232
|
}) : editConfig.fields.filter(function (field) {
|
|
230
233
|
var _field$constraints;
|
|
231
234
|
return _this.props.showHiddenFields || ((_field$constraints = field.constraints) === null || _field$constraints === void 0 ? void 0 : _field$constraints.hidden) !== true;
|
|
232
235
|
})).map(function (field) {
|
|
236
|
+
var _fieldTranslations$fi;
|
|
233
237
|
return _objectSpread(_objectSpread({}, field), {}, {
|
|
234
|
-
name:
|
|
238
|
+
name: (_fieldTranslations$fi = fieldTranslations === null || fieldTranslations === void 0 ? void 0 : fieldTranslations[field.name]) !== null && _fieldTranslations$fi !== void 0 ? _fieldTranslations$fi : field.name
|
|
235
239
|
});
|
|
236
240
|
});
|
|
237
241
|
if (selectedLayer !== state.loadedLayer) {
|
|
238
|
-
var _this$props$layers$fi, _this$props$layers$fi2;
|
|
239
242
|
KeyValCache.clear();
|
|
240
243
|
FeatureCache.clear();
|
|
241
244
|
Object.assign(newState, AttributeTableWidget.defaultState);
|
|
242
245
|
newState.limitToExtent = state.limitToExtent;
|
|
243
246
|
newState.curEditConfig = editConfig;
|
|
244
247
|
newState.curFields = fields;
|
|
245
|
-
newState.fieldTranslations = (_this$props$layers$fi = (_this$props$layers$fi2 = _this.props.layers.find(function (layer) {
|
|
246
|
-
return layer.wms_name === wmsName;
|
|
247
|
-
})) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2.translations) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2.layers) === null || _this$props$layers$fi2 === void 0 || (_this$props$layers$fi2 = _this$props$layers$fi2[layerName]) === null || _this$props$layers$fi2 === void 0 ? void 0 : _this$props$layers$fi2.fields) !== null && _this$props$layers$fi !== void 0 ? _this$props$layers$fi : {};
|
|
248
248
|
}
|
|
249
249
|
newState.selectedLayer = selectedLayer;
|
|
250
250
|
newState.selectedFeatures = {};
|
|
@@ -707,10 +707,6 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
707
707
|
}, options);
|
|
708
708
|
}
|
|
709
709
|
});
|
|
710
|
-
_defineProperty(_this, "translateFieldName", function (fieldName) {
|
|
711
|
-
var _this$state$fieldTran, _this$state$fieldTran2;
|
|
712
|
-
return (_this$state$fieldTran = (_this$state$fieldTran2 = _this.state.fieldTranslations) === null || _this$state$fieldTran2 === void 0 ? void 0 : _this$state$fieldTran2[fieldName]) !== null && _this$state$fieldTran !== void 0 ? _this$state$fieldTran : fieldName;
|
|
713
|
-
});
|
|
714
710
|
_this.changedFiles = {};
|
|
715
711
|
_this.state = AttributeTableWidget.defaultState;
|
|
716
712
|
_this.table = null;
|
|
@@ -886,12 +882,14 @@ var AttributeTableWidget = /*#__PURE__*/function (_React$Component) {
|
|
|
886
882
|
value: ""
|
|
887
883
|
}, LocaleUtils.tr("common.select")), showIdColumn ? /*#__PURE__*/React.createElement("div", {
|
|
888
884
|
value: "<id>"
|
|
889
|
-
}, this.
|
|
885
|
+
}, this.state.curFields.find(function (field) {
|
|
886
|
+
return field.id === primaryKey;
|
|
887
|
+
}).name) : null, this.state.curFields.map(function (field) {
|
|
890
888
|
if (field.id !== primaryKey) {
|
|
891
889
|
return /*#__PURE__*/React.createElement("option", {
|
|
892
890
|
key: field.id,
|
|
893
891
|
value: field.id
|
|
894
|
-
},
|
|
892
|
+
}, field.name);
|
|
895
893
|
}
|
|
896
894
|
return null;
|
|
897
895
|
})), /*#__PURE__*/React.createElement(ComboBox, {
|
|
@@ -1129,7 +1127,6 @@ _defineProperty(AttributeTableWidget, "defaultState", {
|
|
|
1129
1127
|
loadedLayer: "",
|
|
1130
1128
|
curEditConfig: null,
|
|
1131
1129
|
curFields: null,
|
|
1132
|
-
fieldTranslations: null,
|
|
1133
1130
|
features: [],
|
|
1134
1131
|
allFeatures: null,
|
|
1135
1132
|
totFeatureCount: 0,
|
|
@@ -111,6 +111,7 @@ var EditComboField = /*#__PURE__*/function (_React$Component) {
|
|
|
111
111
|
value = _this$itemValueLabel2.value,
|
|
112
112
|
label = _this$itemValueLabel2.label;
|
|
113
113
|
return /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "edit-single-select-item",
|
|
114
115
|
key: _this.props.fieldId + index,
|
|
115
116
|
value: String(value)
|
|
116
117
|
}, label);
|