@nocobase/plugin-workflow 0.9.2-alpha.2 → 0.9.2-alpha.4

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 (72) hide show
  1. package/lib/client/AddButton.js +1 -3
  2. package/lib/client/Branch.d.ts +1 -1
  3. package/lib/client/ExecutionCanvas.js +1 -1
  4. package/lib/client/FlowContext.d.ts +1 -1
  5. package/lib/client/WorkflowProvider.js +0 -1
  6. package/lib/client/components/CollectionFieldset.d.ts +1 -1
  7. package/lib/client/components/CollectionFieldset.js +13 -13
  8. package/lib/client/components/Duration.js +3 -3
  9. package/lib/client/components/DynamicExpression.d.ts +1 -1
  10. package/lib/client/components/DynamicExpression.js +19 -19
  11. package/lib/client/components/RadioWithTooltip.js +4 -4
  12. package/lib/client/components/renderEngineReference.js +12 -11
  13. package/lib/client/interfaces/expression.d.ts +1 -1
  14. package/lib/client/interfaces/expression.js +2 -1
  15. package/lib/client/locale/en-US.d.ts +70 -70
  16. package/lib/client/locale/en-US.js +115 -115
  17. package/lib/client/locale/ja-JP.d.ts +57 -57
  18. package/lib/client/locale/ja-JP.js +85 -85
  19. package/lib/client/locale/pt-BR.d.ts +70 -70
  20. package/lib/client/locale/pt-BR.js +115 -115
  21. package/lib/client/locale/ru-RU.d.ts +57 -57
  22. package/lib/client/locale/ru-RU.js +85 -85
  23. package/lib/client/locale/tr-TR.d.ts +57 -57
  24. package/lib/client/locale/tr-TR.js +85 -85
  25. package/lib/client/locale/zh-CN.js +55 -55
  26. package/lib/client/nodes/calculation.d.ts +1 -1
  27. package/lib/client/nodes/calculation.js +29 -29
  28. package/lib/client/nodes/condition.d.ts +3 -3
  29. package/lib/client/nodes/condition.js +76 -72
  30. package/lib/client/nodes/delay.d.ts +1 -1
  31. package/lib/client/nodes/index.js +35 -37
  32. package/lib/client/nodes/manual/ModeConfig.js +5 -5
  33. package/lib/client/nodes/manual/SchemaConfig.js +2 -5
  34. package/lib/client/nodes/manual/WorkflowTodo.js +3 -3
  35. package/lib/client/nodes/manual/forms/customForm.js +1 -2
  36. package/lib/client/nodes/parallel.d.ts +1 -1
  37. package/lib/client/nodes/parallel.js +6 -6
  38. package/lib/client/nodes/request.d.ts +2 -0
  39. package/lib/client/nodes/request.js +7 -5
  40. package/lib/client/style.js +67 -63
  41. package/lib/client/triggers/index.d.ts +4 -4
  42. package/lib/client/triggers/index.js +5 -7
  43. package/lib/client/triggers/schedule/DateFieldsSelect.d.ts +1 -1
  44. package/lib/client/triggers/schedule/EndsByField.js +3 -3
  45. package/lib/client/triggers/schedule/OnField.js +3 -3
  46. package/lib/client/triggers/schedule/RepeatField.js +16 -16
  47. package/lib/client/triggers/schedule/ScheduleConfig.js +2 -2
  48. package/lib/client/utils.js +1 -1
  49. package/lib/client/variable.js +4 -4
  50. package/lib/server/Processor.d.ts +2 -2
  51. package/lib/server/Processor.js +8 -8
  52. package/lib/server/functions/index.d.ts +1 -1
  53. package/lib/server/functions/index.js +1 -2
  54. package/lib/server/instructions/calculation.d.ts +1 -1
  55. package/lib/server/instructions/calculation.js +7 -7
  56. package/lib/server/instructions/condition.d.ts +2 -2
  57. package/lib/server/instructions/condition.js +7 -8
  58. package/lib/server/instructions/create.d.ts +1 -1
  59. package/lib/server/instructions/destroy.d.ts +1 -1
  60. package/lib/server/instructions/manual/index.js +1 -2
  61. package/lib/server/instructions/parallel.d.ts +3 -3
  62. package/lib/server/instructions/query.d.ts +2 -2
  63. package/lib/server/instructions/request.js +0 -1
  64. package/lib/server/instructions/update.d.ts +2 -2
  65. package/lib/server/migrations/20230221071831-calculation-expression.js +11 -11
  66. package/lib/server/migrations/20230221121203-condition-calculation.js +6 -6
  67. package/lib/server/migrations/20230221162902-jsonb-to-json.js +3 -5
  68. package/lib/server/migrations/20230411034722-manual-multi-form.js +3 -2
  69. package/lib/server/triggers/collection.d.ts +2 -2
  70. package/lib/server/triggers/collection.js +2 -2
  71. package/lib/server/triggers/schedule.js +26 -20
  72. package/package.json +12 -12
