@gingkoo/pandora-metabase 0.0.1-alpha.10 → 0.0.1-alpha.12
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 +5 -5
- package/lib/es/index.js.map +1 -1
- package/lib/es/store/types.d.ts +1 -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.12
|
|
3
3
|
*/
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -3215,7 +3215,7 @@ const SelectJoinColumn = ({
|
|
|
3215
3215
|
if (v.alias === tableAlias) {
|
|
3216
3216
|
return {
|
|
3217
3217
|
...v,
|
|
3218
|
-
columns: _data[i]?.columns.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
|
|
3218
|
+
columns: _data[i]?.columns.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())),
|
|
3219
3219
|
searchText: val
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
@@ -4111,7 +4111,7 @@ const SelectTable = ({
|
|
|
4111
4111
|
function onInput(e) {
|
|
4112
4112
|
let val = e.target.value;
|
|
4113
4113
|
let newList = _$3.cloneDeep(originList.slice());
|
|
4114
|
-
setList(newList.filter(v => ~v.name.toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
|
|
4114
|
+
setList(newList.filter(v => ~(v.name + (v.name_zh || '')).toLocaleLowerCase().indexOf(val.toLocaleLowerCase())));
|
|
4115
4115
|
}
|
|
4116
4116
|
function goPrevPage() {
|
|
4117
4117
|
setVal({
|
|
@@ -5376,14 +5376,14 @@ const Filter = props => {
|
|
|
5376
5376
|
className: `Sqb-item`,
|
|
5377
5377
|
children: jsxs("div", {
|
|
5378
5378
|
className: `Sqb-hover-parent`,
|
|
5379
|
-
children: [jsx(Header, {
|
|
5379
|
+
children: [!meta.isPermanent ? jsx(Header, {
|
|
5380
5380
|
className: 'purple-text',
|
|
5381
5381
|
title: __('SqlQueryBuilder.filter'),
|
|
5382
5382
|
onClose: () => {
|
|
5383
5383
|
closePopup();
|
|
5384
5384
|
store.delMeta(meta);
|
|
5385
5385
|
}
|
|
5386
|
-
}), jsx("div", {
|
|
5386
|
+
}) : null, jsx("div", {
|
|
5387
5387
|
className: `Sqb-item--content`,
|
|
5388
5388
|
children: jsxs("div", {
|
|
5389
5389
|
className: `Sqb-NotebookCell gray-bg`,
|