@nocobase/test 0.19.0-alpha.2 → 0.19.0-alpha.3
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.
|
@@ -116,6 +116,10 @@ export declare const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields: Pag
|
|
|
116
116
|
* 5. 所有字段都是 relation 字段
|
|
117
117
|
*/
|
|
118
118
|
export declare const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields: PageConfig;
|
|
119
|
+
/**
|
|
120
|
+
* 页面中有一个 filter form 区块,包含所有关系字段类型的字段
|
|
121
|
+
*/
|
|
122
|
+
export declare const oneFilterFormBlockWithAllAssociationFields: PageConfig;
|
|
119
123
|
/**
|
|
120
124
|
* 1. 一个 Table 区块
|
|
121
125
|
* 2. 点击 Add new 有一个 Form 区块
|
|
@@ -36,6 +36,7 @@ __export(templatesOfPage_exports, {
|
|
|
36
36
|
oneEmptyTableBlockWithActions: () => oneEmptyTableBlockWithActions,
|
|
37
37
|
oneEmptyTableBlockWithCustomizeActions: () => oneEmptyTableBlockWithCustomizeActions,
|
|
38
38
|
oneEmptyTableWithTreeCollection: () => oneEmptyTableWithTreeCollection,
|
|
39
|
+
oneFilterFormBlockWithAllAssociationFields: () => oneFilterFormBlockWithAllAssociationFields,
|
|
39
40
|
oneFormAndOneTableWithSameCollection: () => oneFormAndOneTableWithSameCollection,
|
|
40
41
|
oneFormBlockBasedOnUsers: () => oneFormBlockBasedOnUsers,
|
|
41
42
|
oneFormBlockWithAllAssociationFieldsAndSelectorMode: () => oneFormBlockWithAllAssociationFieldsAndSelectorMode,
|
|
@@ -10910,6 +10911,325 @@ const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields = {
|
|
|
10910
10911
|
"x-index": 1
|
|
10911
10912
|
}
|
|
10912
10913
|
};
|
|
10914
|
+
const oneFilterFormBlockWithAllAssociationFields = {
|
|
10915
|
+
collections: import_templatesOfCollection.generalWithAssociation,
|
|
10916
|
+
pageSchema: {
|
|
10917
|
+
_isJSONSchemaObject: true,
|
|
10918
|
+
version: "2.0",
|
|
10919
|
+
type: "void",
|
|
10920
|
+
"x-component": "Page",
|
|
10921
|
+
properties: {
|
|
10922
|
+
wwjstoiggum: {
|
|
10923
|
+
_isJSONSchemaObject: true,
|
|
10924
|
+
version: "2.0",
|
|
10925
|
+
type: "void",
|
|
10926
|
+
"x-component": "Grid",
|
|
10927
|
+
"x-initializer": "BlockInitializers",
|
|
10928
|
+
properties: {
|
|
10929
|
+
oogm3hoka7c: {
|
|
10930
|
+
_isJSONSchemaObject: true,
|
|
10931
|
+
version: "2.0",
|
|
10932
|
+
type: "void",
|
|
10933
|
+
"x-component": "Grid.Row",
|
|
10934
|
+
properties: {
|
|
10935
|
+
"5zbwfzh1742": {
|
|
10936
|
+
_isJSONSchemaObject: true,
|
|
10937
|
+
version: "2.0",
|
|
10938
|
+
type: "void",
|
|
10939
|
+
"x-component": "Grid.Col",
|
|
10940
|
+
properties: {
|
|
10941
|
+
pwm2ca6igf0: {
|
|
10942
|
+
_isJSONSchemaObject: true,
|
|
10943
|
+
version: "2.0",
|
|
10944
|
+
type: "void",
|
|
10945
|
+
"x-decorator": "FilterFormBlockProvider",
|
|
10946
|
+
"x-decorator-props": {
|
|
10947
|
+
resource: "general",
|
|
10948
|
+
collection: "general"
|
|
10949
|
+
},
|
|
10950
|
+
"x-designer": "FormV2.FilterDesigner",
|
|
10951
|
+
"x-component": "CardItem",
|
|
10952
|
+
"x-filter-targets": [],
|
|
10953
|
+
"x-filter-operators": {},
|
|
10954
|
+
properties: {
|
|
10955
|
+
j2u0whpedfr: {
|
|
10956
|
+
_isJSONSchemaObject: true,
|
|
10957
|
+
version: "2.0",
|
|
10958
|
+
type: "void",
|
|
10959
|
+
"x-component": "FormV2",
|
|
10960
|
+
"x-component-props": {
|
|
10961
|
+
useProps: "{{ useFormBlockProps }}"
|
|
10962
|
+
},
|
|
10963
|
+
properties: {
|
|
10964
|
+
grid: {
|
|
10965
|
+
_isJSONSchemaObject: true,
|
|
10966
|
+
version: "2.0",
|
|
10967
|
+
type: "void",
|
|
10968
|
+
"x-component": "Grid",
|
|
10969
|
+
"x-initializer": "FilterFormItemInitializers",
|
|
10970
|
+
properties: {
|
|
10971
|
+
y5gw4zxp20e: {
|
|
10972
|
+
_isJSONSchemaObject: true,
|
|
10973
|
+
version: "2.0",
|
|
10974
|
+
type: "void",
|
|
10975
|
+
"x-component": "Grid.Row",
|
|
10976
|
+
properties: {
|
|
10977
|
+
yflpc1gga26: {
|
|
10978
|
+
_isJSONSchemaObject: true,
|
|
10979
|
+
version: "2.0",
|
|
10980
|
+
type: "void",
|
|
10981
|
+
"x-component": "Grid.Col",
|
|
10982
|
+
properties: {
|
|
10983
|
+
oneToOneBelongsTo: {
|
|
10984
|
+
_isJSONSchemaObject: true,
|
|
10985
|
+
version: "2.0",
|
|
10986
|
+
type: "string",
|
|
10987
|
+
required: false,
|
|
10988
|
+
"x-designer": "FormItem.FilterFormDesigner",
|
|
10989
|
+
"x-component": "CollectionField",
|
|
10990
|
+
"x-decorator": "FormItem",
|
|
10991
|
+
"x-collection-field": "general.oneToOneBelongsTo",
|
|
10992
|
+
"x-component-props": {
|
|
10993
|
+
multiple: false,
|
|
10994
|
+
fieldNames: {
|
|
10995
|
+
label: "id",
|
|
10996
|
+
value: "id"
|
|
10997
|
+
}
|
|
10998
|
+
},
|
|
10999
|
+
"x-uid": "36aeb1yw2yy",
|
|
11000
|
+
"x-async": false,
|
|
11001
|
+
"x-index": 1
|
|
11002
|
+
}
|
|
11003
|
+
},
|
|
11004
|
+
"x-uid": "4hc93v9beuk",
|
|
11005
|
+
"x-async": false,
|
|
11006
|
+
"x-index": 1
|
|
11007
|
+
}
|
|
11008
|
+
},
|
|
11009
|
+
"x-uid": "u7avxnfj90q",
|
|
11010
|
+
"x-async": false,
|
|
11011
|
+
"x-index": 1
|
|
11012
|
+
},
|
|
11013
|
+
t2podb2p9ts: {
|
|
11014
|
+
_isJSONSchemaObject: true,
|
|
11015
|
+
version: "2.0",
|
|
11016
|
+
type: "void",
|
|
11017
|
+
"x-component": "Grid.Row",
|
|
11018
|
+
properties: {
|
|
11019
|
+
udslfw0t5vy: {
|
|
11020
|
+
_isJSONSchemaObject: true,
|
|
11021
|
+
version: "2.0",
|
|
11022
|
+
type: "void",
|
|
11023
|
+
"x-component": "Grid.Col",
|
|
11024
|
+
properties: {
|
|
11025
|
+
oneToOneHasOne: {
|
|
11026
|
+
_isJSONSchemaObject: true,
|
|
11027
|
+
version: "2.0",
|
|
11028
|
+
type: "string",
|
|
11029
|
+
required: false,
|
|
11030
|
+
"x-designer": "FormItem.FilterFormDesigner",
|
|
11031
|
+
"x-component": "CollectionField",
|
|
11032
|
+
"x-decorator": "FormItem",
|
|
11033
|
+
"x-collection-field": "general.oneToOneHasOne",
|
|
11034
|
+
"x-component-props": {
|
|
11035
|
+
multiple: false,
|
|
11036
|
+
fieldNames: {
|
|
11037
|
+
label: "id",
|
|
11038
|
+
value: "id"
|
|
11039
|
+
}
|
|
11040
|
+
},
|
|
11041
|
+
"x-uid": "945t8dkn7ab",
|
|
11042
|
+
"x-async": false,
|
|
11043
|
+
"x-index": 1
|
|
11044
|
+
}
|
|
11045
|
+
},
|
|
11046
|
+
"x-uid": "alfh40hld9g",
|
|
11047
|
+
"x-async": false,
|
|
11048
|
+
"x-index": 1
|
|
11049
|
+
}
|
|
11050
|
+
},
|
|
11051
|
+
"x-uid": "p0lrhxcpc30",
|
|
11052
|
+
"x-async": false,
|
|
11053
|
+
"x-index": 2
|
|
11054
|
+
},
|
|
11055
|
+
zzfk0g3yfjw: {
|
|
11056
|
+
_isJSONSchemaObject: true,
|
|
11057
|
+
version: "2.0",
|
|
11058
|
+
type: "void",
|
|
11059
|
+
"x-component": "Grid.Row",
|
|
11060
|
+
properties: {
|
|
11061
|
+
f2dxs9mqnhu: {
|
|
11062
|
+
_isJSONSchemaObject: true,
|
|
11063
|
+
version: "2.0",
|
|
11064
|
+
type: "void",
|
|
11065
|
+
"x-component": "Grid.Col",
|
|
11066
|
+
properties: {
|
|
11067
|
+
oneToMany: {
|
|
11068
|
+
_isJSONSchemaObject: true,
|
|
11069
|
+
version: "2.0",
|
|
11070
|
+
type: "string",
|
|
11071
|
+
required: false,
|
|
11072
|
+
"x-designer": "FormItem.FilterFormDesigner",
|
|
11073
|
+
"x-component": "CollectionField",
|
|
11074
|
+
"x-decorator": "FormItem",
|
|
11075
|
+
"x-collection-field": "general.oneToMany",
|
|
11076
|
+
"x-component-props": {
|
|
11077
|
+
multiple: true,
|
|
11078
|
+
fieldNames: {
|
|
11079
|
+
label: "id",
|
|
11080
|
+
value: "id"
|
|
11081
|
+
}
|
|
11082
|
+
},
|
|
11083
|
+
"x-uid": "8j8w5rtdhux",
|
|
11084
|
+
"x-async": false,
|
|
11085
|
+
"x-index": 1
|
|
11086
|
+
}
|
|
11087
|
+
},
|
|
11088
|
+
"x-uid": "zvua8m975ql",
|
|
11089
|
+
"x-async": false,
|
|
11090
|
+
"x-index": 1
|
|
11091
|
+
}
|
|
11092
|
+
},
|
|
11093
|
+
"x-uid": "bo6emdzi0ug",
|
|
11094
|
+
"x-async": false,
|
|
11095
|
+
"x-index": 3
|
|
11096
|
+
},
|
|
11097
|
+
"0klgdlg66ay": {
|
|
11098
|
+
_isJSONSchemaObject: true,
|
|
11099
|
+
version: "2.0",
|
|
11100
|
+
type: "void",
|
|
11101
|
+
"x-component": "Grid.Row",
|
|
11102
|
+
properties: {
|
|
11103
|
+
"12wu3wvgdhp": {
|
|
11104
|
+
_isJSONSchemaObject: true,
|
|
11105
|
+
version: "2.0",
|
|
11106
|
+
type: "void",
|
|
11107
|
+
"x-component": "Grid.Col",
|
|
11108
|
+
properties: {
|
|
11109
|
+
manyToOne: {
|
|
11110
|
+
_isJSONSchemaObject: true,
|
|
11111
|
+
version: "2.0",
|
|
11112
|
+
type: "string",
|
|
11113
|
+
required: false,
|
|
11114
|
+
"x-designer": "FormItem.FilterFormDesigner",
|
|
11115
|
+
"x-component": "CollectionField",
|
|
11116
|
+
"x-decorator": "FormItem",
|
|
11117
|
+
"x-collection-field": "general.manyToOne",
|
|
11118
|
+
"x-component-props": {
|
|
11119
|
+
multiple: false,
|
|
11120
|
+
fieldNames: {
|
|
11121
|
+
label: "id",
|
|
11122
|
+
value: "id"
|
|
11123
|
+
}
|
|
11124
|
+
},
|
|
11125
|
+
"x-uid": "wcsgutero19",
|
|
11126
|
+
"x-async": false,
|
|
11127
|
+
"x-index": 1
|
|
11128
|
+
}
|
|
11129
|
+
},
|
|
11130
|
+
"x-uid": "0zebcqxbskn",
|
|
11131
|
+
"x-async": false,
|
|
11132
|
+
"x-index": 1
|
|
11133
|
+
}
|
|
11134
|
+
},
|
|
11135
|
+
"x-uid": "bc7dwbg9thk",
|
|
11136
|
+
"x-async": false,
|
|
11137
|
+
"x-index": 4
|
|
11138
|
+
},
|
|
11139
|
+
b7cs1das1cq: {
|
|
11140
|
+
_isJSONSchemaObject: true,
|
|
11141
|
+
version: "2.0",
|
|
11142
|
+
type: "void",
|
|
11143
|
+
"x-component": "Grid.Row",
|
|
11144
|
+
properties: {
|
|
11145
|
+
fza3rz9m06z: {
|
|
11146
|
+
_isJSONSchemaObject: true,
|
|
11147
|
+
version: "2.0",
|
|
11148
|
+
type: "void",
|
|
11149
|
+
"x-component": "Grid.Col",
|
|
11150
|
+
properties: {
|
|
11151
|
+
manyToMany: {
|
|
11152
|
+
_isJSONSchemaObject: true,
|
|
11153
|
+
version: "2.0",
|
|
11154
|
+
type: "string",
|
|
11155
|
+
required: false,
|
|
11156
|
+
"x-designer": "FormItem.FilterFormDesigner",
|
|
11157
|
+
"x-component": "CollectionField",
|
|
11158
|
+
"x-decorator": "FormItem",
|
|
11159
|
+
"x-collection-field": "general.manyToMany",
|
|
11160
|
+
"x-component-props": {
|
|
11161
|
+
multiple: true,
|
|
11162
|
+
fieldNames: {
|
|
11163
|
+
label: "id",
|
|
11164
|
+
value: "id"
|
|
11165
|
+
}
|
|
11166
|
+
},
|
|
11167
|
+
"x-uid": "a04jfxgru7s",
|
|
11168
|
+
"x-async": false,
|
|
11169
|
+
"x-index": 1
|
|
11170
|
+
}
|
|
11171
|
+
},
|
|
11172
|
+
"x-uid": "z0hmplugqhq",
|
|
11173
|
+
"x-async": false,
|
|
11174
|
+
"x-index": 1
|
|
11175
|
+
}
|
|
11176
|
+
},
|
|
11177
|
+
"x-uid": "kmdbr7xi8xt",
|
|
11178
|
+
"x-async": false,
|
|
11179
|
+
"x-index": 5
|
|
11180
|
+
}
|
|
11181
|
+
},
|
|
11182
|
+
"x-uid": "qiaicku011z",
|
|
11183
|
+
"x-async": false,
|
|
11184
|
+
"x-index": 1
|
|
11185
|
+
},
|
|
11186
|
+
actions: {
|
|
11187
|
+
_isJSONSchemaObject: true,
|
|
11188
|
+
version: "2.0",
|
|
11189
|
+
type: "void",
|
|
11190
|
+
"x-initializer": "FilterFormActionInitializers",
|
|
11191
|
+
"x-component": "ActionBar",
|
|
11192
|
+
"x-component-props": {
|
|
11193
|
+
layout: "one-column",
|
|
11194
|
+
style: {
|
|
11195
|
+
float: "right"
|
|
11196
|
+
}
|
|
11197
|
+
},
|
|
11198
|
+
"x-uid": "1d1t3jlg0sq",
|
|
11199
|
+
"x-async": false,
|
|
11200
|
+
"x-index": 2
|
|
11201
|
+
}
|
|
11202
|
+
},
|
|
11203
|
+
"x-uid": "sesnb8danbq",
|
|
11204
|
+
"x-async": false,
|
|
11205
|
+
"x-index": 1
|
|
11206
|
+
}
|
|
11207
|
+
},
|
|
11208
|
+
"x-uid": "652vjaqp29u",
|
|
11209
|
+
"x-async": false,
|
|
11210
|
+
"x-index": 1
|
|
11211
|
+
}
|
|
11212
|
+
},
|
|
11213
|
+
"x-uid": "crpdy0e3icr",
|
|
11214
|
+
"x-async": false,
|
|
11215
|
+
"x-index": 1
|
|
11216
|
+
}
|
|
11217
|
+
},
|
|
11218
|
+
"x-uid": "rzvgkigetmc",
|
|
11219
|
+
"x-async": false,
|
|
11220
|
+
"x-index": 1
|
|
11221
|
+
}
|
|
11222
|
+
},
|
|
11223
|
+
"x-uid": "9gdo96vyjl8",
|
|
11224
|
+
"x-async": false,
|
|
11225
|
+
"x-index": 1
|
|
11226
|
+
}
|
|
11227
|
+
},
|
|
11228
|
+
"x-uid": "19vrqfukj5j",
|
|
11229
|
+
"x-async": true,
|
|
11230
|
+
"x-index": 1
|
|
11231
|
+
}
|
|
11232
|
+
};
|
|
10913
11233
|
const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields = {
|
|
10914
11234
|
collections: import_templatesOfCollection.generalWithAdvanced,
|
|
10915
11235
|
pageSchema: {
|
|
@@ -18999,6 +19319,7 @@ const checkboxForTableRow = {
|
|
|
18999
19319
|
oneEmptyTableBlockWithActions,
|
|
19000
19320
|
oneEmptyTableBlockWithCustomizeActions,
|
|
19001
19321
|
oneEmptyTableWithTreeCollection,
|
|
19322
|
+
oneFilterFormBlockWithAllAssociationFields,
|
|
19002
19323
|
oneFormAndOneTableWithSameCollection,
|
|
19003
19324
|
oneFormBlockBasedOnUsers,
|
|
19004
19325
|
oneFormBlockWithAllAssociationFieldsAndSelectorMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/test",
|
|
3
|
-
"version": "0.19.0-alpha.
|
|
3
|
+
"version": "0.19.0-alpha.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "./src/index.ts",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@faker-js/faker": "8.1.0",
|
|
43
|
-
"@nocobase/server": "0.19.0-alpha.
|
|
43
|
+
"@nocobase/server": "0.19.0-alpha.3",
|
|
44
44
|
"@playwright/test": "^1.40.1",
|
|
45
45
|
"@testing-library/react": "^14.0.0",
|
|
46
46
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"vitest-dom": "^0.1.1",
|
|
61
61
|
"ws": "^8.13.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3cee597df101a3f8f0f1e2a6f75fc2dddd02ac74"
|
|
64
64
|
}
|