@@ -105,7 +105,6 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
105
105
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
106
106
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
107
107
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
108
- ;
109
108
  const instructions = new (_client().Registry)();
110
109
  exports.instructions = instructions;
111
110
  instructions.register('condition', _condition.default);
@@ -148,7 +147,6 @@ function useUpdateAction() {
148
147
  }
149
148
  };
150
149
  }
151
- ;
152
150
  const NodeContext = _react().default.createContext({});
153
151
  exports.NodeContext = NodeContext;
154
152
  function useNodeContext() {
@@ -178,21 +176,21 @@ function Node({
178
176
  upstream: data
179
177
  }) : _react().default.createElement("div", {
180
178
  className: (0, _css().css)`
181
- flex-grow: 1;
182
- display: flex;
183
- flex-direction: column;
184
- align-items: center;
185
- justify-content: center;
186
- width: 1px;
187
- height: 6em;
188
- padding: 2em 0;
189
- background-color: #f0f2f5;
179
+ flex-grow: 1;
180
+ display: flex;
181
+ flex-direction: column;
182
+ align-items: center;
183
+ justify-content: center;
184
+ width: 1px;
185
+ height: 6em;
186
+ padding: 2em 0;
187
+ background-color: #f0f2f5;
190
188
 
191
- .anticon{
192
- font-size: 1.5em;
193
- line-height: 100%;
194
- }
195
- `
189
+ .anticon {
190
+ font-size: 1.5em;
191
+ line-height: 100%;
192
+ }
193
+ `
196
194
  }, _react().default.createElement(_icons().CloseOutlined, null))));
197
195
  }
198
196
  function RemoveButton() {
@@ -280,10 +278,10 @@ function JobButton() {
280
278
  if (!job) {
281
279
  return _react().default.createElement("span", {
282
280
  className: (0, _css().cx)('workflow-node-job-button', (0, _css().css)`
283
- border: 2px solid #d9d9d9;
284
- border-radius: 50%;
285
- cursor: not-allowed;
286
- `)
281
+ border: 2px solid #d9d9d9;
282
+ border-radius: 50%;
283
+ cursor: not-allowed;
284
+ `)
287
285
  });
288
286
  }
289
287
  const instruction = instructions.get(type);
@@ -304,14 +302,14 @@ function JobButton() {
304
302
  }, icon),
305
303
  shape: 'circle',
306
304
  className: ['workflow-node-job-button', (0, _css().css)`
307
- .ant-tag{
308
- padding: 0;
309
- width: 100%;
310
- line-height: 18px;
311
- margin-right: 0;
312
- border-radius: 50%;
313
- }
314
- `]
305
+ .ant-tag {
306
+ padding: 0;
307
+ width: 100%;
308
+ line-height: 18px;
309
+ margin-right: 0;
310
+ border-radius: 50%;
311
+ }
312
+ `]
315
313
  },
316
314
  properties: {
317
315
  [`${job.id}-modal`]: {
@@ -486,10 +484,10 @@ function NodeDefaultView(props) {
486
484
  showIcon: true,
487
485
  message: `{{t("Node in executed workflow cannot be modified", { ns: "${_locale.NAMESPACE}" })}}`,
488
486
  className: (0, _css().css)`
489
- width: 100%;
490
- font-size: 85%;
491
- margin-bottom: 2em;
492
- `
487
+ width: 100%;
488
+ font-size: 85%;
489
+ margin-bottom: 2em;
490
+ `
493
491
  }
