@gingkoo/pandora-metabase 1.0.158-alpha.3 → 1.0.158-alpha.4
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/lib/cjs/components/dialog/formula/utils.js +2 -0
- package/lib/cjs/components/modules/join-data.js +2 -0
- package/lib/cjs/utils.js +3 -0
- package/lib/es/components/dialog/formula/utils.js +2 -0
- package/lib/es/components/modules/join-data.js +2 -0
- package/lib/es/utils.js +3 -0
- package/package.json +1 -1
|
@@ -87,6 +87,8 @@ var getQuotes = exports.getQuotes = function getQuotes(fun, _args, formulaList)
|
|
|
87
87
|
return vv === null || vv === void 0 ? void 0 : vv.quotes;
|
|
88
88
|
} else if (vv !== null && vv !== void 0 && vv.fieldName) {
|
|
89
89
|
return vv === null || vv === void 0 ? void 0 : vv.fieldName;
|
|
90
|
+
} else if ((vv === null || vv === void 0 ? void 0 : vv.type) === _types.AtomsTypeEnum.INPUT_STRING && vv.val === '') {
|
|
91
|
+
return "''";
|
|
90
92
|
} else if ((vv === null || vv === void 0 ? void 0 : vv.type) === _types.AtomsTypeEnum.SELECT) {
|
|
91
93
|
var displayField = vv.displayField || 'value';
|
|
92
94
|
var getOptionText = function getOptionText(value) {
|
|
@@ -992,6 +992,8 @@ var JoinData = function JoinData(props) {
|
|
|
992
992
|
children: (0, _jsxRuntime.jsx)(_index["default"], (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, other), {}, {
|
|
993
993
|
popupZIndex: childModalZIndex + 1,
|
|
994
994
|
showSubquery: store._showSubquery,
|
|
995
|
+
isExit: isExit,
|
|
996
|
+
isSubquery: true,
|
|
995
997
|
toolbar: _toolbar,
|
|
996
998
|
btnText: (0, _locale.__)('SqlQueryBuilder.confirm'),
|
|
997
999
|
value: (0, _cloneDeep["default"])(val),
|
package/lib/cjs/utils.js
CHANGED
|
@@ -625,6 +625,9 @@ var _getAtomDisplayText = exports.getAtomDisplayText = function getAtomDisplayTe
|
|
|
625
625
|
if (item.type === _types.AtomsTypeEnum.SELECT) {
|
|
626
626
|
return getSelectAtomText(item);
|
|
627
627
|
}
|
|
628
|
+
if (item.type === _types.AtomsTypeEnum.INPUT_STRING && item.val === '') {
|
|
629
|
+
return "''";
|
|
630
|
+
}
|
|
628
631
|
if (item.type === _types.AtomsTypeEnum.EXISTS || item.type === _types.AtomsTypeEnum.NOT_EXISTS || item.type === _types.AtomsTypeEnum.SUB_QUERY) {
|
|
629
632
|
return item.quotes || '';
|
|
630
633
|
}
|
|
@@ -78,6 +78,8 @@ export var getQuotes = function getQuotes(fun, _args, formulaList) {
|
|
|
78
78
|
return vv === null || vv === void 0 ? void 0 : vv.quotes;
|
|
79
79
|
} else if (vv !== null && vv !== void 0 && vv.fieldName) {
|
|
80
80
|
return vv === null || vv === void 0 ? void 0 : vv.fieldName;
|
|
81
|
+
} else if ((vv === null || vv === void 0 ? void 0 : vv.type) === AtomsTypeEnum.INPUT_STRING && vv.val === '') {
|
|
82
|
+
return "''";
|
|
81
83
|
} else if ((vv === null || vv === void 0 ? void 0 : vv.type) === AtomsTypeEnum.SELECT) {
|
|
82
84
|
var displayField = vv.displayField || 'value';
|
|
83
85
|
var getOptionText = function getOptionText(value) {
|
|
@@ -986,6 +986,8 @@ var JoinData = function JoinData(props) {
|
|
|
986
986
|
children: _jsx(Metabase, _objectSpread(_objectSpread({}, other), {}, {
|
|
987
987
|
popupZIndex: childModalZIndex + 1,
|
|
988
988
|
showSubquery: store._showSubquery,
|
|
989
|
+
isExit: isExit,
|
|
990
|
+
isSubquery: true,
|
|
989
991
|
toolbar: _toolbar,
|
|
990
992
|
btnText: __('SqlQueryBuilder.confirm'),
|
|
991
993
|
value: cloneDeep(val),
|
package/lib/es/utils.js
CHANGED
|
@@ -611,6 +611,9 @@ var _getAtomDisplayText = function getAtomDisplayText(item) {
|
|
|
611
611
|
if (item.type === AtomsTypeEnum.SELECT) {
|
|
612
612
|
return getSelectAtomText(item);
|
|
613
613
|
}
|
|
614
|
+
if (item.type === AtomsTypeEnum.INPUT_STRING && item.val === '') {
|
|
615
|
+
return "''";
|
|
616
|
+
}
|
|
614
617
|
if (item.type === AtomsTypeEnum.EXISTS || item.type === AtomsTypeEnum.NOT_EXISTS || item.type === AtomsTypeEnum.SUB_QUERY) {
|
|
615
618
|
return item.quotes || '';
|
|
616
619
|
}
|