@tachybase/client 1.3.10 → 1.3.11
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.
|
@@ -117,14 +117,14 @@ function useCollectValuesToSubmit() {
|
|
|
117
117
|
await Promise.all(waitList);
|
|
118
118
|
const addChild = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
119
119
|
if (addChild) {
|
|
120
|
-
var _currentRecord___parent;
|
|
120
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey, _currentRecord___parent;
|
|
121
121
|
const treeParentField = getTreeParentField();
|
|
122
122
|
var _treeParentField_name;
|
|
123
123
|
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = omit(null == currentRecord ? void 0 : currentRecord.__parent, [
|
|
124
124
|
'children'
|
|
125
125
|
]);
|
|
126
|
-
var
|
|
127
|
-
values[null != (
|
|
126
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
127
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = null == currentRecord ? void 0 : null == (_currentRecord___parent = currentRecord.__parent) ? void 0 : _currentRecord___parent.id;
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
130
130
|
...values,
|
|
@@ -349,11 +349,12 @@ const useAssociationCreateActionProps = ()=>{
|
|
|
349
349
|
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
350
350
|
});
|
|
351
351
|
if (addChild) {
|
|
352
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey;
|
|
352
353
|
const treeParentField = getTreeParentField();
|
|
353
354
|
var _treeParentField_name;
|
|
354
355
|
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = currentRecord;
|
|
355
|
-
var
|
|
356
|
-
values[null != (
|
|
356
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
357
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = currentRecord.id;
|
|
357
358
|
}
|
|
358
359
|
actionField.data = field.data || {};
|
|
359
360
|
actionField.data.loading = true;
|
|
@@ -430,14 +430,14 @@ var __webpack_exports__ = {};
|
|
|
430
430
|
await Promise.all(waitList);
|
|
431
431
|
const addChild = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
432
432
|
if (addChild) {
|
|
433
|
-
var _currentRecord___parent;
|
|
433
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey, _currentRecord___parent;
|
|
434
434
|
const treeParentField = getTreeParentField();
|
|
435
435
|
var _treeParentField_name;
|
|
436
436
|
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = lodash_omit__WEBPACK_IMPORTED_MODULE_7___default()(null == currentRecord ? void 0 : currentRecord.__parent, [
|
|
437
437
|
'children'
|
|
438
438
|
]);
|
|
439
|
-
var
|
|
440
|
-
values[null != (
|
|
439
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
440
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = null == currentRecord ? void 0 : null == (_currentRecord___parent = currentRecord.__parent) ? void 0 : _currentRecord___parent.id;
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
...values,
|
|
@@ -662,11 +662,12 @@ var __webpack_exports__ = {};
|
|
|
662
662
|
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
663
663
|
});
|
|
664
664
|
if (addChild) {
|
|
665
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey;
|
|
665
666
|
const treeParentField = getTreeParentField();
|
|
666
667
|
var _treeParentField_name;
|
|
667
668
|
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = currentRecord;
|
|
668
|
-
var
|
|
669
|
-
values[null != (
|
|
669
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
670
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = currentRecord.id;
|
|
670
671
|
}
|
|
671
672
|
actionField.data = field.data || {};
|
|
672
673
|
actionField.data.loading = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"sanitize-html": "2.14.0",
|
|
67
67
|
"use-deep-compare-effect": "^1.8.1",
|
|
68
68
|
"xlsx": "0.18.5",
|
|
69
|
-
"@tachybase/components": "1.3.
|
|
70
|
-
"@tachybase/
|
|
71
|
-
"@tachybase/
|
|
72
|
-
"@tachybase/schema": "1.3.
|
|
73
|
-
"@tachybase/sdk": "1.3.
|
|
74
|
-
"@tachybase/utils": "1.3.
|
|
69
|
+
"@tachybase/components": "1.3.11",
|
|
70
|
+
"@tachybase/evaluators": "1.3.11",
|
|
71
|
+
"@tachybase/requirejs": "1.3.11",
|
|
72
|
+
"@tachybase/schema": "1.3.11",
|
|
73
|
+
"@tachybase/sdk": "1.3.11",
|
|
74
|
+
"@tachybase/utils": "1.3.11"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@testing-library/react": "^16.2.0",
|