qwc2 2026.4.20 → 2026.4.21
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.
|
@@ -254,6 +254,10 @@ var QtDesignerForm = /*#__PURE__*/function (_React$Component) {
|
|
|
254
254
|
fontSize: Math.round((fontProps.pointsize || 9) / 9 * 100) + "%",
|
|
255
255
|
textAlign: 'left'
|
|
256
256
|
};
|
|
257
|
+
var frameStyle = {};
|
|
258
|
+
if (prop.flat) {
|
|
259
|
+
frameStyle.border = '0';
|
|
260
|
+
}
|
|
257
261
|
if (prop.alignment) {
|
|
258
262
|
if (prop.alignment.includes("Qt::AlignRight")) {
|
|
259
263
|
fontStyle.textAlign = 'right';
|
|
@@ -312,7 +316,8 @@ var QtDesignerForm = /*#__PURE__*/function (_React$Component) {
|
|
|
312
316
|
return /*#__PURE__*/React.createElement("div", {
|
|
313
317
|
className: "qt-designer-form-container"
|
|
314
318
|
}, /*#__PURE__*/React.createElement("div", {
|
|
315
|
-
className: "qt-designer-form-frame"
|
|
319
|
+
className: "qt-designer-form-frame",
|
|
320
|
+
style: frameStyle
|
|
316
321
|
}, widget.name.startsWith("nrel__") ? _this.renderNRelation(widget) : _this.renderLayout(widget.layout, feature, editConfig, updateField, nametransform)));
|
|
317
322
|
} else if (widget["class"] === "QGroupBox") {
|
|
318
323
|
if (widget.property.visibilityExpression) {
|
|
@@ -331,10 +336,14 @@ var QtDesignerForm = /*#__PURE__*/function (_React$Component) {
|
|
|
331
336
|
className: "qt-designer-form-frame-title",
|
|
332
337
|
style: fontStyle
|
|
333
338
|
}, _this.translateFormString(prop.title, editConfig.layerName)), /*#__PURE__*/React.createElement("div", {
|
|
334
|
-
className: "qt-designer-form-frame"
|
|
339
|
+
className: "qt-designer-form-frame",
|
|
340
|
+
style: frameStyle
|
|
335
341
|
}, widget.name.startsWith("nrel__") ? _this.renderNRelation(widget) : _this.renderLayout(widget.layout, feature, editConfig, updateField, nametransform)));
|
|
336
342
|
} else if (widget["class"] === "QTabWidget") {
|
|
337
343
|
var tabwidgets = (widget.widget || []).filter(function (child) {
|
|
344
|
+
if (!child.property.visibilityExpression) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
338
347
|
var exprResult = parseExpression(child.property.visibilityExpression, feature, editConfig, _this.props.iface, _this.props.mapPrefix, _this.props.mapCrs, function () {
|
|
339
348
|
return _this.setState({
|
|
340
349
|
reevaluate: +new Date()
|
|
@@ -366,7 +375,8 @@ var QtDesignerForm = /*#__PURE__*/function (_React$Component) {
|
|
|
366
375
|
});
|
|
367
376
|
}
|
|
368
377
|
}), /*#__PURE__*/React.createElement("div", {
|
|
369
|
-
className: "qt-designer-form-frame"
|
|
378
|
+
className: "qt-designer-form-frame qt-designer-form-tab",
|
|
379
|
+
style: frameStyle
|
|
370
380
|
}, tabwidgets.filter(function (child) {
|
|
371
381
|
return child.layout;
|
|
372
382
|
}).map(function (child) {
|
package/package.json
CHANGED
package/plugins/Print.js
CHANGED
|
@@ -668,6 +668,7 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
668
668
|
});
|
|
669
669
|
});
|
|
670
670
|
_defineProperty(_this, "print", function (ev) {
|
|
671
|
+
var _this$props$theme$vis;
|
|
671
672
|
ev.preventDefault();
|
|
672
673
|
_this.setState({
|
|
673
674
|
printing: true
|
|
@@ -696,7 +697,7 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
696
697
|
formData[mapName + ":STYLES"] = printParams.STYLES;
|
|
697
698
|
formData[mapName + ":FILTER"] = printParams.FILTER;
|
|
698
699
|
formData[mapName + ":FILTER_GEOM"] = printParams.FILTER_GEOM;
|
|
699
|
-
if (_this.state.layout.map.followPresetName in _this.props.theme.visibilityPresets) {
|
|
700
|
+
if (_this.state.layout.map.followPresetName in ((_this$props$theme$vis = _this.props.theme.visibilityPresets) !== null && _this$props$theme$vis !== void 0 ? _this$props$theme$vis : {})) {
|
|
700
701
|
var preset = _this.props.theme.visibilityPresets[_this.state.layout.map.followPresetName];
|
|
701
702
|
var layers = [];
|
|
702
703
|
var styles = [];
|