494
492
  }
495
493
  } : {}), {}, {
@@ -502,16 +500,16 @@ function NodeDefaultView(props) {
502
500
  .ant-cascader-picker,
503
501
  .ant-picker,
504
502
  .ant-input-number,
505
- .ant-input-affix-wrapper{
506
- &:not(.full-width){
503
+ .ant-input-affix-wrapper {
504
+ &:not(.full-width) {
507
505
  width: auto;
508
506
  min-width: 6em;
509
507
  }
510
508
  }
511
509
 
512
- .ant-input-affix-wrapper{
513
- &:not(.full-width){
514
- .ant-input{
510
+ .ant-input-affix-wrapper {
511
+ &:not(.full-width) {
512
+ .ant-input {
515
513
  width: auto;
516
514
  min-width: 6em;
517
515
  }
@@ -70,12 +70,12 @@ function ModeConfig({
70
70
  const mode = parseMode(value);
71
71
  return _react().default.createElement("fieldset", {
72
72
  className: (0, _css().css)`
73
- .ant-radio-group{
74
- .anticon{
75
- margin-left: .5em;
73
+ .ant-radio-group {
74
+ .anticon {
75
+ margin-left: 0.5em;
76
+ }
76
77
  }
77
- }
78
- `
78
+ `
79
79
  }, _react().default.createElement(_antd2().Form.Item, null, _react().default.createElement(_antd2().Radio.Group, {
80
80
  value: Boolean(value),
81
81
  onChange: ({
@@ -62,10 +62,9 @@ function useTriggerInitializers() {
62
62
  const trigger = (0, _triggers.useTrigger)();
63
63
  return trigger.useInitializers ? trigger.useInitializers(workflow.config) : null;
64
64
  }
65
- ;
66
65
  const blockTypeNames = {
67
- 'customForm': _customForm.default.title,
68
- 'record': `{{t("Data record", { ns: "${_locale.NAMESPACE}" })}}`
66
+ customForm: _customForm.default.title,
67
+ record: `{{t("Data record", { ns: "${_locale.NAMESPACE}" })}}`
69
68
  };
70
69
  function SimpleDesigner() {
71
70
  var _blockTypeNames$schem, _schema$xDesignerPr;
@@ -132,7 +131,6 @@ function AddBlockButton(props) {
132
131
  title: "{{t('Add block')}}"
133
132
  }));
134
133
  }
135
- ;
136
134
  function findSchema(schema, filter, onlyLeaf = false) {
137
135
  const result = [];
138
136
  if (!schema) {
@@ -161,7 +159,6 @@ function SchemaComponentRefreshProvider(props) {
161
159
  })
162
160
  }, props.children);
163
161
  }
164
- ;
165
162
  function ActionInitializer(_ref) {
166
163
  let action = _ref.action,
167
164
  actionProps = _ref.actionProps,
@@ -468,7 +468,7 @@ function useFlowRecordFromBlock(opts) {
468
468
  dataSource = _useFieldSchema['x-context-datasource'];
469
469
  const _useFlowContext = (0, _FlowContext.useFlowContext)(),
470
470
  execution = _useFlowContext.execution;
471
- let result = (0, _jsonTemplates().default)(dataSource)({
471
+ const result = (0, _jsonTemplates().default)(dataSource)({
472
472
  $context: execution === null || execution === void 0 ? void 0 : execution.context,
473
473
  $jobsMapByNodeId: ((_execution$jobs = execution === null || execution === void 0 ? void 0 : execution.jobs) !== null && _execution$jobs !== void 0 ? _execution$jobs : []).reduce((map, job) => Object.assign(map, {
474
474
  [job.nodeId]: job.result
@@ -547,8 +547,8 @@ WorkflowTodo.Drawer = function () {
547
547
  'x-component': 'time',
548
548
  'x-component-props': {
549
549
  className: (0, _css().css)`
550
- margin-right: .5em;
551
- `
550
+ margin-right: 0.5em;
551
+ `
552
552
  },
553
553
  'x-content': (0, _moment().default)(updatedAt).format('YYYY-MM-DD HH:mm:ss')
554
554
  },
@@ -360,7 +360,6 @@ function CustomFormFieldInitializer(props) {
360
360
  }
361
361
  });
362
362
  }
363
- ;
364
363
  function useFormBlockProps() {
365
364
  var _user$data;
366
365
  const _useRecord = (0, _client().useRecord)(),
@@ -371,7 +370,7 @@ function useFormBlockProps() {
371
370
  user = _useCurrentUserContex.data;
372
371
  const _useFieldSchema = (0, _react2().useFieldSchema)(),
373
372
  name = _useFieldSchema.name;
374
- const pattern = Boolean(status) ? (result === null || result === void 0 ? void 0 : result[name]) ? 'readPretty' : 'disabled' : (user === null || user === void 0 ? void 0 : (_user$data = user.data) === null || _user$data === void 0 ? void 0 : _user$data.id) !== userId ? 'disabled' : 'editable';
373
+ const pattern = status ? (result === null || result === void 0 ? void 0 : result[name]) ? 'readPretty' : 'disabled' : (user === null || user === void 0 ? void 0 : (_user$data = user.data) === null || _user$data === void 0 ? void 0 : _user$data.id) !== userId ? 'disabled' : 'editable';
375
374
  const form = (0, _react().useMemo)(() => {
376
375
  var _result$name;
377
376
  return (0, _core().createForm)({
@@ -1,4 +1,4 @@
1
- import { RadioWithTooltip } from "../components/RadioWithTooltip";
1
+ import { RadioWithTooltip } from '../components/RadioWithTooltip';
2
2
  declare const _default: {
3
3
  title: string;
4
4
  type: string;
@@ -112,9 +112,9 @@ var _default = {
112
112
  className: (0, _css().css)`
113
113
  padding-top: 2em;
114
114
 
115
- > button{
116
- .anticon{
117
- transform: rotate(45deg)
115
+ > button {
116
+ .anticon {
117
+ transform: rotate(45deg);
118
118
  }
119
119
  }
120
120
  `
@@ -132,8 +132,8 @@ var _default = {
132
132
  }, _react().default.createElement(_antd().Tooltip, {
133
133
  title: (0, _locale.lang)('Add branch'),
134
134
  className: (0, _css().css)`
135
- visibility: ${workflow.executed ? 'hidden' : 'visible'}
136
- `
135
+ visibility: ${workflow.executed ? 'hidden' : 'visible'};
136
+ `
137
137
  }, _react().default.createElement(_antd().Button, {
138
138
  icon: _react().default.createElement(_icons().PlusOutlined, null),
139
139
  className: (0, _css().css)`
@@ -141,7 +141,7 @@ var _default = {
141
141
  top: calc(50% - 1px);
142
142
  transform: translateX(-50%) rotate(45deg);
143
143
 
144
- .anticon{
144
+ .anticon {
145
145
  transform: rotate(-45deg);
146
146
  }
147
147
  `,
@@ -59,6 +59,7 @@ declare const _default: {
59
59
  'x-component': string;
60
60
  'x-component-props': {
61
61
  scope: typeof useWorkflowVariableOptions;
62
+ useTypedConstant: boolean;
62
63
  };
63
64
  };
64
65
  remove: {
@@ -104,6 +105,7 @@ declare const _default: {
104
105
  'x-component': string;
105
106
  'x-component-props': {
106
107
  scope: typeof useWorkflowVariableOptions;
108
+ useTypedConstant: boolean;
107
109
  };
108
110
  };
109
111
  remove: {
@@ -91,7 +91,8 @@ var _default = {
91
91
  'x-decorator': 'FormItem',
92
92
  'x-component': 'Variable.Input',
93
93
  'x-component-props': {
94
- scope: _variable.useWorkflowVariableOptions
94
+ scope: _variable.useWorkflowVariableOptions,
95
+ useTypedConstant: true
95
96
  }
96
97
  },
97
98
  remove: {
@@ -136,7 +137,8 @@ var _default = {
136
137
  'x-decorator': 'FormItem',
137
138
  'x-component': 'Variable.Input',
138
139
  'x-component-props': {
139
- scope: _variable.useWorkflowVariableOptions
140
+ scope: _variable.useWorkflowVariableOptions,
141
+ useTypedConstant: true
140
142
  }
141
143
  },
142
144
  remove: {
@@ -169,9 +171,9 @@ var _default = {
169
171
  },
170
172
  placeholder: `{{t("Input request data", { ns: "${_locale.NAMESPACE}" })}}`,
171
173
  className: (0, _css().cx)('full-width', (0, _css().css)`
172
- font-size: 90%;
173
- font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
174
- `)
174
+ font-size: 90%;
175
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
176
+ `)
175
177
  },
176
178
  description: `{{t("Only support standard JSON data", { ns: "${_locale.NAMESPACE}" })}}`
177
179
  },
@@ -12,33 +12,33 @@ function _css() {
12
12
  return data;
13
13
  }
14
14
  const workflowPageClass = (0, _css().css)`
15
- .workflow-toolbar{
15
+ .workflow-toolbar {
16
16
  display: flex;
17
17
  align-items: center;
18
18
  justify-content: space-between;
19
19
  padding: 0.5rem 1rem;
20
20
  background: #fff;
21
21
 
22
- header{
22
+ header {
23
23
  display: flex;
24
24
  align-items: center;
25
25
  min-height: 2rem;
26
26
  }
27
27
 
28
- aside{
28
+ aside {
29
29
  display: flex;
30
30
  align-items: center;
31
- gap: .5em;
31
+ gap: 0.5em;
32
32
  }
33
33
 
34
- .workflow-versions{
35
- label{
36
- margin-right: .5em;
34
+ .workflow-versions {
35
+ label {
36
+ margin-right: 0.5em;
37
37
  }
38
38
  }
39
39
  }
40
40
 
41
- .workflow-canvas{
41
+ .workflow-canvas {
42
42
  width: min-content;
43
43
  min-width: 100%;
44
44
  display: flex;
@@ -46,39 +46,39 @@ const workflowPageClass = (0, _css().css)`
46
46
  align-items: center;
47
47
  padding: 2em;
48
48
 
49
- .end{
49
+ .end {
50
50
  cursor: default;
51
51
 
52
- &:hover{
53
- box-shadow: 0 .25em .5em rgba(0, 0, 0, .1);
52
+ &:hover {
53
+ box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
54
54
  }
55
55
  }
56
56
  }
57
57
  `;
58
58
  exports.workflowPageClass = workflowPageClass;
59
59
  const workflowVersionDropdownClass = (0, _css().css)`
60
- .ant-dropdown-menu-item{
61
- .ant-dropdown-menu-title-content{
60
+ .ant-dropdown-menu-item {
61
+ .ant-dropdown-menu-title-content {
62
62
  text-align: right;
63
63
 
64
- time{
64
+ time {
65
65
  margin-left: 0.5rem;
66
66
  color: #999;
67
67
  font-size: 80%;
68
68
  }
69
69
 
70
- strong{
70
+ strong {
71
71
  font-weight: normal;
72
72
  }
73
73
 
74
- > .enabled{
75
- strong{
74
+ > .enabled {
75
+ strong {
76
76
  font-weight: bold;
77
77
  }
78
78
  }
79
79
 
80
- > .unexecuted{
81
- strong{
80
+ > .unexecuted {
81
+ strong {
82
82
  font-style: italic;
83
83
  }
84
84
  }
@@ -90,12 +90,12 @@ const branchBlockClass = (0, _css().css)`
90
90
  display: flex;
91
91
  position: relative;
92
92
 
93
- :before{
94
- content: "";
93
+ :before {
94
+ content: '';
95
95
  position: absolute;
96
96
  top: 0;
97
97
  bottom: 0;
98
- left: calc(50% - .5px);
98
+ left: calc(50% - 0.5px);
99
99
  width: 1px;
100
100
  background-color: #f0f2f5;
101
101
  }
@@ -108,12 +108,12 @@ const branchClass = (0, _css().css)`
108
108
  position: relative;
109
109
  padding: 0 2em;
110
110
 
111
- .workflow-node-list{
111
+ .workflow-node-list {
112
112
  flex-grow: 1;
113
113
  min-width: 20em;
114
114
  }
115
115
 
116
- .workflow-branch-lines{
116
+ .workflow-branch-lines {
117
117
  position: absolute;
118
118
  top: 0;
119
119
  bottom: 0;
@@ -121,37 +121,41 @@ const branchClass = (0, _css().css)`
121
121
  background-color: #ddd;
122
122
  }
123
123
 
124
- :before,:after{
125
- content: "";
124
+ :before,
125
+ :after {
126
+ content: '';
126
127
  position: absolute;
127
128
  height: 1px;
128
129
  background-color: #ddd;
129
130
  }
130
131
 
131
- :before{
132
+ :before {
132
133
  top: 0;
133
134
  }
134
135
 
135
- :after{
136
+ :after {
136
137
  bottom: 0;
137
138
  }
138
139
 
139
- :not(:first-child):not(:last-child){
140
- :before,:after{
140
+ :not(:first-child):not(:last-child) {
141
+ :before,
142
+ :after {
141
143
  left: 0;
142
144
  width: 100%;
143
145
  }
144
146
  }
145
147
 
146
- :last-child:not(:first-child){
147
- :before,:after{
148
+ :last-child:not(:first-child) {
149
+ :before,
150
+ :after {
148
151
  right: 50%;
149
152
  width: 50%;
150
153
  }
151
154
  }
152
155
 
153
- :first-child:not(:last-child){
154
- :before,:after{
156
+ :first-child:not(:last-child) {
157
+ :before,
158
+ :after {
155
159
  left: 50%;
156
160
  width: 50%;
157
161
  }
@@ -179,28 +183,28 @@ const nodeCardClass = (0, _css().css)`
179
183
  width: 20em;
180
184
  background: #fff;
181
185
  padding: 1em;
182
- box-shadow: 0 .25em .5em rgba(0, 0, 0, .1);
183
- border-radius: .5em;
186
+ box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
187
+ border-radius: 0.5em;
184
188
  cursor: pointer;
185
- transition: box-shadow .3s ease;
189
+ transition: box-shadow 0.3s ease;
186
190
 
187
- &.configuring{
188
- box-shadow: 0 .25em 1em rgba(0, 100, 200, .25);
191
+ &.configuring {
192
+ box-shadow: 0 0.25em 1em rgba(0, 100, 200, 0.25);
189
193
  }
190
194
 
191
195
  .workflow-node-remove-button,
192
- .workflow-node-job-button{
196
+ .workflow-node-job-button {
193
197
  position: absolute;
194
198
  }
195
199
 
196
- .workflow-node-remove-button{
197
- right: .5em;
198
- top: .5em;
200
+ .workflow-node-remove-button {
201
+ right: 0.5em;
202
+ top: 0.5em;
199
203
  color: #999;
200
204
  opacity: 0;
201
- transition: opacity .3s ease;
205
+ transition: opacity 0.3s ease;
202
206
 
203
- &[disabled]{
207
+ &[disabled] {
204
208
  display: none;
205
209
  }
206
210
 
@@ -209,7 +213,7 @@ const nodeCardClass = (0, _css().css)`
209
213
  }
210
214
  }
211
215
 
212
- .workflow-node-job-button{
216
+ .workflow-node-job-button {
213
217
  display: flex;
214
218
  top: 1em;
215
219
  right: 1em;
@@ -221,38 +225,38 @@ const nodeCardClass = (0, _css().css)`
221
225
  font-size: 0.8em;
222
226
  color: #fff;
223
227
 
224
- &[type="button"]{
228
+ &[type='button'] {
225
229
  border: none;
226
230
  }
227
231
  }
228
232
 
229
- .ant-input{
233
+ .ant-input {
230
234
  font-weight: bold;
231
235
 
232
- &:not(:focus){
233
- transition: background-color .3s ease, border-color .3s ease;
236
+ &:not(:focus) {
237
+ transition: background-color 0.3s ease, border-color 0.3s ease;
234
238
  border-color: #f7f7f7;
235
239
  background-color: #f7f7f7;
236
240
 
237
- &:not(:disabled):hover{
241
+ &:not(:disabled):hover {
238
242
  border-color: #eee;
239
243
  background-color: #eee;
240
244
  }
241
245
 
242
- &:disabled:hover{
246
+ &:disabled:hover {
243
247
  border-color: #f7f7f7;
244
248
  }
245
249
  }
246
250
  }
247
251
 
248
- .workflow-node-config-button{
252
+ .workflow-node-config-button {
249
253
  padding: 0;
250
254
  }
251
255
 
252
- &:hover{
253
- box-shadow: 0 .25em .5em rgba(0, 0, 0, .25);
256
+ &:hover {
257
+ box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.25);
254
258
 
255
- .workflow-node-remove-button{
259
+ .workflow-node-remove-button {
256
260
  opacity: 1;
257
261
  }
258
262
  }
@@ -263,13 +267,13 @@ const nodeHeaderClass = (0, _css().css)`
263
267
  `;
264
268
  exports.nodeHeaderClass = nodeHeaderClass;
265
269
  const nodeMetaClass = (0, _css().css)`
266
- margin-bottom: .5em;
270
+ margin-bottom: 0.5em;
267
271
 
268
- .workflow-node-id{
272
+ .workflow-node-id {
269
273
  color: #999;
270
274
 
271
- &:before{
272
- content: "#"
275
+ &:before {
276
+ content: '#';
273
277
  }
274
278
  }
275
279
  `;
@@ -278,7 +282,7 @@ const nodeTitleClass = (0, _css().css)`
278
282
  display: flex;
279
283
  align-items: center;
280
284
  font-weight: normal;
281
- .workflow-node-id{
285
+ .workflow-node-id {
282
286
  color: #999;
283
287
  }
284
288
  `;
@@ -293,8 +297,8 @@ const addButtonClass = (0, _css().css)`
293
297
  flex-shrink: 0;
294
298
  padding: 2em 0;
295
299
 
296
- > .ant-btn{
297
- &:disabled{
300
+ > .ant-btn {
301
+ &:disabled {
298
302
  visibility: hidden;
299
303
  }
300
304
  }
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import { ISchema } from "@formily/react";
3
- import { Registry } from "@nocobase/utils/client";
1
+ import React from 'react';
2
+ import { ISchema } from '@formily/react';
3
+ import { Registry } from '@nocobase/utils/client';
4
4
  import { SchemaInitializerItemOptions } from '@nocobase/client';
5
- import { VariableOptions } from "../variable";
5
+ import { VariableOptions } from '../variable';
6
6
  export interface Trigger {
7
7
  title: string;
8
8
  type: string;
@@ -105,8 +105,6 @@ function useUpdateConfigAction() {
105
105
  }
106
106
  };
107
107
  }
108
- ;
109
- ;
110
108
  const triggers = new (_client().Registry)();
111
109
  exports.triggers = triggers;
112
110
  triggers.register(_collection.default.type, _collection.default);
@@ -292,10 +290,10 @@ const TriggerConfig = () => {
292
290
  showIcon: true,
293
291
  message: `{{t("Trigger in executed workflow cannot be modified", { ns: "${_locale.NAMESPACE}" })}}`,
294
292
  className: (0, _css().css)`
295
- width: 100%;
296
- font-size: 85%;
297
- margin-bottom: 2em;
298
- `
293
+ width: 100%;
294
+ font-size: 85%;
295
+ margin-bottom: 2em;
296
+ `
299
297
  }
300
298
  }
301
299
  } : {}), {}, {
@@ -304,7 +302,7 @@ const TriggerConfig = () => {
304
302
  'x-component': 'fieldset',
305
303
  'x-component-props': {
306
304
  className: (0, _css().css)`
307
- .ant-select:not(.full-width){
305
+ .ant-select:not(.full-width) {
308
306
  width: auto;
309
307
  min-width: 6em;
310
308
  }
@@ -1,2 +1,2 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  export declare const DateFieldsSelect: React.FC<any>;
@@ -44,9 +44,9 @@ function EndsByField({
44
44
  const type = value != null ? typeof value === 'object' && !(value instanceof Date) ? 'field' : 'date' : null;
45
45
  return _react().default.createElement("fieldset", {
46
46
  className: (0, _css().css)`
47
- display: flex;
48
- gap: .5em;
49
- `
47
+ display: flex;
48
+ gap: 0.5em;
49
+ `
50
50
  }, _react().default.createElement(_antd().Select, {
51
51
  value: type,
52
52
  onChange: t => {