@gingkoo/pandora-metabase 0.0.16 → 0.0.18
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/es/index.js +7 -8
- package/lib/es/index.js.map +1 -1
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-metabase v0.0.
|
|
2
|
+
* @gingkoo/pandora-metabase v0.0.18
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -5346,7 +5346,7 @@ const JoinData = props => {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
} else {
|
|
5348
5348
|
// @ts-ignore
|
|
5349
|
-
data =
|
|
5349
|
+
data = metaList.slice(0, index).map(v => {
|
|
5350
5350
|
if (v.type === TypeEnum.data) {
|
|
5351
5351
|
return {
|
|
5352
5352
|
alias: v.table.alias,
|
|
@@ -5730,7 +5730,6 @@ const JoinData = props => {
|
|
|
5730
5730
|
// 子查询弹窗
|
|
5731
5731
|
const showSubQuery = (val = []) => {
|
|
5732
5732
|
const {
|
|
5733
|
-
ref,
|
|
5734
5733
|
subToolbar,
|
|
5735
5734
|
toolbar,
|
|
5736
5735
|
...other
|
|
@@ -5757,13 +5756,14 @@ const JoinData = props => {
|
|
|
5757
5756
|
newMeta[index].subquery = newList;
|
|
5758
5757
|
newMeta[index].table2 = {
|
|
5759
5758
|
...newList[0].table,
|
|
5760
|
-
column: ''
|
|
5759
|
+
column: '',
|
|
5760
|
+
column_id: ''
|
|
5761
5761
|
};
|
|
5762
5762
|
const items = _getColumns(newList);
|
|
5763
5763
|
const newColumns = items.flatMap(item => item.columns);
|
|
5764
5764
|
newMeta[index].columns = newColumns;
|
|
5765
5765
|
newMeta[index].expressions = [];
|
|
5766
|
-
store.
|
|
5766
|
+
store.setPreData(newMeta);
|
|
5767
5767
|
o.close();
|
|
5768
5768
|
} catch (e) {
|
|
5769
5769
|
console.warn(e);
|
|
@@ -6466,7 +6466,6 @@ const GroupBy = props => {
|
|
|
6466
6466
|
isGroup: true,
|
|
6467
6467
|
// @ts-ignore
|
|
6468
6468
|
onGroup: data => {
|
|
6469
|
-
console.log('🚀 ~ handleUpdate ~ data:', data);
|
|
6470
6469
|
// @ts-ignore
|
|
6471
6470
|
newMeta[index].by.splice(i, 1, data);
|
|
6472
6471
|
// @ts-ignore
|
|
@@ -7262,10 +7261,10 @@ const SqlVisionBuilder = /*#__PURE__*/React__default.forwardRef((props, ref) =>
|
|
|
7262
7261
|
}, [props]);
|
|
7263
7262
|
useEffect(() => {
|
|
7264
7263
|
store.setPreData(value);
|
|
7265
|
-
}, [
|
|
7264
|
+
}, [value]);
|
|
7266
7265
|
useEffect(() => {
|
|
7267
7266
|
store.setSourceList(sourceList);
|
|
7268
|
-
}, [
|
|
7267
|
+
}, [sourceList]);
|
|
7269
7268
|
useEffect(() => {
|
|
7270
7269
|
store.setShowFields(showFields);
|
|
7271
7270
|
store.setFieldNameTpl(fieldNameTpl || '${name}');
|