@pisell/materials 1.0.603 → 1.0.604
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/pisellModal/components/MobileModal/index.less +4 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/pisellModal/components/MobileModal/index.less +4 -0
- package/lowcode/_utils/defaultSchema.ts +12 -2
- package/lowcode/data-source-form/meta.ts +7 -1
- package/lowcode/data-source-menu/meta.ts +9 -2
- package/lowcode/data-source-table/meta.ts +29 -23
- package/lowcode/data-source-wrapper/meta.ts +6 -2
- package/lowcode/form-group/meta.ts +5 -1
- package/lowcode/pisell-menu/meta.ts +2 -2
- package/package.json +3 -3
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | React.
|
|
20
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | React.
|
|
29
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "button" | "link";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -65,7 +65,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
65
65
|
useCustomAction: boolean;
|
|
66
66
|
actionType: string;
|
|
67
67
|
openMode: "modal" | "drawer";
|
|
68
|
-
openContentSize: "small" | "
|
|
68
|
+
openContentSize: "small" | "middle" | "large";
|
|
69
69
|
openTitle: string;
|
|
70
70
|
key: string;
|
|
71
71
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
max-height: 90%;
|
|
19
19
|
min-height: 200px;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
20
22
|
}
|
|
21
23
|
.pisell-lowcode-modal-content {
|
|
24
|
+
flex: 1;
|
|
22
25
|
padding: 0;
|
|
23
26
|
border-radius: 0;
|
|
24
27
|
height: 100%;
|
|
25
28
|
display: flex;
|
|
26
29
|
flex-direction: column;
|
|
27
30
|
max-height: none;
|
|
31
|
+
min-height: 200px;
|
|
28
32
|
.pisell-lowcode-modal-close {
|
|
29
33
|
padding: 10px;
|
|
30
34
|
top: 8px;
|
|
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
|
|
|
17
17
|
* @returns
|
|
18
18
|
*/
|
|
19
19
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
20
|
-
title: number | boolean | React.
|
|
20
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
21
21
|
pagination: {
|
|
22
22
|
total: number;
|
|
23
23
|
current: number;
|
|
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
26
26
|
showSizeChanger: boolean;
|
|
27
27
|
};
|
|
28
28
|
columns: import("./useColumns").Column[];
|
|
29
|
-
subTitle: number | boolean | React.
|
|
29
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
30
30
|
buttons: any[] | null;
|
|
31
31
|
filter: React.JSX.Element | null;
|
|
32
32
|
onRow: (record: any) => any;
|
|
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
47
47
|
width: number;
|
|
48
48
|
align: "center" | "left" | "right";
|
|
49
49
|
fixed: false | "left" | "right";
|
|
50
|
-
type: "
|
|
50
|
+
type: "button" | "link";
|
|
51
51
|
items: OperationItem[];
|
|
52
52
|
} | undefined;
|
|
53
53
|
operationContent?: {
|
|
@@ -65,7 +65,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
65
65
|
useCustomAction: boolean;
|
|
66
66
|
actionType: string;
|
|
67
67
|
openMode: "modal" | "drawer";
|
|
68
|
-
openContentSize: "small" | "
|
|
68
|
+
openContentSize: "small" | "middle" | "large";
|
|
69
69
|
openTitle: string;
|
|
70
70
|
key: string;
|
|
71
71
|
} | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
max-height: 90%;
|
|
19
19
|
min-height: 200px;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
20
22
|
}
|
|
21
23
|
.pisell-lowcode-modal-content {
|
|
24
|
+
flex: 1;
|
|
22
25
|
padding: 0;
|
|
23
26
|
border-radius: 0;
|
|
24
27
|
height: 100%;
|
|
25
28
|
display: flex;
|
|
26
29
|
flex-direction: column;
|
|
27
30
|
max-height: none;
|
|
31
|
+
min-height: 200px;
|
|
28
32
|
.pisell-lowcode-modal-close {
|
|
29
33
|
padding: 10px;
|
|
30
34
|
top: 8px;
|
|
@@ -363,7 +363,7 @@ export const generalItemMap = {
|
|
|
363
363
|
},
|
|
364
364
|
maxLengthobj: {
|
|
365
365
|
name: 'maxLengthobj',
|
|
366
|
-
|
|
366
|
+
title: {
|
|
367
367
|
label: {
|
|
368
368
|
type: 'i18n',
|
|
369
369
|
'en-US': 'Maximum length',
|
|
@@ -655,6 +655,10 @@ export const formItemGeneralDataGroup = {
|
|
|
655
655
|
componentName: 'PisellDataSourceSetter',
|
|
656
656
|
props: {
|
|
657
657
|
disabled: true,
|
|
658
|
+
filters: {
|
|
659
|
+
tables: 'all',
|
|
660
|
+
variables: {}
|
|
661
|
+
},
|
|
658
662
|
},
|
|
659
663
|
},
|
|
660
664
|
},
|
|
@@ -722,6 +726,10 @@ export const formItemGeneralOptionTypeGroup = {
|
|
|
722
726
|
componentName: 'PisellDataSourceSetter',
|
|
723
727
|
props: {
|
|
724
728
|
mode: 'list',
|
|
729
|
+
filters: {
|
|
730
|
+
tables: 'all',
|
|
731
|
+
variables: {}
|
|
732
|
+
},
|
|
725
733
|
},
|
|
726
734
|
},
|
|
727
735
|
},
|
|
@@ -1510,7 +1518,9 @@ export const genGeneralVariablesSetting = ({
|
|
|
1510
1518
|
componentName: 'PisellDataSourceSetter',
|
|
1511
1519
|
props: (target: any) => {
|
|
1512
1520
|
return {
|
|
1513
|
-
|
|
1521
|
+
filters: {
|
|
1522
|
+
variables: {}
|
|
1523
|
+
},
|
|
1514
1524
|
variables: getCptValuesVariables(target),
|
|
1515
1525
|
};
|
|
1516
1526
|
},
|
|
@@ -154,6 +154,10 @@ const dataSourceForm: MetaType = {
|
|
|
154
154
|
componentName: 'PisellDataSourceSetter',
|
|
155
155
|
props: (target: any) => {
|
|
156
156
|
return {
|
|
157
|
+
filters: {
|
|
158
|
+
tables: 'all',
|
|
159
|
+
variables: {}
|
|
160
|
+
},
|
|
157
161
|
mode: target.getProps().getPropValue('renderMode'),
|
|
158
162
|
variables: getDataSourceVariables(target),
|
|
159
163
|
};
|
|
@@ -256,7 +260,9 @@ const dataSourceForm: MetaType = {
|
|
|
256
260
|
componentName: 'PisellDataSourceSetter',
|
|
257
261
|
props: (target) => {
|
|
258
262
|
return {
|
|
259
|
-
|
|
263
|
+
filters: {
|
|
264
|
+
variables: {}
|
|
265
|
+
},
|
|
260
266
|
variables: getCurrentValueVariables(target),
|
|
261
267
|
};
|
|
262
268
|
},
|
|
@@ -26,10 +26,17 @@ const DataSourceMenuMeta: IPublicTypeComponentMetadata = {
|
|
|
26
26
|
},
|
|
27
27
|
setter: {
|
|
28
28
|
componentName: 'PisellDataSourceSetter',
|
|
29
|
+
props: {
|
|
30
|
+
filters: {
|
|
31
|
+
variables: {
|
|
32
|
+
menu: 'all'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
}
|
|
29
36
|
},
|
|
30
37
|
extraProps: {
|
|
31
38
|
setValue(target: any, value: any) {
|
|
32
|
-
return target.getProps().setPropValue('dataSource', value.
|
|
39
|
+
return target.getProps().setPropValue('dataSource', value.value);
|
|
33
40
|
},
|
|
34
41
|
},
|
|
35
42
|
},
|
|
@@ -97,7 +104,7 @@ const DataSourceMenuMeta: IPublicTypeComponentMetadata = {
|
|
|
97
104
|
const snippets: IPublicTypeSnippet[] = [
|
|
98
105
|
{
|
|
99
106
|
title: '菜单导航',
|
|
100
|
-
screenshot: '',
|
|
107
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/menu-1.jpg',
|
|
101
108
|
schema: {
|
|
102
109
|
componentName: 'DataSourceMenu',
|
|
103
110
|
props: {
|
|
@@ -21,12 +21,12 @@ import { getFormItemGeneralInfoGroup } from '../_utils/defaultSchema';
|
|
|
21
21
|
const getI18n = (
|
|
22
22
|
item:
|
|
23
23
|
| {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
type: string;
|
|
25
|
+
key: string;
|
|
26
|
+
en: string;
|
|
27
|
+
'zh-CN': string;
|
|
28
|
+
'zh-HK': string;
|
|
29
|
+
}
|
|
30
30
|
| string
|
|
31
31
|
) => {
|
|
32
32
|
if (typeof item === 'string') {
|
|
@@ -141,6 +141,12 @@ const dataSourceTable = {
|
|
|
141
141
|
},
|
|
142
142
|
setter: {
|
|
143
143
|
componentName: 'PisellDataSourceSetter',
|
|
144
|
+
props: {
|
|
145
|
+
filters: {
|
|
146
|
+
tables: 'all',
|
|
147
|
+
variables: {}
|
|
148
|
+
},
|
|
149
|
+
}
|
|
144
150
|
},
|
|
145
151
|
},
|
|
146
152
|
{
|
|
@@ -1733,23 +1739,23 @@ const dataSourceTable = {
|
|
|
1733
1739
|
defaultValue: false,
|
|
1734
1740
|
isRequired: true,
|
|
1735
1741
|
},
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1742
|
+
{
|
|
1743
|
+
name: 'other',
|
|
1744
|
+
title: {
|
|
1745
|
+
label: {
|
|
1746
|
+
type: 'i18n',
|
|
1747
|
+
'en-US': 'Other Properties',
|
|
1748
|
+
'zh-CN': '其他拓展属性'
|
|
1749
|
+
},
|
|
1750
|
+
tip: {
|
|
1751
|
+
type: 'i18n',
|
|
1752
|
+
'en-US': 'Other extended properties',
|
|
1753
|
+
'zh-CN': '其他拓展属性'
|
|
1754
|
+
}
|
|
1743
1755
|
},
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
'zh-CN': '其他拓展属性'
|
|
1748
|
-
}
|
|
1749
|
-
},
|
|
1750
|
-
propType: 'object',
|
|
1751
|
-
setter: 'JsonSetter'
|
|
1752
|
-
}
|
|
1756
|
+
propType: 'object',
|
|
1757
|
+
setter: 'JsonSetter'
|
|
1758
|
+
}
|
|
1753
1759
|
],
|
|
1754
1760
|
},
|
|
1755
1761
|
},
|
|
@@ -4801,7 +4807,7 @@ const dataSourceTable = {
|
|
|
4801
4807
|
target.parent.parent.parent,
|
|
4802
4808
|
this,
|
|
4803
4809
|
'target.parent.parent.parent\n' +
|
|
4804
|
-
|
|
4810
|
+
' .getPropValue("columns")'
|
|
4805
4811
|
);
|
|
4806
4812
|
const fieldsKey =
|
|
4807
4813
|
target.parent.parent.parent
|
|
@@ -72,7 +72,7 @@ const dataSourceWrapper: MetaType = {
|
|
|
72
72
|
target.getProps().setPropValue('title', '');
|
|
73
73
|
target.node.children.importSchema([]);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
const dataSource = value.isVariable ? value.value : value.item;
|
|
77
77
|
|
|
78
78
|
setBatchVariables(target, [
|
|
@@ -102,6 +102,10 @@ const dataSourceWrapper: MetaType = {
|
|
|
102
102
|
componentName: 'PisellDataSourceSetter',
|
|
103
103
|
props: (target: any) => {
|
|
104
104
|
return {
|
|
105
|
+
filters: {
|
|
106
|
+
tables: 'all',
|
|
107
|
+
variables: {}
|
|
108
|
+
},
|
|
105
109
|
variables: getDataSourceVariables(target),
|
|
106
110
|
};
|
|
107
111
|
},
|
|
@@ -163,7 +167,7 @@ const dataSourceWrapper: MetaType = {
|
|
|
163
167
|
name: 'autoRun.get',
|
|
164
168
|
title: {
|
|
165
169
|
type: 'i18n',
|
|
166
|
-
'en-US': 'Get Auto Run',
|
|
170
|
+
'en-US': 'Get Auto Run',
|
|
167
171
|
'zh-CN': '详情自动运行',
|
|
168
172
|
},
|
|
169
173
|
setter: 'BoolSetter',
|
|
@@ -84,6 +84,10 @@ export default {
|
|
|
84
84
|
componentName: 'PisellDataSourceSetter',
|
|
85
85
|
props: {
|
|
86
86
|
disabled: true,
|
|
87
|
+
filters: {
|
|
88
|
+
tables: 'all',
|
|
89
|
+
variables: {}
|
|
90
|
+
},
|
|
87
91
|
},
|
|
88
92
|
},
|
|
89
93
|
},
|
|
@@ -134,7 +138,7 @@ export default {
|
|
|
134
138
|
appendContainer = lastGroup || appendContainer;
|
|
135
139
|
// 全部字段
|
|
136
140
|
const allFields = getVariable(target.node.parent, 'currentFields');
|
|
137
|
-
|
|
141
|
+
|
|
138
142
|
const nocobaseField = allFields.find(
|
|
139
143
|
(item: any) => item.name === field
|
|
140
144
|
);
|
|
@@ -84,8 +84,8 @@ const PisellMenuMeta: IPublicTypeComponentMetadata = {
|
|
|
84
84
|
|
|
85
85
|
const snippets: IPublicTypeSnippet[] = [
|
|
86
86
|
{
|
|
87
|
-
title: '
|
|
88
|
-
screenshot: '',
|
|
87
|
+
title: '菜单导航',
|
|
88
|
+
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/menu-1.jpg',
|
|
89
89
|
schema: {
|
|
90
90
|
componentName: 'PisellMenu',
|
|
91
91
|
props: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.604",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"libphonenumber-js": "^1.11.17",
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
|
+
"@pisell/date-picker": "1.0.115",
|
|
72
73
|
"@pisell/icon": "0.0.10",
|
|
73
|
-
"@pisell/utils": "1.0.43"
|
|
74
|
-
"@pisell/date-picker": "1.0.115"
|
|
74
|
+
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18.0.0",
|