@nocobase/client 0.9.2-alpha.4 → 0.9.3-alpha.1
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/block-provider/DetailsBlockProvider.js +13 -1
- package/es/block-provider/FormBlockProvider.js +30 -13
- package/es/block-provider/hooks/index.d.ts +10 -0
- package/es/block-provider/hooks/index.js +498 -281
- package/es/collection-manager/Configuration/CollectionFields.js +1 -2
- package/es/collection-manager/Configuration/EditFieldAction.js +0 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.js +0 -1
- package/es/collection-manager/action-hooks.d.ts +1 -1
- package/es/collection-manager/action-hooks.js +18 -7
- package/es/collection-manager/interfaces/createdBy.js +1 -1
- package/es/collection-manager/interfaces/linkTo.js +3 -39
- package/es/collection-manager/interfaces/m2m.js +4 -38
- package/es/collection-manager/interfaces/m2o.js +4 -38
- package/es/collection-manager/interfaces/o2m.js +4 -68
- package/es/collection-manager/interfaces/o2o.js +25 -119
- package/es/collection-manager/interfaces/updatedBy.js +1 -1
- package/es/collection-manager/templates/tree.js +2 -2
- package/es/filter-provider/FilterProvider.js +3 -1
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +5 -2
- package/es/locale/ja_JP.d.ts +3 -0
- package/es/locale/ja_JP.js +3 -0
- package/es/locale/zh_CN.d.ts +4 -0
- package/es/locale/zh_CN.js +4 -0
- package/es/schema-component/antd/action/Action.Designer.js +4 -5
- package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -0
- package/es/schema-component/antd/association-field/AssociationFieldProvider.js +19 -0
- package/es/schema-component/antd/association-field/AssociationSelect.d.ts +14 -0
- package/es/schema-component/antd/association-field/AssociationSelect.js +118 -0
- package/es/schema-component/antd/association-field/Editable.d.ts +2 -0
- package/es/schema-component/antd/association-field/Editable.js +88 -0
- package/es/schema-component/antd/association-field/FileManager.d.ts +4 -0
- package/es/schema-component/antd/association-field/FileManager.js +243 -0
- package/es/schema-component/antd/association-field/InternalNester.d.ts +1 -0
- package/es/schema-component/antd/association-field/InternalNester.js +28 -0
- package/es/schema-component/antd/association-field/InternalPicker.d.ts +2 -0
- package/es/schema-component/antd/association-field/InternalPicker.js +267 -0
- package/es/schema-component/antd/association-field/InternalSubTable.d.ts +1 -0
- package/es/schema-component/antd/association-field/InternalSubTable.js +28 -0
- package/es/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
- package/es/schema-component/antd/association-field/InternalViewer.js +115 -0
- package/es/schema-component/antd/association-field/Nester.d.ts +1 -0
- package/es/schema-component/antd/association-field/Nester.js +80 -0
- package/es/schema-component/antd/association-field/ReadPretty.d.ts +2 -0
- package/es/schema-component/antd/association-field/ReadPretty.js +38 -0
- package/es/schema-component/antd/association-field/SubTable.d.ts +1 -0
- package/es/schema-component/antd/association-field/SubTable.js +25 -0
- package/es/schema-component/antd/association-field/context.d.ts +7 -0
- package/es/schema-component/antd/association-field/context.js +2 -0
- package/es/schema-component/antd/association-field/hooks.d.ts +8 -0
- package/es/schema-component/antd/association-field/hooks.js +96 -0
- package/es/schema-component/antd/association-field/index.d.ts +1 -0
- package/es/schema-component/antd/association-field/index.js +14 -0
- package/es/schema-component/antd/association-field/schema.d.ts +142 -0
- package/es/schema-component/antd/association-field/schema.js +141 -0
- package/es/schema-component/antd/association-field/util.d.ts +8 -0
- package/es/schema-component/antd/association-field/util.js +84 -0
- package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -0
- package/es/schema-component/antd/expand-action/Expand.Action.Design.js +112 -0
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -0
- package/es/schema-component/antd/expand-action/Expand.Action.js +40 -0
- package/es/schema-component/antd/expand-action/index.d.ts +1 -0
- package/es/schema-component/antd/expand-action/index.js +5 -0
- package/es/schema-component/antd/filter/Filter.Action.Designer.js +10 -12
- package/es/schema-component/antd/filter/FilterItem.js +1 -1
- package/es/schema-component/antd/filter/useOperators.d.ts +1 -1
- package/es/schema-component/antd/form-item/FormItem.d.ts +2 -1
- package/es/schema-component/antd/form-item/FormItem.js +183 -52
- package/es/schema-component/antd/form-item/SchemaSettingOptions.js +36 -58
- package/es/schema-component/antd/form-v2/utils.js +3 -1
- package/es/schema-component/antd/gantt/components/other/tooltip.js +1 -1
- package/es/schema-component/antd/index.d.ts +3 -1
- package/es/schema-component/antd/index.js +3 -1
- package/es/schema-component/antd/menu/Menu.js +6 -3
- package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +32 -12
- package/es/schema-component/antd/remote-select/RemoteSelect.js +16 -18
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +18 -9
- package/es/schema-component/antd/table-v2/Table.Index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/Table.Index.js +6 -0
- package/es/schema-component/antd/table-v2/Table.js +9 -5
- package/es/schema-component/antd/table-v2/index.js +3 -1
- package/es/schema-component/antd/table-v2/utils.js +1 -1
- package/es/schema-component/antd/variable/Input.js +5 -5
- package/es/schema-component/antd/variable/TextArea.js +2 -5
- package/es/schema-component/common/dnd-context/index.js +3 -2
- package/es/schema-component/common/sortable-item/SortableItem.js +4 -1
- package/es/schema-component/common/utils/uitls.js +1 -1
- package/es/schema-component/hooks/index.d.ts +1 -0
- package/es/schema-component/hooks/index.js +2 -1
- package/es/schema-component/hooks/useFieldModeOptions.d.ts +4 -0
- package/es/schema-component/hooks/useFieldModeOptions.js +105 -0
- package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
- package/es/schema-initializer/components/CreateRecordAction.js +4 -3
- package/es/schema-initializer/items/ExpandActionInitializer.d.ts +0 -1
- package/es/schema-initializer/items/ExpandActionInitializer.js +9 -34
- package/es/schema-initializer/items/SelectActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/SelectActionInitializer.js +65 -0
- package/es/schema-initializer/items/index.d.ts +1 -0
- package/es/schema-initializer/items/index.js +2 -1
- package/es/schema-initializer/utils.js +20 -8
- package/es/schema-settings/LinkageRules/FilterDynamicComponent.js +1 -1
- package/es/schema-settings/LinkageRules/Variables.d.ts +1 -1
- package/es/schema-settings/LinkageRules/Variables.js +7 -4
- package/es/schema-settings/SchemaSettings.js +2 -2
- package/lib/block-provider/DetailsBlockProvider.js +13 -1
- package/lib/block-provider/FormBlockProvider.js +31 -15
- package/lib/block-provider/hooks/index.d.ts +10 -0
- package/lib/block-provider/hooks/index.js +509 -289
- package/lib/collection-manager/Configuration/CollectionFields.js +1 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +0 -1
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +0 -1
- package/lib/collection-manager/action-hooks.d.ts +1 -1
- package/lib/collection-manager/action-hooks.js +18 -7
- package/lib/collection-manager/interfaces/createdBy.js +1 -1
- package/lib/collection-manager/interfaces/linkTo.js +2 -38
- package/lib/collection-manager/interfaces/m2m.js +3 -37
- package/lib/collection-manager/interfaces/m2o.js +3 -37
- package/lib/collection-manager/interfaces/o2m.js +6 -70
- package/lib/collection-manager/interfaces/o2o.js +30 -124
- package/lib/collection-manager/interfaces/updatedBy.js +1 -1
- package/lib/collection-manager/templates/tree.js +2 -2
- package/lib/filter-provider/FilterProvider.js +3 -1
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +5 -2
- package/lib/locale/ja_JP.d.ts +3 -0
- package/lib/locale/ja_JP.js +3 -0
- package/lib/locale/zh_CN.d.ts +4 -0
- package/lib/locale/zh_CN.js +4 -0
- package/lib/schema-component/antd/action/Action.Designer.js +4 -5
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -0
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +28 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.d.ts +14 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.js +129 -0
- package/lib/schema-component/antd/association-field/Editable.d.ts +2 -0
- package/lib/schema-component/antd/association-field/Editable.js +97 -0
- package/lib/schema-component/antd/association-field/FileManager.d.ts +4 -0
- package/lib/schema-component/antd/association-field/FileManager.js +253 -0
- package/lib/schema-component/antd/association-field/InternalNester.d.ts +1 -0
- package/lib/schema-component/antd/association-field/InternalNester.js +39 -0
- package/lib/schema-component/antd/association-field/InternalPicker.d.ts +2 -0
- package/lib/schema-component/antd/association-field/InternalPicker.js +277 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +1 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.js +39 -0
- package/lib/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
- package/lib/schema-component/antd/association-field/InternalViewer.js +126 -0
- package/lib/schema-component/antd/association-field/Nester.d.ts +1 -0
- package/lib/schema-component/antd/association-field/Nester.js +89 -0
- package/lib/schema-component/antd/association-field/ReadPretty.d.ts +2 -0
- package/lib/schema-component/antd/association-field/ReadPretty.js +47 -0
- package/lib/schema-component/antd/association-field/SubTable.d.ts +1 -0
- package/lib/schema-component/antd/association-field/SubTable.js +33 -0
- package/lib/schema-component/antd/association-field/context.d.ts +7 -0
- package/lib/schema-component/antd/association-field/context.js +9 -0
- package/lib/schema-component/antd/association-field/hooks.d.ts +8 -0
- package/lib/schema-component/antd/association-field/hooks.js +107 -0
- package/lib/schema-component/antd/association-field/index.d.ts +1 -0
- package/lib/schema-component/antd/association-field/index.js +21 -0
- package/lib/schema-component/antd/association-field/schema.d.ts +142 -0
- package/lib/schema-component/antd/association-field/schema.js +148 -0
- package/lib/schema-component/antd/association-field/util.d.ts +8 -0
- package/lib/schema-component/antd/association-field/util.js +98 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +120 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.js +48 -0
- package/lib/schema-component/antd/expand-action/index.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/index.js +12 -0
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +10 -12
- package/lib/schema-component/antd/filter/FilterItem.js +1 -1
- package/lib/schema-component/antd/filter/useOperators.d.ts +1 -1
- package/lib/schema-component/antd/form-item/FormItem.d.ts +2 -1
- package/lib/schema-component/antd/form-item/FormItem.js +180 -48
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +34 -56
- package/lib/schema-component/antd/form-v2/utils.js +3 -1
- package/lib/schema-component/antd/gantt/components/other/tooltip.js +1 -1
- package/lib/schema-component/antd/index.d.ts +3 -1
- package/lib/schema-component/antd/index.js +33 -11
- package/lib/schema-component/antd/menu/Menu.js +6 -3
- package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +34 -13
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +15 -17
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +18 -9
- package/lib/schema-component/antd/table-v2/Table.Index.d.ts +1 -0
- package/lib/schema-component/antd/table-v2/Table.Index.js +14 -0
- package/lib/schema-component/antd/table-v2/Table.js +9 -5
- package/lib/schema-component/antd/table-v2/index.js +3 -1
- package/lib/schema-component/antd/table-v2/utils.js +1 -1
- package/lib/schema-component/antd/variable/Input.js +5 -5
- package/lib/schema-component/antd/variable/TextArea.js +2 -5
- package/lib/schema-component/common/dnd-context/index.js +3 -2
- package/lib/schema-component/common/sortable-item/SortableItem.js +4 -1
- package/lib/schema-component/common/utils/uitls.js +1 -1
- package/lib/schema-component/hooks/index.d.ts +1 -0
- package/lib/schema-component/hooks/index.js +11 -0
- package/lib/schema-component/hooks/useFieldModeOptions.d.ts +4 -0
- package/lib/schema-component/hooks/useFieldModeOptions.js +112 -0
- package/lib/schema-initializer/components/CreateRecordAction.d.ts +1 -1
- package/lib/schema-initializer/components/CreateRecordAction.js +4 -3
- package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +0 -1
- package/lib/schema-initializer/items/ExpandActionInitializer.js +11 -37
- package/lib/schema-initializer/items/SelectActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/SelectActionInitializer.js +73 -0
- package/lib/schema-initializer/items/index.d.ts +1 -0
- package/lib/schema-initializer/items/index.js +11 -0
- package/lib/schema-initializer/utils.js +20 -8
- package/lib/schema-settings/LinkageRules/FilterDynamicComponent.js +1 -1
- package/lib/schema-settings/LinkageRules/Variables.d.ts +1 -1
- package/lib/schema-settings/LinkageRules/Variables.js +7 -4
- package/lib/schema-settings/SchemaSettings.js +3 -3
- package/package.json +5 -6
|
@@ -10,6 +10,7 @@ import { Spin } from 'antd';
|
|
|
10
10
|
import React, { createContext, useContext, useEffect, useMemo } from 'react';
|
|
11
11
|
import { RecordProvider } from '../record-provider';
|
|
12
12
|
import { BlockProvider, useBlockRequestContext } from './BlockProvider';
|
|
13
|
+
import { useAssociationNames } from './hooks';
|
|
13
14
|
export var DetailsBlockContext = /*#__PURE__*/createContext({});
|
|
14
15
|
var InternalDetailsBlockProvider = function InternalDetailsBlockProvider(props) {
|
|
15
16
|
var _service$data, _service$data$data;
|
|
@@ -41,7 +42,18 @@ var InternalDetailsBlockProvider = function InternalDetailsBlockProvider(props)
|
|
|
41
42
|
}, props.children));
|
|
42
43
|
};
|
|
43
44
|
export var DetailsBlockProvider = function DetailsBlockProvider(props) {
|
|
44
|
-
|
|
45
|
+
var params = _objectSpread({}, props.params);
|
|
46
|
+
var collection = props.collection;
|
|
47
|
+
var _useAssociationNames = useAssociationNames(collection),
|
|
48
|
+
appends = _useAssociationNames.appends;
|
|
49
|
+
if (!Object.keys(params).includes('appends')) {
|
|
50
|
+
params['appends'] = appends;
|
|
51
|
+
}
|
|
52
|
+
return /*#__PURE__*/React.createElement(BlockProvider, _objectSpread(_objectSpread({}, props), {}, {
|
|
53
|
+
params: params
|
|
54
|
+
}), /*#__PURE__*/React.createElement(InternalDetailsBlockProvider, _objectSpread(_objectSpread({}, props), {}, {
|
|
55
|
+
params: params
|
|
56
|
+
})));
|
|
45
57
|
};
|
|
46
58
|
export var useDetailsBlockContext = function useDetailsBlockContext() {
|
|
47
59
|
return useContext(DetailsBlockContext);
|
|
@@ -6,19 +6,21 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { createForm } from '@formily/core';
|
|
8
8
|
import { RecursionField, useField, useFieldSchema } from '@formily/react';
|
|
9
|
-
import {
|
|
10
|
-
import isEmpty from 'lodash/isEmpty';
|
|
9
|
+
import { isEmpty } from 'lodash';
|
|
11
10
|
import React, { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
|
12
11
|
import { useCollection } from '../collection-manager';
|
|
13
12
|
import { RecordProvider, useRecord } from '../record-provider';
|
|
14
13
|
import { useActionContext, useDesignable } from '../schema-component';
|
|
15
14
|
import { Templates as DataTemplateSelect } from '../schema-component/antd/form-v2/Templates';
|
|
16
15
|
import { BlockProvider, useBlockRequestContext } from './BlockProvider';
|
|
16
|
+
import { useAssociationNames } from './hooks';
|
|
17
17
|
export var FormBlockContext = /*#__PURE__*/createContext({});
|
|
18
18
|
var InternalFormBlockProvider = function InternalFormBlockProvider(props) {
|
|
19
19
|
var _service$data;
|
|
20
20
|
var action = props.action,
|
|
21
|
-
readPretty = props.readPretty
|
|
21
|
+
readPretty = props.readPretty,
|
|
22
|
+
params = props.params,
|
|
23
|
+
updateAssociationValues = props.updateAssociationValues;
|
|
22
24
|
var field = useField();
|
|
23
25
|
var form = useMemo(function () {
|
|
24
26
|
return createForm({
|
|
@@ -30,17 +32,18 @@ var InternalFormBlockProvider = function InternalFormBlockProvider(props) {
|
|
|
30
32
|
service = _useBlockRequestConte.service;
|
|
31
33
|
var formBlockRef = useRef();
|
|
32
34
|
var record = useRecord();
|
|
33
|
-
if (service.loading) {
|
|
34
|
-
|
|
35
|
-
}
|
|
35
|
+
// if (service.loading) {
|
|
36
|
+
// return <Spin />;
|
|
37
|
+
// }
|
|
36
38
|
return /*#__PURE__*/React.createElement(FormBlockContext.Provider, {
|
|
37
39
|
value: {
|
|
40
|
+
params: params,
|
|
38
41
|
action: action,
|
|
39
42
|
form: form,
|
|
40
43
|
field: field,
|
|
41
44
|
service: service,
|
|
42
45
|
resource: resource,
|
|
43
|
-
updateAssociationValues:
|
|
46
|
+
updateAssociationValues: updateAssociationValues,
|
|
44
47
|
formBlockRef: formBlockRef
|
|
45
48
|
}
|
|
46
49
|
}, readPretty ? /*#__PURE__*/React.createElement(RecordProvider, {
|
|
@@ -68,10 +71,17 @@ export var FormBlockProvider = function FormBlockProvider(props) {
|
|
|
68
71
|
var record = useRecord();
|
|
69
72
|
var collection = props.collection;
|
|
70
73
|
var __collection = record.__collection;
|
|
74
|
+
var params = _objectSpread({}, props.params);
|
|
71
75
|
var currentCollection = useCollection();
|
|
72
76
|
var _useDesignable = useDesignable(),
|
|
73
77
|
designable = _useDesignable.designable;
|
|
74
78
|
var isEmptyRecord = useIsEmptyRecord();
|
|
79
|
+
var _useAssociationNames = useAssociationNames(collection),
|
|
80
|
+
appends = _useAssociationNames.appends,
|
|
81
|
+
updateAssociationValues = _useAssociationNames.updateAssociationValues;
|
|
82
|
+
if (!Object.keys(params).includes('appends')) {
|
|
83
|
+
params['appends'] = appends;
|
|
84
|
+
}
|
|
75
85
|
var detailFlag = false;
|
|
76
86
|
if (isEmptyRecord) {
|
|
77
87
|
detailFlag = true;
|
|
@@ -81,14 +91,18 @@ export var FormBlockProvider = function FormBlockProvider(props) {
|
|
|
81
91
|
}
|
|
82
92
|
var createFlag = currentCollection.name === ((collection === null || collection === void 0 ? void 0 : collection.name) || collection) && !isEmptyRecord || !currentCollection.name;
|
|
83
93
|
return (detailFlag || createFlag) && /*#__PURE__*/React.createElement(BlockProvider, _objectSpread(_objectSpread({}, props), {}, {
|
|
84
|
-
block: 'form'
|
|
85
|
-
|
|
94
|
+
block: 'form',
|
|
95
|
+
params: params
|
|
96
|
+
}), /*#__PURE__*/React.createElement(InternalFormBlockProvider, _objectSpread(_objectSpread({}, props), {}, {
|
|
97
|
+
params: params,
|
|
98
|
+
updateAssociationValues: updateAssociationValues
|
|
99
|
+
})));
|
|
86
100
|
};
|
|
87
101
|
export var useFormBlockContext = function useFormBlockContext() {
|
|
88
102
|
return useContext(FormBlockContext);
|
|
89
103
|
};
|
|
90
104
|
export var useFormBlockProps = function useFormBlockProps() {
|
|
91
|
-
var _fieldSchema$xCompon;
|
|
105
|
+
var _fieldSchema$xCompon, _ctx$service3;
|
|
92
106
|
var ctx = useFormBlockContext();
|
|
93
107
|
var record = useRecord();
|
|
94
108
|
var _useActionContext = useActionContext(),
|
|
@@ -104,9 +118,12 @@ export var useFormBlockProps = function useFormBlockProps() {
|
|
|
104
118
|
}
|
|
105
119
|
});
|
|
106
120
|
useEffect(function () {
|
|
107
|
-
var _ctx$
|
|
108
|
-
(
|
|
109
|
-
|
|
121
|
+
var _ctx$service;
|
|
122
|
+
if (!(ctx === null || ctx === void 0 ? void 0 : (_ctx$service = ctx.service) === null || _ctx$service === void 0 ? void 0 : _ctx$service.loading)) {
|
|
123
|
+
var _ctx$form2, _ctx$service2, _ctx$service2$data;
|
|
124
|
+
(_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setInitialValues((_ctx$service2 = ctx.service) === null || _ctx$service2 === void 0 ? void 0 : (_ctx$service2$data = _ctx$service2.data) === null || _ctx$service2$data === void 0 ? void 0 : _ctx$service2$data.data);
|
|
125
|
+
}
|
|
126
|
+
}, [ctx === null || ctx === void 0 ? void 0 : (_ctx$service3 = ctx.service) === null || _ctx$service3 === void 0 ? void 0 : _ctx$service3.loading]);
|
|
110
127
|
return {
|
|
111
128
|
form: ctx.form
|
|
112
129
|
};
|
|
@@ -5,6 +5,9 @@ export declare const usePickActionProps: () => {
|
|
|
5
5
|
export declare const useCreateActionProps: () => {
|
|
6
6
|
onClick(): Promise<void>;
|
|
7
7
|
};
|
|
8
|
+
export declare const useAssociationCreateActionProps: () => {
|
|
9
|
+
onClick(): Promise<void>;
|
|
10
|
+
};
|
|
8
11
|
export interface FilterTarget {
|
|
9
12
|
targets?: {
|
|
10
13
|
/** field uid */
|
|
@@ -40,6 +43,9 @@ export declare const useUpdateActionProps: () => {
|
|
|
40
43
|
export declare const useDestroyActionProps: () => {
|
|
41
44
|
onClick(): Promise<void>;
|
|
42
45
|
};
|
|
46
|
+
export declare const useRemoveActionProps: (associationName: any) => {
|
|
47
|
+
onClick(value: any): Promise<void>;
|
|
48
|
+
};
|
|
43
49
|
export declare const useDetailPrintActionProps: () => {
|
|
44
50
|
onClick(): Promise<void>;
|
|
45
51
|
};
|
|
@@ -80,3 +86,7 @@ export declare const useAssociationFilterBlockProps: () => {
|
|
|
80
86
|
valueKey: any;
|
|
81
87
|
labelKey: any;
|
|
82
88
|
};
|
|
89
|
+
export declare const useAssociationNames: (collection: any) => {
|
|
90
|
+
appends: any[];
|
|
91
|
+
updateAssociationValues: any[];
|
|
92
|
+
};
|