@nocobase/client 0.7.1-alpha.7 → 0.7.2-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.
Files changed (235) hide show
  1. package/es/application/Application.js +0 -4
  2. package/es/block-provider/BlockSchemaComponentProvider.js +3 -0
  3. package/es/block-provider/FormBlockProvider.js +2 -1
  4. package/es/block-provider/FormFieldProvider.d.ts +8 -0
  5. package/es/block-provider/FormFieldProvider.js +89 -0
  6. package/es/block-provider/KanbanBlockProvider.js +117 -3
  7. package/es/block-provider/TableFieldProvider.js +17 -2
  8. package/es/block-provider/TableSelectorProvider.js +38 -6
  9. package/es/block-provider/hooks/index.js +10 -3
  10. package/es/block-provider/index.d.ts +1 -0
  11. package/es/block-provider/index.js +2 -1
  12. package/es/collection-manager/CollectionField.js +5 -1
  13. package/es/collection-manager/CollectionFieldProvider.js +7 -2
  14. package/es/collection-manager/Configuration/AddFieldAction.js +1 -1
  15. package/es/collection-manager/Configuration/EditFieldAction.js +1 -1
  16. package/es/collection-manager/hooks/useCollectionManager.js +20 -5
  17. package/es/collection-manager/interfaces/index.d.ts +2 -1
  18. package/es/collection-manager/interfaces/index.js +3 -2
  19. package/es/collection-manager/interfaces/integer.d.ts +2 -0
  20. package/es/{workflow/nodes/update.js → collection-manager/interfaces/integer.js} +24 -20
  21. package/es/collection-manager/interfaces/linkTo.js +14 -6
  22. package/es/collection-manager/interfaces/m2m.js +12 -5
  23. package/es/collection-manager/interfaces/m2o.js +59 -8
  24. package/es/collection-manager/interfaces/o2m.js +72 -46
  25. package/es/collection-manager/interfaces/o2o.js +100 -39
  26. package/es/collection-manager/interfaces/properties/operators.d.ts +13 -0
  27. package/es/collection-manager/interfaces/properties/operators.js +7 -0
  28. package/es/index.d.ts +0 -1
  29. package/es/index.js +1 -2
  30. package/es/locale/en_US.d.ts +7 -0
  31. package/es/locale/en_US.js +9 -2
  32. package/es/locale/zh_CN.d.ts +10 -1
  33. package/es/locale/zh_CN.js +10 -1
  34. package/es/schema-component/antd/filter/DynamicComponent.js +50 -3
  35. package/es/schema-component/antd/filter/FilterItem.js +6 -0
  36. package/es/schema-component/antd/filter/useFilterActionProps.js +2 -0
  37. package/es/schema-component/antd/form-item/FormItem.js +79 -16
  38. package/es/schema-component/antd/form-v2/FormField.d.ts +1 -0
  39. package/es/schema-component/antd/form-v2/FormField.js +29 -0
  40. package/es/schema-component/antd/form-v2/index.d.ts +1 -0
  41. package/es/schema-component/antd/form-v2/index.js +2 -1
  42. package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +10 -1
  43. package/es/schema-component/antd/record-picker/InputRecordPicker.js +34 -14
  44. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +34 -11
  45. package/es/schema-component/antd/record-picker/useFieldNames.js +2 -2
  46. package/es/schema-component/antd/select/shared.js +4 -2
  47. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -1
  48. package/es/schema-component/antd/table-v2/Table.Column.Decorator.js +7 -3
  49. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +7 -2
  50. package/es/schema-component/antd/table-v2/Table.js +4 -2
  51. package/es/schema-component/antd/table-v2/TableField.js +7 -0
  52. package/es/schema-initializer/buttons/TableColumnInitializers.js +26 -12
  53. package/es/schema-initializer/components/assigned-field/AssignedField.js +34 -47
  54. package/es/schema-initializer/utils.d.ts +2 -0
  55. package/es/schema-initializer/utils.js +160 -30
  56. package/es/schema-settings/SchemaSettings.js +6 -3
  57. package/lib/application/Application.js +0 -5
  58. package/lib/block-provider/BlockSchemaComponentProvider.js +4 -0
  59. package/lib/block-provider/FormBlockProvider.js +2 -1
  60. package/lib/block-provider/FormFieldProvider.d.ts +8 -0
  61. package/lib/block-provider/FormFieldProvider.js +120 -0
  62. package/lib/block-provider/KanbanBlockProvider.js +118 -1
  63. package/lib/block-provider/TableFieldProvider.js +19 -2
  64. package/lib/block-provider/TableSelectorProvider.js +39 -5
  65. package/lib/block-provider/hooks/index.js +11 -3
  66. package/lib/block-provider/index.d.ts +1 -0
  67. package/lib/block-provider/index.js +13 -0
  68. package/lib/collection-manager/CollectionField.js +5 -1
  69. package/lib/collection-manager/CollectionFieldProvider.js +9 -3
  70. package/lib/collection-manager/Configuration/AddFieldAction.js +1 -1
  71. package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
  72. package/lib/collection-manager/hooks/useCollectionManager.js +20 -5
  73. package/lib/collection-manager/interfaces/index.d.ts +2 -1
  74. package/lib/collection-manager/interfaces/index.js +26 -13
  75. package/lib/collection-manager/interfaces/integer.d.ts +2 -0
  76. package/lib/{workflow/nodes/update.js → collection-manager/interfaces/integer.js} +26 -24
  77. package/lib/collection-manager/interfaces/linkTo.js +14 -6
  78. package/lib/collection-manager/interfaces/m2m.js +12 -5
  79. package/lib/collection-manager/interfaces/m2o.js +61 -10
  80. package/lib/collection-manager/interfaces/o2m.js +72 -45
  81. package/lib/collection-manager/interfaces/o2o.js +103 -43
  82. package/lib/collection-manager/interfaces/properties/operators.d.ts +13 -0
  83. package/lib/collection-manager/interfaces/properties/operators.js +7 -0
  84. package/lib/index.d.ts +0 -1
  85. package/lib/index.js +0 -13
  86. package/lib/locale/en_US.d.ts +7 -0
  87. package/lib/locale/en_US.js +9 -2
  88. package/lib/locale/zh_CN.d.ts +10 -1
  89. package/lib/locale/zh_CN.js +10 -1
  90. package/lib/schema-component/antd/filter/DynamicComponent.js +52 -1
  91. package/lib/schema-component/antd/filter/FilterItem.js +7 -0
  92. package/lib/schema-component/antd/filter/useFilterActionProps.js +2 -0
  93. package/lib/schema-component/antd/form-item/FormItem.js +80 -17
  94. package/lib/schema-component/antd/form-v2/FormField.d.ts +1 -0
  95. package/lib/schema-component/antd/form-v2/FormField.js +48 -0
  96. package/lib/schema-component/antd/form-v2/index.d.ts +1 -0
  97. package/lib/schema-component/antd/form-v2/index.js +17 -0
  98. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +9 -0
  99. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +33 -13
  100. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +32 -9
  101. package/lib/schema-component/antd/record-picker/useFieldNames.js +2 -2
  102. package/lib/schema-component/antd/select/shared.js +4 -2
  103. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -1
  104. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -2
  105. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +7 -2
  106. package/lib/schema-component/antd/table-v2/Table.js +4 -2
  107. package/lib/schema-component/antd/table-v2/TableField.js +8 -0
  108. package/lib/schema-initializer/buttons/TableColumnInitializers.js +25 -11
  109. package/lib/schema-initializer/components/assigned-field/AssignedField.js +29 -43
  110. package/lib/schema-initializer/utils.d.ts +2 -0
  111. package/lib/schema-initializer/utils.js +166 -30
  112. package/lib/schema-settings/SchemaSettings.js +5 -2
  113. package/package.json +4 -5
  114. package/es/workflow/ExecutionResourceProvider.d.ts +0 -4
  115. package/es/workflow/ExecutionResourceProvider.js +0 -35
  116. package/es/workflow/WorkflowCanvas.d.ts +0 -15
  117. package/es/workflow/WorkflowCanvas.js +0 -375
  118. package/es/workflow/WorkflowLink.d.ts +0 -1
  119. package/es/workflow/WorkflowLink.js +0 -21
  120. package/es/workflow/WorkflowPage.d.ts +0 -1
  121. package/es/workflow/WorkflowPage.js +0 -43
  122. package/es/workflow/WorkflowRouteProvider.d.ts +0 -1
  123. package/es/workflow/WorkflowRouteProvider.js +0 -30
  124. package/es/workflow/WorkflowShortcut.d.ts +0 -1
  125. package/es/workflow/WorkflowShortcut.js +0 -62
  126. package/es/workflow/calculators.d.ts +0 -101
  127. package/es/workflow/calculators.js +0 -647
  128. package/es/workflow/components/Duration.d.ts +0 -5
  129. package/es/workflow/components/Duration.js +0 -61
  130. package/es/workflow/index.d.ts +0 -5
  131. package/es/workflow/index.js +0 -5
  132. package/es/workflow/nodes/calculation.d.ts +0 -25
  133. package/es/workflow/nodes/calculation.js +0 -47
  134. package/es/workflow/nodes/condition.d.ts +0 -46
  135. package/es/workflow/nodes/condition.js +0 -255
  136. package/es/workflow/nodes/create.d.ts +0 -46
  137. package/es/workflow/nodes/create.js +0 -90
  138. package/es/workflow/nodes/delay.d.ts +0 -35
  139. package/es/workflow/nodes/delay.js +0 -37
  140. package/es/workflow/nodes/destroy.d.ts +0 -55
  141. package/es/workflow/nodes/destroy.js +0 -27
  142. package/es/workflow/nodes/index.d.ts +0 -33
  143. package/es/workflow/nodes/index.js +0 -312
  144. package/es/workflow/nodes/parallel.d.ts +0 -24
  145. package/es/workflow/nodes/parallel.js +0 -132
  146. package/es/workflow/nodes/query.d.ts +0 -70
  147. package/es/workflow/nodes/query.js +0 -98
  148. package/es/workflow/nodes/update.d.ts +0 -60
  149. package/es/workflow/schemas/collection.d.ts +0 -42
  150. package/es/workflow/schemas/collection.js +0 -57
  151. package/es/workflow/schemas/executions.d.ts +0 -209
  152. package/es/workflow/schemas/executions.js +0 -157
  153. package/es/workflow/schemas/workflows.d.ts +0 -2
  154. package/es/workflow/schemas/workflows.js +0 -334
  155. package/es/workflow/style.d.ts +0 -12
  156. package/es/workflow/style.js +0 -17
  157. package/es/workflow/triggers/collection.d.ts +0 -77
  158. package/es/workflow/triggers/collection.js +0 -144
  159. package/es/workflow/triggers/index.d.ts +0 -26
  160. package/es/workflow/triggers/index.js +0 -177
  161. package/es/workflow/triggers/schedule/DateFieldsSelect.d.ts +0 -2
  162. package/es/workflow/triggers/schedule/DateFieldsSelect.js +0 -39
  163. package/es/workflow/triggers/schedule/EndsByField.d.ts +0 -5
  164. package/es/workflow/triggers/schedule/EndsByField.js +0 -57
  165. package/es/workflow/triggers/schedule/OnField.d.ts +0 -5
  166. package/es/workflow/triggers/schedule/OnField.js +0 -87
  167. package/es/workflow/triggers/schedule/RepeatField.d.ts +0 -5
  168. package/es/workflow/triggers/schedule/RepeatField.js +0 -131
  169. package/es/workflow/triggers/schedule/ScheduleConfig.d.ts +0 -1
  170. package/es/workflow/triggers/schedule/ScheduleConfig.js +0 -225
  171. package/es/workflow/triggers/schedule/index.d.ts +0 -25
  172. package/es/workflow/triggers/schedule/index.js +0 -77
  173. package/es/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -34
  174. package/es/workflow/triggers/schedule/locale/Cron.zh-CN.js +0 -37
  175. package/lib/workflow/ExecutionResourceProvider.d.ts +0 -4
  176. package/lib/workflow/ExecutionResourceProvider.js +0 -48
  177. package/lib/workflow/WorkflowCanvas.d.ts +0 -15
  178. package/lib/workflow/WorkflowCanvas.js +0 -408
  179. package/lib/workflow/WorkflowLink.d.ts +0 -1
  180. package/lib/workflow/WorkflowLink.js +0 -36
  181. package/lib/workflow/WorkflowPage.d.ts +0 -1
  182. package/lib/workflow/WorkflowPage.js +0 -60
  183. package/lib/workflow/WorkflowRouteProvider.d.ts +0 -1
  184. package/lib/workflow/WorkflowRouteProvider.js +0 -47
  185. package/lib/workflow/WorkflowShortcut.d.ts +0 -1
  186. package/lib/workflow/WorkflowShortcut.js +0 -87
  187. package/lib/workflow/calculators.d.ts +0 -101
  188. package/lib/workflow/calculators.js +0 -688
  189. package/lib/workflow/components/Duration.d.ts +0 -5
  190. package/lib/workflow/components/Duration.js +0 -74
  191. package/lib/workflow/index.d.ts +0 -5
  192. package/lib/workflow/index.js +0 -70
  193. package/lib/workflow/nodes/calculation.d.ts +0 -25
  194. package/lib/workflow/nodes/calculation.js +0 -61
  195. package/lib/workflow/nodes/condition.d.ts +0 -46
  196. package/lib/workflow/nodes/condition.js +0 -275
  197. package/lib/workflow/nodes/create.d.ts +0 -46
  198. package/lib/workflow/nodes/create.js +0 -107
  199. package/lib/workflow/nodes/delay.d.ts +0 -35
  200. package/lib/workflow/nodes/delay.js +0 -48
  201. package/lib/workflow/nodes/destroy.d.ts +0 -55
  202. package/lib/workflow/nodes/destroy.js +0 -38
  203. package/lib/workflow/nodes/index.d.ts +0 -33
  204. package/lib/workflow/nodes/index.js +0 -357
  205. package/lib/workflow/nodes/parallel.d.ts +0 -24
  206. package/lib/workflow/nodes/parallel.js +0 -155
  207. package/lib/workflow/nodes/query.d.ts +0 -70
  208. package/lib/workflow/nodes/query.js +0 -115
  209. package/lib/workflow/nodes/update.d.ts +0 -60
  210. package/lib/workflow/schemas/collection.d.ts +0 -42
  211. package/lib/workflow/schemas/collection.js +0 -70
  212. package/lib/workflow/schemas/executions.d.ts +0 -209
  213. package/lib/workflow/schemas/executions.js +0 -164
  214. package/lib/workflow/schemas/workflows.d.ts +0 -2
  215. package/lib/workflow/schemas/workflows.js +0 -344
  216. package/lib/workflow/style.d.ts +0 -12
  217. package/lib/workflow/style.js +0 -37
  218. package/lib/workflow/triggers/collection.d.ts +0 -77
  219. package/lib/workflow/triggers/collection.js +0 -164
  220. package/lib/workflow/triggers/index.d.ts +0 -26
  221. package/lib/workflow/triggers/index.js +0 -201
  222. package/lib/workflow/triggers/schedule/DateFieldsSelect.d.ts +0 -2
  223. package/lib/workflow/triggers/schedule/DateFieldsSelect.js +0 -54
  224. package/lib/workflow/triggers/schedule/EndsByField.d.ts +0 -5
  225. package/lib/workflow/triggers/schedule/EndsByField.js +0 -73
  226. package/lib/workflow/triggers/schedule/OnField.d.ts +0 -5
  227. package/lib/workflow/triggers/schedule/OnField.js +0 -105
  228. package/lib/workflow/triggers/schedule/RepeatField.d.ts +0 -5
  229. package/lib/workflow/triggers/schedule/RepeatField.js +0 -146
  230. package/lib/workflow/triggers/schedule/ScheduleConfig.d.ts +0 -1
  231. package/lib/workflow/triggers/schedule/ScheduleConfig.js +0 -250
  232. package/lib/workflow/triggers/schedule/index.d.ts +0 -25
  233. package/lib/workflow/triggers/schedule/index.js +0 -94
  234. package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -34
  235. package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.js +0 -44
