@nocobase/test 1.2.14-alpha → 1.3.0-alpha.20240710141659

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/es/e2e/index.mjs CHANGED
@@ -99,6 +99,12 @@ class NocoPage {
99
99
  await this._waitForInit;
100
100
  return this.uid;
101
101
  }
102
+ /**
103
+ * If you are using mockRecords, then you need to use this method.
104
+ * Wait until the mockRecords create the records successfully before navigating to the page.
105
+ * @param this
106
+ * @returns
107
+ */
102
108
  async waitForInit() {
103
109
  await this._waitForInit;
104
110
  return this;
@@ -7034,71 +7040,64 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFields = {
7034
7040
  "x-index": 1
7035
7041
  }
7036
7042
  };
7037
- const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7038
- collections: [
7039
- ...generalWithBasic,
7040
- {
7041
- name: "subTable",
7042
- fields: [
7043
- {
7044
- name: "manyToMany",
7045
- interface: "m2m",
7046
- target: "general"
7047
- },
7048
- {
7049
- name: "oneToMany",
7050
- interface: "o2m",
7051
- target: "general"
7052
- }
7053
- ]
7054
- }
7055
- ],
7043
+ const oneTableBlockWithIntegerAndIDColumn = {
7044
+ collections: generalWithBasic,
7056
7045
  pageSchema: {
7057
7046
  _isJSONSchemaObject: true,
7058
7047
  version: "2.0",
7059
7048
  type: "void",
7060
7049
  "x-component": "Page",
7050
+ "x-index": 1,
7061
7051
  properties: {
7062
- "7m533o9wcl2": {
7052
+ nyayqbdi6fw: {
7063
7053
  _isJSONSchemaObject: true,
7064
7054
  version: "2.0",
7065
7055
  type: "void",
7066
7056
  "x-component": "Grid",
7067
7057
  "x-initializer": "page:addBlock",
7058
+ "x-app-version": "1.0.0-alpha.17",
7059
+ "x-index": 1,
7068
7060
  properties: {
7069
- mbtse8e9kap: {
7061
+ a7zqokjj6gt: {
7070
7062
  _isJSONSchemaObject: true,
7071
7063
  version: "2.0",
7072
7064
  type: "void",
7073
7065
  "x-component": "Grid.Row",
7066
+ "x-app-version": "1.0.0-alpha.17",
7067
+ "x-index": 1,
7074
7068
  properties: {
7075
- ir5rfzx0z5o: {
7069
+ "3lbci797d7d": {
7076
7070
  _isJSONSchemaObject: true,
7077
7071
  version: "2.0",
7078
7072
  type: "void",
7079
7073
  "x-component": "Grid.Col",
7074
+ "x-app-version": "1.0.0-alpha.17",
7075
+ "x-index": 1,
7080
7076
  properties: {
7081
- yr9pww7k8mq: {
7077
+ wvjxlk9dpcp: {
7082
7078
  _isJSONSchemaObject: true,
7083
7079
  version: "2.0",
7084
7080
  type: "void",
7085
7081
  "x-decorator": "TableBlockProvider",
7086
- "x-acl-action": "subTable:list",
7082
+ "x-acl-action": "general:list",
7083
+ "x-use-decorator-props": "useTableBlockDecoratorProps",
7087
7084
  "x-decorator-props": {
7088
- collection: "subTable",
7089
- resource: "subTable",
7085
+ collection: "general",
7086
+ dataSource: "main",
7090
7087
  action: "list",
7091
7088
  params: {
7092
7089
  pageSize: 20
7093
7090
  },
7094
7091
  rowKey: "id",
7095
7092
  showIndex: true,
7096
- dragSort: false,
7097
- disableTemplate: false
7093
+ dragSort: false
7098
7094
  },
7099
- "x-designer": "TableBlockDesigner",
7095
+ "x-toolbar": "BlockSchemaToolbar",
7096
+ "x-settings": "blockSettings:table",
7100
7097
  "x-component": "CardItem",
7101
7098
  "x-filter-targets": [],
7099
+ "x-app-version": "1.0.0-alpha.17",
7100
+ "x-index": 1,
7102
7101
  properties: {
7103
7102
  actions: {
7104
7103
  _isJSONSchemaObject: true,
@@ -7111,23 +7110,26 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7111
7110
  marginBottom: "var(--nb-spacing)"
7112
7111
  }
7113
7112
  },
7114
- "x-uid": "0bvmtmgkrx0",
7115
- "x-async": false,
7116
- "x-index": 1
7113
+ "x-app-version": "1.0.0-alpha.17",
7114
+ "x-index": 1,
7115
+ "x-uid": "uafyrboeeeh",
7116
+ "x-async": false
7117
7117
  },
7118
- "39vo8hzhsor": {
7118
+ xpv8gfkv0w4: {
7119
7119
  _isJSONSchemaObject: true,
7120
7120
  version: "2.0",
7121
7121
  type: "array",
7122
7122
  "x-initializer": "table:configureColumns",
7123
7123
  "x-component": "TableV2",
7124
+ "x-use-component-props": "useTableBlockProps",
7124
7125
  "x-component-props": {
7125
7126
  rowKey: "id",
7126
7127
  rowSelection: {
7127
7128
  type: "checkbox"
7128
- },
7129
- useProps: "{{ useTableBlockProps }}"
7129
+ }
7130
7130
  },
7131
+ "x-app-version": "1.0.0-alpha.17",
7132
+ "x-index": 2,
7131
7133
  properties: {
7132
7134
  actions: {
7133
7135
  _isJSONSchemaObject: true,
@@ -7139,8 +7141,10 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7139
7141
  "x-component": "TableV2.Column",
7140
7142
  "x-designer": "TableV2.ActionColumnDesigner",
7141
7143
  "x-initializer": "table:configureItemActions",
7144
+ "x-app-version": "1.0.0-alpha.17",
7145
+ "x-index": 1,
7142
7146
  properties: {
7143
- actions: {
7147
+ c3br6p1m4ay: {
7144
7148
  _isJSONSchemaObject: true,
7145
7149
  version: "2.0",
7146
7150
  type: "void",
@@ -7149,34 +7153,37 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7149
7153
  "x-component-props": {
7150
7154
  split: "|"
7151
7155
  },
7156
+ "x-app-version": "1.0.0-alpha.17",
7157
+ "x-index": 1,
7152
7158
  properties: {
7153
- dghwbcfocgv: {
7154
- "x-uid": "rhc8oxdqglj",
7159
+ ycbfg04aq1u: {
7155
7160
  _isJSONSchemaObject: true,
7156
7161
  version: "2.0",
7157
7162
  type: "void",
7158
- title: "Edit record",
7159
- "x-action": "update",
7160
- "x-designer": "Action.Designer",
7163
+ title: '{{ t("View") }}',
7164
+ "x-action": "view",
7165
+ "x-toolbar": "ActionSchemaToolbar",
7166
+ "x-settings": "actionSettings:view",
7161
7167
  "x-component": "Action.Link",
7162
7168
  "x-component-props": {
7163
- openMode: "drawer",
7164
- danger: false
7169
+ openMode: "drawer"
7165
7170
  },
7166
7171
  "x-decorator": "ACLActionProvider",
7167
7172
  "x-designer-props": {
7168
7173
  linkageAction: true
7169
7174
  },
7175
+ "x-index": 1,
7170
7176
  properties: {
7171
7177
  drawer: {
7172
7178
  _isJSONSchemaObject: true,
7173
7179
  version: "2.0",
7174
7180
  type: "void",
7175
- title: '{{ t("Edit record") }}',
7181
+ title: '{{ t("View record") }}',
7176
7182
  "x-component": "Action.Container",
7177
7183
  "x-component-props": {
7178
7184
  className: "nb-action-popup"
7179
7185
  },
7186
+ "x-index": 1,
7180
7187
  properties: {
7181
7188
  tabs: {
7182
7189
  _isJSONSchemaObject: true,
@@ -7184,16 +7191,18 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7184
7191
  type: "void",
7185
7192
  "x-component": "Tabs",
7186
7193
  "x-component-props": {},
7187
- "x-initializer": "TabPaneInitializers",
7194
+ "x-initializer": "popup:addTab",
7195
+ "x-index": 1,
7188
7196
  properties: {
7189
7197
  tab1: {
7190
7198
  _isJSONSchemaObject: true,
7191
7199
  version: "2.0",
7192
7200
  type: "void",
7193
- title: '{{t("Edit")}}',
7201
+ title: '{{t("Details")}}',
7194
7202
  "x-component": "Tabs.TabPane",
7195
7203
  "x-designer": "Tabs.Designer",
7196
7204
  "x-component-props": {},
7205
+ "x-index": 1,
7197
7206
  properties: {
7198
7207
  grid: {
7199
7208
  _isJSONSchemaObject: true,
@@ -7201,257 +7210,393 @@ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7201
7210
  type: "void",
7202
7211
  "x-component": "Grid",
7203
7212
  "x-initializer": "popup:common:addBlock",
7213
+ "x-index": 1,
7204
7214
  properties: {
7205
- trny88kf0bk: {
7215
+ fecjkwzjrlc: {
7206
7216
  _isJSONSchemaObject: true,
7207
7217
  version: "2.0",
7208
7218
  type: "void",
7209
7219
  "x-component": "Grid.Row",
7220
+ "x-app-version": "1.0.0-alpha.17",
7221
+ "x-index": 1,
7210
7222
  properties: {
7211
- "78r8m6ecsh4": {
7223
+ u5047nn630n: {
7212
7224
  _isJSONSchemaObject: true,
7213
7225
  version: "2.0",
7214
7226
  type: "void",
7215
7227
  "x-component": "Grid.Col",
7228
+ "x-app-version": "1.0.0-alpha.17",
7229
+ "x-index": 1,
7216
7230
  properties: {
7217
- lj0yhupvh3o: {
7231
+ g6nol2a8f0v: {
7218
7232
  _isJSONSchemaObject: true,
7219
7233
  version: "2.0",
7220
7234
  type: "void",
7221
- "x-acl-action-props": {
7222
- skipScopeCheck: false
7223
- },
7224
- "x-acl-action": "subTable:update",
7225
- "x-decorator": "FormBlockProvider",
7235
+ "x-acl-action": "general:get",
7236
+ "x-decorator": "DetailsBlockProvider",
7237
+ "x-use-decorator-props": "useDetailsDecoratorProps",
7226
7238
  "x-decorator-props": {
7227
- useSourceId: "{{ useSourceIdFromParentRecord }}",
7228
- useParams: "{{ useParamsFromRecord }}",
7229
- action: "get",
7230
- resource: "subTable",
7231
- collection: "subTable"
7239
+ dataSource: "main",
7240
+ collection: "general",
7241
+ readPretty: true,
7242
+ action: "get"
7232
7243
  },
7233
- "x-designer": "FormV2.Designer",
7244
+ "x-toolbar": "BlockSchemaToolbar",
7245
+ "x-settings": "blockSettings:details",
7234
7246
  "x-component": "CardItem",
7235
- "x-component-props": {},
7247
+ "x-app-version": "1.0.0-alpha.17",
7248
+ "x-index": 1,
7236
7249
  properties: {
7237
- "0ykr2ijd1qa": {
7250
+ qe6uvivhlcs: {
7238
7251
  _isJSONSchemaObject: true,
7239
7252
  version: "2.0",
7240
7253
  type: "void",
7241
- "x-component": "FormV2",
7242
- "x-component-props": {
7243
- useProps: "{{ useFormBlockProps }}"
7244
- },
7254
+ "x-component": "Details",
7255
+ "x-read-pretty": true,
7256
+ "x-use-component-props": "useDetailsProps",
7257
+ "x-app-version": "1.0.0-alpha.17",
7258
+ "x-index": 1,
7245
7259
  properties: {
7260
+ "1ul3ug1mjn1": {
7261
+ _isJSONSchemaObject: true,
7262
+ version: "2.0",
7263
+ type: "void",
7264
+ "x-initializer": "details:configureActions",
7265
+ "x-component": "ActionBar",
7266
+ "x-component-props": {
7267
+ style: {
7268
+ marginBottom: 24
7269
+ }
7270
+ },
7271
+ "x-app-version": "1.0.0-alpha.17",
7272
+ "x-index": 1,
7273
+ "x-uid": "tx7ej82dtav",
7274
+ "x-async": false
7275
+ },
7246
7276
  grid: {
7247
7277
  _isJSONSchemaObject: true,
7248
7278
  version: "2.0",
7249
7279
  type: "void",
7250
7280
  "x-component": "Grid",
7251
- "x-initializer": "form:configureFields",
7281
+ "x-initializer": "details:configureFields",
7282
+ "x-app-version": "1.0.0-alpha.17",
7283
+ "x-index": 2,
7252
7284
  properties: {
7253
- "7mwkv9h74ki": {
7285
+ i4gnqtwjsmo: {
7254
7286
  _isJSONSchemaObject: true,
7255
7287
  version: "2.0",
7256
7288
  type: "void",
7257
7289
  "x-component": "Grid.Row",
7290
+ "x-app-version": "1.0.0-alpha.17",
7291
+ "x-index": 1,
7258
7292
  properties: {
7259
- "0f4fktqpnee": {
7293
+ kpg3nd9z03j: {
7260
7294
  _isJSONSchemaObject: true,
7261
7295
  version: "2.0",
7262
7296
  type: "void",
7263
7297
  "x-component": "Grid.Col",
7298
+ "x-app-version": "1.0.0-alpha.17",
7299
+ "x-index": 1,
7264
7300
  properties: {
7265
- manyToMany: {
7266
- "x-uid": "lclf348ur56",
7301
+ email: {
7267
7302
  _isJSONSchemaObject: true,
7268
7303
  version: "2.0",
7269
7304
  type: "string",
7270
- "x-designer": "FormItem.Designer",
7305
+ "x-toolbar": "FormItemSchemaToolbar",
7306
+ "x-settings": "fieldSettings:FormItem",
7271
7307
  "x-component": "CollectionField",
7272
7308
  "x-decorator": "FormItem",
7273
- "x-collection-field": "subTable.manyToMany",
7274
- "x-component-props": {
7275
- mode: "SubTable"
7276
- },
7277
- properties: {
7278
- ry6csw9ij4n: {
7279
- _isJSONSchemaObject: true,
7280
- version: "2.0",
7281
- type: "void",
7282
- "x-component": "AssociationField.SubTable",
7283
- "x-initializer": "table:configureColumns",
7284
- "x-initializer-props": {
7285
- action: false
7286
- },
7287
- "x-index": 1,
7288
- properties: {
7289
- rmz41gp1stq: {
7290
- _isJSONSchemaObject: true,
7291
- version: "2.0",
7292
- type: "void",
7293
- "x-decorator": "TableV2.Column.Decorator",
7294
- "x-designer": "TableV2.Column.Designer",
7295
- "x-component": "TableV2.Column",
7296
- properties: {
7297
- singleLineText: {
7298
- "x-uid": "tlprzxnyyqb",
7299
- _isJSONSchemaObject: true,
7300
- version: "2.0",
7301
- "x-collection-field": "general.singleLineText",
7302
- "x-component": "CollectionField",
7303
- "x-component-props": {
7304
- ellipsis: true
7305
- },
7306
- "x-decorator": "FormItem",
7307
- "x-decorator-props": {
7308
- labelStyle: {
7309
- display: "none"
7310
- }
7311
- },
7312
- default: null,
7313
- "x-async": false,
7314
- "x-index": 1
7315
- }
7316
- },
7317
- "x-uid": "zmslu38eujy",
7318
- "x-async": false,
7319
- "x-index": 1
7320
- }
7321
- },
7322
- "x-uid": "vl5lkem00dr",
7323
- "x-async": false
7324
- }
7325
- },
7326
- "x-async": false,
7327
- "x-index": 1
7309
+ "x-use-decorator-props": "useDataFormItemProps",
7310
+ "x-collection-field": "general.email",
7311
+ "x-component-props": {},
7312
+ "x-app-version": "1.0.0-alpha.17",
7313
+ "x-index": 1,
7314
+ "x-uid": "igz2roi2lgf",
7315
+ "x-async": false
7328
7316
  }
7329
7317
  },
7330
- "x-uid": "gzxknc793se",
7331
- "x-async": false,
7332
- "x-index": 1
7318
+ "x-uid": "twtz1r704we",
7319
+ "x-async": false
7333
7320
  }
7334
7321
  },
7335
- "x-uid": "lr63kqkjvgo",
7336
- "x-async": false,
7337
- "x-index": 1
7322
+ "x-uid": "4yltx4dtlwa",
7323
+ "x-async": false
7324
+ },
7325
+ "0j7ky7h63km": {
7326
+ _isJSONSchemaObject: true,
7327
+ version: "2.0",
7328
+ type: "void",
7329
+ "x-component": "Grid.Row",
7330
+ "x-app-version": "1.0.0-alpha.17",
7331
+ "x-index": 2,
7332
+ properties: {
7333
+ "1yq1bw53408": {
7334
+ _isJSONSchemaObject: true,
7335
+ version: "2.0",
7336
+ type: "void",
7337
+ "x-component": "Grid.Col",
7338
+ "x-app-version": "1.0.0-alpha.17",
7339
+ "x-index": 1,
7340
+ properties: {
7341
+ integer: {
7342
+ _isJSONSchemaObject: true,
7343
+ version: "2.0",
7344
+ type: "string",
7345
+ "x-toolbar": "FormItemSchemaToolbar",
7346
+ "x-settings": "fieldSettings:FormItem",
7347
+ "x-component": "CollectionField",
7348
+ "x-decorator": "FormItem",
7349
+ "x-use-decorator-props": "useDataFormItemProps",
7350
+ "x-collection-field": "general.integer",
7351
+ "x-component-props": {},
7352
+ "x-app-version": "1.0.0-alpha.17",
7353
+ "x-index": 1,
7354
+ "x-uid": "kz1wgswubq6",
7355
+ "x-async": false
7356
+ }
7357
+ },
7358
+ "x-uid": "hxdhhdrttal",
7359
+ "x-async": false
7360
+ }
7361
+ },
7362
+ "x-uid": "h3df5v19yer",
7363
+ "x-async": false
7364
+ },
7365
+ tqgzzposgug: {
7366
+ _isJSONSchemaObject: true,
7367
+ version: "2.0",
7368
+ type: "void",
7369
+ "x-component": "Grid.Row",
7370
+ "x-app-version": "1.0.0-alpha.17",
7371
+ "x-index": 3,
7372
+ properties: {
7373
+ j88upzin86t: {
7374
+ _isJSONSchemaObject: true,
7375
+ version: "2.0",
7376
+ type: "void",
7377
+ "x-component": "Grid.Col",
7378
+ "x-app-version": "1.0.0-alpha.17",
7379
+ "x-index": 1,
7380
+ properties: {
7381
+ number: {
7382
+ _isJSONSchemaObject: true,
7383
+ version: "2.0",
7384
+ type: "string",
7385
+ "x-toolbar": "FormItemSchemaToolbar",
7386
+ "x-settings": "fieldSettings:FormItem",
7387
+ "x-component": "CollectionField",
7388
+ "x-decorator": "FormItem",
7389
+ "x-use-decorator-props": "useDataFormItemProps",
7390
+ "x-collection-field": "general.number",
7391
+ "x-component-props": {},
7392
+ "x-app-version": "1.0.0-alpha.17",
7393
+ "x-index": 1,
7394
+ "x-uid": "lb582vapwrl",
7395
+ "x-async": false
7396
+ }
7397
+ },
7398
+ "x-uid": "b9hxznmlw4y",
7399
+ "x-async": false
7400
+ }
7401
+ },
7402
+ "x-uid": "ccemewjagrc",
7403
+ "x-async": false
7404
+ },
7405
+ zsifuulhfj8: {
7406
+ _isJSONSchemaObject: true,
7407
+ version: "2.0",
7408
+ type: "void",
7409
+ "x-component": "Grid.Row",
7410
+ "x-app-version": "1.0.0-alpha.17",
7411
+ "x-index": 4,
7412
+ properties: {
7413
+ "94mix5vzskc": {
7414
+ _isJSONSchemaObject: true,
7415
+ version: "2.0",
7416
+ type: "void",
7417
+ "x-component": "Grid.Col",
7418
+ "x-app-version": "1.0.0-alpha.17",
7419
+ "x-index": 1,
7420
+ properties: {
7421
+ phone: {
7422
+ _isJSONSchemaObject: true,
7423
+ version: "2.0",
7424
+ type: "string",
7425
+ "x-toolbar": "FormItemSchemaToolbar",
7426
+ "x-settings": "fieldSettings:FormItem",
7427
+ "x-component": "CollectionField",
7428
+ "x-decorator": "FormItem",
7429
+ "x-use-decorator-props": "useDataFormItemProps",
7430
+ "x-collection-field": "general.phone",
7431
+ "x-component-props": {},
7432
+ "x-app-version": "1.0.0-alpha.17",
7433
+ "x-index": 1,
7434
+ "x-uid": "b9sth7gi9co",
7435
+ "x-async": false
7436
+ }
7437
+ },
7438
+ "x-uid": "24nb1vhc3c8",
7439
+ "x-async": false
7440
+ }
7441
+ },
7442
+ "x-uid": "q3fdeysf8i0",
7443
+ "x-async": false
7338
7444
  }
7339
7445
  },
7340
- "x-uid": "8iw3zvh7vxd",
7341
- "x-async": false,
7342
- "x-index": 1
7343
- },
7344
- actions: {
7345
- _isJSONSchemaObject: true,
7346
- version: "2.0",
7347
- type: "void",
7348
- "x-initializer": "editForm:configureActions",
7349
- "x-component": "ActionBar",
7350
- "x-component-props": {
7351
- layout: "one-column",
7352
- style: {
7353
- marginTop: 24
7354
- }
7355
- },
7356
- "x-uid": "95vrlwf03yk",
7357
- "x-async": false,
7358
- "x-index": 2
7446
+ "x-uid": "w2d78a9y0s2",
7447
+ "x-async": false
7359
7448
  }
7360
7449
  },
7361
- "x-uid": "17ju1kwigyw",
7362
- "x-async": false,
7363
- "x-index": 1
7450
+ "x-uid": "cjtl8872i5s",
7451
+ "x-async": false
7364
7452
  }
7365
7453
  },
7366
- "x-uid": "by4uluzexjq",
7367
- "x-async": false,
7368
- "x-index": 1
7454
+ "x-uid": "x79v0wahp73",
7455
+ "x-async": false
7369
7456
  }
7370
7457
  },
7371
- "x-uid": "nzw5judm7ah",
7372
- "x-async": false,
7373
- "x-index": 1
7458
+ "x-uid": "z5k8x76thiv",
7459
+ "x-async": false
7374
7460
  }
7375
7461
  },
7376
- "x-uid": "keraakujlcb",
7377
- "x-async": false,
7378
- "x-index": 1
7462
+ "x-uid": "dz7694elunl",
7463
+ "x-async": false
7379
7464
  }
7380
7465
  },
7381
- "x-uid": "dtc6ufrnn2w",
7382
- "x-async": false,
7383
- "x-index": 1
7466
+ "x-uid": "dpyxl72qav7",
7467
+ "x-async": false
7384
7468
  }
7385
7469
  },
7386
- "x-uid": "kgrdpc9e834",
7387
- "x-async": false,
7388
- "x-index": 1
7470
+ "x-uid": "ejoaawmib5s",
7471
+ "x-async": false
7389
7472
  }
7390
7473
  },
7391
- "x-uid": "h60qmmbj1ez",
7392
- "x-async": false,
7393
- "x-index": 1
7474
+ "x-uid": "vqu7oj3nsba",
7475
+ "x-async": false
7394
7476
  }
7395
7477
  },
7396
- "x-uid": "f930il0aqu3",
7397
- "x-async": false,
7398
- "x-index": 1
7478
+ "x-uid": "80o560bno10",
7479
+ "x-async": false
7399
7480
  }
7400
7481
  },
7401
- "x-async": false,
7402
- "x-index": 2
7482
+ "x-uid": "as0562wfiri",
7483
+ "x-async": false
7403
7484
  }
7404
7485
  },
7405
- "x-uid": "gb81ougszo2",
7406
- "x-async": false,
7407
- "x-index": 1
7486
+ "x-uid": "ipotr34hb0r",
7487
+ "x-async": false
7408
7488
  }
7409
7489
  },
7410
- "x-uid": "aa33l45v6qb",
7411
- "x-async": false,
7412
- "x-index": 1
7490
+ "x-uid": "hy58uesiqfe",
7491
+ "x-async": false
7492
+ },
7493
+ "2tygi2ob18k": {
7494
+ _isJSONSchemaObject: true,
7495
+ version: "2.0",
7496
+ type: "void",
7497
+ "x-decorator": "TableV2.Column.Decorator",
7498
+ "x-toolbar": "TableColumnSchemaToolbar",
7499
+ "x-settings": "fieldSettings:TableColumn",
7500
+ "x-component": "TableV2.Column",
7501
+ "x-app-version": "1.0.0-alpha.17",
7502
+ "x-index": 2,
7503
+ properties: {
7504
+ id: {
7505
+ _isJSONSchemaObject: true,
7506
+ version: "2.0",
7507
+ "x-collection-field": "general.id",
7508
+ "x-component": "CollectionField",
7509
+ "x-component-props": {},
7510
+ "x-read-pretty": true,
7511
+ "x-decorator": null,
7512
+ "x-decorator-props": {
7513
+ labelStyle: {
7514
+ display: "none"
7515
+ }
7516
+ },
7517
+ "x-app-version": "1.0.0-alpha.17",
7518
+ "x-index": 1,
7519
+ "x-uid": "uxtounspwze",
7520
+ "x-async": false
7521
+ }
7522
+ },
7523
+ "x-uid": "yvfmjf6tzk7",
7524
+ "x-async": false
7525
+ },
7526
+ t8rlom0c3ju: {
7527
+ "x-uid": "jt87by9dks1",
7528
+ _isJSONSchemaObject: true,
7529
+ version: "2.0",
7530
+ type: "void",
7531
+ "x-decorator": "TableV2.Column.Decorator",
7532
+ "x-toolbar": "TableColumnSchemaToolbar",
7533
+ "x-settings": "fieldSettings:TableColumn",
7534
+ "x-component": "TableV2.Column",
7535
+ "x-app-version": "1.0.0-alpha.17",
7536
+ "x-index": 3,
7537
+ "x-linkage-style-rules": [],
7538
+ properties: {
7539
+ integer: {
7540
+ _isJSONSchemaObject: true,
7541
+ version: "2.0",
7542
+ "x-collection-field": "general.integer",
7543
+ "x-component": "CollectionField",
7544
+ "x-component-props": {},
7545
+ "x-read-pretty": true,
7546
+ "x-decorator": null,
7547
+ "x-decorator-props": {
7548
+ labelStyle: {
7549
+ display: "none"
7550
+ }
7551
+ },
7552
+ "x-app-version": "1.0.0-alpha.17",
7553
+ "x-index": 1,
7554
+ "x-uid": "d3fvg9v46yu",
7555
+ "x-async": false
7556
+ }
7557
+ },
7558
+ "x-async": false
7413
7559
  }
7414
7560
  },
7415
- "x-uid": "lm8sj8ojma9",
7416
- "x-async": false,
7417
- "x-index": 2
7561
+ "x-uid": "nwqvi9i433x",
7562
+ "x-async": false
7418
7563
  }
7419
7564
  },
7420
- "x-uid": "z5n8ihuvx64",
7421
- "x-async": false,
7422
- "x-index": 1
7565
+ "x-uid": "qf53grjobl2",
7566
+ "x-async": false
7423
7567
  }
7424
7568
  },
7425
- "x-uid": "snt3mrh4ug9",
7426
- "x-async": false,
7427
- "x-index": 1
7569
+ "x-uid": "c95omaoid1m",
7570
+ "x-async": false
7428
7571
  }
7429
7572
  },
7430
- "x-uid": "kzi69u1gb24",
7431
- "x-async": false,
7432
- "x-index": 1
7573
+ "x-uid": "h70lk7jikxa",
7574
+ "x-async": false
7433
7575
  }
7434
7576
  },
7435
- "x-uid": "hbmkoataojj",
7436
- "x-async": false,
7437
- "x-index": 1
7577
+ "x-uid": "iylotyrenoo",
7578
+ "x-async": false
7438
7579
  }
7439
7580
  },
7440
- "x-uid": "sfa1nw7kqmi",
7441
- "x-async": true,
7442
- "x-index": 1
7581
+ "x-uid": "7z81p33jsb1",
7582
+ "x-async": true
7443
7583
  }
7444
7584
  };
7445
- const oneTableBlockWithEditAndSubForm = {
7585
+ const oneTableBlockWithAddNewAndViewAndEditAndBasicFieldsAndSubTable = {
7446
7586
  collections: [
7447
7587
  ...generalWithBasic,
7448
7588
  {
7449
- name: "subform",
7589
+ name: "subTable",
7450
7590
  fields: [
7451
7591
  {
7452
7592
  name: "manyToMany",
7453
7593
  interface: "m2m",
7454
7594
  target: "general"
7595
+ },
7596
+ {
7597
+ name: "oneToMany",
7598
+ interface: "o2m",
7599
+ target: "general"
7455
7600
  }
7456
7601
  ]
7457
7602
  }
@@ -7462,50 +7607,46 @@ const oneTableBlockWithEditAndSubForm = {
7462
7607
  type: "void",
7463
7608
  "x-component": "Page",
7464
7609
  properties: {
7465
- ikn7a785yxy: {
7610
+ "7m533o9wcl2": {
7466
7611
  _isJSONSchemaObject: true,
7467
7612
  version: "2.0",
7468
7613
  type: "void",
7469
7614
  "x-component": "Grid",
7470
7615
  "x-initializer": "page:addBlock",
7471
7616
  properties: {
7472
- ymhggvoaw7g: {
7617
+ mbtse8e9kap: {
7473
7618
  _isJSONSchemaObject: true,
7474
7619
  version: "2.0",
7475
7620
  type: "void",
7476
7621
  "x-component": "Grid.Row",
7477
- "x-app-version": "0.21.0-alpha.15",
7478
7622
  properties: {
7479
- itbsbwvloui: {
7623
+ ir5rfzx0z5o: {
7480
7624
  _isJSONSchemaObject: true,
7481
7625
  version: "2.0",
7482
7626
  type: "void",
7483
7627
  "x-component": "Grid.Col",
7484
- "x-app-version": "0.21.0-alpha.15",
7485
7628
  properties: {
7486
- "0ynnfgfjgl9": {
7629
+ yr9pww7k8mq: {
7487
7630
  _isJSONSchemaObject: true,
7488
7631
  version: "2.0",
7489
7632
  type: "void",
7490
7633
  "x-decorator": "TableBlockProvider",
7491
- "x-acl-action": "subform:list",
7492
- "x-use-decorator-props": "useTableBlockDecoratorProps",
7634
+ "x-acl-action": "subTable:list",
7493
7635
  "x-decorator-props": {
7494
- collection: "subform",
7495
- dataSource: "main",
7636
+ collection: "subTable",
7637
+ resource: "subTable",
7496
7638
  action: "list",
7497
7639
  params: {
7498
7640
  pageSize: 20
7499
7641
  },
7500
7642
  rowKey: "id",
7501
7643
  showIndex: true,
7502
- dragSort: false
7644
+ dragSort: false,
7645
+ disableTemplate: false
7503
7646
  },
7504
- "x-toolbar": "BlockSchemaToolbar",
7505
- "x-settings": "blockSettings:table",
7647
+ "x-designer": "TableBlockDesigner",
7506
7648
  "x-component": "CardItem",
7507
7649
  "x-filter-targets": [],
7508
- "x-app-version": "0.21.0-alpha.15",
7509
7650
  properties: {
7510
7651
  actions: {
7511
7652
  _isJSONSchemaObject: true,
@@ -7518,25 +7659,23 @@ const oneTableBlockWithEditAndSubForm = {
7518
7659
  marginBottom: "var(--nb-spacing)"
7519
7660
  }
7520
7661
  },
7521
- "x-app-version": "0.21.0-alpha.15",
7522
- "x-uid": "wvkrzc4gbed",
7662
+ "x-uid": "0bvmtmgkrx0",
7523
7663
  "x-async": false,
7524
7664
  "x-index": 1
7525
7665
  },
7526
- c458tgnk7e1: {
7666
+ "39vo8hzhsor": {
7527
7667
  _isJSONSchemaObject: true,
7528
7668
  version: "2.0",
7529
7669
  type: "array",
7530
7670
  "x-initializer": "table:configureColumns",
7531
7671
  "x-component": "TableV2",
7532
- "x-use-component-props": "useTableBlockProps",
7533
7672
  "x-component-props": {
7534
7673
  rowKey: "id",
7535
7674
  rowSelection: {
7536
7675
  type: "checkbox"
7537
- }
7676
+ },
7677
+ useProps: "{{ useTableBlockProps }}"
7538
7678
  },
7539
- "x-app-version": "0.21.0-alpha.15",
7540
7679
  properties: {
7541
7680
  actions: {
7542
7681
  _isJSONSchemaObject: true,
@@ -7548,9 +7687,8 @@ const oneTableBlockWithEditAndSubForm = {
7548
7687
  "x-component": "TableV2.Column",
7549
7688
  "x-designer": "TableV2.ActionColumnDesigner",
7550
7689
  "x-initializer": "table:configureItemActions",
7551
- "x-app-version": "0.21.0-alpha.15",
7552
7690
  properties: {
7553
- g3whb78e8by: {
7691
+ actions: {
7554
7692
  _isJSONSchemaObject: true,
7555
7693
  version: "2.0",
7556
7694
  type: "void",
@@ -7559,17 +7697,15 @@ const oneTableBlockWithEditAndSubForm = {
7559
7697
  "x-component-props": {
7560
7698
  split: "|"
7561
7699
  },
7562
- "x-app-version": "0.21.0-alpha.15",
7563
7700
  properties: {
7564
- "96j8pfb73nd": {
7565
- "x-uid": "jbq7qw7iuht",
7701
+ dghwbcfocgv: {
7702
+ "x-uid": "rhc8oxdqglj",
7566
7703
  _isJSONSchemaObject: true,
7567
7704
  version: "2.0",
7568
7705
  type: "void",
7569
7706
  title: "Edit record",
7570
7707
  "x-action": "update",
7571
- "x-toolbar": "ActionSchemaToolbar",
7572
- "x-settings": "actionSettings:edit",
7708
+ "x-designer": "Action.Designer",
7573
7709
  "x-component": "Action.Link",
7574
7710
  "x-component-props": {
7575
7711
  openMode: "drawer",
@@ -7596,7 +7732,7 @@ const oneTableBlockWithEditAndSubForm = {
7596
7732
  type: "void",
7597
7733
  "x-component": "Tabs",
7598
7734
  "x-component-props": {},
7599
- "x-initializer": "popup:addTab",
7735
+ "x-initializer": "TabPaneInitializers",
7600
7736
  properties: {
7601
7737
  tab1: {
7602
7738
  _isJSONSchemaObject: true,
@@ -7614,47 +7750,46 @@ const oneTableBlockWithEditAndSubForm = {
7614
7750
  "x-component": "Grid",
7615
7751
  "x-initializer": "popup:common:addBlock",
7616
7752
  properties: {
7617
- lg7f1thob6s: {
7753
+ trny88kf0bk: {
7618
7754
  _isJSONSchemaObject: true,
7619
7755
  version: "2.0",
7620
7756
  type: "void",
7621
7757
  "x-component": "Grid.Row",
7622
- "x-app-version": "0.21.0-alpha.15",
7623
7758
  properties: {
7624
- njdmuxui5o9: {
7759
+ "78r8m6ecsh4": {
7625
7760
  _isJSONSchemaObject: true,
7626
7761
  version: "2.0",
7627
7762
  type: "void",
7628
7763
  "x-component": "Grid.Col",
7629
- "x-app-version": "0.21.0-alpha.15",
7630
7764
  properties: {
7631
- "1wruwk2ymiy": {
7765
+ lj0yhupvh3o: {
7632
7766
  _isJSONSchemaObject: true,
7633
7767
  version: "2.0",
7634
7768
  type: "void",
7635
7769
  "x-acl-action-props": {
7636
7770
  skipScopeCheck: false
7637
7771
  },
7638
- "x-acl-action": "subform:update",
7772
+ "x-acl-action": "subTable:update",
7639
7773
  "x-decorator": "FormBlockProvider",
7640
- "x-use-decorator-props": "useEditFormBlockDecoratorProps",
7641
7774
  "x-decorator-props": {
7775
+ useSourceId: "{{ useSourceIdFromParentRecord }}",
7776
+ useParams: "{{ useParamsFromRecord }}",
7642
7777
  action: "get",
7643
- dataSource: "main",
7644
- collection: "subform"
7778
+ resource: "subTable",
7779
+ collection: "subTable"
7645
7780
  },
7646
- "x-toolbar": "BlockSchemaToolbar",
7647
- "x-settings": "blockSettings:editForm",
7781
+ "x-designer": "FormV2.Designer",
7648
7782
  "x-component": "CardItem",
7649
- "x-app-version": "0.21.0-alpha.15",
7783
+ "x-component-props": {},
7650
7784
  properties: {
7651
- "1r4nw0s9i1w": {
7785
+ "0ykr2ijd1qa": {
7652
7786
  _isJSONSchemaObject: true,
7653
7787
  version: "2.0",
7654
7788
  type: "void",
7655
7789
  "x-component": "FormV2",
7656
- "x-use-component-props": "useEditFormBlockProps",
7657
- "x-app-version": "0.21.0-alpha.15",
7790
+ "x-component-props": {
7791
+ useProps: "{{ useFormBlockProps }}"
7792
+ },
7658
7793
  properties: {
7659
7794
  grid: {
7660
7795
  _isJSONSchemaObject: true,
@@ -7662,103 +7797,77 @@ const oneTableBlockWithEditAndSubForm = {
7662
7797
  type: "void",
7663
7798
  "x-component": "Grid",
7664
7799
  "x-initializer": "form:configureFields",
7665
- "x-app-version": "0.21.0-alpha.15",
7666
7800
  properties: {
7667
- "4j2zyvo135s": {
7801
+ "7mwkv9h74ki": {
7668
7802
  _isJSONSchemaObject: true,
7669
7803
  version: "2.0",
7670
7804
  type: "void",
7671
7805
  "x-component": "Grid.Row",
7672
- "x-app-version": "0.21.0-alpha.15",
7673
7806
  properties: {
7674
- "5zclzus2agg": {
7807
+ "0f4fktqpnee": {
7675
7808
  _isJSONSchemaObject: true,
7676
7809
  version: "2.0",
7677
7810
  type: "void",
7678
7811
  "x-component": "Grid.Col",
7679
- "x-app-version": "0.21.0-alpha.15",
7680
7812
  properties: {
7681
7813
  manyToMany: {
7682
- "x-uid": "hs5l8xki08o",
7814
+ "x-uid": "lclf348ur56",
7683
7815
  _isJSONSchemaObject: true,
7684
7816
  version: "2.0",
7685
7817
  type: "string",
7686
- "x-toolbar": "FormItemSchemaToolbar",
7687
- "x-settings": "fieldSettings:FormItem",
7818
+ "x-designer": "FormItem.Designer",
7688
7819
  "x-component": "CollectionField",
7689
7820
  "x-decorator": "FormItem",
7690
- "x-collection-field": "subform.manyToMany",
7821
+ "x-collection-field": "subTable.manyToMany",
7691
7822
  "x-component-props": {
7692
- fieldNames: {
7693
- label: "id",
7694
- value: "id"
7695
- },
7696
- mode: "Nester"
7823
+ mode: "SubTable"
7697
7824
  },
7698
- "x-app-version": "0.21.0-alpha.15",
7699
7825
  properties: {
7700
- w16ui5so6ug: {
7826
+ ry6csw9ij4n: {
7701
7827
  _isJSONSchemaObject: true,
7702
7828
  version: "2.0",
7703
7829
  type: "void",
7704
- "x-component": "AssociationField.Nester",
7830
+ "x-component": "AssociationField.SubTable",
7831
+ "x-initializer": "table:configureColumns",
7832
+ "x-initializer-props": {
7833
+ action: false
7834
+ },
7705
7835
  "x-index": 1,
7706
- "x-app-version": "0.21.0-alpha.15",
7707
7836
  properties: {
7708
- grid: {
7837
+ rmz41gp1stq: {
7709
7838
  _isJSONSchemaObject: true,
7710
7839
  version: "2.0",
7711
7840
  type: "void",
7712
- "x-component": "Grid",
7713
- "x-initializer": "form:configureFields",
7714
- "x-app-version": "0.21.0-alpha.15",
7841
+ "x-decorator": "TableV2.Column.Decorator",
7842
+ "x-designer": "TableV2.Column.Designer",
7843
+ "x-component": "TableV2.Column",
7715
7844
  properties: {
7716
- "52v5gjhuhil": {
7845
+ singleLineText: {
7846
+ "x-uid": "tlprzxnyyqb",
7717
7847
  _isJSONSchemaObject: true,
7718
7848
  version: "2.0",
7719
- type: "void",
7720
- "x-component": "Grid.Row",
7721
- "x-app-version": "0.21.0-alpha.15",
7722
- properties: {
7723
- "4j9cytzhwjt": {
7724
- _isJSONSchemaObject: true,
7725
- version: "2.0",
7726
- type: "void",
7727
- "x-component": "Grid.Col",
7728
- "x-app-version": "0.21.0-alpha.15",
7729
- properties: {
7730
- singleLineText: {
7731
- _isJSONSchemaObject: true,
7732
- version: "2.0",
7733
- type: "string",
7734
- "x-toolbar": "FormItemSchemaToolbar",
7735
- "x-settings": "fieldSettings:FormItem",
7736
- "x-component": "CollectionField",
7737
- "x-decorator": "FormItem",
7738
- "x-collection-field": "general.singleLineText",
7739
- "x-component-props": {},
7740
- "x-app-version": "0.21.0-alpha.15",
7741
- "x-uid": "heu3ssj95k4",
7742
- "x-async": false,
7743
- "x-index": 1
7744
- }
7745
- },
7746
- "x-uid": "24aob2c29am",
7747
- "x-async": false,
7748
- "x-index": 1
7849
+ "x-collection-field": "general.singleLineText",
7850
+ "x-component": "CollectionField",
7851
+ "x-component-props": {
7852
+ ellipsis: true
7853
+ },
7854
+ "x-decorator": "FormItem",
7855
+ "x-decorator-props": {
7856
+ labelStyle: {
7857
+ display: "none"
7749
7858
  }
7750
7859
  },
7751
- "x-uid": "e9z1vk94wzt",
7860
+ default: null,
7752
7861
  "x-async": false,
7753
7862
  "x-index": 1
7754
7863
  }
7755
7864
  },
7756
- "x-uid": "xv2tx1i3asd",
7865
+ "x-uid": "zmslu38eujy",
7757
7866
  "x-async": false,
7758
7867
  "x-index": 1
7759
7868
  }
7760
7869
  },
7761
- "x-uid": "f8ww2djzw4s",
7870
+ "x-uid": "vl5lkem00dr",
7762
7871
  "x-async": false
7763
7872
  }
7764
7873
  },
@@ -7766,21 +7875,21 @@ const oneTableBlockWithEditAndSubForm = {
7766
7875
  "x-index": 1
7767
7876
  }
7768
7877
  },
7769
- "x-uid": "uw8v7gpncme",
7878
+ "x-uid": "gzxknc793se",
7770
7879
  "x-async": false,
7771
7880
  "x-index": 1
7772
7881
  }
7773
7882
  },
7774
- "x-uid": "y36de9c1w1q",
7883
+ "x-uid": "lr63kqkjvgo",
7775
7884
  "x-async": false,
7776
7885
  "x-index": 1
7777
7886
  }
7778
7887
  },
7779
- "x-uid": "cd8hid8sd8p",
7888
+ "x-uid": "8iw3zvh7vxd",
7780
7889
  "x-async": false,
7781
7890
  "x-index": 1
7782
7891
  },
7783
- lbqqyqmfn58: {
7892
+ actions: {
7784
7893
  _isJSONSchemaObject: true,
7785
7894
  version: "2.0",
7786
7895
  type: "void",
@@ -7792,144 +7901,159 @@ const oneTableBlockWithEditAndSubForm = {
7792
7901
  marginTop: 24
7793
7902
  }
7794
7903
  },
7795
- "x-app-version": "0.21.0-alpha.15",
7796
- "x-uid": "d7ou1l2pame",
7904
+ "x-uid": "95vrlwf03yk",
7797
7905
  "x-async": false,
7798
7906
  "x-index": 2
7799
7907
  }
7800
7908
  },
7801
- "x-uid": "378pyhe1ouc",
7909
+ "x-uid": "17ju1kwigyw",
7802
7910
  "x-async": false,
7803
7911
  "x-index": 1
7804
7912
  }
7805
7913
  },
7806
- "x-uid": "kqrgr76mqyd",
7914
+ "x-uid": "by4uluzexjq",
7807
7915
  "x-async": false,
7808
7916
  "x-index": 1
7809
7917
  }
7810
7918
  },
7811
- "x-uid": "tfxy8lqeyzf",
7919
+ "x-uid": "nzw5judm7ah",
7812
7920
  "x-async": false,
7813
7921
  "x-index": 1
7814
7922
  }
7815
7923
  },
7816
- "x-uid": "skx1ugoefxd",
7924
+ "x-uid": "keraakujlcb",
7817
7925
  "x-async": false,
7818
7926
  "x-index": 1
7819
7927
  }
7820
7928
  },
7821
- "x-uid": "t24v0l6iv9b",
7929
+ "x-uid": "dtc6ufrnn2w",
7822
7930
  "x-async": false,
7823
7931
  "x-index": 1
7824
7932
  }
7825
7933
  },
7826
- "x-uid": "ant817mjpxd",
7934
+ "x-uid": "kgrdpc9e834",
7827
7935
  "x-async": false,
7828
7936
  "x-index": 1
7829
7937
  }
7830
7938
  },
7831
- "x-uid": "6ozc65lhnk0",
7939
+ "x-uid": "h60qmmbj1ez",
7832
7940
  "x-async": false,
7833
7941
  "x-index": 1
7834
7942
  }
7835
7943
  },
7836
- "x-uid": "lwk8hqr8p79",
7944
+ "x-uid": "f930il0aqu3",
7837
7945
  "x-async": false,
7838
7946
  "x-index": 1
7839
7947
  }
7840
7948
  },
7841
7949
  "x-async": false,
7842
- "x-index": 1
7950
+ "x-index": 2
7843
7951
  }
7844
7952
  },
7845
- "x-uid": "3gzaswo60as",
7953
+ "x-uid": "gb81ougszo2",
7846
7954
  "x-async": false,
7847
7955
  "x-index": 1
7848
7956
  }
7849
7957
  },
7850
- "x-uid": "gh0ea7odopi",
7958
+ "x-uid": "aa33l45v6qb",
7851
7959
  "x-async": false,
7852
7960
  "x-index": 1
7853
7961
  }
7854
7962
  },
7855
- "x-uid": "u541j0zmw63",
7963
+ "x-uid": "lm8sj8ojma9",
7856
7964
  "x-async": false,
7857
7965
  "x-index": 2
7858
7966
  }
7859
7967
  },
7860
- "x-uid": "gdpm3ailyz7",
7968
+ "x-uid": "z5n8ihuvx64",
7861
7969
  "x-async": false,
7862
7970
  "x-index": 1
7863
7971
  }
7864
7972
  },
7865
- "x-uid": "gkc72ed4e3h",
7973
+ "x-uid": "snt3mrh4ug9",
7866
7974
  "x-async": false,
7867
7975
  "x-index": 1
7868
7976
  }
7869
7977
  },
7870
- "x-uid": "93cyoyerj1s",
7978
+ "x-uid": "kzi69u1gb24",
7871
7979
  "x-async": false,
7872
7980
  "x-index": 1
7873
7981
  }
7874
7982
  },
7875
- "x-uid": "bykp472klg9",
7983
+ "x-uid": "hbmkoataojj",
7876
7984
  "x-async": false,
7877
7985
  "x-index": 1
7878
7986
  }
7879
7987
  },
7880
- "x-uid": "fdlzfzi31ux",
7988
+ "x-uid": "sfa1nw7kqmi",
7881
7989
  "x-async": true,
7882
7990
  "x-index": 1
7883
7991
  }
7884
7992
  };
7885
- const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
7886
- collections: generalWithChoices,
7993
+ const oneTableBlockWithEditAndSubForm = {
7994
+ collections: [
7995
+ ...generalWithBasic,
7996
+ {
7997
+ name: "subform",
7998
+ fields: [
7999
+ {
8000
+ name: "manyToMany",
8001
+ interface: "m2m",
8002
+ target: "general"
8003
+ }
8004
+ ]
8005
+ }
8006
+ ],
7887
8007
  pageSchema: {
7888
8008
  _isJSONSchemaObject: true,
7889
8009
  version: "2.0",
7890
8010
  type: "void",
7891
8011
  "x-component": "Page",
7892
8012
  properties: {
7893
- ilubnjva5y2: {
8013
+ ikn7a785yxy: {
7894
8014
  _isJSONSchemaObject: true,
7895
8015
  version: "2.0",
7896
8016
  type: "void",
7897
8017
  "x-component": "Grid",
7898
8018
  "x-initializer": "page:addBlock",
7899
8019
  properties: {
7900
- bjxj2sjr36f: {
8020
+ ymhggvoaw7g: {
7901
8021
  _isJSONSchemaObject: true,
7902
8022
  version: "2.0",
7903
8023
  type: "void",
7904
8024
  "x-component": "Grid.Row",
8025
+ "x-app-version": "0.21.0-alpha.15",
7905
8026
  properties: {
7906
- ky6pmbcp9az: {
8027
+ itbsbwvloui: {
7907
8028
  _isJSONSchemaObject: true,
7908
8029
  version: "2.0",
7909
8030
  type: "void",
7910
8031
  "x-component": "Grid.Col",
8032
+ "x-app-version": "0.21.0-alpha.15",
7911
8033
  properties: {
7912
- "2op8rflo1d1": {
8034
+ "0ynnfgfjgl9": {
7913
8035
  _isJSONSchemaObject: true,
7914
8036
  version: "2.0",
7915
8037
  type: "void",
7916
8038
  "x-decorator": "TableBlockProvider",
7917
- "x-acl-action": "general:list",
8039
+ "x-acl-action": "subform:list",
8040
+ "x-use-decorator-props": "useTableBlockDecoratorProps",
7918
8041
  "x-decorator-props": {
7919
- collection: "general",
7920
- resource: "general",
8042
+ collection: "subform",
8043
+ dataSource: "main",
7921
8044
  action: "list",
7922
8045
  params: {
7923
8046
  pageSize: 20
7924
8047
  },
7925
8048
  rowKey: "id",
7926
8049
  showIndex: true,
7927
- dragSort: false,
7928
- disableTemplate: false
8050
+ dragSort: false
7929
8051
  },
7930
- "x-designer": "TableBlockDesigner",
8052
+ "x-toolbar": "BlockSchemaToolbar",
8053
+ "x-settings": "blockSettings:table",
7931
8054
  "x-component": "CardItem",
7932
8055
  "x-filter-targets": [],
8056
+ "x-app-version": "0.21.0-alpha.15",
7933
8057
  properties: {
7934
8058
  actions: {
7935
8059
  _isJSONSchemaObject: true,
@@ -7942,106 +8066,530 @@ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
7942
8066
  marginBottom: "var(--nb-spacing)"
7943
8067
  }
7944
8068
  },
8069
+ "x-app-version": "0.21.0-alpha.15",
8070
+ "x-uid": "wvkrzc4gbed",
8071
+ "x-async": false,
8072
+ "x-index": 1
8073
+ },
8074
+ c458tgnk7e1: {
8075
+ _isJSONSchemaObject: true,
8076
+ version: "2.0",
8077
+ type: "array",
8078
+ "x-initializer": "table:configureColumns",
8079
+ "x-component": "TableV2",
8080
+ "x-use-component-props": "useTableBlockProps",
8081
+ "x-component-props": {
8082
+ rowKey: "id",
8083
+ rowSelection: {
8084
+ type: "checkbox"
8085
+ }
8086
+ },
8087
+ "x-app-version": "0.21.0-alpha.15",
7945
8088
  properties: {
7946
- rlm978zai4l: {
8089
+ actions: {
7947
8090
  _isJSONSchemaObject: true,
7948
8091
  version: "2.0",
7949
8092
  type: "void",
7950
- "x-action": "create",
7951
- "x-acl-action": "create",
7952
- title: "{{t('Add new')}}",
7953
- "x-designer": "Action.Designer",
7954
- "x-component": "Action",
7955
- "x-decorator": "ACLActionProvider",
7956
- "x-component-props": {
7957
- openMode: "drawer",
7958
- type: "primary",
7959
- component: "CreateRecordAction",
7960
- icon: "PlusOutlined"
7961
- },
7962
- "x-align": "right",
7963
- "x-acl-action-props": {
7964
- skipScopeCheck: true
7965
- },
8093
+ title: '{{ t("Actions") }}',
8094
+ "x-action-column": "actions",
8095
+ "x-decorator": "TableV2.Column.ActionBar",
8096
+ "x-component": "TableV2.Column",
8097
+ "x-designer": "TableV2.ActionColumnDesigner",
8098
+ "x-initializer": "table:configureItemActions",
8099
+ "x-app-version": "0.21.0-alpha.15",
7966
8100
  properties: {
7967
- drawer: {
8101
+ g3whb78e8by: {
7968
8102
  _isJSONSchemaObject: true,
7969
8103
  version: "2.0",
7970
8104
  type: "void",
7971
- title: '{{ t("Add record") }}',
7972
- "x-component": "Action.Container",
8105
+ "x-decorator": "DndContext",
8106
+ "x-component": "Space",
7973
8107
  "x-component-props": {
7974
- className: "nb-action-popup"
8108
+ split: "|"
7975
8109
  },
8110
+ "x-app-version": "0.21.0-alpha.15",
7976
8111
  properties: {
7977
- tabs: {
8112
+ "96j8pfb73nd": {
8113
+ "x-uid": "jbq7qw7iuht",
7978
8114
  _isJSONSchemaObject: true,
7979
8115
  version: "2.0",
7980
8116
  type: "void",
7981
- "x-component": "Tabs",
7982
- "x-component-props": {},
7983
- "x-initializer": "TabPaneInitializersForCreateFormBlock",
8117
+ title: "Edit record",
8118
+ "x-action": "update",
8119
+ "x-toolbar": "ActionSchemaToolbar",
8120
+ "x-settings": "actionSettings:edit",
8121
+ "x-component": "Action.Link",
8122
+ "x-component-props": {
8123
+ openMode: "drawer",
8124
+ danger: false
8125
+ },
8126
+ "x-decorator": "ACLActionProvider",
8127
+ "x-designer-props": {
8128
+ linkageAction: true
8129
+ },
7984
8130
  properties: {
7985
- tab1: {
8131
+ drawer: {
7986
8132
  _isJSONSchemaObject: true,
7987
8133
  version: "2.0",
7988
8134
  type: "void",
7989
- title: '{{t("Add new")}}',
7990
- "x-component": "Tabs.TabPane",
7991
- "x-designer": "Tabs.Designer",
7992
- "x-component-props": {},
8135
+ title: '{{ t("Edit record") }}',
8136
+ "x-component": "Action.Container",
8137
+ "x-component-props": {
8138
+ className: "nb-action-popup"
8139
+ },
7993
8140
  properties: {
7994
- grid: {
8141
+ tabs: {
7995
8142
  _isJSONSchemaObject: true,
7996
8143
  version: "2.0",
7997
8144
  type: "void",
7998
- "x-component": "Grid",
7999
- "x-initializer": "popup:addNew:addBlock",
8145
+ "x-component": "Tabs",
8146
+ "x-component-props": {},
8147
+ "x-initializer": "popup:addTab",
8000
8148
  properties: {
8001
- xgwlijx7tl0: {
8149
+ tab1: {
8002
8150
  _isJSONSchemaObject: true,
8003
8151
  version: "2.0",
8004
8152
  type: "void",
8005
- "x-component": "Grid.Row",
8153
+ title: '{{t("Edit")}}',
8154
+ "x-component": "Tabs.TabPane",
8155
+ "x-designer": "Tabs.Designer",
8156
+ "x-component-props": {},
8006
8157
  properties: {
8007
- zvd5z1ensh9: {
8158
+ grid: {
8008
8159
  _isJSONSchemaObject: true,
8009
8160
  version: "2.0",
8010
8161
  type: "void",
8011
- "x-component": "Grid.Col",
8162
+ "x-component": "Grid",
8163
+ "x-initializer": "popup:common:addBlock",
8012
8164
  properties: {
8013
- fwl31jsc1fx: {
8165
+ lg7f1thob6s: {
8014
8166
  _isJSONSchemaObject: true,
8015
8167
  version: "2.0",
8016
8168
  type: "void",
8017
- "x-acl-action-props": {
8018
- skipScopeCheck: true
8019
- },
8020
- "x-acl-action": "general:create",
8021
- "x-decorator": "FormBlockProvider",
8022
- "x-decorator-props": {
8023
- resource: "general",
8024
- collection: "general"
8025
- },
8026
- "x-designer": "FormV2.Designer",
8027
- "x-component": "CardItem",
8028
- "x-component-props": {},
8169
+ "x-component": "Grid.Row",
8170
+ "x-app-version": "0.21.0-alpha.15",
8029
8171
  properties: {
8030
- ohv77wy1ppn: {
8172
+ njdmuxui5o9: {
8031
8173
  _isJSONSchemaObject: true,
8032
8174
  version: "2.0",
8033
8175
  type: "void",
8034
- "x-component": "FormV2",
8035
- "x-component-props": {
8036
- useProps: "{{ useFormBlockProps }}"
8037
- },
8176
+ "x-component": "Grid.Col",
8177
+ "x-app-version": "0.21.0-alpha.15",
8038
8178
  properties: {
8039
- grid: {
8179
+ "1wruwk2ymiy": {
8040
8180
  _isJSONSchemaObject: true,
8041
8181
  version: "2.0",
8042
8182
  type: "void",
8043
- "x-component": "Grid",
8044
- "x-initializer": "form:configureFields",
8183
+ "x-acl-action-props": {
8184
+ skipScopeCheck: false
8185
+ },
8186
+ "x-acl-action": "subform:update",
8187
+ "x-decorator": "FormBlockProvider",
8188
+ "x-use-decorator-props": "useEditFormBlockDecoratorProps",
8189
+ "x-decorator-props": {
8190
+ action: "get",
8191
+ dataSource: "main",
8192
+ collection: "subform"
8193
+ },
8194
+ "x-toolbar": "BlockSchemaToolbar",
8195
+ "x-settings": "blockSettings:editForm",
8196
+ "x-component": "CardItem",
8197
+ "x-app-version": "0.21.0-alpha.15",
8198
+ properties: {
8199
+ "1r4nw0s9i1w": {
8200
+ _isJSONSchemaObject: true,
8201
+ version: "2.0",
8202
+ type: "void",
8203
+ "x-component": "FormV2",
8204
+ "x-use-component-props": "useEditFormBlockProps",
8205
+ "x-app-version": "0.21.0-alpha.15",
8206
+ properties: {
8207
+ grid: {
8208
+ _isJSONSchemaObject: true,
8209
+ version: "2.0",
8210
+ type: "void",
8211
+ "x-component": "Grid",
8212
+ "x-initializer": "form:configureFields",
8213
+ "x-app-version": "0.21.0-alpha.15",
8214
+ properties: {
8215
+ "4j2zyvo135s": {
8216
+ _isJSONSchemaObject: true,
8217
+ version: "2.0",
8218
+ type: "void",
8219
+ "x-component": "Grid.Row",
8220
+ "x-app-version": "0.21.0-alpha.15",
8221
+ properties: {
8222
+ "5zclzus2agg": {
8223
+ _isJSONSchemaObject: true,
8224
+ version: "2.0",
8225
+ type: "void",
8226
+ "x-component": "Grid.Col",
8227
+ "x-app-version": "0.21.0-alpha.15",
8228
+ properties: {
8229
+ manyToMany: {
8230
+ "x-uid": "hs5l8xki08o",
8231
+ _isJSONSchemaObject: true,
8232
+ version: "2.0",
8233
+ type: "string",
8234
+ "x-toolbar": "FormItemSchemaToolbar",
8235
+ "x-settings": "fieldSettings:FormItem",
8236
+ "x-component": "CollectionField",
8237
+ "x-decorator": "FormItem",
8238
+ "x-collection-field": "subform.manyToMany",
8239
+ "x-component-props": {
8240
+ fieldNames: {
8241
+ label: "id",
8242
+ value: "id"
8243
+ },
8244
+ mode: "Nester"
8245
+ },
8246
+ "x-app-version": "0.21.0-alpha.15",
8247
+ properties: {
8248
+ w16ui5so6ug: {
8249
+ _isJSONSchemaObject: true,
8250
+ version: "2.0",
8251
+ type: "void",
8252
+ "x-component": "AssociationField.Nester",
8253
+ "x-index": 1,
8254
+ "x-app-version": "0.21.0-alpha.15",
8255
+ properties: {
8256
+ grid: {
8257
+ _isJSONSchemaObject: true,
8258
+ version: "2.0",
8259
+ type: "void",
8260
+ "x-component": "Grid",
8261
+ "x-initializer": "form:configureFields",
8262
+ "x-app-version": "0.21.0-alpha.15",
8263
+ properties: {
8264
+ "52v5gjhuhil": {
8265
+ _isJSONSchemaObject: true,
8266
+ version: "2.0",
8267
+ type: "void",
8268
+ "x-component": "Grid.Row",
8269
+ "x-app-version": "0.21.0-alpha.15",
8270
+ properties: {
8271
+ "4j9cytzhwjt": {
8272
+ _isJSONSchemaObject: true,
8273
+ version: "2.0",
8274
+ type: "void",
8275
+ "x-component": "Grid.Col",
8276
+ "x-app-version": "0.21.0-alpha.15",
8277
+ properties: {
8278
+ singleLineText: {
8279
+ _isJSONSchemaObject: true,
8280
+ version: "2.0",
8281
+ type: "string",
8282
+ "x-toolbar": "FormItemSchemaToolbar",
8283
+ "x-settings": "fieldSettings:FormItem",
8284
+ "x-component": "CollectionField",
8285
+ "x-decorator": "FormItem",
8286
+ "x-collection-field": "general.singleLineText",
8287
+ "x-component-props": {},
8288
+ "x-app-version": "0.21.0-alpha.15",
8289
+ "x-uid": "heu3ssj95k4",
8290
+ "x-async": false,
8291
+ "x-index": 1
8292
+ }
8293
+ },
8294
+ "x-uid": "24aob2c29am",
8295
+ "x-async": false,
8296
+ "x-index": 1
8297
+ }
8298
+ },
8299
+ "x-uid": "e9z1vk94wzt",
8300
+ "x-async": false,
8301
+ "x-index": 1
8302
+ }
8303
+ },
8304
+ "x-uid": "xv2tx1i3asd",
8305
+ "x-async": false,
8306
+ "x-index": 1
8307
+ }
8308
+ },
8309
+ "x-uid": "f8ww2djzw4s",
8310
+ "x-async": false
8311
+ }
8312
+ },
8313
+ "x-async": false,
8314
+ "x-index": 1
8315
+ }
8316
+ },
8317
+ "x-uid": "uw8v7gpncme",
8318
+ "x-async": false,
8319
+ "x-index": 1
8320
+ }
8321
+ },
8322
+ "x-uid": "y36de9c1w1q",
8323
+ "x-async": false,
8324
+ "x-index": 1
8325
+ }
8326
+ },
8327
+ "x-uid": "cd8hid8sd8p",
8328
+ "x-async": false,
8329
+ "x-index": 1
8330
+ },
8331
+ lbqqyqmfn58: {
8332
+ _isJSONSchemaObject: true,
8333
+ version: "2.0",
8334
+ type: "void",
8335
+ "x-initializer": "editForm:configureActions",
8336
+ "x-component": "ActionBar",
8337
+ "x-component-props": {
8338
+ layout: "one-column",
8339
+ style: {
8340
+ marginTop: 24
8341
+ }
8342
+ },
8343
+ "x-app-version": "0.21.0-alpha.15",
8344
+ "x-uid": "d7ou1l2pame",
8345
+ "x-async": false,
8346
+ "x-index": 2
8347
+ }
8348
+ },
8349
+ "x-uid": "378pyhe1ouc",
8350
+ "x-async": false,
8351
+ "x-index": 1
8352
+ }
8353
+ },
8354
+ "x-uid": "kqrgr76mqyd",
8355
+ "x-async": false,
8356
+ "x-index": 1
8357
+ }
8358
+ },
8359
+ "x-uid": "tfxy8lqeyzf",
8360
+ "x-async": false,
8361
+ "x-index": 1
8362
+ }
8363
+ },
8364
+ "x-uid": "skx1ugoefxd",
8365
+ "x-async": false,
8366
+ "x-index": 1
8367
+ }
8368
+ },
8369
+ "x-uid": "t24v0l6iv9b",
8370
+ "x-async": false,
8371
+ "x-index": 1
8372
+ }
8373
+ },
8374
+ "x-uid": "ant817mjpxd",
8375
+ "x-async": false,
8376
+ "x-index": 1
8377
+ }
8378
+ },
8379
+ "x-uid": "6ozc65lhnk0",
8380
+ "x-async": false,
8381
+ "x-index": 1
8382
+ }
8383
+ },
8384
+ "x-uid": "lwk8hqr8p79",
8385
+ "x-async": false,
8386
+ "x-index": 1
8387
+ }
8388
+ },
8389
+ "x-async": false,
8390
+ "x-index": 1
8391
+ }
8392
+ },
8393
+ "x-uid": "3gzaswo60as",
8394
+ "x-async": false,
8395
+ "x-index": 1
8396
+ }
8397
+ },
8398
+ "x-uid": "gh0ea7odopi",
8399
+ "x-async": false,
8400
+ "x-index": 1
8401
+ }
8402
+ },
8403
+ "x-uid": "u541j0zmw63",
8404
+ "x-async": false,
8405
+ "x-index": 2
8406
+ }
8407
+ },
8408
+ "x-uid": "gdpm3ailyz7",
8409
+ "x-async": false,
8410
+ "x-index": 1
8411
+ }
8412
+ },
8413
+ "x-uid": "gkc72ed4e3h",
8414
+ "x-async": false,
8415
+ "x-index": 1
8416
+ }
8417
+ },
8418
+ "x-uid": "93cyoyerj1s",
8419
+ "x-async": false,
8420
+ "x-index": 1
8421
+ }
8422
+ },
8423
+ "x-uid": "bykp472klg9",
8424
+ "x-async": false,
8425
+ "x-index": 1
8426
+ }
8427
+ },
8428
+ "x-uid": "fdlzfzi31ux",
8429
+ "x-async": true,
8430
+ "x-index": 1
8431
+ }
8432
+ };
8433
+ const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields = {
8434
+ collections: generalWithChoices,
8435
+ pageSchema: {
8436
+ _isJSONSchemaObject: true,
8437
+ version: "2.0",
8438
+ type: "void",
8439
+ "x-component": "Page",
8440
+ properties: {
8441
+ ilubnjva5y2: {
8442
+ _isJSONSchemaObject: true,
8443
+ version: "2.0",
8444
+ type: "void",
8445
+ "x-component": "Grid",
8446
+ "x-initializer": "page:addBlock",
8447
+ properties: {
8448
+ bjxj2sjr36f: {
8449
+ _isJSONSchemaObject: true,
8450
+ version: "2.0",
8451
+ type: "void",
8452
+ "x-component": "Grid.Row",
8453
+ properties: {
8454
+ ky6pmbcp9az: {
8455
+ _isJSONSchemaObject: true,
8456
+ version: "2.0",
8457
+ type: "void",
8458
+ "x-component": "Grid.Col",
8459
+ properties: {
8460
+ "2op8rflo1d1": {
8461
+ _isJSONSchemaObject: true,
8462
+ version: "2.0",
8463
+ type: "void",
8464
+ "x-decorator": "TableBlockProvider",
8465
+ "x-acl-action": "general:list",
8466
+ "x-decorator-props": {
8467
+ collection: "general",
8468
+ resource: "general",
8469
+ action: "list",
8470
+ params: {
8471
+ pageSize: 20
8472
+ },
8473
+ rowKey: "id",
8474
+ showIndex: true,
8475
+ dragSort: false,
8476
+ disableTemplate: false
8477
+ },
8478
+ "x-designer": "TableBlockDesigner",
8479
+ "x-component": "CardItem",
8480
+ "x-filter-targets": [],
8481
+ properties: {
8482
+ actions: {
8483
+ _isJSONSchemaObject: true,
8484
+ version: "2.0",
8485
+ type: "void",
8486
+ "x-initializer": "table:configureActions",
8487
+ "x-component": "ActionBar",
8488
+ "x-component-props": {
8489
+ style: {
8490
+ marginBottom: "var(--nb-spacing)"
8491
+ }
8492
+ },
8493
+ properties: {
8494
+ rlm978zai4l: {
8495
+ _isJSONSchemaObject: true,
8496
+ version: "2.0",
8497
+ type: "void",
8498
+ "x-action": "create",
8499
+ "x-acl-action": "create",
8500
+ title: "{{t('Add new')}}",
8501
+ "x-designer": "Action.Designer",
8502
+ "x-component": "Action",
8503
+ "x-decorator": "ACLActionProvider",
8504
+ "x-component-props": {
8505
+ openMode: "drawer",
8506
+ type: "primary",
8507
+ component: "CreateRecordAction",
8508
+ icon: "PlusOutlined"
8509
+ },
8510
+ "x-align": "right",
8511
+ "x-acl-action-props": {
8512
+ skipScopeCheck: true
8513
+ },
8514
+ properties: {
8515
+ drawer: {
8516
+ _isJSONSchemaObject: true,
8517
+ version: "2.0",
8518
+ type: "void",
8519
+ title: '{{ t("Add record") }}',
8520
+ "x-component": "Action.Container",
8521
+ "x-component-props": {
8522
+ className: "nb-action-popup"
8523
+ },
8524
+ properties: {
8525
+ tabs: {
8526
+ _isJSONSchemaObject: true,
8527
+ version: "2.0",
8528
+ type: "void",
8529
+ "x-component": "Tabs",
8530
+ "x-component-props": {},
8531
+ "x-initializer": "TabPaneInitializersForCreateFormBlock",
8532
+ properties: {
8533
+ tab1: {
8534
+ _isJSONSchemaObject: true,
8535
+ version: "2.0",
8536
+ type: "void",
8537
+ title: '{{t("Add new")}}',
8538
+ "x-component": "Tabs.TabPane",
8539
+ "x-designer": "Tabs.Designer",
8540
+ "x-component-props": {},
8541
+ properties: {
8542
+ grid: {
8543
+ _isJSONSchemaObject: true,
8544
+ version: "2.0",
8545
+ type: "void",
8546
+ "x-component": "Grid",
8547
+ "x-initializer": "popup:addNew:addBlock",
8548
+ properties: {
8549
+ xgwlijx7tl0: {
8550
+ _isJSONSchemaObject: true,
8551
+ version: "2.0",
8552
+ type: "void",
8553
+ "x-component": "Grid.Row",
8554
+ properties: {
8555
+ zvd5z1ensh9: {
8556
+ _isJSONSchemaObject: true,
8557
+ version: "2.0",
8558
+ type: "void",
8559
+ "x-component": "Grid.Col",
8560
+ properties: {
8561
+ fwl31jsc1fx: {
8562
+ _isJSONSchemaObject: true,
8563
+ version: "2.0",
8564
+ type: "void",
8565
+ "x-acl-action-props": {
8566
+ skipScopeCheck: true
8567
+ },
8568
+ "x-acl-action": "general:create",
8569
+ "x-decorator": "FormBlockProvider",
8570
+ "x-decorator-props": {
8571
+ resource: "general",
8572
+ collection: "general"
8573
+ },
8574
+ "x-designer": "FormV2.Designer",
8575
+ "x-component": "CardItem",
8576
+ "x-component-props": {},
8577
+ properties: {
8578
+ ohv77wy1ppn: {
8579
+ _isJSONSchemaObject: true,
8580
+ version: "2.0",
8581
+ type: "void",
8582
+ "x-component": "FormV2",
8583
+ "x-component-props": {
8584
+ useProps: "{{ useFormBlockProps }}"
8585
+ },
8586
+ properties: {
8587
+ grid: {
8588
+ _isJSONSchemaObject: true,
8589
+ version: "2.0",
8590
+ type: "void",
8591
+ "x-component": "Grid",
8592
+ "x-initializer": "form:configureFields",
8045
8593
  properties: {
8046
8594
  "0k83zkmy257": {
8047
8595
  _isJSONSchemaObject: true,
@@ -20927,76 +21475,613 @@ const checkboxForTableRow = {
20927
21475
  "x-index": 1
20928
21476
  }
20929
21477
  },
20930
- "x-uid": "fvkqaxe6bo1",
21478
+ "x-uid": "fvkqaxe6bo1",
21479
+ "x-async": false,
21480
+ "x-index": 1
21481
+ },
21482
+ wwn0ajwixxl: {
21483
+ _isJSONSchemaObject: true,
21484
+ version: "2.0",
21485
+ type: "void",
21486
+ "x-decorator": "TableV2.Column.Decorator",
21487
+ "x-designer": "TableV2.Column.Designer",
21488
+ "x-component": "TableV2.Column",
21489
+ properties: {
21490
+ f_vbrlno0zej9: {
21491
+ _isJSONSchemaObject: true,
21492
+ version: "2.0",
21493
+ "x-collection-field": "t_fhdhd0nk7b9.f_vbrlno0zej9",
21494
+ "x-component": "CollectionField",
21495
+ "x-component-props": {
21496
+ ellipsis: true
21497
+ },
21498
+ "x-read-pretty": true,
21499
+ "x-decorator": null,
21500
+ "x-decorator-props": {
21501
+ labelStyle: {
21502
+ display: "none"
21503
+ }
21504
+ },
21505
+ "x-uid": "emphc9g52u7",
21506
+ "x-async": false,
21507
+ "x-index": 1
21508
+ }
21509
+ },
21510
+ "x-uid": "q7h24jnc070",
21511
+ "x-async": false,
21512
+ "x-index": 2
21513
+ }
21514
+ },
21515
+ "x-uid": "a9qdzmt4vai",
21516
+ "x-async": false,
21517
+ "x-index": 2
21518
+ }
21519
+ },
21520
+ "x-uid": "98ta7h4ba1f",
21521
+ "x-async": false,
21522
+ "x-index": 1
21523
+ }
21524
+ },
21525
+ "x-uid": "mo6eowotbqd",
21526
+ "x-async": false,
21527
+ "x-index": 1
21528
+ }
21529
+ },
21530
+ "x-uid": "2nmkby45kce",
21531
+ "x-async": false,
21532
+ "x-index": 1
21533
+ }
21534
+ },
21535
+ "x-uid": "zyukds9t2ln",
21536
+ "x-async": false,
21537
+ "x-index": 1
21538
+ }
21539
+ },
21540
+ "x-uid": "d0j1mfitnmr",
21541
+ "x-async": true,
21542
+ "x-index": 1
21543
+ }
21544
+ };
21545
+ const commonFormViewPage = {
21546
+ collections: generalWithBasic,
21547
+ pageSchema: {
21548
+ _isJSONSchemaObject: true,
21549
+ version: "2.0",
21550
+ type: "void",
21551
+ "x-component": "Page",
21552
+ "x-index": 1,
21553
+ properties: {
21554
+ nyayqbdi6fw: {
21555
+ _isJSONSchemaObject: true,
21556
+ version: "2.0",
21557
+ type: "void",
21558
+ "x-component": "Grid",
21559
+ "x-initializer": "page:addBlock",
21560
+ "x-app-version": "1.0.0-alpha.17",
21561
+ "x-index": 1,
21562
+ properties: {
21563
+ udrskvvihwz: {
21564
+ _isJSONSchemaObject: true,
21565
+ version: "2.0",
21566
+ type: "void",
21567
+ "x-component": "Grid.Row",
21568
+ "x-app-version": "1.0.0-alpha.17",
21569
+ properties: {
21570
+ sic837d78ru: {
21571
+ _isJSONSchemaObject: true,
21572
+ version: "2.0",
21573
+ type: "void",
21574
+ "x-component": "Grid.Col",
21575
+ "x-app-version": "1.0.0-alpha.17",
21576
+ properties: {
21577
+ j3tcb77zrjs: {
21578
+ _isJSONSchemaObject: true,
21579
+ version: "2.0",
21580
+ type: "void",
21581
+ "x-acl-action": "general:view",
21582
+ "x-decorator": "DetailsBlockProvider",
21583
+ "x-use-decorator-props": "useDetailsWithPaginationDecoratorProps",
21584
+ "x-decorator-props": {
21585
+ dataSource: "main",
21586
+ collection: "general",
21587
+ readPretty: true,
21588
+ action: "list",
21589
+ params: {
21590
+ pageSize: 1
21591
+ }
21592
+ },
21593
+ "x-toolbar": "BlockSchemaToolbar",
21594
+ "x-settings": "blockSettings:detailsWithPagination",
21595
+ "x-component": "CardItem",
21596
+ "x-app-version": "1.0.0-alpha.17",
21597
+ properties: {
21598
+ hgde2qiovq4: {
21599
+ _isJSONSchemaObject: true,
21600
+ version: "2.0",
21601
+ type: "void",
21602
+ "x-component": "Details",
21603
+ "x-read-pretty": true,
21604
+ "x-use-component-props": "useDetailsWithPaginationProps",
21605
+ "x-app-version": "1.0.0-alpha.17",
21606
+ properties: {
21607
+ xaaixt3ikr2: {
21608
+ _isJSONSchemaObject: true,
21609
+ version: "2.0",
21610
+ type: "void",
21611
+ "x-initializer": "details:configureActions",
21612
+ "x-component": "ActionBar",
21613
+ "x-component-props": {
21614
+ style: {
21615
+ marginBottom: 24
21616
+ }
21617
+ },
21618
+ "x-app-version": "1.0.0-alpha.17",
21619
+ properties: {
21620
+ zc467d4k8pe: {
21621
+ _isJSONSchemaObject: true,
21622
+ version: "2.0",
21623
+ type: "void",
21624
+ title: '{{ t("Edit") }}',
21625
+ "x-action": "update",
21626
+ "x-toolbar": "ActionSchemaToolbar",
21627
+ "x-settings": "actionSettings:edit",
21628
+ "x-component": "Action",
21629
+ "x-component-props": {
21630
+ openMode: "drawer",
21631
+ icon: "EditOutlined",
21632
+ type: "primary"
21633
+ },
21634
+ "x-decorator": "ACLActionProvider",
21635
+ "x-app-version": "1.0.0-alpha.17",
21636
+ properties: {
21637
+ drawer: {
21638
+ _isJSONSchemaObject: true,
21639
+ version: "2.0",
21640
+ type: "void",
21641
+ title: '{{ t("Edit record") }}',
21642
+ "x-component": "Action.Container",
21643
+ "x-component-props": {
21644
+ className: "nb-action-popup"
21645
+ },
21646
+ "x-app-version": "1.0.0-alpha.17",
21647
+ properties: {
21648
+ tabs: {
21649
+ _isJSONSchemaObject: true,
21650
+ version: "2.0",
21651
+ type: "void",
21652
+ "x-component": "Tabs",
21653
+ "x-component-props": {},
21654
+ "x-initializer": "popup:addTab",
21655
+ "x-app-version": "1.0.0-alpha.17",
21656
+ properties: {
21657
+ tab1: {
21658
+ _isJSONSchemaObject: true,
21659
+ version: "2.0",
21660
+ type: "void",
21661
+ title: '{{t("Edit")}}',
21662
+ "x-component": "Tabs.TabPane",
21663
+ "x-designer": "Tabs.Designer",
21664
+ "x-component-props": {},
21665
+ "x-app-version": "1.0.0-alpha.17",
21666
+ properties: {
21667
+ grid: {
21668
+ _isJSONSchemaObject: true,
21669
+ version: "2.0",
21670
+ type: "void",
21671
+ "x-component": "Grid",
21672
+ "x-initializer": "popup:common:addBlock",
21673
+ "x-app-version": "1.0.0-alpha.17",
21674
+ "x-uid": "tbxcoz6blxo",
21675
+ "x-async": false,
21676
+ "x-index": 1
21677
+ }
21678
+ },
21679
+ "x-uid": "x4gthikn85e",
21680
+ "x-async": false,
21681
+ "x-index": 1
21682
+ }
21683
+ },
21684
+ "x-uid": "dlcr60v0lae",
21685
+ "x-async": false,
21686
+ "x-index": 1
21687
+ }
21688
+ },
21689
+ "x-uid": "goi3ac29a92",
21690
+ "x-async": false,
21691
+ "x-index": 1
21692
+ }
21693
+ },
21694
+ "x-uid": "xhu94zjv18h",
21695
+ "x-async": false,
21696
+ "x-index": 2
21697
+ }
21698
+ },
21699
+ "x-uid": "dotl8t82ufw",
20931
21700
  "x-async": false,
20932
21701
  "x-index": 1
20933
21702
  },
20934
- wwn0ajwixxl: {
21703
+ grid: {
20935
21704
  _isJSONSchemaObject: true,
20936
21705
  version: "2.0",
20937
21706
  type: "void",
20938
- "x-decorator": "TableV2.Column.Decorator",
20939
- "x-designer": "TableV2.Column.Designer",
20940
- "x-component": "TableV2.Column",
21707
+ "x-component": "Grid",
21708
+ "x-initializer": "details:configureFields",
21709
+ "x-app-version": "1.0.0-alpha.17",
20941
21710
  properties: {
20942
- f_vbrlno0zej9: {
21711
+ qbd9sojqba9: {
20943
21712
  _isJSONSchemaObject: true,
20944
21713
  version: "2.0",
20945
- "x-collection-field": "t_fhdhd0nk7b9.f_vbrlno0zej9",
20946
- "x-component": "CollectionField",
20947
- "x-component-props": {
20948
- ellipsis: true
20949
- },
20950
- "x-read-pretty": true,
20951
- "x-decorator": null,
20952
- "x-decorator-props": {
20953
- labelStyle: {
20954
- display: "none"
21714
+ type: "void",
21715
+ "x-component": "Grid.Row",
21716
+ "x-app-version": "1.0.0-alpha.17",
21717
+ properties: {
21718
+ "6fi8dxh1515": {
21719
+ _isJSONSchemaObject: true,
21720
+ version: "2.0",
21721
+ type: "void",
21722
+ "x-component": "Grid.Col",
21723
+ "x-app-version": "1.0.0-alpha.17",
21724
+ properties: {
21725
+ email: {
21726
+ _isJSONSchemaObject: true,
21727
+ version: "2.0",
21728
+ type: "string",
21729
+ "x-toolbar": "FormItemSchemaToolbar",
21730
+ "x-settings": "fieldSettings:FormItem",
21731
+ "x-component": "CollectionField",
21732
+ "x-decorator": "FormItem",
21733
+ "x-use-decorator-props": "useDataFormItemProps",
21734
+ "x-collection-field": "general.email",
21735
+ "x-component-props": {},
21736
+ "x-app-version": "1.0.0-alpha.17",
21737
+ "x-uid": "1ht8ymnfc18",
21738
+ "x-async": false,
21739
+ "x-index": 1
21740
+ }
21741
+ },
21742
+ "x-uid": "2y8bzf9fa92",
21743
+ "x-async": false,
21744
+ "x-index": 1
20955
21745
  }
20956
21746
  },
20957
- "x-uid": "emphc9g52u7",
21747
+ "x-uid": "mszcq97x37n",
20958
21748
  "x-async": false,
20959
21749
  "x-index": 1
21750
+ },
21751
+ "5qwtnq93h4m": {
21752
+ _isJSONSchemaObject: true,
21753
+ version: "2.0",
21754
+ type: "void",
21755
+ "x-component": "Grid.Row",
21756
+ "x-app-version": "1.0.0-alpha.17",
21757
+ properties: {
21758
+ woxnz7b32ms: {
21759
+ _isJSONSchemaObject: true,
21760
+ version: "2.0",
21761
+ type: "void",
21762
+ "x-component": "Grid.Col",
21763
+ "x-app-version": "1.0.0-alpha.17",
21764
+ properties: {
21765
+ number: {
21766
+ _isJSONSchemaObject: true,
21767
+ version: "2.0",
21768
+ type: "string",
21769
+ "x-toolbar": "FormItemSchemaToolbar",
21770
+ "x-settings": "fieldSettings:FormItem",
21771
+ "x-component": "CollectionField",
21772
+ "x-decorator": "FormItem",
21773
+ "x-use-decorator-props": "useDataFormItemProps",
21774
+ "x-collection-field": "general.number",
21775
+ "x-component-props": {},
21776
+ "x-app-version": "1.0.0-alpha.17",
21777
+ "x-uid": "lg2wluayh2c",
21778
+ "x-async": false,
21779
+ "x-index": 1
21780
+ }
21781
+ },
21782
+ "x-uid": "awljxm8hh55",
21783
+ "x-async": false,
21784
+ "x-index": 1
21785
+ }
21786
+ },
21787
+ "x-uid": "g8raovgeqjc",
21788
+ "x-async": false,
21789
+ "x-index": 2
21790
+ },
21791
+ v7ht9slmzwn: {
21792
+ _isJSONSchemaObject: true,
21793
+ version: "2.0",
21794
+ type: "void",
21795
+ "x-component": "Grid.Row",
21796
+ "x-app-version": "1.0.0-alpha.17",
21797
+ properties: {
21798
+ ijjcbuis4tv: {
21799
+ _isJSONSchemaObject: true,
21800
+ version: "2.0",
21801
+ type: "void",
21802
+ "x-component": "Grid.Col",
21803
+ "x-app-version": "1.0.0-alpha.17",
21804
+ properties: {
21805
+ integer: {
21806
+ "x-uid": "dhdtfo7nrxn",
21807
+ _isJSONSchemaObject: true,
21808
+ version: "2.0",
21809
+ type: "string",
21810
+ "x-toolbar": "FormItemSchemaToolbar",
21811
+ "x-settings": "fieldSettings:FormItem",
21812
+ "x-component": "CollectionField",
21813
+ "x-decorator": "FormItem",
21814
+ "x-use-decorator-props": "useDataFormItemProps",
21815
+ "x-collection-field": "general.integer",
21816
+ "x-component-props": {},
21817
+ "x-app-version": "1.0.0-alpha.17",
21818
+ "x-linkage-style-rules": [],
21819
+ "x-async": false,
21820
+ "x-index": 1
21821
+ }
21822
+ },
21823
+ "x-uid": "9rd5u4d3lhj",
21824
+ "x-async": false,
21825
+ "x-index": 1
21826
+ }
21827
+ },
21828
+ "x-uid": "ii6w1eqf21k",
21829
+ "x-async": false,
21830
+ "x-index": 3
21831
+ },
21832
+ fekkqosx4q6: {
21833
+ _isJSONSchemaObject: true,
21834
+ version: "2.0",
21835
+ type: "void",
21836
+ "x-component": "Grid.Row",
21837
+ "x-app-version": "1.0.0-alpha.17",
21838
+ properties: {
21839
+ nmpljskg642: {
21840
+ _isJSONSchemaObject: true,
21841
+ version: "2.0",
21842
+ type: "void",
21843
+ "x-component": "Grid.Col",
21844
+ "x-app-version": "1.0.0-alpha.17",
21845
+ properties: {
21846
+ singleLineText: {
21847
+ _isJSONSchemaObject: true,
21848
+ version: "2.0",
21849
+ type: "string",
21850
+ "x-toolbar": "FormItemSchemaToolbar",
21851
+ "x-settings": "fieldSettings:FormItem",
21852
+ "x-component": "CollectionField",
21853
+ "x-decorator": "FormItem",
21854
+ "x-use-decorator-props": "useDataFormItemProps",
21855
+ "x-collection-field": "general.singleLineText",
21856
+ "x-component-props": {},
21857
+ "x-app-version": "1.0.0-alpha.17",
21858
+ "x-uid": "88cqngc9wzf",
21859
+ "x-async": false,
21860
+ "x-index": 1
21861
+ }
21862
+ },
21863
+ "x-uid": "44pljtolwui",
21864
+ "x-async": false,
21865
+ "x-index": 1
21866
+ }
21867
+ },
21868
+ "x-uid": "zq7dfy9uvrj",
21869
+ "x-async": false,
21870
+ "x-index": 4
21871
+ },
21872
+ p318qpfu85n: {
21873
+ _isJSONSchemaObject: true,
21874
+ version: "2.0",
21875
+ type: "void",
21876
+ "x-component": "Grid.Row",
21877
+ "x-app-version": "1.0.0-alpha.17",
21878
+ properties: {
21879
+ "1fayljjx90o": {
21880
+ _isJSONSchemaObject: true,
21881
+ version: "2.0",
21882
+ type: "void",
21883
+ "x-component": "Grid.Col",
21884
+ "x-app-version": "1.0.0-alpha.17",
21885
+ properties: {
21886
+ longText: {
21887
+ _isJSONSchemaObject: true,
21888
+ version: "2.0",
21889
+ type: "string",
21890
+ "x-toolbar": "FormItemSchemaToolbar",
21891
+ "x-settings": "fieldSettings:FormItem",
21892
+ "x-component": "CollectionField",
21893
+ "x-decorator": "FormItem",
21894
+ "x-use-decorator-props": "useDataFormItemProps",
21895
+ "x-collection-field": "general.longText",
21896
+ "x-component-props": {},
21897
+ "x-app-version": "1.0.0-alpha.17",
21898
+ "x-uid": "y6rf9v4iz8o",
21899
+ "x-async": false,
21900
+ "x-index": 1
21901
+ }
21902
+ },
21903
+ "x-uid": "1vhh859rxwx",
21904
+ "x-async": false,
21905
+ "x-index": 1
21906
+ }
21907
+ },
21908
+ "x-uid": "19lk0gejxo3",
21909
+ "x-async": false,
21910
+ "x-index": 5
21911
+ },
21912
+ "6t21tyr1aun": {
21913
+ _isJSONSchemaObject: true,
21914
+ version: "2.0",
21915
+ type: "void",
21916
+ "x-component": "Grid.Row",
21917
+ "x-app-version": "1.0.0-alpha.17",
21918
+ properties: {
21919
+ "3h1hp3t902r": {
21920
+ _isJSONSchemaObject: true,
21921
+ version: "2.0",
21922
+ type: "void",
21923
+ "x-component": "Grid.Col",
21924
+ "x-app-version": "1.0.0-alpha.17",
21925
+ properties: {
21926
+ password: {
21927
+ _isJSONSchemaObject: true,
21928
+ version: "2.0",
21929
+ type: "string",
21930
+ "x-toolbar": "FormItemSchemaToolbar",
21931
+ "x-settings": "fieldSettings:FormItem",
21932
+ "x-component": "CollectionField",
21933
+ "x-decorator": "FormItem",
21934
+ "x-use-decorator-props": "useDataFormItemProps",
21935
+ "x-collection-field": "general.password",
21936
+ "x-component-props": {},
21937
+ "x-app-version": "1.0.0-alpha.17",
21938
+ "x-uid": "2zgn6ew5mwy",
21939
+ "x-async": false,
21940
+ "x-index": 1
21941
+ }
21942
+ },
21943
+ "x-uid": "i3twoaoewde",
21944
+ "x-async": false,
21945
+ "x-index": 1
21946
+ }
21947
+ },
21948
+ "x-uid": "uvsong5fn8l",
21949
+ "x-async": false,
21950
+ "x-index": 6
21951
+ },
21952
+ inytkbn0nae: {
21953
+ _isJSONSchemaObject: true,
21954
+ version: "2.0",
21955
+ type: "void",
21956
+ "x-component": "Grid.Row",
21957
+ "x-app-version": "1.0.0-alpha.17",
21958
+ properties: {
21959
+ h8e5m0gy2ei: {
21960
+ _isJSONSchemaObject: true,
21961
+ version: "2.0",
21962
+ type: "void",
21963
+ "x-component": "Grid.Col",
21964
+ "x-app-version": "1.0.0-alpha.17",
21965
+ properties: {
21966
+ percent: {
21967
+ _isJSONSchemaObject: true,
21968
+ version: "2.0",
21969
+ type: "string",
21970
+ "x-toolbar": "FormItemSchemaToolbar",
21971
+ "x-settings": "fieldSettings:FormItem",
21972
+ "x-component": "CollectionField",
21973
+ "x-decorator": "FormItem",
21974
+ "x-use-decorator-props": "useDataFormItemProps",
21975
+ "x-collection-field": "general.percent",
21976
+ "x-component-props": {
21977
+ style: {
21978
+ width: "100%"
21979
+ }
21980
+ },
21981
+ "x-app-version": "1.0.0-alpha.17",
21982
+ "x-uid": "2maem18o31o",
21983
+ "x-async": false,
21984
+ "x-index": 1
21985
+ }
21986
+ },
21987
+ "x-uid": "jtbdipyy5sc",
21988
+ "x-async": false,
21989
+ "x-index": 1
21990
+ }
21991
+ },
21992
+ "x-uid": "as7c9lme7mm",
21993
+ "x-async": false,
21994
+ "x-index": 7
21995
+ },
21996
+ "81q1yw3hkkn": {
21997
+ _isJSONSchemaObject: true,
21998
+ version: "2.0",
21999
+ type: "void",
22000
+ "x-component": "Grid.Row",
22001
+ "x-app-version": "1.0.0-alpha.17",
22002
+ properties: {
22003
+ ykobkj6pe8n: {
22004
+ _isJSONSchemaObject: true,
22005
+ version: "2.0",
22006
+ type: "void",
22007
+ "x-component": "Grid.Col",
22008
+ "x-app-version": "1.0.0-alpha.17",
22009
+ properties: {
22010
+ phone: {
22011
+ _isJSONSchemaObject: true,
22012
+ version: "2.0",
22013
+ type: "string",
22014
+ "x-toolbar": "FormItemSchemaToolbar",
22015
+ "x-settings": "fieldSettings:FormItem",
22016
+ "x-component": "CollectionField",
22017
+ "x-decorator": "FormItem",
22018
+ "x-use-decorator-props": "useDataFormItemProps",
22019
+ "x-collection-field": "general.phone",
22020
+ "x-component-props": {},
22021
+ "x-app-version": "1.0.0-alpha.17",
22022
+ "x-uid": "e66n6ewz0hi",
22023
+ "x-async": false,
22024
+ "x-index": 1
22025
+ }
22026
+ },
22027
+ "x-uid": "ai34z8y2eb4",
22028
+ "x-async": false,
22029
+ "x-index": 1
22030
+ }
22031
+ },
22032
+ "x-uid": "eltj0z2txug",
22033
+ "x-async": false,
22034
+ "x-index": 8
20960
22035
  }
20961
22036
  },
20962
- "x-uid": "q7h24jnc070",
22037
+ "x-uid": "7crv1u0i3co",
20963
22038
  "x-async": false,
20964
22039
  "x-index": 2
22040
+ },
22041
+ pagination: {
22042
+ _isJSONSchemaObject: true,
22043
+ version: "2.0",
22044
+ type: "void",
22045
+ "x-component": "Pagination",
22046
+ "x-use-component-props": "useDetailsPaginationProps",
22047
+ "x-app-version": "1.0.0-alpha.17",
22048
+ "x-uid": "jfs3ntlghyo",
22049
+ "x-async": false,
22050
+ "x-index": 3
20965
22051
  }
20966
22052
  },
20967
- "x-uid": "a9qdzmt4vai",
22053
+ "x-uid": "buvsjjof9pw",
20968
22054
  "x-async": false,
20969
- "x-index": 2
22055
+ "x-index": 1
20970
22056
  }
20971
22057
  },
20972
- "x-uid": "98ta7h4ba1f",
22058
+ "x-uid": "9ruom7jpm1h",
20973
22059
  "x-async": false,
20974
22060
  "x-index": 1
20975
22061
  }
20976
22062
  },
20977
- "x-uid": "mo6eowotbqd",
22063
+ "x-uid": "3pl1k9mqhy8",
20978
22064
  "x-async": false,
20979
22065
  "x-index": 1
20980
22066
  }
20981
22067
  },
20982
- "x-uid": "2nmkby45kce",
22068
+ "x-uid": "0eax0yvji6y",
20983
22069
  "x-async": false,
20984
- "x-index": 1
22070
+ "x-index": 2
20985
22071
  }
20986
22072
  },
20987
- "x-uid": "zyukds9t2ln",
20988
- "x-async": false,
20989
- "x-index": 1
22073
+ "x-uid": "cs71v511x7o",
22074
+ "x-async": false
20990
22075
  }
20991
22076
  },
20992
- "x-uid": "d0j1mfitnmr",
20993
- "x-async": true,
20994
- "x-index": 1
22077
+ "x-uid": "welnfb52obj",
22078
+ "x-async": true
20995
22079
  }
20996
22080
  };
20997
22081
  export {
20998
22082
  NocoPage,
20999
22083
  checkboxForTableRow,
22084
+ commonFormViewPage,
21000
22085
  createBlockInPage,
21001
22086
  defineConfig,
21002
22087
  deleteRecords,
@@ -21052,6 +22137,7 @@ export {
21052
22137
  oneTableBlockWithAddNewAndViewAndEditAndMediaFields,
21053
22138
  oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields,
21054
22139
  oneTableBlockWithEditAndSubForm,
22140
+ oneTableBlockWithIntegerAndIDColumn,
21055
22141
  oneTableSubformWithMultiLevelAssociationFields,
21056
22142
  oneTableSubtableWithMultiLevelAssociationFields,
21057
22143
  tabPageEmpty,