@gingkoo/pandora-metabase 0.0.1-alpha.8 → 0.0.1-alpha.9
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 -7
- package/lib/es/index.js.map +1 -1
- package/lib/es/store/types.d.ts +2 -0
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-metabase v0.0.1-alpha.
|
|
2
|
+
* @gingkoo/pandora-metabase v0.0.1-alpha.9
|
|
3
3
|
*/
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -4689,7 +4689,7 @@ const TableData = props => {
|
|
|
4689
4689
|
const store = useStore();
|
|
4690
4690
|
let selected = Boolean(meta.table.name);
|
|
4691
4691
|
function selectTable(e) {
|
|
4692
|
-
store.setPopup({
|
|
4692
|
+
!meta.readonly && store.setPopup({
|
|
4693
4693
|
visible: true,
|
|
4694
4694
|
node: e.currentTarget,
|
|
4695
4695
|
content: jsx(SelectTable$1, {
|
|
@@ -4714,7 +4714,7 @@ const TableData = props => {
|
|
|
4714
4714
|
}
|
|
4715
4715
|
function selectColumns(e) {
|
|
4716
4716
|
let columns = meta.columns;
|
|
4717
|
-
store.setPopup({
|
|
4717
|
+
!meta.readonly && store.setPopup({
|
|
4718
4718
|
visible: true,
|
|
4719
4719
|
node: e.currentTarget || e.target,
|
|
4720
4720
|
content: jsx(SelectColumn, {
|
|
@@ -4778,7 +4778,7 @@ const JoinData = props => {
|
|
|
4778
4778
|
let columnsSelected = meta.table1.column && meta.table2.column;
|
|
4779
4779
|
function selectColumns(e) {
|
|
4780
4780
|
let columns = meta.columns;
|
|
4781
|
-
store.setPopup({
|
|
4781
|
+
!meta.readonly && store.setPopup({
|
|
4782
4782
|
visible: true,
|
|
4783
4783
|
node: e.currentTarget,
|
|
4784
4784
|
content: jsx(SelectColumn, {
|
|
@@ -4798,7 +4798,7 @@ const JoinData = props => {
|
|
|
4798
4798
|
datasourceId: meta.table2.datasourceId,
|
|
4799
4799
|
datasourceName: meta.table2.datasourceName
|
|
4800
4800
|
};
|
|
4801
|
-
store.setPopup({
|
|
4801
|
+
!meta.readonly && store.setPopup({
|
|
4802
4802
|
visible: true,
|
|
4803
4803
|
node: e.currentTarget,
|
|
4804
4804
|
content: jsx(SelectTable$1, {
|
|
@@ -4861,7 +4861,7 @@ const JoinData = props => {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
function selectJoin(e) {
|
|
4863
4863
|
let newMeta = store.metaList.slice();
|
|
4864
|
-
store.setPopup({
|
|
4864
|
+
!meta.readonly && store.setPopup({
|
|
4865
4865
|
visible: true,
|
|
4866
4866
|
node: e.currentTarget,
|
|
4867
4867
|
content: jsx(SelectJoin, {
|
|
@@ -4969,7 +4969,7 @@ const JoinData = props => {
|
|
|
4969
4969
|
columns: meta.columns
|
|
4970
4970
|
}];
|
|
4971
4971
|
}
|
|
4972
|
-
store.setPopup({
|
|
4972
|
+
!meta.readonly && store.setPopup({
|
|
4973
4973
|
visible: true,
|
|
4974
4974
|
node,
|
|
4975
4975
|
content: jsx(SelectJoinColumn$1, {
|