@@ -1,98 +0,0 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
- import React from 'react';
8
- import { Select } from 'antd';
9
- import { useCollectionDataSource, useCollectionManager, useCompile } from '../..';
10
- import { useFlowContext } from '../WorkflowCanvas';
11
- import { BaseTypeSet, VariableComponent } from '../calculators';
12
- import { collection, filter } from '../schemas/collection';
13
- import { useTranslation } from 'react-i18next';
14
- export default {
15
- title: '{{t("Query record")}}',
16
- type: 'query',
17
- group: 'collection',
18
- fieldset: {
19
- 'config.collection': collection,
20
- 'config.multiple': {
21
- type: 'boolean',
22
- title: '{{t("Multiple records")}}',
23
- name: 'config.multiple',
24
- 'x-decorator': 'FormItem',
25
- 'x-component': 'Checkbox',
26
- 'x-component-props': {
27
- disabled: true
28
- }
29
- },
30
- 'config.params': {
31
- type: 'object',
32
- name: 'config.params',
33
- title: '',
34
- 'x-decorator': 'FormItem',
35
- properties: {
36
- filter: filter
37
- }
38
- }
39
- },
40
- view: {},
41
- scope: {
42
- useCollectionDataSource: useCollectionDataSource
43
- },
44
- components: {
45
- VariableComponent: VariableComponent
46
- },
47
- getter: function getter(_ref) {
48
- var _collections$find;
49
-
50
- var type = _ref.type,
51
- options = _ref.options,
52
- _onChange = _ref.onChange;
53
-
54
- var _useTranslation = useTranslation(),
55
- t = _useTranslation.t;
56
-
57
- var compile = useCompile();
58
-
59
- var _useCollectionManager = useCollectionManager(),
60
- _useCollectionManager2 = _useCollectionManager.collections,
61
- collections = _useCollectionManager2 === void 0 ? [] : _useCollectionManager2;
62
-
63
- var _useFlowContext = useFlowContext(),
64
- nodes = _useFlowContext.nodes;
65
-
66
- var _nodes$find = nodes.find(function (n) {
67
- return n.id == options.nodeId;
68
- }),
69
- config = _nodes$find.config;
70
-
71
- var collection = (_collections$find = collections.find(function (item) {
72
- return item.name === config.collection;
73
- })) !== null && _collections$find !== void 0 ? _collections$find : {
74
- fields: []
75
- };
76
- return /*#__PURE__*/React.createElement(Select, {
77
- value: options.path,
78
- placeholder: t('Fields'),
79
- onChange: function onChange(path) {
80
- _onChange({
81
- type: type,
82
- options: _objectSpread(_objectSpread({}, options), {}, {
83
- path: path
84
- })
85
- });
86
- }
87
- }, collection.fields.filter(function (field) {
88
- var _field$uiSchema;
89
-
90
- return BaseTypeSet.has((_field$uiSchema = field.uiSchema) === null || _field$uiSchema === void 0 ? void 0 : _field$uiSchema.type);
91
- }).map(function (field) {
92
- return /*#__PURE__*/React.createElement(Select.Option, {
93
- key: field.name,
94
- value: field.name
95
- }, compile(field.uiSchema.title));
96
- }));
97
- }
98
- };
@@ -1,60 +0,0 @@
1
- import { useCollectionDataSource } from '../..';
2
- import { VariableComponent } from '../calculators';
3
- declare const _default: {
4
- title: string;
5
- type: string;
6
- group: string;
7
- fieldset: {
8
- 'config.collection': {
9
- type: string;
10
- title: string;
11
- name: string;
12
- required: boolean;
13
- 'x-reactions': string[];
14
- 'x-decorator': string;
15
- 'x-component': string;
16
- 'x-component-props': {
17
- placeholder: string;
18
- };
19
- };
20
- 'config.params.filter': {
21
- title: string;
22
- type: string;
23
- name: string;
24
- 'x-decorator': string;
25
- 'x-decorator-props': {
26
- labelAlign: string;
27
- className: string;
28
- };
29
- 'x-component': string;
30
- 'x-component-props': {
31
- useProps(): {
32
- options: any[];
33
- className: string;
34
- };
35
- dynamicComponent: string;
36
- };
37
- };
38
- 'config.params.values': {
39
- type: string;
40
- title: string;
41
- name: string;
42
- 'x-decorator': string;
43
- 'x-decorator-props': {
44
- labelAlign: string;
45
- className: string;
46
- };
47
- 'x-component': string;
48
- description: string;
49
- };
50
- };
51
- view: {};
52
- scope: {
53
- useCollectionDataSource: typeof useCollectionDataSource;
54
- };
55
- components: {
56
- VariableComponent: typeof VariableComponent;
57
- CollectionFieldset: import("react").MemoExoticComponent<import("react").FunctionComponent<Pick<any, string | number | symbol>>>;
58
- };
59
- };
60
- export default _default;
@@ -1,42 +0,0 @@
1
- export declare const collection: {
2
- type: string;
3
- title: string;
4
- name: string;
5
- required: boolean;
6
- 'x-reactions': string[];
7
- 'x-decorator': string;
8
- 'x-component': string;
9
- 'x-component-props': {
10
- placeholder: string;
11
- };
12
- };
13
- export declare const values: {
14
- type: string;
15
- title: string;
16
- name: string;
17
- 'x-decorator': string;
18
- 'x-decorator-props': {
19
- labelAlign: string;
20
- className: string;
21
- };
22
- 'x-component': string;
23
- description: string;
24
- };
25
- export declare const filter: {
26
- type: string;
27
- title: string;
28
- name: string;
29
- 'x-decorator': string;
30
- 'x-decorator-props': {
31
- labelAlign: string;
32
- className: string;
33
- };
34
- 'x-component': string;
35
- 'x-component-props': {
36
- useProps(): {
37
- options: any[];
38
- className: string;
39
- };
40
- dynamicComponent: string;
41
- };
42
- };
@@ -1,57 +0,0 @@
1
- var _templateObject, _templateObject2, _templateObject3;
2
-
3
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
-
5
- import { css } from "@emotion/css";
6
- import { useForm } from "@formily/react";
7
- import { useCollectionFilterOptions } from "../../collection-manager/action-hooks";
8
- export var collection = {
9
- type: 'string',
10
- title: '{{t("Collection")}}',
11
- name: 'config.collection',
12
- required: true,
13
- 'x-reactions': ['{{useCollectionDataSource()}}'],
14
- 'x-decorator': 'FormItem',
15
- 'x-component': 'Select',
16
- 'x-component-props': {
17
- placeholder: '{{t("Select collection")}}'
18
- }
19
- };
20
- export var values = {
21
- type: 'object',
22
- title: '{{t("Fields values")}}',
23
- name: 'config.params.values',
24
- 'x-decorator': 'FormItem',
25
- 'x-decorator-props': {
26
- labelAlign: 'left',
27
- className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: column;\n "])))
28
- },
29
- 'x-component': 'CollectionFieldset',
30
- description: '{{t("Fields that are not assigned a value will be set to the default value, and those that do not have a default value are set to null.")}}'
31
- };
32
- export var filter = {
33
- type: 'object',
34
- title: '{{t("Filter")}}',
35
- name: 'config.params.filter',
36
- 'x-decorator': 'FormItem',
37
- 'x-decorator-props': {
38
- labelAlign: 'left',
39
- className: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-direction: column;\n "])))
40
- },
41
- 'x-component': 'Filter',
42
- 'x-component-props': {
43
- useProps: function useProps() {
44
- var _values$config;
45
-
46
- var _useForm = useForm(),
47
- values = _useForm.values;
48
-
49
- var options = useCollectionFilterOptions((_values$config = values.config) === null || _values$config === void 0 ? void 0 : _values$config.collection);
50
- return {
51
- options: options,
52
- className: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n "])))
53
- };
54
- },
55
- dynamicComponent: 'VariableComponent'
56
- }
57
- };
@@ -1,209 +0,0 @@
1
- export declare const executionSchema: {
2
- provider: {
3
- type: string;
4
- 'x-decorator': string;
5
- 'x-decorator-props': {
6
- collection: {
7
- name: string;
8
- fields: {
9
- interface: string;
10
- type: string;
11
- name: string;
12
- uiSchema: import("@formily/react").Stringify<{
13
- [key: symbol]: any;
14
- [key: `x-${string}`]: any;
15
- [key: `x-${number}`]: any;
16
- version?: string;
17
- name?: import("@formily/react").SchemaKey;
18
- title?: any;
19
- description?: any;
20
- default?: any;
21
- readOnly?: boolean;
22
- writeOnly?: boolean;
23
- type?: import("@formily/react").SchemaTypes;
24
- enum?: import("@formily/react").SchemaEnum<any>;
25
- const?: any;
26
- multipleOf?: number;
27
- maximum?: number;
28
- exclusiveMaximum?: number;
29
- minimum?: number;
30
- exclusiveMinimum?: number;
31
- maxLength?: number;
32
- minLength?: number;
33
- pattern?: string | RegExp;
34
- maxItems?: number;
35
- minItems?: number;
36
- uniqueItems?: boolean;
37
- maxProperties?: number;
38
- minProperties?: number;
39
- required?: string | boolean | string[];
40
- format?: string;
41
- $ref?: string;
42
- $namespace?: string;
43
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
44
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
45
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
46
- additionalItems?: import("@formily/react").Stringify<any>;
47
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
48
- additionalProperties?: import("@formily/react").Stringify<any>;
49
- "x-value"?: any;
50
- "x-index"?: number;
51
- "x-pattern"?: any;
52
- "x-display"?: any;
53
- "x-validator"?: any;
54
- "x-decorator"?: any;
55
- "x-decorator-props"?: any;
56
- "x-component"?: any;
57
- "x-component-props"?: any;
58
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
59
- "x-content"?: any;
60
- "x-data"?: any;
61
- "x-visible"?: boolean;
62
- "x-hidden"?: boolean;
63
- "x-disabled"?: boolean;
64
- "x-editable"?: boolean;
65
- "x-read-only"?: boolean;
66
- "x-read-pretty"?: boolean;
67
- }>;
68
- }[];
69
- };
70
- resourceName: string;
71
- request: {
72
- resource: string;
73
- action: string;
74
- params: {
75
- pageSize: number;
76
- sort: string[];
77
- };
78
- };
79
- };
80
- 'x-component': string;
81
- 'x-component-props': {
82
- collection: {
83
- name: string;
84
- fields: {
85
- interface: string;
86
- type: string;
87
- name: string;
88
- uiSchema: import("@formily/react").Stringify<{
89
- [key: symbol]: any;
90
- [key: `x-${string}`]: any;
91
- [key: `x-${number}`]: any;
92
- version?: string;
93
- name?: import("@formily/react").SchemaKey;
94
- title?: any;
95
- description?: any;
96
- default?: any;
97
- readOnly?: boolean;
98
- writeOnly?: boolean;
99
- type?: import("@formily/react").SchemaTypes;
100
- enum?: import("@formily/react").SchemaEnum<any>;
101
- const?: any;
102
- multipleOf?: number;
103
- maximum?: number;
104
- exclusiveMaximum?: number;
105
- minimum?: number;
106
- exclusiveMinimum?: number;
107
- maxLength?: number;
108
- minLength?: number;
109
- pattern?: string | RegExp;
110
- maxItems?: number;
111
- minItems?: number;
112
- uniqueItems?: boolean;
113
- maxProperties?: number;
114
- minProperties?: number;
115
- required?: string | boolean | string[];
116
- format?: string;
117
- $ref?: string;
118
- $namespace?: string;
119
- definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
120
- properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
121
- items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
122
- additionalItems?: import("@formily/react").Stringify<any>;
123
- patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
124
- additionalProperties?: import("@formily/react").Stringify<any>;
125
- "x-value"?: any;
126
- "x-index"?: number;
127
- "x-pattern"?: any;
128
- "x-display"?: any;
129
- "x-validator"?: any;
130
- "x-decorator"?: any;
131
- "x-decorator-props"?: any;
132
- "x-component"?: any;
133
- "x-component-props"?: any;
134
- "x-reactions"?: import("@formily/react").SchemaReactions<any>;
135
- "x-content"?: any;
136
- "x-data"?: any;
137
- "x-visible"?: boolean;
138
- "x-hidden"?: boolean;
139
- "x-disabled"?: boolean;
140
- "x-editable"?: boolean;
141
- "x-read-only"?: boolean;
142
- "x-read-pretty"?: boolean;
143
- }>;
144
- }[];
145
- };
146
- };
147
- properties: {
148
- actions: {
149
- type: string;
150
- 'x-component': string;
151
- 'x-component-props': {
152
- style: {
153
- marginBottom: number;
154
- };
155
- };
156
- properties: {};
157
- };
158
- table: {
159
- type: string;
160
- 'x-component': string;
161
- 'x-component-props': {
162
- rowKey: string;
163
- useDataSource: string;
164
- };
165
- properties: {
166
- createdAt: {
167
- type: string;
168
- 'x-decorator': string;
169
- 'x-component': string;
170
- properties: {
171
- createdAt: {
172
- type: string;
173
- 'x-component': string;
174
- 'x-component-props': {
175
- showTime: boolean;
176
- };
177
- 'x-read-pretty': boolean;
178
- };
179
- };
180
- };
181
- workflowId: {
182
- type: string;
183
- 'x-decorator': string;
184
- 'x-component': string;
185
- properties: {
186
- workflowId: {
187
- type: string;
188
- 'x-component': string;
189
- 'x-read-pretty': boolean;
190
- };
191
- };
192
- };
193
- status: {
194
- type: string;
195
- 'x-decorator': string;
196
- 'x-component': string;
197
- properties: {
198
- status: {
199
- type: string;
200
- 'x-component': string;
201
- 'x-read-pretty': boolean;
202
- };
203
- };
204
- };
205
- };
206
- };
207
- };
208
- };
209
- };
@@ -1,157 +0,0 @@
1
- var collection = {
2
- name: 'executions',
3
- fields: [{
4
- interface: 'createdAt',
5
- type: 'datetime',
6
- // field: 'createdAt',
7
- name: 'createdAt',
8
- uiSchema: {
9
- type: 'datetime',
10
- title: '{{t("Created at")}}',
11
- 'x-component': 'DatePicker',
12
- 'x-component-props': {},
13
- 'x-read-pretty': true
14
- }
15
- }, {
16
- interface: 'number',
17
- type: 'number',
18
- name: 'workflowId',
19
- uiSchema: {
20
- type: 'number',
21
- title: '{{t("Version")}}',
22
- 'x-component': 'InputNumber',
23
- 'x-read-pretty': true
24
- }
25
- }, {
26
- type: 'number',
27
- name: 'status',
28
- interface: 'select',
29
- uiSchema: {
30
- title: '{{t("Status")}}',
31
- type: 'string',
32
- 'x-component': 'Select',
33
- 'x-decorator': 'FormItem',
34
- enum: [{
35
- value: 0,
36
- label: '{{t("On going")}}'
37
- }, {
38
- value: 1,
39
- label: '{{t("Succeeded")}}'
40
- }, {
41
- value: -1,
42
- label: '{{t("Failed")}}'
43
- }, {
44
- value: -2,
45
- label: '{{t("Canceled")}}'
46
- }]
47
- }
48
- }]
49
- };
50
- export var executionSchema = {
51
- provider: {
52
- type: 'void',
53
- 'x-decorator': 'ExecutionResourceProvider',
54
- 'x-decorator-props': {
55
- collection: collection,
56
- resourceName: 'executions',
57
- request: {
58
- resource: 'executions',
59
- action: 'list',
60
- params: {
61
- pageSize: 50,
62
- sort: ['-createdAt']
63
- }
64
- }
65
- },
66
- 'x-component': 'CollectionProvider',
67
- 'x-component-props': {
68
- collection: collection
69
- },
70
- properties: {
71
- actions: {
72
- type: 'void',
73
- 'x-component': 'ActionBar',
74
- 'x-component-props': {
75
- style: {
76
- marginBottom: 16
77
- }
78
- },
79
- properties: {// filter: {
80
- // type: 'object',
81
- // 'x-component': 'Filter',
82
- // }
83
- }
84
- },
85
- table: {
86
- type: 'void',
87
- 'x-component': 'Table.Void',
88
- 'x-component-props': {
89
- rowKey: 'id',
90
- useDataSource: '{{ cm.useDataSourceFromRAC }}'
91
- },
92
- properties: {
93
- createdAt: {
94
- type: 'void',
95
- 'x-decorator': 'Table.Column.Decorator',
96
- 'x-component': 'Table.Column',
97
- properties: {
98
- createdAt: {
99
- type: 'datetime',
100
- 'x-component': 'CollectionField',
101
- 'x-component-props': {
102
- showTime: true
103
- },
104
- 'x-read-pretty': true
105
- }
106
- }
107
- },
108
- workflowId: {
109
- type: 'void',
110
- 'x-decorator': 'Table.Column.Decorator',
111
- 'x-component': 'Table.Column',
112
- properties: {
113
- workflowId: {
114
- type: 'number',
115
- 'x-component': 'CollectionField',
116
- 'x-read-pretty': true
117
- }
118
- }
119
- },
120
- status: {
121
- type: 'void',
122
- 'x-decorator': 'Table.Column.Decorator',
123
- 'x-component': 'Table.Column',
124
- properties: {
125
- status: {
126
- type: 'number',
127
- 'x-component': 'CollectionField',
128
- 'x-read-pretty': true
129
- }
130
- }
131
- } // actions: {
132
- // type: 'void',
133
- // title: '{{ t("Actions") }}',
134
- // 'x-component': 'Table.Column',
135
- // properties: {
136
- // actions: {
137
- // type: 'void',
138
- // 'x-component': 'Space',
139
- // 'x-component-props': {
140
- // split: '|',
141
- // },
142
- // properties: {
143
- // config: {
144
- // type: 'void',
145
- // title: '查看',
146
- // 'x-component': 'ExecutionLink'
147
- // },
148
- // }
149
- // }
150
- // }
151
- // }
152
-
153
- }
154
- }
155
- }
156
- }
157
- };
@@ -1,2 +0,0 @@
1
- import { ISchema } from '@formily/react';
2
- export declare const workflowSchema: ISchema;